@oxy.so/contracts 4.17.0 → 4.22.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.
Files changed (61) hide show
  1. package/dist/cjs/accountAccess.js +72 -0
  2. package/dist/cjs/agency.js +112 -1
  3. package/dist/cjs/applicationRoles.js +211 -0
  4. package/dist/cjs/client/check.js +9 -0
  5. package/dist/cjs/client/contentClaims.js +139 -0
  6. package/dist/cjs/client/index.js +37 -1
  7. package/dist/cjs/client/safety.js +183 -2
  8. package/dist/cjs/client/signIn.js +2 -0
  9. package/dist/cjs/contentClaims.js +246 -0
  10. package/dist/cjs/index.js +14 -3
  11. package/dist/cjs/safety.js +430 -1
  12. package/dist/cjs/serviceToken.js +14 -0
  13. package/dist/esm/accountAccess.js +69 -0
  14. package/dist/esm/agency.js +111 -0
  15. package/dist/esm/applicationRoles.js +207 -0
  16. package/dist/esm/client/check.js +8 -0
  17. package/dist/esm/client/contentClaims.js +134 -0
  18. package/dist/esm/client/index.js +2 -1
  19. package/dist/esm/client/safety.js +183 -2
  20. package/dist/esm/client/signIn.js +2 -0
  21. package/dist/esm/contentClaims.js +229 -0
  22. package/dist/esm/index.js +5 -1
  23. package/dist/esm/safety.js +423 -0
  24. package/dist/esm/serviceToken.js +11 -0
  25. package/dist/types/accountAccess.d.ts +128 -0
  26. package/dist/types/accountEmail.d.ts +2 -2
  27. package/dist/types/agency.d.ts +327 -2
  28. package/dist/types/agentKeys.d.ts +6 -6
  29. package/dist/types/applicationRoles.d.ts +438 -0
  30. package/dist/types/client/agentKeys.d.ts +2 -2
  31. package/dist/types/client/check.d.ts +3 -0
  32. package/dist/types/client/contentClaims.d.ts +106 -0
  33. package/dist/types/client/deviceSession.d.ts +1 -1
  34. package/dist/types/client/index.d.ts +2 -1
  35. package/dist/types/client/safety.d.ts +204 -4
  36. package/dist/types/client/signIn.d.ts +1 -1
  37. package/dist/types/contentClaims.d.ts +383 -0
  38. package/dist/types/deviceSession.d.ts +4 -4
  39. package/dist/types/email/messages.d.ts +4 -4
  40. package/dist/types/externalIdentity.d.ts +16 -16
  41. package/dist/types/index.d.ts +6 -2
  42. package/dist/types/inference/accountBilling.d.ts +2 -2
  43. package/dist/types/inference/aliaModelRelease.d.ts +8 -8
  44. package/dist/types/inference/catalogue.d.ts +26 -26
  45. package/dist/types/inference/inbox.d.ts +4 -4
  46. package/dist/types/inference/modelDocumentation.d.ts +16 -16
  47. package/dist/types/inference/providerConnection.d.ts +4 -4
  48. package/dist/types/inference/realtime.d.ts +74 -74
  49. package/dist/types/inference/request.d.ts +60 -60
  50. package/dist/types/inference/usage.d.ts +4 -4
  51. package/dist/types/products/access.d.ts +4 -4
  52. package/dist/types/safety.d.ts +2374 -2
  53. package/dist/types/serviceToken.d.ts +11 -0
  54. package/dist/types/sessionStatus.d.ts +4 -4
  55. package/dist/types/signIn.d.ts +5 -5
  56. package/dist/types/updates.d.ts +6 -6
  57. package/dist/types/userResponse.d.ts +8 -8
  58. package/package.json +5 -20
  59. package/dist/cjs/.tsbuildinfo +0 -1
  60. package/dist/esm/.tsbuildinfo +0 -1
  61. package/dist/types/.tsbuildinfo +0 -1
@@ -18,7 +18,8 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.deviceJoinCodeResponseCheck = exports.deviceBackgroundCredentialResponseCheck = exports.activeTokenCheck = exports.SESSION_ACCOUNTS_CHANGED_EVENT = exports.deviceDirectorySyncCheck = exports.deviceDirectoryCheck = exports.deviceActivateResponseCheck = exports.signedRecordEnvelopeCheck = exports.externalIdentityReferenceCheck = exports.loginResultCheck = exports.isLoopbackOrigin = exports.executeAgentKeyOperationCheck = exports.agentVerifyRequestCheck = exports.agentProofClaimsCheck = exports.agentKeyOperationResultCheck = exports.agentKeyOperationCheck = exports.agentKeyOperationChallengeCheck = exports.agentKeyListResponseCheck = exports.agentChallengeRequestCheck = exports.AGENT_PROOF_TTL_MS = exports.AGENT_PROOF_AUDIENCE = exports.AGENT_PROOF_ACTIONS = exports.ACCOUNT_AUTH_METHODS = exports.emailVerificationStartResponseCheck = exports.emailVerificationConfirmResponseCheck = exports.emailTicketCheck = exports.emailAddressCheck = exports.EMAIL_VERIFICATION_PURPOSES = exports.EMAIL_VERIFICATION_ERROR_CODES = exports.EMAIL_TICKET_TTL_MS = exports.EMAIL_CODE_TTL_MS = exports.EMAIL_CODE_MAX_ATTEMPTS = exports.EMAIL_CODE_LENGTH = exports.newlyAddedRetiredCategories = exports.kindAcceptsAccountCategories = exports.isSelectableAccountCategoryId = exports.isOperatorSwitchTargetKind = exports.isDelegatedActAsEligibleKind = exports.isAccountKind = exports.SELECTABLE_ACCOUNT_CATEGORY_IDS = exports.RETIRED_ACCOUNT_CATEGORY_IDS = exports.MAX_ACCOUNT_CATEGORIES = exports.CHILD_ACCOUNT_KINDS = exports.ACCOUNT_KINDS = exports.ACCOUNT_CATEGORY_KINDS = exports.ACCOUNT_CATEGORY_IDS = exports.parseContract = exports.formatCheckPath = exports.checkContract = exports.ContractCheckError = void 0;
20
20
  exports.subjectProductAccessCheck = exports.productSubscriptionsResponseCheck = exports.productSubscriptionCancellationResultCheck = exports.personalPlanCheckoutResultCheck = exports.personalPlanCheckoutRequestCheck = exports.personalPlanCatalogueCheck = 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 = 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.sessionAccountsChangedEventCheck = exports.deviceTokenMintResponseCheck = exports.deviceSessionSyncCheck = exports.deviceSessionStateCheck = exports.deviceRegisterResponseCheck = exports.deviceJoinResponseCheck = void 0;
21
- exports.userNameCheck = exports.usernameCheckForAccountKind = exports.usernameCheck = exports.stripDisallowedUsernameCharacters = 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.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.publicApplicationCheck = exports.profileAccessInputCheck = exports.profileAccessDecisionCheck = exports.isFullReputationBalance = exports.recommendationRequestCheck = exports.subscriptionCreditGrantsResponseCheck = exports.subjectProductAccessQueryCheck = void 0;
21
+ 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.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.publicApplicationCheck = exports.supervisionStateCheck = exports.supervisionReviewInputCheck = exports.supervisionInviteInputCheck = exports.supervisionInvitationCheck = exports.supervisionContactsResponseCheck = exports.supervisionContactInputCheck = exports.supervisionAcceptInputCheck = 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.SUPERVISED_ACTIONS = exports.SAFETY_POLICY_VERSION = exports.PURCHASE_APPROVAL_STATUSES = exports.isFullReputationBalance = exports.recommendationRequestCheck = exports.subscriptionCreditGrantsResponseCheck = exports.subjectProductAccessQueryCheck = void 0;
22
+ 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.userNameCheck = exports.usernameCheckForAccountKind = exports.usernameCheck = exports.stripDisallowedUsernameCharacters = 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 = void 0;
22
23
  var check_1 = require("./check");
23
24
  Object.defineProperty(exports, "ContractCheckError", { enumerable: true, get: function () { return check_1.ContractCheckError; } });
24
25
  Object.defineProperty(exports, "checkContract", { enumerable: true, get: function () { return check_1.checkContract; } });
@@ -140,8 +141,28 @@ Object.defineProperty(exports, "recommendationRequestCheck", { enumerable: true,
140
141
  var reputation_1 = require("./reputation");
141
142
  Object.defineProperty(exports, "isFullReputationBalance", { enumerable: true, get: function () { return reputation_1.isFullReputationBalance; } });
142
143
  var safety_1 = require("./safety");
144
+ Object.defineProperty(exports, "PURCHASE_APPROVAL_STATUSES", { enumerable: true, get: function () { return safety_1.PURCHASE_APPROVAL_STATUSES; } });
145
+ Object.defineProperty(exports, "SAFETY_POLICY_VERSION", { enumerable: true, get: function () { return safety_1.SAFETY_POLICY_VERSION; } });
146
+ Object.defineProperty(exports, "SUPERVISED_ACTIONS", { enumerable: true, get: function () { return safety_1.SUPERVISED_ACTIONS; } });
147
+ Object.defineProperty(exports, "SUPERVISION_CONSENT_VERSION", { enumerable: true, get: function () { return safety_1.SUPERVISION_CONSENT_VERSION; } });
148
+ Object.defineProperty(exports, "SUPERVISION_INVITATION_STATUSES", { enumerable: true, get: function () { return safety_1.SUPERVISION_INVITATION_STATUSES; } });
149
+ Object.defineProperty(exports, "SUPERVISION_STATUSES", { enumerable: true, get: function () { return safety_1.SUPERVISION_STATUSES; } });
143
150
  Object.defineProperty(exports, "profileAccessDecisionCheck", { enumerable: true, get: function () { return safety_1.profileAccessDecisionCheck; } });
144
151
  Object.defineProperty(exports, "profileAccessInputCheck", { enumerable: true, get: function () { return safety_1.profileAccessInputCheck; } });
152
+ Object.defineProperty(exports, "purchaseApprovalCheck", { enumerable: true, get: function () { return safety_1.purchaseApprovalCheck; } });
153
+ Object.defineProperty(exports, "purchaseApprovalListCheck", { enumerable: true, get: function () { return safety_1.purchaseApprovalListCheck; } });
154
+ Object.defineProperty(exports, "purchaseReviewInputCheck", { enumerable: true, get: function () { return safety_1.purchaseReviewInputCheck; } });
155
+ Object.defineProperty(exports, "safetyOrganizationsInputCheck", { enumerable: true, get: function () { return safety_1.safetyOrganizationsInputCheck; } });
156
+ Object.defineProperty(exports, "safetyOrganizationsResponseCheck", { enumerable: true, get: function () { return safety_1.safetyOrganizationsResponseCheck; } });
157
+ Object.defineProperty(exports, "safetyPeopleInputCheck", { enumerable: true, get: function () { return safety_1.safetyPeopleInputCheck; } });
158
+ Object.defineProperty(exports, "safetyPeopleResponseCheck", { enumerable: true, get: function () { return safety_1.safetyPeopleResponseCheck; } });
159
+ Object.defineProperty(exports, "supervisionAcceptInputCheck", { enumerable: true, get: function () { return safety_1.supervisionAcceptInputCheck; } });
160
+ Object.defineProperty(exports, "supervisionContactInputCheck", { enumerable: true, get: function () { return safety_1.supervisionContactInputCheck; } });
161
+ Object.defineProperty(exports, "supervisionContactsResponseCheck", { enumerable: true, get: function () { return safety_1.supervisionContactsResponseCheck; } });
162
+ Object.defineProperty(exports, "supervisionInvitationCheck", { enumerable: true, get: function () { return safety_1.supervisionInvitationCheck; } });
163
+ Object.defineProperty(exports, "supervisionInviteInputCheck", { enumerable: true, get: function () { return safety_1.supervisionInviteInputCheck; } });
164
+ Object.defineProperty(exports, "supervisionReviewInputCheck", { enumerable: true, get: function () { return safety_1.supervisionReviewInputCheck; } });
165
+ Object.defineProperty(exports, "supervisionStateCheck", { enumerable: true, get: function () { return safety_1.supervisionStateCheck; } });
145
166
  var sessionStatus_1 = require("./sessionStatus");
146
167
  Object.defineProperty(exports, "publicApplicationCheck", { enumerable: true, get: function () { return sessionStatus_1.publicApplicationCheck; } });
147
168
  var signIn_1 = require("./signIn");
@@ -188,3 +209,18 @@ Object.defineProperty(exports, "usernameCheck", { enumerable: true, get: functio
188
209
  Object.defineProperty(exports, "usernameCheckForAccountKind", { enumerable: true, get: function () { return username_1.usernameCheckForAccountKind; } });
189
210
  var userResponse_1 = require("./userResponse");
190
211
  Object.defineProperty(exports, "userNameCheck", { enumerable: true, get: function () { return userResponse_1.userNameCheck; } });
212
+ var contentClaims_1 = require("./contentClaims");
213
+ Object.defineProperty(exports, "CLAIMANT_RELATIONSHIPS", { enumerable: true, get: function () { return contentClaims_1.CLAIMANT_RELATIONSHIPS; } });
214
+ Object.defineProperty(exports, "CLOSED_CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_1.CLOSED_CONTENT_CLAIM_STATES; } });
215
+ Object.defineProperty(exports, "CONTENT_CLAIM_COUNTER_NOTICE_LIMITS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS; } });
216
+ Object.defineProperty(exports, "CONTENT_CLAIM_ERROR_CODES", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_ERROR_CODES; } });
217
+ Object.defineProperty(exports, "CONTENT_CLAIM_KINDS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_KINDS; } });
218
+ Object.defineProperty(exports, "CONTENT_CLAIM_LIMITS", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_LIMITS; } });
219
+ Object.defineProperty(exports, "CONTENT_CLAIM_REFERENCE_PATTERN", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_REFERENCE_PATTERN; } });
220
+ Object.defineProperty(exports, "CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_1.CONTENT_CLAIM_STATES; } });
221
+ Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENT_VERSION", { enumerable: true, get: function () { return contentClaims_1.COUNTER_NOTICE_STATEMENT_VERSION; } });
222
+ Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENTS", { enumerable: true, get: function () { return contentClaims_1.COUNTER_NOTICE_STATEMENTS; } });
223
+ Object.defineProperty(exports, "ERASURE_REQUEST_DEADLINE_DAYS", { enumerable: true, get: function () { return contentClaims_1.ERASURE_REQUEST_DEADLINE_DAYS; } });
224
+ Object.defineProperty(exports, "OPEN_CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_1.OPEN_CONTENT_CLAIM_STATES; } });
225
+ Object.defineProperty(exports, "isErasureRequest", { enumerable: true, get: function () { return contentClaims_1.isErasureRequest; } });
226
+ Object.defineProperty(exports, "isRightsClaim", { enumerable: true, get: function () { return contentClaims_1.isRightsClaim; } });
@@ -1,15 +1,196 @@
1
1
  "use strict";
2
2
  /**
3
- * Profile-access checks, without Zod. Schemas: `../safety.ts`.
3
+ * Safety and supervision checks, without Zod. Schemas: `../safety.ts`.
4
+ *
5
+ * Only what a browser or device sends and reads is here: the profile-access
6
+ * read, supervision management and the guardian's purchase review. The service
7
+ * decision lanes are server-only (`@oxy.so/core/server`) and parse with the
8
+ * Zod schemas directly.
4
9
  *
5
10
  * Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
6
11
  */
7
12
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.profileAccessDecisionCheck = exports.profileAccessInputCheck = void 0;
13
+ exports.purchaseReviewInputCheck = exports.purchaseApprovalListCheck = exports.purchaseApprovalCheck = exports.safetyOrganizationsResponseCheck = exports.safetyOrganizationsInputCheck = exports.safetyPeopleResponseCheck = exports.safetyPeopleInputCheck = exports.supervisionReviewInputCheck = exports.supervisionContactInputCheck = exports.supervisionAcceptInputCheck = exports.supervisionInviteInputCheck = exports.supervisionContactsResponseCheck = exports.supervisionStateCheck = exports.supervisionInvitationCheck = exports.profileAccessDecisionCheck = exports.profileAccessInputCheck = exports.PURCHASE_APPROVAL_STATUSES = exports.SUPERVISION_INVITATION_STATUSES = exports.SUPERVISION_STATUSES = exports.SUPERVISION_CONSENT_VERSION = exports.SAFETY_POLICY_VERSION = exports.SUPERVISED_ACTIONS = void 0;
9
14
  const check_1 = require("./check");
15
+ const organizations_1 = require("./organizations");
16
+ const signIn_1 = require("./signIn");
17
+ /** Supervision is a personal-account safety policy, never a new login/account kind. */
18
+ exports.SUPERVISED_ACTIONS = ['profile', 'messaging', 'content', 'purchases'];
19
+ exports.SAFETY_POLICY_VERSION = '2';
20
+ exports.SUPERVISION_CONSENT_VERSION = '1';
21
+ exports.SUPERVISION_STATUSES = ['active', 'orphaned', 'ended'];
22
+ exports.SUPERVISION_INVITATION_STATUSES = ['pending', 'accepted', 'cancelled'];
23
+ exports.PURCHASE_APPROVAL_STATUSES = [
24
+ 'pending',
25
+ 'approved',
26
+ 'rejected',
27
+ 'reserved',
28
+ 'confirmed',
29
+ 'cancelled',
30
+ ];
10
31
  exports.profileAccessInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ subjectAccountId: (0, check_1.string)((0, check_1.minLength)(1), (0, check_1.maxLength)(128)) }));
11
32
  exports.profileAccessDecisionCheck = (0, check_1.exact)()((0, check_1.strictObject)({
12
33
  allowed: check_1.boolean,
13
34
  reason: (0, check_1.oneOf)(['public', 'owner', 'private', 'blocked', 'unavailable']),
14
35
  policyVersion: (0, check_1.literal)('1'),
15
36
  }));
37
+ const accountId = (0, check_1.string)((0, check_1.minLength)(1), (0, check_1.maxLength)(128));
38
+ const resourceId = (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(256));
39
+ const uniqueIds = (max) => (0, check_1.refine)((0, check_1.array)(accountId, (0, check_1.minItems)(1), (0, check_1.maxItems)(max)), (ids) => new Set(ids).size === ids.length, 'Account IDs must be unique');
40
+ /* -------------------------------------------------------------------------- */
41
+ /* Supervision management */
42
+ /* -------------------------------------------------------------------------- */
43
+ const supervisionCheck = (0, check_1.exact)()((0, check_1.strictObject)({
44
+ childAccountId: accountId,
45
+ guardianAccountId: (0, check_1.nullable)(accountId),
46
+ status: (0, check_1.oneOf)(exports.SUPERVISION_STATUSES),
47
+ policyVersion: (0, check_1.literal)(exports.SAFETY_POLICY_VERSION),
48
+ consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
49
+ createdAt: (0, check_1.string)(check_1.datetime),
50
+ }));
51
+ exports.supervisionInvitationCheck = (0, check_1.exact)()((0, check_1.strictObject)({
52
+ id: accountId,
53
+ childAccountId: accountId,
54
+ guardianAccountId: accountId,
55
+ status: (0, check_1.oneOf)(exports.SUPERVISION_INVITATION_STATUSES),
56
+ expiresAt: (0, check_1.string)(check_1.datetime),
57
+ consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
58
+ createdAt: (0, check_1.string)(check_1.datetime),
59
+ }));
60
+ exports.supervisionStateCheck = (0, check_1.exact)()((0, check_1.strictObject)({
61
+ self: (0, check_1.nullable)(supervisionCheck),
62
+ children: (0, check_1.array)(supervisionCheck, (0, check_1.maxItems)(100)),
63
+ invitations: (0, check_1.array)(exports.supervisionInvitationCheck, (0, check_1.maxItems)(100)),
64
+ }));
65
+ exports.supervisionContactsResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({
66
+ items: (0, check_1.array)((0, check_1.strictObject)({
67
+ childAccountId: accountId,
68
+ contactAccountId: accountId,
69
+ approvedAt: (0, check_1.string)(check_1.datetime),
70
+ }), (0, check_1.maxItems)(1000)),
71
+ }));
72
+ exports.supervisionInviteInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
73
+ guardianAccountId: accountId,
74
+ consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
75
+ reauth: signIn_1.reauthProofCheck,
76
+ }));
77
+ exports.supervisionAcceptInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION), reauth: signIn_1.reauthProofCheck }));
78
+ exports.supervisionContactInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
79
+ childAccountId: accountId,
80
+ contactAccountId: accountId,
81
+ reauth: signIn_1.reauthProofCheck,
82
+ }));
83
+ exports.supervisionReviewInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
84
+ childAccountId: accountId,
85
+ action: (0, check_1.oneOf)(['end', 'transfer']),
86
+ guardianAccountId: (0, check_1.optional)(accountId),
87
+ evidenceReference: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(2048)),
88
+ reauth: signIn_1.reauthProofCheck,
89
+ }));
90
+ /* -------------------------------------------------------------------------- */
91
+ /* Minimal identities for the management screens */
92
+ /* -------------------------------------------------------------------------- */
93
+ const safetyPersonCheck = (0, check_1.exact)()((0, check_1.strictObject)({ accountId, username: (0, check_1.nullable)((0, check_1.string)()), displayName: (0, check_1.nullable)((0, check_1.string)()) }));
94
+ exports.safetyPeopleInputCheck = (0, check_1.exact)()((0, check_1.union)((0, check_1.strictObject)({ query: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(2), (0, check_1.maxLength)(100)) }), (0, check_1.strictObject)({ accountIds: uniqueIds(100) })));
95
+ exports.safetyPeopleResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({ items: (0, check_1.array)(safetyPersonCheck, (0, check_1.maxItems)(100)) }));
96
+ exports.safetyOrganizationsInputCheck = (0, check_1.exact)()((0, check_1.union)((0, check_1.strictObject)({
97
+ query: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(100)),
98
+ limit: (0, check_1.optional)((0, check_1.number)(check_1.int, (0, check_1.atLeast)(1), (0, check_1.atMost)(20))),
99
+ }), (0, check_1.strictObject)({ ids: uniqueIds(100) })));
100
+ exports.safetyOrganizationsResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({
101
+ items: (0, check_1.array)((0, check_1.strictObject)({
102
+ requestedAccountId: accountId,
103
+ organization: (0, check_1.strictObject)({
104
+ accountId,
105
+ username: (0, check_1.nullable)((0, check_1.string)()),
106
+ name: (0, check_1.string)(),
107
+ organizationType: (0, check_1.oneOf)(organizations_1.ORGANIZATION_TYPES),
108
+ }),
109
+ }), (0, check_1.maxItems)(100)),
110
+ missingIds: (0, check_1.array)(accountId, (0, check_1.maxItems)(100)),
111
+ }));
112
+ /* -------------------------------------------------------------------------- */
113
+ /* Purchase approvals */
114
+ /* -------------------------------------------------------------------------- */
115
+ const fingerprint = (0, check_1.string)((0, check_1.pattern)(/^[a-f0-9]{64}$/));
116
+ const minorUnits = (0, check_1.number)(check_1.int, check_1.nonnegative, (0, check_1.atMost)(Number.MAX_SAFE_INTEGER));
117
+ const purchaseApprovalLineCheck = (0, check_1.exact)()((0, check_1.strictObject)({
118
+ itemReference: resourceId,
119
+ title: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(300)),
120
+ optionsText: (0, check_1.string)(check_1.trim, (0, check_1.maxLength)(300)),
121
+ merchantAccountId: accountId,
122
+ quantity: (0, check_1.number)(check_1.int, (0, check_1.atLeast)(1), (0, check_1.atMost)(1000000)),
123
+ unitAmountMinor: minorUnits,
124
+ lineAmountMinor: minorUnits,
125
+ }));
126
+ /** The effect fields every approval shape shares, in the schema's key order. */
127
+ const purchaseEffectFields = {
128
+ operationId: resourceId,
129
+ resourceId,
130
+ cartFingerprint: fingerprint,
131
+ summary: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(300)),
132
+ merchantAccountIds: (0, check_1.transform)((0, check_1.refine)((0, check_1.array)(accountId, (0, check_1.minItems)(1), (0, check_1.maxItems)(100)), (ids) => new Set(ids).size === ids.length, 'Merchant accounts must be unique'), (ids) => [...ids].sort()),
133
+ };
134
+ const purchaseAmountFields = {
135
+ shippingMinor: minorUnits,
136
+ taxMinor: minorUnits,
137
+ discountMinor: minorUnits,
138
+ roundingAdjustmentMinor: (0, check_1.number)(check_1.int, (0, check_1.atLeast)(-Number.MAX_SAFE_INTEGER), (0, check_1.atMost)(Number.MAX_SAFE_INTEGER)),
139
+ paymentFingerprint: fingerprint,
140
+ amountMinor: minorUnits,
141
+ currency: (0, check_1.string)((0, check_1.pattern)(/^[A-Z]{3}$/)),
142
+ expiresAt: (0, check_1.string)(check_1.datetime),
143
+ };
144
+ const purchaseApprovalFields = {
145
+ id: accountId,
146
+ childAccountId: accountId,
147
+ applicationId: accountId,
148
+ status: (0, check_1.oneOf)(exports.PURCHASE_APPROVAL_STATUSES),
149
+ createdAt: (0, check_1.string)(check_1.datetime),
150
+ receiptReference: (0, check_1.nullable)((0, check_1.string)((0, check_1.maxLength)(512))),
151
+ };
152
+ /** The first problem `validatePurchaseEvidence` in `../safety.ts` reports, in its order. */
153
+ function purchaseEvidenceProblem(value) {
154
+ const merchants = new Set(value.merchantAccountIds);
155
+ const references = new Set();
156
+ for (const line of value.lineItems) {
157
+ const key = `${line.merchantAccountId}:${line.itemReference}`;
158
+ if (!merchants.has(line.merchantAccountId) || references.has(key)) {
159
+ return {
160
+ path: [],
161
+ message: 'Purchase lines must name an included merchant and unique item reference',
162
+ };
163
+ }
164
+ references.add(key);
165
+ }
166
+ if (merchants.size !== new Set(value.lineItems.map((line) => line.merchantAccountId)).size) {
167
+ return { path: [], message: 'Every merchant must have an approval line' };
168
+ }
169
+ const total = value.lineItems.reduce((sum, line) => sum + BigInt(line.lineAmountMinor), 0n) +
170
+ BigInt(value.shippingMinor) +
171
+ BigInt(value.taxMinor) -
172
+ BigInt(value.discountMinor) +
173
+ BigInt(value.roundingAdjustmentMinor);
174
+ if (total < 0n ||
175
+ total > BigInt(Number.MAX_SAFE_INTEGER) ||
176
+ total !== BigInt(value.amountMinor)) {
177
+ return { path: [], message: 'Approval evidence must equal the exact payment total' };
178
+ }
179
+ if (Math.abs(value.roundingAdjustmentMinor) >
180
+ value.lineItems.length + 3 * value.merchantAccountIds.length) {
181
+ return { path: [], message: 'Rounding adjustment exceeds the bounded conversion stages' };
182
+ }
183
+ return undefined;
184
+ }
185
+ exports.purchaseApprovalCheck = (0, check_1.exact)()((0, check_1.refineAt)((0, check_1.strictObject)({
186
+ ...purchaseEffectFields,
187
+ lineItems: (0, check_1.array)(purchaseApprovalLineCheck, (0, check_1.minItems)(1), (0, check_1.maxItems)(200)),
188
+ ...purchaseAmountFields,
189
+ ...purchaseApprovalFields,
190
+ }), purchaseEvidenceProblem));
191
+ const purchaseApprovalSummaryCheck = (0, check_1.exact)()((0, check_1.strictObject)({ ...purchaseEffectFields, ...purchaseAmountFields, ...purchaseApprovalFields }));
192
+ exports.purchaseApprovalListCheck = (0, check_1.exact)()((0, check_1.strictObject)({
193
+ items: (0, check_1.array)(purchaseApprovalSummaryCheck, (0, check_1.maxItems)(100)),
194
+ nextCursor: (0, check_1.nullable)((0, check_1.string)()),
195
+ }));
196
+ exports.purchaseReviewInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ decision: (0, check_1.oneOf)(['approved', 'rejected']), reauth: signIn_1.reauthProofCheck }));
@@ -70,6 +70,8 @@ exports.REAUTH_ACTIONS = [
70
70
  'link_commons',
71
71
  'delete_account',
72
72
  'credentials_manage',
73
+ 'supervision',
74
+ 'supervision_purchase',
73
75
  ];
74
76
  /**
75
77
  * Stable error codes (`error.code` in the API error body). Clients map these
@@ -0,0 +1,246 @@
1
+ "use strict";
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;
4
+ /**
5
+ * Content claims (ADR 0043 D10): the public "Report content / rights claim"
6
+ * intake, `POST /content-claims`, and the staff review of a claim.
7
+ *
8
+ * {@link contentClaimSubmissionSchema} is the request body the API parses and
9
+ * the Oxy website validates its form with before posting, so the form cannot
10
+ * accept what the API would answer 400 to. Every validation message is a
11
+ * stable KEY under `contentClaim.errors.*` (filled with
12
+ * {@link CONTENT_CLAIM_LIMITS} by whoever shows it), never English: the website
13
+ * translates the key, and the API answers its own English sentence for it in
14
+ * `fields`.
15
+ */
16
+ const zod_1 = require("zod");
17
+ // The Zod-free half of this contract lives in `./client/` (`@oxy.so/contracts/client`);
18
+ // it is re-exported here so the root entry carries the whole contract.
19
+ const contentClaims_1 = require("./client/contentClaims");
20
+ var contentClaims_2 = require("./client/contentClaims");
21
+ Object.defineProperty(exports, "CLAIMANT_RELATIONSHIPS", { enumerable: true, get: function () { return contentClaims_2.CLAIMANT_RELATIONSHIPS; } });
22
+ Object.defineProperty(exports, "CLOSED_CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_2.CLOSED_CONTENT_CLAIM_STATES; } });
23
+ Object.defineProperty(exports, "CONTENT_CLAIM_COUNTER_NOTICE_LIMITS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS; } });
24
+ Object.defineProperty(exports, "CONTENT_CLAIM_ERROR_CODES", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_ERROR_CODES; } });
25
+ Object.defineProperty(exports, "CONTENT_CLAIM_KINDS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_KINDS; } });
26
+ Object.defineProperty(exports, "CONTENT_CLAIM_LIMITS", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_LIMITS; } });
27
+ Object.defineProperty(exports, "CONTENT_CLAIM_REFERENCE_PATTERN", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_REFERENCE_PATTERN; } });
28
+ Object.defineProperty(exports, "CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_2.CONTENT_CLAIM_STATES; } });
29
+ Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENT_VERSION", { enumerable: true, get: function () { return contentClaims_2.COUNTER_NOTICE_STATEMENT_VERSION; } });
30
+ Object.defineProperty(exports, "COUNTER_NOTICE_STATEMENTS", { enumerable: true, get: function () { return contentClaims_2.COUNTER_NOTICE_STATEMENTS; } });
31
+ Object.defineProperty(exports, "ERASURE_REQUEST_DEADLINE_DAYS", { enumerable: true, get: function () { return contentClaims_2.ERASURE_REQUEST_DEADLINE_DAYS; } });
32
+ Object.defineProperty(exports, "OPEN_CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_2.OPEN_CONTENT_CLAIM_STATES; } });
33
+ Object.defineProperty(exports, "isErasureRequest", { enumerable: true, get: function () { return contentClaims_2.isErasureRequest; } });
34
+ Object.defineProperty(exports, "isRightsClaim", { enumerable: true, get: function () { return contentClaims_2.isRightsClaim; } });
35
+ /** Every key a submission's validation can produce, under `contentClaim.errors.*`. */
36
+ exports.CONTENT_CLAIM_VALIDATION_KEYS = [
37
+ 'contentClaim.errors.kind',
38
+ 'contentClaim.errors.contentUrlsRequired',
39
+ 'contentClaim.errors.contentUrlsTooMany',
40
+ 'contentClaim.errors.contentUrlInvalid',
41
+ 'contentClaim.errors.descriptionShort',
42
+ 'contentClaim.errors.descriptionLong',
43
+ 'contentClaim.errors.originalWorkUrl',
44
+ 'contentClaim.errors.name',
45
+ 'contentClaim.errors.email',
46
+ 'contentClaim.errors.organization',
47
+ 'contentClaim.errors.relationship',
48
+ 'contentClaim.errors.goodFaith',
49
+ 'contentClaim.errors.accurate',
50
+ 'contentClaim.errors.signature',
51
+ ];
52
+ function isHttpsUrl(value) {
53
+ try {
54
+ const url = new URL(value);
55
+ return url.protocol === 'https:' && url.hostname.length > 0;
56
+ }
57
+ catch {
58
+ return false;
59
+ }
60
+ }
61
+ const httpsUrl = (message) => zod_1.z.string().trim().max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxUrlLength, message).refine(isHttpsUrl, message);
62
+ /**
63
+ * `POST /content-claims` — a claim, as the claimant sends it. Strict: an
64
+ * unknown key is refused rather than dropped.
65
+ */
66
+ exports.contentClaimSubmissionSchema = zod_1.z
67
+ .object({
68
+ kind: zod_1.z.enum(contentClaims_1.CONTENT_CLAIM_KINDS, { message: 'contentClaim.errors.kind' }),
69
+ contentUrls: zod_1.z
70
+ .array(httpsUrl('contentClaim.errors.contentUrlInvalid'), {
71
+ message: 'contentClaim.errors.contentUrlsRequired',
72
+ })
73
+ .min(contentClaims_1.CONTENT_CLAIM_LIMITS.minUrls, 'contentClaim.errors.contentUrlsRequired')
74
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxUrls, 'contentClaim.errors.contentUrlsTooMany'),
75
+ description: zod_1.z
76
+ .string({ message: 'contentClaim.errors.descriptionShort' })
77
+ .trim()
78
+ .min(contentClaims_1.CONTENT_CLAIM_LIMITS.minDescription, 'contentClaim.errors.descriptionShort')
79
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxDescription, 'contentClaim.errors.descriptionLong'),
80
+ originalWorkUrl: httpsUrl('contentClaim.errors.originalWorkUrl').optional(),
81
+ claimant: zod_1.z
82
+ .object({
83
+ name: zod_1.z
84
+ .string({ message: 'contentClaim.errors.name' })
85
+ .trim()
86
+ .min(1, 'contentClaim.errors.name')
87
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxName, 'contentClaim.errors.name'),
88
+ email: zod_1.z
89
+ .string({ message: 'contentClaim.errors.email' })
90
+ .trim()
91
+ .email('contentClaim.errors.email')
92
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxEmail, 'contentClaim.errors.email'),
93
+ organization: zod_1.z
94
+ .string({ message: 'contentClaim.errors.organization' })
95
+ .trim()
96
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxOrganization, 'contentClaim.errors.organization')
97
+ .optional(),
98
+ relationship: zod_1.z.enum(contentClaims_1.CLAIMANT_RELATIONSHIPS, {
99
+ message: 'contentClaim.errors.relationship',
100
+ }),
101
+ }, { message: 'contentClaim.errors.name' })
102
+ .strict(),
103
+ statements: zod_1.z
104
+ .object({
105
+ goodFaith: zod_1.z.literal(true, {
106
+ errorMap: () => ({ message: 'contentClaim.errors.goodFaith' }),
107
+ }),
108
+ accurate: zod_1.z.literal(true, {
109
+ errorMap: () => ({ message: 'contentClaim.errors.accurate' }),
110
+ }),
111
+ }, { message: 'contentClaim.errors.goodFaith' })
112
+ .strict(),
113
+ signature: zod_1.z
114
+ .string({ message: 'contentClaim.errors.signature' })
115
+ .trim()
116
+ .min(1, 'contentClaim.errors.signature')
117
+ .max(contentClaims_1.CONTENT_CLAIM_LIMITS.maxName, 'contentClaim.errors.signature'),
118
+ })
119
+ .strict();
120
+ // ---------------------------------------------------------------------------
121
+ // The staff review (`/content-claims` behind the `content:claims` capability)
122
+ // ---------------------------------------------------------------------------
123
+ /** How a target's URL was understood. */
124
+ exports.CONTENT_CLAIM_TARGET_RESOLUTIONS = [
125
+ /** An Oxy file: `cloud.oxy.so/<id>`, `/cdn/<id>`, `/assets/<id>…`, a stored key. */
126
+ 'file',
127
+ /** A page of an Oxy app or anything else: a person attaches the files it shows. */
128
+ 'unresolved',
129
+ ];
130
+ /** Who added a target: the claimant's URL, or staff attaching a file by id. */
131
+ exports.CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff'];
132
+ /** What the audit trail records. */
133
+ exports.CONTENT_CLAIM_EVENT_ACTIONS = [
134
+ 'submitted',
135
+ 'review_started',
136
+ 'targets_attached',
137
+ 'targets_blocked',
138
+ 'rejected',
139
+ 'counter_notice_recorded',
140
+ /** The owner of the blocked content sent a counter-notice themselves (`POST /content-claims/counter-notices`). */
141
+ 'counter_notice_submitted',
142
+ 'reinstated',
143
+ 'upheld',
144
+ 'note_added',
145
+ ];
146
+ // ---------------------------------------------------------------------------
147
+ // The owner's counter-notice (`POST /content-claims/counter-notices`)
148
+ // ---------------------------------------------------------------------------
149
+ /** Every key a counter-notice's validation can produce, under `contentClaim.counterNotice.errors.*`. */
150
+ exports.CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS = [
151
+ 'contentClaim.counterNotice.errors.claim',
152
+ 'contentClaim.counterNotice.errors.reference',
153
+ 'contentClaim.counterNotice.errors.claimId',
154
+ 'contentClaim.counterNotice.errors.fileIds',
155
+ 'contentClaim.counterNotice.errors.name',
156
+ 'contentClaim.counterNotice.errors.address',
157
+ 'contentClaim.counterNotice.errors.phone',
158
+ 'contentClaim.counterNotice.errors.email',
159
+ 'contentClaim.counterNotice.errors.materialDescription',
160
+ 'contentClaim.counterNotice.errors.materialLocation',
161
+ 'contentClaim.counterNotice.errors.explanation',
162
+ 'contentClaim.counterNotice.errors.perjury',
163
+ 'contentClaim.counterNotice.errors.jurisdiction',
164
+ 'contentClaim.counterNotice.errors.serviceOfProcess',
165
+ 'contentClaim.counterNotice.errors.disclosure',
166
+ 'contentClaim.counterNotice.errors.signature',
167
+ ];
168
+ const N = contentClaims_1.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS;
169
+ const boundedText = (min, max, message) => zod_1.z.string({ message }).trim().min(min, message).max(max, message);
170
+ const affirmed = (message) => zod_1.z.literal(true, { errorMap: () => ({ message }) });
171
+ /**
172
+ * `POST /content-claims/counter-notices` — the owner of content a claim took
173
+ * down disputes it (17 U.S.C. § 512(g)(3)). Signed in: the API answers only
174
+ * for files the caller owns.
175
+ *
176
+ * Names the claim by its `reference` (the `OXY-XXXX-XXXX` the owner was
177
+ * emailed), its `claimId`, or the blocked `fileIds` — at least one. With
178
+ * `fileIds` the notice covers exactly those files; without, every one of the
179
+ * caller's files the claim blocked. Strict: an unknown key is refused.
180
+ */
181
+ exports.contentClaimCounterNoticeSchema = zod_1.z
182
+ .object({
183
+ reference: zod_1.z
184
+ .string({ message: 'contentClaim.counterNotice.errors.reference' })
185
+ .trim()
186
+ .toUpperCase()
187
+ .regex(contentClaims_1.CONTENT_CLAIM_REFERENCE_PATTERN, 'contentClaim.counterNotice.errors.reference')
188
+ .optional(),
189
+ claimId: zod_1.z
190
+ .string({ message: 'contentClaim.counterNotice.errors.claimId' })
191
+ .trim()
192
+ .uuid('contentClaim.counterNotice.errors.claimId')
193
+ .optional(),
194
+ fileIds: zod_1.z
195
+ .array(boundedText(1, N.maxFileId, 'contentClaim.counterNotice.errors.fileIds'), {
196
+ message: 'contentClaim.counterNotice.errors.fileIds',
197
+ })
198
+ .min(1, 'contentClaim.counterNotice.errors.fileIds')
199
+ .max(N.maxFileIds, 'contentClaim.counterNotice.errors.fileIds')
200
+ .optional(),
201
+ subscriber: zod_1.z
202
+ .object({
203
+ name: boundedText(1, N.maxName, 'contentClaim.counterNotice.errors.name'),
204
+ address: boundedText(1, N.maxAddress, 'contentClaim.counterNotice.errors.address'),
205
+ phone: boundedText(N.minPhone, N.maxPhone, 'contentClaim.counterNotice.errors.phone').regex(/^\+?[0-9 ().-]+$/, 'contentClaim.counterNotice.errors.phone'),
206
+ email: zod_1.z
207
+ .string({ message: 'contentClaim.counterNotice.errors.email' })
208
+ .trim()
209
+ .email('contentClaim.counterNotice.errors.email')
210
+ .max(N.maxEmail, 'contentClaim.counterNotice.errors.email'),
211
+ }, { message: 'contentClaim.counterNotice.errors.name' })
212
+ .strict(),
213
+ material: zod_1.z
214
+ .object({
215
+ /** What was removed. */
216
+ description: boundedText(N.minMaterial, N.maxMaterial, 'contentClaim.counterNotice.errors.materialDescription'),
217
+ /** Where it appeared before it was removed (a URL, or where in an app). */
218
+ location: boundedText(1, N.maxLocation, 'contentClaim.counterNotice.errors.materialLocation'),
219
+ }, { message: 'contentClaim.counterNotice.errors.materialDescription' })
220
+ .strict(),
221
+ /** Why it was a mistake or a misidentification, in the owner's words. */
222
+ explanation: boundedText(N.minExplanation, N.maxExplanation, 'contentClaim.counterNotice.errors.explanation'),
223
+ /** Each of `COUNTER_NOTICE_STATEMENTS`, affirmed. */
224
+ statements: zod_1.z
225
+ .object({
226
+ perjury: affirmed('contentClaim.counterNotice.errors.perjury'),
227
+ jurisdiction: affirmed('contentClaim.counterNotice.errors.jurisdiction'),
228
+ serviceOfProcess: affirmed('contentClaim.counterNotice.errors.serviceOfProcess'),
229
+ disclosure: affirmed('contentClaim.counterNotice.errors.disclosure'),
230
+ }, { message: 'contentClaim.counterNotice.errors.perjury' })
231
+ .strict(),
232
+ /** The owner's full legal name, typed as their signature. */
233
+ signature: boundedText(1, N.maxSignature, 'contentClaim.counterNotice.errors.signature'),
234
+ })
235
+ .strict()
236
+ .superRefine((value, ctx) => {
237
+ if (value.reference === undefined &&
238
+ value.claimId === undefined &&
239
+ value.fileIds === undefined) {
240
+ ctx.addIssue({
241
+ code: zod_1.z.ZodIssueCode.custom,
242
+ path: ['reference'],
243
+ message: 'contentClaim.counterNotice.errors.claim',
244
+ });
245
+ }
246
+ });
package/dist/cjs/index.js CHANGED
@@ -37,9 +37,9 @@ exports.inferenceToolCallSchema = exports.inferenceContentPartSchema = exports.i
37
37
  exports.realtimeItemTruncateCommandSchema = exports.realtimeItemDeleteCommandSchema = exports.realtimeItemCreateCommandSchema = exports.realtimeSessionUpdateCommandSchema = exports.realtimeResponseParametersSchema = exports.realtimeConversationItemSchema = exports.realtimeContentPartSchema = exports.realtimeSessionRequestSchema = exports.realtimeClientMetadataSchema = exports.realtimeSessionLimitsSchema = exports.realtimeSessionConfigUpdateSchema = exports.realtimeSessionConfigSchema = exports.realtimeTranslationSchema = exports.realtimeInputTranscriptionSchema = exports.realtimeTurnDetectionSchema = exports.realtimeOutputModalitySchema = exports.realtimeAudioFormatSchema = exports.realtimeResponseIdSchema = exports.realtimeItemIdSchema = exports.realtimeCommandIdSchema = exports.MAX_REALTIME_RESUME_WINDOW_MS = exports.MAX_REALTIME_SESSION_AUDIO_BYTES = exports.MAX_REALTIME_SESSION_DURATION_MS = exports.MAX_REALTIME_AUDIO_FRAME_BASE64_LENGTH = exports.inferenceStreamEventSchema = exports.inferenceStreamDoneEventSchema = exports.inferenceFinishReasonSchema = exports.inferenceStreamErrorEventSchema = exports.inferenceStreamRouteSwitchEventSchema = exports.inferenceRouteSwitchReasonSchema = exports.inferenceRouteSwitchDetailSchema = exports.inferenceStreamUsageEventSchema = exports.inferenceStreamToolCallEventSchema = exports.inferenceStreamAudioEventSchema = exports.MAX_INFERENCE_AUDIO_BYTES = exports.inferenceAudioMediaTypeSchema = exports.inferenceStreamDeltaEventSchema = exports.inferenceStreamStartEventSchema = exports.inferenceAudioOutputParametersSchema = exports.inferenceSpeechParametersSchema = exports.inferenceRequestSchema = exports.clientRequestMetadataSchema = exports.responseFormatSchema = exports.toolChoiceSchema = exports.toolDefinitionSchema = exports.inferenceReasoningSchema = exports.samplingParametersSchema = exports.inferenceInputSchema = exports.inferenceMessageSchema = exports.inferenceMessageRoleSchema = void 0;
38
38
  exports.kaanaCredentialRotateMutationSchema = exports.kaanaCredentialCreateMutationSchema = exports.kaanaCredentialIdentitySchema = exports.kaanaCredentialOperationActionSchema = exports.kaanaCredentialOperationIdSchema = exports.kaanaCredentialHandleSchema = exports.providerConnectionScopeSchema = exports.usageRefundSchema = exports.usageRefundReasonSchema = exports.usageRefundSubjectSchema = exports.usageReceiptSchema = exports.normalizedUsageReportSchema = exports.inferenceRequestOutcomeSchema = exports.usageReservationSchema = exports.usageReservationStatusSchema = exports.usageReservationRequestSchema = exports.realtimeServerEventSchema = exports.realtimeSessionClosedEventSchema = exports.realtimeSessionCloseReasonSchema = exports.realtimeErrorEventSchema = exports.realtimeResponseDoneEventSchema = exports.realtimeResponseStatusSchema = exports.realtimeToolCallEventSchema = exports.realtimeTextDeltaEventSchema = exports.realtimeTranscriptDoneEventSchema = exports.realtimeTranscriptDeltaEventSchema = exports.realtimeTranscriptSourceSchema = exports.realtimeOutputAudioDoneEventSchema = exports.realtimeOutputAudioDeltaEventSchema = exports.realtimeResponseCreatedEventSchema = exports.realtimeInputAudioClearedEventSchema = exports.realtimeInputAudioCommittedEventSchema = exports.realtimeSpeechStoppedEventSchema = exports.realtimeSpeechStartedEventSchema = exports.realtimeItemTruncatedEventSchema = exports.realtimeItemDeletedEventSchema = exports.realtimeItemDoneEventSchema = exports.realtimeItemAddedEventSchema = exports.realtimeCommandAcceptedEventSchema = exports.realtimeSessionResumedEventSchema = exports.realtimeSessionUpdatedEventSchema = exports.realtimeSessionCreatedEventSchema = exports.realtimeClientCommandSchema = exports.realtimeSessionCloseCommandSchema = exports.realtimeSessionResumeCommandSchema = exports.realtimeResponseCancelCommandSchema = exports.realtimeResponseCreateCommandSchema = exports.realtimeInputAudioClearCommandSchema = exports.realtimeInputAudioCommitCommandSchema = exports.realtimeInputAudioAppendCommandSchema = void 0;
39
39
  exports.payAsYouGoEntitlementSchema = exports.productPlanSchema = exports.planAllowanceSchema = exports.LIVE_PRODUCT_PLAN_STATUSES = exports.productPlanStatusSchema = exports.PRODUCT_PLAN_STATUSES = exports.reconciliationReportSchema = exports.reconciliationRunSchema = exports.reconciliationDiscrepancySchema = exports.reconciliationRunStatusSchema = exports.RECONCILIATION_RUN_STATUSES = exports.reconciliationDiscrepancyKindSchema = exports.RECONCILIATION_DISCREPANCY_KINDS = exports.autoRechargeAttemptSchema = exports.autoRechargeStatusSchema = exports.AUTO_RECHARGE_STATUSES = exports.externalPaymentSchema = exports.externalPaymentKindSchema = exports.EXTERNAL_PAYMENT_KINDS = exports.externalPaymentProviderSchema = exports.EXTERNAL_PAYMENT_PROVIDERS = exports.billingInvoiceSchema = exports.billingInvoiceStatusSchema = exports.BILLING_INVOICE_STATUSES = exports.accountBillingStateSchema = exports.billingProfileSchema = exports.autoRechargeSchema = exports.billingProfileStatusSchema = exports.BILLING_PROFILE_STATUSES = exports.billingModeSchema = exports.BILLING_MODES = exports.providerConnectionSchema = exports.providerConnectionStatusSchema = exports.providerConnectionValidationSchema = exports.providerCredentialCustodyStateSchema = exports.providerCredentialValidationDeploymentSchema = exports.providerCredentialValidationOperationSchema = exports.kaanaCredentialValidationOutcomeSchema = exports.kaanaCredentialValidationFailureCodeSchema = exports.kaanaCredentialValidationOutcomeStateSchema = exports.kaanaCredentialValidationTaskSchema = exports.kaanaCredentialOutcomeSchema = exports.kaanaCredentialConflictOutcomeSchema = exports.kaanaCredentialAppliedOutcomeSchema = exports.kaanaCredentialOutcomeRequestSchema = exports.kaanaCredentialRevokeOutcomeRequestSchema = exports.kaanaCredentialRotateOutcomeRequestSchema = exports.kaanaCredentialCreateOutcomeRequestSchema = exports.kaanaCredentialMutationSchema = exports.kaanaCredentialRevokeMutationSchema = void 0;
40
- exports.inboxComposeRequestSchema = exports.emailAgentContextSchema = exports.emailContextMessageSchema = exports.emailContextMailboxSchema = exports.emailContextAddressSchema = exports.resolveCatalogInvocation = exports.matchCatalogInvocation = exports.findOverlappingCatalogInvocations = exports.catalogInvocationTemplatesEquivalent = exports.catalogInvocationsOverlap = exports.catalogInvocationPathParameters = exports.normalizedAppEventSchema = exports.catalogRegistrationSchema = exports.appCapabilityCatalogSchema = exports.catalogEventSchema = exports.catalogToolSchema = exports.auditEventSchema = exports.auditResultSchema = exports.policyDecisionSchema = exports.invocationPrincipalSchema = exports.capabilityTicketClaimsSchema = exports.automationDefinitionSchema = exports.automationDataFlowSchema = exports.automationActorSelectionSchema = exports.automationTriggerSchema = exports.delegationGrantSchema = exports.capabilityTicketRequestSchema = exports.capabilityCoordinatorSchema = exports.executionAuthorizationRefSchema = exports.capabilityCatalogBindingSchema = exports.grantLimitSchema = exports.toolGrantOverrideSchema = exports.resourceRefSchema = exports.foregroundExecutionAuthorizationInputSchema = exports.executionActorRefSchema = exports.actorRefSchema = exports.capabilityPackageSchema = exports.autonomyLevelSchema = exports.CAPABILITY_PACKAGES = exports.AUTONOMY_LEVELS = exports.costCenterUsageSchema = exports.providerCostSourceSchema = exports.PROVIDER_COST_SOURCES = exports.inferenceEconomicTreatmentSchema = exports.INFERENCE_ECONOMIC_TREATMENTS = exports.productEntitlementSchema = exports.costCenterSpendSchema = exports.costCenterSchema = exports.costCenterStatusSchema = exports.COST_CENTER_STATUSES = void 0;
41
- exports.inputSatisfiesCapabilityLimits = exports.canonicalCapabilityJson = exports.meteredGenerationSchema = exports.subjectProductAccessSchema = exports.productOfferSegmentSchema = exports.subjectProductGrantSnapshotSchema = exports.productAccessGrantSchema = exports.productSubscriptionSourceSchema = exports.productOfferSchema = exports.productBenefitSchema = exports.subjectProductAccessQuerySchema = exports.productDefinitionSchema = exports.privateAutoInferenceRequestSchema = exports.privateAutoOperationId = exports.privateAutoInputSchema = exports.privateAutoExecutionSchema = exports.privateAutoSourceApprovalSchema = exports.privateAutoPrincipalSchema = exports.PRIVATE_AUTO_QUESTION = exports.PRIVATE_AUTO_INSTRUCTIONS = exports.PRIVATE_AUTO_LIMITS = exports.PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION = exports.PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION = exports.scopedInferenceRequestSchema = exports.canonicalScopedExecutionJson = exports.scopedExecutionSchema = exports.scopedExecutionAudienceSchema = exports.SCOPED_REQUEST_ENVELOPE_VERSION = exports.SCOPED_EXECUTION_CONTRACT_VERSION = exports.decisionAnswersMatch = exports.decisionFitsGateway = exports.decisionInputBudget = exports.decisionFailureSchema = exports.decisionSuccessSchema = exports.decisionResultSchema = exports.decisionAnswerSchema = exports.decisionRequestSchema = exports.decisionInputSchema = exports.decisionQuestionSchema = exports.decisionEffortSchema = exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = exports.inboxNaturalSearchResponseSchema = exports.inboxInferenceTextResponseSchema = exports.inboxMessageInferenceParamsSchema = exports.inboxNaturalSearchRequestSchema = exports.INBOX_DAILY_BRIEF_SECTIONS = exports.inboxDailyBriefResponseSchema = exports.inboxDailyBriefRequestSchema = void 0;
42
- exports.personalPlanCatalogueSchema = exports.personalPlanDisplayPriceSchema = exports.productSubscriptionCancellationResultSchema = exports.cancelProductSubscriptionSchema = exports.subscriptionCreditGrantsResponseSchema = exports.subscriptionCreditGrantSchema = exports.productSubscriptionsResponseSchema = exports.productSubscriptionSummarySchema = exports.isLoopbackOrigin = void 0;
40
+ exports.resolveCatalogInvocation = exports.matchCatalogInvocation = exports.findOverlappingCatalogInvocations = exports.catalogInvocationTemplatesEquivalent = exports.catalogInvocationsOverlap = exports.catalogInvocationPathParameters = exports.normalizedAppEventSchema = exports.catalogRegistrationSchema = exports.appCapabilityCatalogSchema = exports.CATALOG_INTERNAL_TRANSPORTS = exports.catalogFeatureSchema = exports.catalogEventSchema = exports.catalogToolSchema = exports.auditEventSchema = exports.auditResultSchema = exports.policyDecisionSchema = exports.invocationPrincipalSchema = exports.capabilityTicketClaimsSchema = exports.automationDefinitionSchema = exports.automationDataFlowSchema = exports.automationActorSelectionSchema = exports.automationTriggerSchema = exports.agentRequesterCeilingSchema = exports.agentRequesterCeilingWriteSchema = exports.AGENT_REQUESTER_CEILING_AUTONOMY = exports.delegationGrantSchema = exports.capabilityTicketRequestSchema = exports.capabilityCoordinatorSchema = exports.executionAuthorizationRefSchema = exports.capabilityCatalogBindingSchema = exports.grantLimitSchema = exports.toolGrantOverrideSchema = exports.resourceRefSchema = exports.foregroundExecutionAuthorizationInputSchema = exports.executionActorRefSchema = exports.actorRefSchema = exports.capabilityPackageSchema = exports.autonomyLevelSchema = exports.CAPABILITY_PACKAGES = exports.AUTONOMY_LEVELS = exports.costCenterUsageSchema = exports.providerCostSourceSchema = exports.PROVIDER_COST_SOURCES = exports.inferenceEconomicTreatmentSchema = exports.INFERENCE_ECONOMIC_TREATMENTS = exports.productEntitlementSchema = exports.costCenterSpendSchema = exports.costCenterSchema = exports.costCenterStatusSchema = exports.COST_CENTER_STATUSES = void 0;
41
+ exports.subjectProductGrantSnapshotSchema = exports.productAccessGrantSchema = exports.productSubscriptionSourceSchema = exports.productOfferSchema = exports.productBenefitSchema = exports.subjectProductAccessQuerySchema = exports.productDefinitionSchema = exports.privateAutoInferenceRequestSchema = exports.privateAutoOperationId = exports.privateAutoInputSchema = exports.privateAutoExecutionSchema = exports.privateAutoSourceApprovalSchema = exports.privateAutoPrincipalSchema = exports.PRIVATE_AUTO_QUESTION = exports.PRIVATE_AUTO_INSTRUCTIONS = exports.PRIVATE_AUTO_LIMITS = exports.PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION = exports.PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION = exports.scopedInferenceRequestSchema = exports.canonicalScopedExecutionJson = exports.scopedExecutionSchema = exports.scopedExecutionAudienceSchema = exports.SCOPED_REQUEST_ENVELOPE_VERSION = exports.SCOPED_EXECUTION_CONTRACT_VERSION = exports.decisionAnswersMatch = exports.decisionFitsGateway = exports.decisionInputBudget = exports.decisionFailureSchema = exports.decisionSuccessSchema = exports.decisionResultSchema = exports.decisionAnswerSchema = exports.decisionRequestSchema = exports.decisionInputSchema = exports.decisionQuestionSchema = exports.decisionEffortSchema = exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = exports.inboxNaturalSearchResponseSchema = exports.inboxInferenceTextResponseSchema = exports.inboxMessageInferenceParamsSchema = exports.inboxNaturalSearchRequestSchema = exports.INBOX_DAILY_BRIEF_SECTIONS = exports.inboxDailyBriefResponseSchema = exports.inboxDailyBriefRequestSchema = exports.inboxComposeRequestSchema = exports.emailAgentContextSchema = exports.emailContextMessageSchema = exports.emailContextMailboxSchema = exports.emailContextAddressSchema = void 0;
42
+ exports.serviceTokenOptionsSchema = exports.serviceTokenScopesSchema = exports.personalPlanCatalogueSchema = exports.personalPlanDisplayPriceSchema = exports.productSubscriptionCancellationResultSchema = exports.cancelProductSubscriptionSchema = exports.subscriptionCreditGrantsResponseSchema = exports.subscriptionCreditGrantSchema = exports.productSubscriptionsResponseSchema = exports.productSubscriptionSummarySchema = exports.isLoopbackOrigin = exports.inputSatisfiesCapabilityLimits = exports.canonicalCapabilityJson = exports.meteredGenerationSchema = exports.subjectProductAccessSchema = exports.productOfferSegmentSchema = void 0;
43
43
  var accountGraph_1 = require("./accountGraph");
44
44
  Object.defineProperty(exports, "ACCOUNT_KINDS", { enumerable: true, get: function () { return accountGraph_1.ACCOUNT_KINDS; } });
45
45
  Object.defineProperty(exports, "accountKindSchema", { enumerable: true, get: function () { return accountGraph_1.accountKindSchema; } });
@@ -782,6 +782,9 @@ Object.defineProperty(exports, "executionAuthorizationRefSchema", { enumerable:
782
782
  Object.defineProperty(exports, "capabilityCoordinatorSchema", { enumerable: true, get: function () { return agency_1.capabilityCoordinatorSchema; } });
783
783
  Object.defineProperty(exports, "capabilityTicketRequestSchema", { enumerable: true, get: function () { return agency_1.capabilityTicketRequestSchema; } });
784
784
  Object.defineProperty(exports, "delegationGrantSchema", { enumerable: true, get: function () { return agency_1.delegationGrantSchema; } });
785
+ Object.defineProperty(exports, "AGENT_REQUESTER_CEILING_AUTONOMY", { enumerable: true, get: function () { return agency_1.AGENT_REQUESTER_CEILING_AUTONOMY; } });
786
+ Object.defineProperty(exports, "agentRequesterCeilingWriteSchema", { enumerable: true, get: function () { return agency_1.agentRequesterCeilingWriteSchema; } });
787
+ Object.defineProperty(exports, "agentRequesterCeilingSchema", { enumerable: true, get: function () { return agency_1.agentRequesterCeilingSchema; } });
785
788
  Object.defineProperty(exports, "automationTriggerSchema", { enumerable: true, get: function () { return agency_1.automationTriggerSchema; } });
786
789
  Object.defineProperty(exports, "automationActorSelectionSchema", { enumerable: true, get: function () { return agency_1.automationActorSelectionSchema; } });
787
790
  Object.defineProperty(exports, "automationDataFlowSchema", { enumerable: true, get: function () { return agency_1.automationDataFlowSchema; } });
@@ -793,6 +796,8 @@ Object.defineProperty(exports, "auditResultSchema", { enumerable: true, get: fun
793
796
  Object.defineProperty(exports, "auditEventSchema", { enumerable: true, get: function () { return agency_1.auditEventSchema; } });
794
797
  Object.defineProperty(exports, "catalogToolSchema", { enumerable: true, get: function () { return agency_1.catalogToolSchema; } });
795
798
  Object.defineProperty(exports, "catalogEventSchema", { enumerable: true, get: function () { return agency_1.catalogEventSchema; } });
799
+ Object.defineProperty(exports, "catalogFeatureSchema", { enumerable: true, get: function () { return agency_1.catalogFeatureSchema; } });
800
+ Object.defineProperty(exports, "CATALOG_INTERNAL_TRANSPORTS", { enumerable: true, get: function () { return agency_1.CATALOG_INTERNAL_TRANSPORTS; } });
796
801
  Object.defineProperty(exports, "appCapabilityCatalogSchema", { enumerable: true, get: function () { return agency_1.appCapabilityCatalogSchema; } });
797
802
  Object.defineProperty(exports, "catalogRegistrationSchema", { enumerable: true, get: function () { return agency_1.catalogRegistrationSchema; } });
798
803
  Object.defineProperty(exports, "normalizedAppEventSchema", { enumerable: true, get: function () { return agency_1.normalizedAppEventSchema; } });
@@ -823,6 +828,7 @@ Object.defineProperty(exports, "inboxInferenceStreamEventSchema", { enumerable:
823
828
  __exportStar(require("./externalIdentity"), exports);
824
829
  __exportStar(require("./linkedAccounts"), exports);
825
830
  __exportStar(require("./federationInstanceFetch"), exports);
831
+ __exportStar(require("./accountAccess"), exports);
826
832
  __exportStar(require("./notifications"), exports);
827
833
  __exportStar(require("./email/messages"), exports);
828
834
  __exportStar(require("./stickers"), exports);
@@ -889,3 +895,8 @@ Object.defineProperty(exports, "personalPlanCatalogueSchema", { enumerable: true
889
895
  __exportStar(require("./products/checkout"), exports);
890
896
  __exportStar(require("./organizations"), exports);
891
897
  __exportStar(require("./safety"), exports);
898
+ var serviceToken_1 = require("./serviceToken");
899
+ Object.defineProperty(exports, "serviceTokenScopesSchema", { enumerable: true, get: function () { return serviceToken_1.serviceTokenScopesSchema; } });
900
+ Object.defineProperty(exports, "serviceTokenOptionsSchema", { enumerable: true, get: function () { return serviceToken_1.serviceTokenOptionsSchema; } });
901
+ __exportStar(require("./applicationRoles"), exports);
902
+ __exportStar(require("./contentClaims"), exports);