/** * What a register row's decision records about redistributing that publisher's rows. * * A served data layer copies a publisher's rows and redistributes them, so the reading is taken * for `distribute-rows`, the operation serving performs, whatever else the decision permits. */ import { LicenseReviewState, TermsStatement, type TermsObligation } from "@mailwoman/license/decision"; import type { RegisterDecisions } from "#source-register/corpus-inputs"; import type { AddressSourceRecord } from "#source-register/types"; /** * The ground a register row's decision gives for redistributing the publisher's rows. */ export declare const RegisterTermsBasis: { /** * The publisher grants an open license, and the decision records its SPDX identifier. */ readonly OpenLicense: "open-license"; /** * The publisher grants the rows under terms of its own. * * The decision records them in the publisher's words with no SPDX identifier. */ readonly PublisherGrant: "publisher-grant"; /** * No publisher grant: the decision permits redistribution on a documented ground other * than one, such as the US factual-data reading or a federal work under 17 U.S.C. ยง 105. * * The row's terms either state no restriction or state none at all. * {@linkcode RegisterRowTerms.statement} records which. */ readonly NoRestrictingTerms: "no-restricting-terms"; /** * A reviewer read the terms and refused the source, or the elected terms refuse redistribution. */ readonly Refused: "refused"; /** * No reviewer has read the terms for redistribution: the decision is unchecked, * or the elected terms don't state a permission for it. */ readonly Unread: "unread"; /** * The register holds no row for the source, or the row points at a license without a decision. */ readonly Unregistered: "unregistered"; }; export type RegisterTermsBasis = (typeof RegisterTermsBasis)[keyof typeof RegisterTermsBasis]; /** * The register fields {@linkcode registerRowTerms} reads. */ export interface RegisterTermsInput extends RegisterDecisions { sources: ReadonlyArray>; } /** * One register row's reading for redistribution. */ export interface RegisterRowTerms { registerSource: string; /** * The publisher as the register spells it, or `null` when the row names none. */ publisher: string | null; licenseID: string | null; /** * The decision's review state, or `null` when the register has no decision for the row. */ decision: LicenseReviewState | null; basis: RegisterTermsBasis; spdx: string | null; /** * The elected terms in the publisher's words. */ electedTerms: string | null; /** * What the reviewer found on the terms page, or `null` when the decision records no structured reading. * * An elected open license or publisher grant reads `terms`, because a grant is a statement of terms. * A `no-restricting-terms` row is the one whose finding this field separates. */ statement: TermsStatement | null; termsURL: string | null; /** * The location of the reviewer's retained copy of the terms. */ retrievedCopy: string | null; /** * The obligations an elected decision records in the publisher's words, or `null` when it records none. * * An elected decision that refuses redistribution keeps them, so a refused * row still shows what its terms ask. */ obligations: readonly TermsObligation[] | null; /** * The first sentence of the reason the decision gives for redistribution. */ because: string; } /** * Reads one register row's decision for redistributing its rows. * * A row the register lacks, or whose license has no decision, reads as unregistered * rather than as unread, because the register holds no record of a reading. */ export declare function registerRowTerms(register: RegisterTermsInput, registerSource: string): RegisterRowTerms; //# sourceMappingURL=terms.d.ts.map