@oxy.so/contracts 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  * Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.COUNTER_NOTICE_STATEMENTS = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_ERROR_CODES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.OPEN_CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_LIMITS = exports.CLAIMANT_RELATIONSHIPS = exports.CONTENT_CLAIM_KINDS = void 0;
10
+ exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.COUNTER_NOTICE_STATEMENTS = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_ERROR_CODES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.OPEN_CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_REFERRAL_LIMITS = exports.CONTENT_REFERRAL_REASONS = exports.CLAIMANT_RELATIONSHIPS = exports.CONTENT_CLAIM_KINDS = void 0;
11
11
  exports.isRightsClaim = isRightsClaim;
12
12
  exports.isErasureRequest = isErasureRequest;
13
13
  /** What a claim asserts. */
@@ -25,6 +25,22 @@ exports.CLAIMANT_RELATIONSHIPS = [
25
25
  'affected_person',
26
26
  'other',
27
27
  ];
28
+ /**
29
+ * Why an Oxy service refers content to the claim review (ADR 0043 D14).
30
+ *
31
+ * A referral is a claim with no claimant: the service that hosts the content
32
+ * hands it to Oxy's staff because it may be illegal, on a reason from this
33
+ * closed list. `child_safety` is material that may sexualise or exploit a
34
+ * minor: it never goes to a community jury, its owner is not sent the claim
35
+ * email and cannot answer it with a counter-notice.
36
+ */
37
+ exports.CONTENT_REFERRAL_REASONS = ['child_safety'];
38
+ /** The bounds of one referral. */
39
+ exports.CONTENT_REFERRAL_LIMITS = {
40
+ maxFileIds: 50,
41
+ maxFileId: 64,
42
+ maxPageUrls: 20,
43
+ };
28
44
  /** The bounds of a submission. The website fills its validation messages from these. */
29
45
  exports.CONTENT_CLAIM_LIMITS = {
30
46
  minUrls: 1,
@@ -34,8 +34,8 @@ exports.ORGANIZATION_KEY_PROOF_ACTION_VALUES = exports.ORGANIZATION_KEY_PROOF_AC
34
34
  exports.ORGANIZATION_ERROR_CODES = exports.ORGANIZATION_CLAIM_STATUSES = exports.ORGANIZATION_CLAIM_DECISIONS = exports.ORGANIZATION_ALIAS_KINDS = exports.canonicalJson = exports.buildIdentityProofMessage = exports.IDENTITY_PROOF_VERSION = exports.IDENTITY_PROOF_DOMAIN = exports.IDENTITY_PROOF_CHALLENGE_TTL_MS = exports.IDENTITY_PROOF_AUDIENCE = exports.IDENTITY_PROOF_ACTION_VALUES = exports.IDENTITY_PROOF_ACTIONS = exports.IDENTITY_ERROR_CODES = exports.parseIdentityLinkQrPayload = exports.identityLinkStateCheck = exports.identityLinkCreateResponseCheck = exports.buildIdentityLinkQrPayload = exports.IDENTITY_LINK_STATUSES = exports.IDENTITY_LINK_QR_PREFIX = exports.identityKeyHistoryCheck = exports.IDENTITY_KEY_HISTORY_CLAIM_ACTION = exports.sessionAccountsChangedEventCheck = exports.deviceTokenMintResponseCheck = exports.deviceSessionSyncCheck = exports.deviceSessionStateCheck = exports.deviceRegisterResponseCheck = exports.deviceJoinResponseCheck = exports.deviceJoinCodeResponseCheck = exports.holderContextEvidenceV1ResponseCheck = exports.holderContextEvidenceV1RequestCheck = exports.deviceContextTokenV1ResponseCheck = exports.deviceContextTokenV1RequestCheck = exports.deviceBackgroundCredentialResponseCheck = exports.activeTokenCheck = exports.SESSION_ACCOUNTS_CHANGED_EVENT = exports.deviceDirectorySyncCheck = exports.deviceDirectoryCheck = exports.deviceActivateResponseCheck = exports.normalizeDomainName = exports.DOMAIN_NAME_MAX_LENGTH = exports.signedRecordEnvelopeCheck = exports.externalIdentityReferenceCheck = exports.loginResultCheck = exports.isLoopbackOrigin = exports.organizationKeyProofClaims = exports.organizationKeyPayload = exports.organizationKeyChallengeRequestCheck = exports.organizationKeyChallengeCheck = exports.organizationKeyApplyRequestCheck = exports.organizationIdentityKeyStateCheck = void 0;
35
35
  exports.safetyPeopleResponseCheck = exports.safetyPeopleInputCheck = exports.safetyOrganizationsResponseCheck = exports.safetyOrganizationsInputCheck = exports.purchaseReviewInputCheck = exports.purchaseApprovalListCheck = exports.purchaseApprovalCheck = exports.profileAccessInputCheck = exports.profileAccessDecisionCheck = exports.SUPERVISION_STATUSES = exports.SUPERVISION_INVITATION_STATUSES = exports.SUPERVISION_CONSENT_VERSION = exports.SUPERVISION_CHANGED_EVENT = exports.SUPERVISED_ACTIONS = exports.SAFETY_POLICY_VERSION = exports.PURCHASE_APPROVAL_STATUSES = exports.isFullReputationBalance = exports.recommendationRequestCheck = exports.subscriptionCreditGrantsResponseCheck = exports.subjectProductAccessQueryCheck = exports.subjectProductAccessCheck = exports.productSubscriptionsResponseCheck = exports.productSubscriptionPortalResponseCheck = exports.productSubscriptionPortalRequestCheck = exports.productSubscriptionCancellationResultCheck = exports.productPlanCheckoutRequestCheck = exports.productPlanCatalogueCheck = exports.personalPlanCheckoutResultCheck = exports.personalPlanCheckoutRequestCheck = exports.personalPlanCatalogueCheck = exports.oxyAccountIdCheck = exports.cancelProductSubscriptionCheck = exports.updateOrganizationCheck = exports.organizationNameCheck = exports.organizationListCheck = exports.organizationImportBatchResultCheck = exports.organizationExternalResolutionCheck = exports.organizationExternalCheck = exports.organizationCurationResultCheck = exports.organizationClaimReviewCheck = exports.organizationClaimListCheck = exports.organizationClaimInputCheck = exports.organizationClaimDetailCheck = exports.organizationClaimCheck = exports.organizationCheck = exports.organizationBatchCheck = exports.createOrganizationCheck = exports.ORGANIZATION_TYPES = exports.ORGANIZATION_STATUSES = exports.ORGANIZATION_NAME_MAX_LENGTH = void 0;
36
36
  exports.botUsernameCheck = exports.applyBotUsernameSuffix = exports.USERNAME_PATTERN_SOURCE = exports.USERNAME_MIN_LENGTH = exports.USERNAME_MAX_LENGTH = exports.USERNAME_INVALID_MESSAGE = exports.RESERVED_USERNAME_MESSAGE = exports.RESERVED_USERNAMES = exports.NUMERIC_USERNAME_MESSAGE = exports.BOT_USERNAME_SUFFIX = exports.BOT_USERNAME_INVALID_MESSAGE = exports.totpEnrollResponseCheck = exports.totpBackupCodesResponseCheck = exports.signInMethodsCheck = exports.secondFactorRequiredCheck = exports.reauthProofCheck = exports.normalizeEmailSignInCode = exports.isSecondFactorRequired = exports.isEmailSignInChooseAccount = exports.emailSignInStartResponseCheck = exports.emailSignInPendingCheck = exports.emailSignInLinkResponseCheck = exports.emailSignInChooseAccountCheck = exports.TOTP_PERIOD_SECONDS = exports.TOTP_DIGITS = exports.TOTP_BACKUP_CODE_COUNT = exports.SIGN_IN_ERROR_CODES = exports.SIGNIN_SECOND_FACTOR_TTL_MS = exports.SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS = exports.SIGN_IN_IDENTIFIER_MAX_LENGTH = exports.SECOND_FACTOR_CODE_MAX_LENGTH = exports.REAUTH_ACTIONS = exports.PASSWORD_MIN_LENGTH = exports.PASSWORD_MAX_LENGTH = exports.EMAIL_SIGNIN_LONG_CODE_LENGTH = exports.EMAIL_SIGNIN_LONG_CODE_ALPHABET = exports.EMAIL_SIGNIN_LINK_TTL_MS = exports.EMAIL_SIGNIN_CHOICE_TTL_MS = exports.EMAIL_ACCOUNTS_MAX = exports.CONSOLE_USE_CASES = exports.CONSOLE_TERMS_VERSION = exports.publicApplicationCheck = exports.supervisionStateCheck = exports.supervisionReviewInputCheck = exports.dateOfBirthCorrectionInputCheck = exports.supervisionInviteInputCheck = exports.supervisionInvitationCheck = exports.supervisionContactsResponseCheck = exports.supervisionContactInputCheck = exports.supervisionAcceptInputCheck = void 0;
37
- exports.FREE_USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLORS = exports.deviceAppTokenResponseCheck = exports.PLATFORM_HOSTS = exports.OXYOS_DESKTOP_ENTRY_ID_PATTERN = exports.DEVICE_APP_TOKEN_TTL_SECONDS = exports.DEVICE_APP_TOKEN_ERROR_CODES = exports.APP_TOKEN_DEVICE_ACCESS_DENIED = exports.appAttestKeyResponseCheck = exports.appAssertionResponseCheck = exports.appAssertionChallengeResponseCheck = exports.OXY_APP_ASSERTION_TYPE = exports.OXY_APP_ASSERTION_TTL_SECONDS = exports.OXY_APP_ASSERTION_HEADER = exports.OXY_APP_ASSERTION_AUDIENCE = exports.APP_ASSERTION_PLATFORMS = exports.APP_ASSERTION_ERROR_CODES = exports.APP_ASSERTION_CHALLENGE_PURPOSES = exports.isSelfServiceBandChange = exports.ageInYears = exports.ageBandOf = exports.MIN_BIRTH_YEAR = exports.MINIMUM_UNSUPERVISED_AGE_YEARS = exports.DATE_OF_BIRTH_REFUSALS = exports.DATE_OF_BIRTH_PATTERN = exports.DATE_OF_BIRTH_MESSAGES = exports.AGE_BANDS = exports.ADULT_AGE_YEARS = exports.isRightsClaim = exports.isErasureRequest = exports.OPEN_CONTENT_CLAIM_STATES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.COUNTER_NOTICE_STATEMENTS = exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_CLAIM_KINDS = exports.CONTENT_CLAIM_ERROR_CODES = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.CLAIMANT_RELATIONSHIPS = exports.PRONOUNS = exports.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = exports.userNameCheck = exports.usernameCheckForAccountKind = exports.usernameCheck = exports.stripDisallowedUsernameCharacters = void 0;
38
- exports.keychainItemsResponseCheck = exports.keychainItemResponseCheck = exports.keychainEnrollmentsResponseCheck = exports.keychainEnrollmentResponseCheck = exports.keychainWrapResponseCheck = exports.keychainStateResponseCheck = exports.KEYCHAIN_TIMESTAMP_PATTERN = exports.KEYCHAIN_HASH_PATTERN = exports.KEYCHAIN_BASE64URL_PATTERN = exports.KEYCHAIN_SIGNATURE_PATTERN = exports.KEYCHAIN_NONCE_PATTERN = exports.KEYCHAIN_BYTES32_PATTERN = exports.KEYCHAIN_ID_PATTERN = exports.KEYCHAIN_ERROR_CODES = exports.KEYCHAIN_LIMITS = exports.KEYCHAIN_DOMAINS = exports.KEYCHAIN_RECOVERY = exports.KEYCHAIN_ENROLLMENT_STATUSES = exports.KEYCHAIN_ROSTER_OPS = exports.KEYCHAIN_PLATFORMS = exports.isLanguageTag = exports.hasCampaignControlCharacters = exports.CAMPAIGN_CLICK_ID_MAX_LENGTH = exports.CAMPAIGN_LABEL_MAX_LENGTH = void 0;
37
+ exports.USER_PROFILE_COLORS = exports.deviceAppTokenResponseCheck = exports.PLATFORM_HOSTS = exports.OXYOS_DESKTOP_ENTRY_ID_PATTERN = exports.DEVICE_APP_TOKEN_TTL_SECONDS = exports.DEVICE_APP_TOKEN_ERROR_CODES = exports.APP_TOKEN_DEVICE_ACCESS_DENIED = exports.appAttestKeyResponseCheck = exports.appAssertionResponseCheck = exports.appAssertionChallengeResponseCheck = exports.OXY_APP_ASSERTION_TYPE = exports.OXY_APP_ASSERTION_TTL_SECONDS = exports.OXY_APP_ASSERTION_HEADER = exports.OXY_APP_ASSERTION_AUDIENCE = exports.APP_ASSERTION_PLATFORMS = exports.APP_ASSERTION_ERROR_CODES = exports.APP_ASSERTION_CHALLENGE_PURPOSES = exports.isSelfServiceBandChange = exports.ageInYears = exports.ageBandOf = exports.MIN_BIRTH_YEAR = exports.MINIMUM_UNSUPERVISED_AGE_YEARS = exports.DATE_OF_BIRTH_REFUSALS = exports.DATE_OF_BIRTH_PATTERN = exports.DATE_OF_BIRTH_MESSAGES = exports.AGE_BANDS = exports.ADULT_AGE_YEARS = exports.isRightsClaim = exports.isErasureRequest = exports.OPEN_CONTENT_CLAIM_STATES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.COUNTER_NOTICE_STATEMENTS = exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.CONTENT_REFERRAL_REASONS = exports.CONTENT_REFERRAL_LIMITS = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_CLAIM_KINDS = exports.CONTENT_CLAIM_ERROR_CODES = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.CLAIMANT_RELATIONSHIPS = exports.PRONOUNS = exports.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = exports.userNameCheck = exports.usernameCheckForAccountKind = exports.usernameCheck = exports.stripDisallowedUsernameCharacters = void 0;
38
+ exports.keychainItemsResponseCheck = exports.keychainItemResponseCheck = exports.keychainEnrollmentsResponseCheck = exports.keychainEnrollmentResponseCheck = exports.keychainWrapResponseCheck = exports.keychainStateResponseCheck = exports.KEYCHAIN_TIMESTAMP_PATTERN = exports.KEYCHAIN_HASH_PATTERN = exports.KEYCHAIN_BASE64URL_PATTERN = exports.KEYCHAIN_SIGNATURE_PATTERN = exports.KEYCHAIN_NONCE_PATTERN = exports.KEYCHAIN_BYTES32_PATTERN = exports.KEYCHAIN_ID_PATTERN = exports.KEYCHAIN_ERROR_CODES = exports.KEYCHAIN_LIMITS = exports.KEYCHAIN_DOMAINS = exports.KEYCHAIN_RECOVERY = exports.KEYCHAIN_ENROLLMENT_STATUSES = exports.KEYCHAIN_ROSTER_OPS = exports.KEYCHAIN_PLATFORMS = exports.isLanguageTag = exports.hasCampaignControlCharacters = exports.CAMPAIGN_CLICK_ID_MAX_LENGTH = exports.CAMPAIGN_LABEL_MAX_LENGTH = exports.FREE_USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLOR_PRESETS = void 0;
39
39
  var check_1 = require("./check");
40
40
  Object.defineProperty(exports, "ContractCheckError", { enumerable: true, get: function () { return check_1.ContractCheckError; } });
41
41
  Object.defineProperty(exports, "checkContract", { enumerable: true, get: function () { return check_1.checkContract; } });
@@ -279,6 +279,8 @@ Object.defineProperty(exports, "CONTENT_CLAIM_KINDS", { enumerable: true, get: f
279
279
  Object.defineProperty(exports, "CONTENT_CLAIM_LIMITS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_LIMITS; } });
280
280
  Object.defineProperty(exports, "CONTENT_CLAIM_REFERENCE_PATTERN", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_REFERENCE_PATTERN; } });
281
281
  Object.defineProperty(exports, "CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_STATES; } });
282
+ Object.defineProperty(exports, "CONTENT_REFERRAL_LIMITS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_REFERRAL_LIMITS; } });
283
+ Object.defineProperty(exports, "CONTENT_REFERRAL_REASONS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_REFERRAL_REASONS; } });
282
284
  Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENT_VERSION", { enumerable: true, get: function () { return contentClaims_1.COUNTER_NOTICE_STATEMENT_VERSION; } });
283
285
  Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENTS", { enumerable: true, get: function () { return contentClaims_1.COUNTER_NOTICE_STATEMENTS; } });
284
286
  Object.defineProperty(exports, "ERASURE_REQUEST_DEADLINE_DAYS", { enumerable: true, get: function () { return contentClaims_1.ERASURE_REQUEST_DEADLINE_DAYS; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contentClaimCounterNoticeSchema = exports.CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS = exports.CONTENT_CLAIM_EVENT_ACTIONS = exports.CONTENT_CLAIM_TARGET_SOURCES = exports.CONTENT_CLAIM_TARGET_RESOLUTIONS = exports.contentClaimSubmissionSchema = exports.CONTENT_CLAIM_VALIDATION_KEYS = exports.isRightsClaim = exports.isErasureRequest = exports.OPEN_CONTENT_CLAIM_STATES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.COUNTER_NOTICE_STATEMENTS = exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_CLAIM_KINDS = exports.CONTENT_CLAIM_ERROR_CODES = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.CLAIMANT_RELATIONSHIPS = void 0;
3
+ exports.contentClaimCounterNoticeSchema = exports.CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS = exports.CONTENT_CLAIM_EVENT_ACTIONS = exports.CONTENT_CLAIM_TARGET_SOURCES = exports.CONTENT_CLAIM_TARGET_RESOLUTIONS = exports.contentReferralResponseSchema = exports.contentReferralSchema = exports.contentClaimSubmissionSchema = exports.CONTENT_CLAIM_VALIDATION_KEYS = exports.isRightsClaim = exports.isErasureRequest = exports.OPEN_CONTENT_CLAIM_STATES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.COUNTER_NOTICE_STATEMENTS = exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.CONTENT_REFERRAL_REASONS = exports.CONTENT_REFERRAL_LIMITS = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_CLAIM_KINDS = exports.CONTENT_CLAIM_ERROR_CODES = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.CLAIMANT_RELATIONSHIPS = void 0;
4
4
  const stringChecks_1 = require("./stringChecks");
5
5
  /**
6
6
  * Content claims (ADR 0043 D10): the public "Report content / rights claim"
@@ -27,6 +27,8 @@ Object.defineProperty(exports, "CONTENT_CLAIM_KINDS", { enumerable: true, get: f
27
27
  Object.defineProperty(exports, "CONTENT_CLAIM_LIMITS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_LIMITS; } });
28
28
  Object.defineProperty(exports, "CONTENT_CLAIM_REFERENCE_PATTERN", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_REFERENCE_PATTERN; } });
29
29
  Object.defineProperty(exports, "CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_STATES; } });
30
+ Object.defineProperty(exports, "CONTENT_REFERRAL_LIMITS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_REFERRAL_LIMITS; } });
31
+ Object.defineProperty(exports, "CONTENT_REFERRAL_REASONS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_REFERRAL_REASONS; } });
30
32
  Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENT_VERSION", { enumerable: true, get: function () { return contentClaims_2.COUNTER_NOTICE_STATEMENT_VERSION; } });
31
33
  Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENTS", { enumerable: true, get: function () { return contentClaims_2.COUNTER_NOTICE_STATEMENTS; } });
32
34
  Object.defineProperty(exports, "ERASURE_REQUEST_DEADLINE_DAYS", { enumerable: true, get: function () { return contentClaims_2.ERASURE_REQUEST_DEADLINE_DAYS; } });
@@ -123,6 +125,47 @@ exports.contentClaimSubmissionSchema = zod_1.z
123
125
  })
124
126
  .strict();
125
127
  // ---------------------------------------------------------------------------
128
+ // A service's referral (`POST /content-claims/referrals`)
129
+ // ---------------------------------------------------------------------------
130
+ const R = contentClaims_1.CONTENT_REFERRAL_LIMITS;
131
+ /**
132
+ * `POST /content-claims/referrals`: an Oxy service refers content it hosts to
133
+ * the claim review. It names the Oxy files (`fileIds`), the pages that show the
134
+ * content (`pageUrls`, for content with no file), or both; at least one.
135
+ * Strict, and with nothing about who reported it to the service: a referral
136
+ * carries no person.
137
+ *
138
+ * The same referral sent again answers with the same claim, so a retry never
139
+ * opens a second one.
140
+ */
141
+ exports.contentReferralSchema = zod_1.z
142
+ .object({
143
+ reason: zod_1.z.enum(contentClaims_1.CONTENT_REFERRAL_REASONS),
144
+ fileIds: zod_1.z
145
+ .array(zod_1.z.string().trim().check((0, stringChecks_1.utf16MinLength)(1)).check((0, stringChecks_1.utf16MaxLength)(R.maxFileId)))
146
+ .max(R.maxFileIds)
147
+ .default([]),
148
+ pageUrls: zod_1.z
149
+ .array(zod_1.z
150
+ .string()
151
+ .trim()
152
+ .check((0, stringChecks_1.utf16MaxLength)(contentClaims_1.CONTENT_CLAIM_LIMITS.maxUrlLength))
153
+ .refine(isHttpsUrl, 'pageUrls must be https URLs'))
154
+ .max(R.maxPageUrls)
155
+ .default([]),
156
+ })
157
+ .strict()
158
+ .refine((referral) => referral.fileIds.length + referral.pageUrls.length > 0, {
159
+ message: 'A referral names at least one file or page',
160
+ });
161
+ /** `200` to a referral: the claim it opened, or the open one it already had. */
162
+ exports.contentReferralResponseSchema = zod_1.z
163
+ .object({
164
+ id: zod_1.z.string(),
165
+ reference: zod_1.z.string().regex(contentClaims_1.CONTENT_CLAIM_REFERENCE_PATTERN),
166
+ })
167
+ .strict();
168
+ // ---------------------------------------------------------------------------
126
169
  // The staff review (`/content-claims` behind the `content:claims` capability)
127
170
  // ---------------------------------------------------------------------------
128
171
  /** How a target's URL was understood. */
@@ -132,11 +175,16 @@ exports.CONTENT_CLAIM_TARGET_RESOLUTIONS = [
132
175
  /** A page of an Oxy app or anything else: a person attaches the files it shows. */
133
176
  'unresolved',
134
177
  ];
135
- /** Who added a target: the claimant's URL, or staff attaching a file by id. */
136
- exports.CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff'];
178
+ /**
179
+ * Who added a target: the claimant's URL, staff attaching a file by id, or the
180
+ * Oxy service that referred it (a file it uses, or the page that shows it).
181
+ */
182
+ exports.CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff', 'service'];
137
183
  /** What the audit trail records. */
138
184
  exports.CONTENT_CLAIM_EVENT_ACTIONS = [
139
185
  'submitted',
186
+ /** An Oxy service referred the content (`POST /content-claims/referrals`). */
187
+ 'referred',
140
188
  'review_started',
141
189
  'targets_attached',
142
190
  'targets_blocked',
@@ -20,6 +20,22 @@ export const CLAIMANT_RELATIONSHIPS = [
20
20
  'affected_person',
21
21
  'other',
22
22
  ];
23
+ /**
24
+ * Why an Oxy service refers content to the claim review (ADR 0043 D14).
25
+ *
26
+ * A referral is a claim with no claimant: the service that hosts the content
27
+ * hands it to Oxy's staff because it may be illegal, on a reason from this
28
+ * closed list. `child_safety` is material that may sexualise or exploit a
29
+ * minor: it never goes to a community jury, its owner is not sent the claim
30
+ * email and cannot answer it with a counter-notice.
31
+ */
32
+ export const CONTENT_REFERRAL_REASONS = ['child_safety'];
33
+ /** The bounds of one referral. */
34
+ export const CONTENT_REFERRAL_LIMITS = {
35
+ maxFileIds: 50,
36
+ maxFileId: 64,
37
+ maxPageUrls: 20,
38
+ };
23
39
  /** The bounds of a submission. The website fills its validation messages from these. */
24
40
  export const CONTENT_CLAIM_LIMITS = {
25
41
  minUrls: 1,
@@ -41,7 +41,7 @@ export { EMAIL_ACCOUNTS_MAX, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_SIGNIN_LINK_TTL_M
41
41
  export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MESSAGE, RESERVED_USERNAMES, RESERVED_USERNAME_MESSAGE, USERNAME_INVALID_MESSAGE, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, applyBotUsernameSuffix, botUsernameCheck, stripDisallowedUsernameCharacters, usernameCheck, usernameCheckForAccountKind, } from './username.js';
42
42
  export { userNameCheck, PROFILE_LINKS_MAX, PROFILE_LINK_TITLE_MAX } from './userResponse.js';
43
43
  export { PRONOUNS } from './userResponse.js';
44
- export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims.js';
44
+ export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, CONTENT_REFERRAL_LIMITS, CONTENT_REFERRAL_REASONS, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims.js';
45
45
  export { ADULT_AGE_YEARS, AGE_BANDS, DATE_OF_BIRTH_MESSAGES, DATE_OF_BIRTH_PATTERN, DATE_OF_BIRTH_REFUSALS, MINIMUM_UNSUPERVISED_AGE_YEARS, MIN_BIRTH_YEAR, ageBandOf, ageInYears, isSelfServiceBandChange, } from './age.js';
46
46
  export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions.js';
47
47
  export { APP_TOKEN_DEVICE_ACCESS_DENIED, DEVICE_APP_TOKEN_ERROR_CODES, DEVICE_APP_TOKEN_TTL_SECONDS, OXYOS_DESKTOP_ENTRY_ID_PATTERN, PLATFORM_HOSTS, deviceAppTokenResponseCheck, } from './platformSession.js';
@@ -14,8 +14,8 @@ import { utf16MaxLength, utf16MinLength } from './stringChecks.js';
14
14
  import { z } from 'zod';
15
15
  // The Zod-free half of this contract lives in `./client/` (`@oxy.so/contracts/client`);
16
16
  // it is re-exported here so the root entry carries the whole contract.
17
- import { CLAIMANT_RELATIONSHIPS, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, } from './client/contentClaims.js';
18
- export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './client/contentClaims.js';
17
+ import { CLAIMANT_RELATIONSHIPS, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_REFERRAL_LIMITS, CONTENT_REFERRAL_REASONS, } from './client/contentClaims.js';
18
+ export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, CONTENT_REFERRAL_LIMITS, CONTENT_REFERRAL_REASONS, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './client/contentClaims.js';
19
19
  /** Every key a submission's validation can produce, under `contentClaim.errors.*`. */
20
20
  export const CONTENT_CLAIM_VALIDATION_KEYS = [
21
21
  'contentClaim.errors.kind',
@@ -106,6 +106,47 @@ export const contentClaimSubmissionSchema = z
106
106
  })
107
107
  .strict();
108
108
  // ---------------------------------------------------------------------------
109
+ // A service's referral (`POST /content-claims/referrals`)
110
+ // ---------------------------------------------------------------------------
111
+ const R = CONTENT_REFERRAL_LIMITS;
112
+ /**
113
+ * `POST /content-claims/referrals`: an Oxy service refers content it hosts to
114
+ * the claim review. It names the Oxy files (`fileIds`), the pages that show the
115
+ * content (`pageUrls`, for content with no file), or both; at least one.
116
+ * Strict, and with nothing about who reported it to the service: a referral
117
+ * carries no person.
118
+ *
119
+ * The same referral sent again answers with the same claim, so a retry never
120
+ * opens a second one.
121
+ */
122
+ export const contentReferralSchema = z
123
+ .object({
124
+ reason: z.enum(CONTENT_REFERRAL_REASONS),
125
+ fileIds: z
126
+ .array(z.string().trim().check(utf16MinLength(1)).check(utf16MaxLength(R.maxFileId)))
127
+ .max(R.maxFileIds)
128
+ .default([]),
129
+ pageUrls: z
130
+ .array(z
131
+ .string()
132
+ .trim()
133
+ .check(utf16MaxLength(CONTENT_CLAIM_LIMITS.maxUrlLength))
134
+ .refine(isHttpsUrl, 'pageUrls must be https URLs'))
135
+ .max(R.maxPageUrls)
136
+ .default([]),
137
+ })
138
+ .strict()
139
+ .refine((referral) => referral.fileIds.length + referral.pageUrls.length > 0, {
140
+ message: 'A referral names at least one file or page',
141
+ });
142
+ /** `200` to a referral: the claim it opened, or the open one it already had. */
143
+ export const contentReferralResponseSchema = z
144
+ .object({
145
+ id: z.string(),
146
+ reference: z.string().regex(CONTENT_CLAIM_REFERENCE_PATTERN),
147
+ })
148
+ .strict();
149
+ // ---------------------------------------------------------------------------
109
150
  // The staff review (`/content-claims` behind the `content:claims` capability)
110
151
  // ---------------------------------------------------------------------------
111
152
  /** How a target's URL was understood. */
@@ -115,11 +156,16 @@ export const CONTENT_CLAIM_TARGET_RESOLUTIONS = [
115
156
  /** A page of an Oxy app or anything else: a person attaches the files it shows. */
116
157
  'unresolved',
117
158
  ];
118
- /** Who added a target: the claimant's URL, or staff attaching a file by id. */
119
- export const CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff'];
159
+ /**
160
+ * Who added a target: the claimant's URL, staff attaching a file by id, or the
161
+ * Oxy service that referred it (a file it uses, or the page that shows it).
162
+ */
163
+ export const CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff', 'service'];
120
164
  /** What the audit trail records. */
121
165
  export const CONTENT_CLAIM_EVENT_ACTIONS = [
122
166
  'submitted',
167
+ /** An Oxy service referred the content (`POST /content-claims/referrals`). */
168
+ 'referred',
123
169
  'review_started',
124
170
  'targets_attached',
125
171
  'targets_blocked',
@@ -11,6 +11,23 @@ export type ContentClaimKind = (typeof CONTENT_CLAIM_KINDS)[number];
11
11
  /** Who the claimant is to the content. */
12
12
  export declare const CLAIMANT_RELATIONSHIPS: readonly ["rights_holder", "authorized_agent", "affected_person", "other"];
13
13
  export type ClaimantRelationship = (typeof CLAIMANT_RELATIONSHIPS)[number];
14
+ /**
15
+ * Why an Oxy service refers content to the claim review (ADR 0043 D14).
16
+ *
17
+ * A referral is a claim with no claimant: the service that hosts the content
18
+ * hands it to Oxy's staff because it may be illegal, on a reason from this
19
+ * closed list. `child_safety` is material that may sexualise or exploit a
20
+ * minor: it never goes to a community jury, its owner is not sent the claim
21
+ * email and cannot answer it with a counter-notice.
22
+ */
23
+ export declare const CONTENT_REFERRAL_REASONS: readonly ["child_safety"];
24
+ export type ContentReferralReason = (typeof CONTENT_REFERRAL_REASONS)[number];
25
+ /** The bounds of one referral. */
26
+ export declare const CONTENT_REFERRAL_LIMITS: {
27
+ readonly maxFileIds: 50;
28
+ readonly maxFileId: 64;
29
+ readonly maxPageUrls: 20;
30
+ };
14
31
  /** The bounds of a submission. The website fills its validation messages from these. */
15
32
  export declare const CONTENT_CLAIM_LIMITS: {
16
33
  readonly minUrls: 1;
@@ -44,7 +44,7 @@ export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MES
44
44
  export { userNameCheck, PROFILE_LINKS_MAX, PROFILE_LINK_TITLE_MAX } from './userResponse';
45
45
  export { PRONOUNS } from './userResponse';
46
46
  export type { Pronouns } from './userResponse';
47
- export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims';
47
+ export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, CONTENT_REFERRAL_LIMITS, CONTENT_REFERRAL_REASONS, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims';
48
48
  export { ADULT_AGE_YEARS, AGE_BANDS, DATE_OF_BIRTH_MESSAGES, DATE_OF_BIRTH_PATTERN, DATE_OF_BIRTH_REFUSALS, MINIMUM_UNSUPERVISED_AGE_YEARS, MIN_BIRTH_YEAR, ageBandOf, ageInYears, isSelfServiceBandChange, } from './age';
49
49
  export type { AgeBand, DateOfBirthRefusal } from './age';
50
50
  export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions';
@@ -11,9 +11,9 @@
11
11
  * `fields`.
12
12
  */
13
13
  import { z } from 'zod';
14
- import { type ClaimantRelationship, type ContentClaimKind, type ContentClaimState } from './client/contentClaims';
15
- export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './client/contentClaims';
16
- export type { ClaimantRelationship, ContentClaimErrorCode, ContentClaimKind, ContentClaimState, } from './client/contentClaims';
14
+ import { type ClaimantRelationship, type ContentClaimKind, type ContentClaimState, type ContentReferralReason } from './client/contentClaims';
15
+ export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, CONTENT_REFERRAL_LIMITS, CONTENT_REFERRAL_REASONS, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './client/contentClaims';
16
+ export type { ClaimantRelationship, ContentClaimErrorCode, ContentClaimKind, ContentClaimState, ContentReferralReason, } from './client/contentClaims';
17
17
  /** Every key a submission's validation can produce, under `contentClaim.errors.*`. */
18
18
  export declare const CONTENT_CLAIM_VALIDATION_KEYS: readonly ["contentClaim.errors.kind", "contentClaim.errors.contentUrlsRequired", "contentClaim.errors.contentUrlsTooMany", "contentClaim.errors.contentUrlInvalid", "contentClaim.errors.descriptionShort", "contentClaim.errors.descriptionLong", "contentClaim.errors.originalWorkUrl", "contentClaim.errors.name", "contentClaim.errors.email", "contentClaim.errors.organization", "contentClaim.errors.relationship", "contentClaim.errors.goodFaith", "contentClaim.errors.accurate", "contentClaim.errors.signature"];
19
19
  export type ContentClaimValidationKey = (typeof CONTENT_CLAIM_VALIDATION_KEYS)[number];
@@ -65,14 +65,41 @@ export interface ContentClaimSubmissionError {
65
65
  code: string;
66
66
  fields?: Record<string, string>;
67
67
  }
68
+ /**
69
+ * `POST /content-claims/referrals`: an Oxy service refers content it hosts to
70
+ * the claim review. It names the Oxy files (`fileIds`), the pages that show the
71
+ * content (`pageUrls`, for content with no file), or both; at least one.
72
+ * Strict, and with nothing about who reported it to the service: a referral
73
+ * carries no person.
74
+ *
75
+ * The same referral sent again answers with the same claim, so a retry never
76
+ * opens a second one.
77
+ */
78
+ export declare const contentReferralSchema: z.ZodObject<{
79
+ reason: z.ZodEnum<{
80
+ child_safety: "child_safety";
81
+ }>;
82
+ fileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
83
+ pageUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
84
+ }, z.core.$strict>;
85
+ export type ContentReferral = z.infer<typeof contentReferralSchema>;
86
+ /** `200` to a referral: the claim it opened, or the open one it already had. */
87
+ export declare const contentReferralResponseSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ reference: z.ZodString;
90
+ }, z.core.$strict>;
91
+ export type ContentReferralResponse = z.infer<typeof contentReferralResponseSchema>;
68
92
  /** How a target's URL was understood. */
69
93
  export declare const CONTENT_CLAIM_TARGET_RESOLUTIONS: readonly ["file", "unresolved"];
70
94
  export type ContentClaimTargetResolution = (typeof CONTENT_CLAIM_TARGET_RESOLUTIONS)[number];
71
- /** Who added a target: the claimant's URL, or staff attaching a file by id. */
72
- export declare const CONTENT_CLAIM_TARGET_SOURCES: readonly ["claimant", "staff"];
95
+ /**
96
+ * Who added a target: the claimant's URL, staff attaching a file by id, or the
97
+ * Oxy service that referred it (a file it uses, or the page that shows it).
98
+ */
99
+ export declare const CONTENT_CLAIM_TARGET_SOURCES: readonly ["claimant", "staff", "service"];
73
100
  export type ContentClaimTargetSource = (typeof CONTENT_CLAIM_TARGET_SOURCES)[number];
74
101
  /** What the audit trail records. */
75
- export declare const CONTENT_CLAIM_EVENT_ACTIONS: readonly ["submitted", "review_started", "targets_attached", "targets_blocked", "rejected", "counter_notice_recorded", "counter_notice_submitted", "reinstated", "upheld", "note_added"];
102
+ export declare const CONTENT_CLAIM_EVENT_ACTIONS: readonly ["submitted", "referred", "review_started", "targets_attached", "targets_blocked", "rejected", "counter_notice_recorded", "counter_notice_submitted", "reinstated", "upheld", "note_added"];
76
103
  export type ContentClaimEventAction = (typeof CONTENT_CLAIM_EVENT_ACTIONS)[number];
77
104
  /** One target as staff see it. */
78
105
  export interface ContentClaimTargetView {
@@ -116,7 +143,13 @@ export interface ContentClaimSummaryView {
116
143
  id: string;
117
144
  reference: string;
118
145
  kind: ContentClaimKind;
119
- relationship: ClaimantRelationship;
146
+ /** Who the claimant is to the content; null for a referral, which has no claimant. */
147
+ relationship: ClaimantRelationship | null;
148
+ /** Set when an Oxy service referred the content: why, and which application (null once it is deleted). */
149
+ referral: {
150
+ reason: ContentReferralReason;
151
+ applicationId: string | null;
152
+ } | null;
120
153
  state: ContentClaimState;
121
154
  /** The statutory deadline (an erasure request), or null. */
122
155
  deadlineAt: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/contracts",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
4
4
  "description": "OxyHQ API contracts — single source of truth for request/response Zod schemas and inferred types, shared by the backend and the client SDKs",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",