@oxy.so/contracts 6.11.0 → 6.13.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.
- package/dist/cjs/appAssertions.js +31 -2
- package/dist/cjs/client/appAssertions.js +10 -2
- package/dist/cjs/client/identityKeyHistory.js +15 -0
- package/dist/cjs/client/index.js +15 -4
- package/dist/cjs/client/platformSession.js +61 -0
- package/dist/cjs/client/userResponse.js +15 -1
- package/dist/cjs/identityKeyHistory.js +30 -0
- package/dist/cjs/index.js +19 -14
- package/dist/cjs/platformSession.js +104 -0
- package/dist/cjs/signIn.js +12 -2
- package/dist/cjs/userResponse.js +3 -1
- package/dist/esm/appAssertions.js +30 -1
- package/dist/esm/client/appAssertions.js +10 -2
- package/dist/esm/client/identityKeyHistory.js +12 -0
- package/dist/esm/client/index.js +3 -0
- package/dist/esm/client/platformSession.js +58 -0
- package/dist/esm/client/userResponse.js +14 -0
- package/dist/esm/identityKeyHistory.js +27 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/platformSession.js +97 -0
- package/dist/esm/signIn.js +12 -2
- package/dist/esm/userResponse.js +3 -1
- package/dist/types/appAssertions.d.ts +40 -1
- package/dist/types/client/appAssertions.d.ts +11 -4
- package/dist/types/client/identityKeyHistory.d.ts +13 -0
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/client/platformSession.d.ts +50 -0
- package/dist/types/client/userResponse.d.ts +7 -0
- package/dist/types/identityKeyHistory.d.ts +22 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/inference/embeddings.d.ts +4 -4
- package/dist/types/inference/errors.d.ts +4 -4
- package/dist/types/inference/inbox.d.ts +2 -2
- package/dist/types/inference/realtime.d.ts +4 -4
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/dist/types/oxyRecordTypes.d.ts +1 -1
- package/dist/types/platformSession.d.ts +129 -0
- package/dist/types/signIn.d.ts +23 -2
- package/dist/types/userResponse.d.ts +18 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appAssertionResponseSchema = exports.appAssertionRequestSchema = exports.appAttestKeyResponseSchema = exports.appAttestKeyRequestSchema = exports.appAttestKeyIdSchema = exports.appAssertionChallengeResponseSchema = exports.appAssertionChallengeRequestSchema = exports.applicationRecognitionSchema = exports.applicationRecognitionWriteSchema = exports.applicationIosRecognitionSchema = exports.applicationAndroidRecognitionSchema = exports.appleBundleIdSchema = exports.appleTeamIdSchema = exports.signingCertSha256Schema = exports.androidPackageNameSchema = exports.applicationWebOriginSchema = exports.appAssertionErrorCodeSchema = exports.appAssertionPlatformSchema = 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 = void 0;
|
|
3
|
+
exports.appAssertionResponseSchema = exports.appAssertionRequestSchema = exports.appAttestKeyResponseSchema = exports.appAttestKeyRequestSchema = exports.appAttestKeyIdSchema = exports.appAssertionChallengeResponseSchema = exports.appAssertionChallengeRequestSchema = exports.applicationRecognitionSchema = exports.applicationRecognitionWriteSchema = exports.applicationIosRecognitionSchema = exports.applicationAndroidRecognitionSchema = exports.oxyosDesktopEntryIdSchema = exports.appleBundleIdSchema = exports.appleTeamIdSchema = exports.signingCertSha256Schema = exports.androidPackageNameSchema = exports.applicationWebOriginSchema = exports.appAssertionErrorCodeSchema = exports.platformHostSchema = exports.appAssertionPlatformSchema = 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 = void 0;
|
|
4
4
|
exports.isExactHttpsOrigin = isExactHttpsOrigin;
|
|
5
5
|
const stringChecks_1 = require("./stringChecks");
|
|
6
6
|
/**
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "OXY_APP_ASSERTION_AUDIENCE", { enumerable: true,
|
|
|
36
36
|
Object.defineProperty(exports, "OXY_APP_ASSERTION_HEADER", { enumerable: true, get: function () { return appAssertions_1.OXY_APP_ASSERTION_HEADER; } });
|
|
37
37
|
Object.defineProperty(exports, "OXY_APP_ASSERTION_TTL_SECONDS", { enumerable: true, get: function () { return appAssertions_1.OXY_APP_ASSERTION_TTL_SECONDS; } });
|
|
38
38
|
Object.defineProperty(exports, "OXY_APP_ASSERTION_TYPE", { enumerable: true, get: function () { return appAssertions_1.OXY_APP_ASSERTION_TYPE; } });
|
|
39
|
+
const platformSession_1 = require("./client/platformSession");
|
|
39
40
|
const applicationIdSchema = zod_1.z.string().trim().check((0, stringChecks_1.utf16MinLength)(1)).check((0, stringChecks_1.utf16MaxLength)(255));
|
|
40
41
|
const base64Url32Schema = zod_1.z.string().regex(/^[A-Za-z0-9_-]{43}$/);
|
|
41
42
|
const base64Schema = (max) => zod_1.z
|
|
@@ -44,6 +45,8 @@ const base64Schema = (max) => zod_1.z
|
|
|
44
45
|
.check((0, stringChecks_1.utf16MaxLength)(max))
|
|
45
46
|
.regex(/^[A-Za-z0-9+/]+={0,2}$/);
|
|
46
47
|
exports.appAssertionPlatformSchema = zod_1.z.enum(appAssertions_1.APP_ASSERTION_PLATFORMS);
|
|
48
|
+
/** A platform that holds the Oxy session for the applications it runs (ADR 0058). */
|
|
49
|
+
exports.platformHostSchema = zod_1.z.enum(platformSession_1.PLATFORM_HOSTS);
|
|
47
50
|
exports.appAssertionErrorCodeSchema = zod_1.z.enum(appAssertions_1.APP_ASSERTION_ERROR_CODES);
|
|
48
51
|
// ---------------------------------------------------------------------------
|
|
49
52
|
// Registry
|
|
@@ -79,6 +82,11 @@ exports.appleBundleIdSchema = zod_1.z
|
|
|
79
82
|
.string()
|
|
80
83
|
.check((0, stringChecks_1.utf16MaxLength)(255))
|
|
81
84
|
.regex(/^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/, 'Must be an Apple bundle id');
|
|
85
|
+
/** An OxyOS desktop entry id (`so.oxy.dropsea`), the id OxyOS launches the application by. */
|
|
86
|
+
exports.oxyosDesktopEntryIdSchema = zod_1.z
|
|
87
|
+
.string()
|
|
88
|
+
.check((0, stringChecks_1.utf16MaxLength)(255))
|
|
89
|
+
.regex(platformSession_1.OXYOS_DESKTOP_ENTRY_ID_PATTERN, 'Must be an OxyOS desktop entry id');
|
|
82
90
|
const unique = (values) => new Set(values).size === values.length;
|
|
83
91
|
exports.applicationAndroidRecognitionSchema = zod_1.z
|
|
84
92
|
.object({
|
|
@@ -93,9 +101,22 @@ exports.applicationAndroidRecognitionSchema = zod_1.z
|
|
|
93
101
|
exports.applicationIosRecognitionSchema = zod_1.z
|
|
94
102
|
.object({ teamId: exports.appleTeamIdSchema, bundleId: exports.appleBundleIdSchema })
|
|
95
103
|
.strict();
|
|
104
|
+
const oxyosDesktopEntryIdsSchema = zod_1.z
|
|
105
|
+
.array(exports.oxyosDesktopEntryIdSchema)
|
|
106
|
+
.max(20)
|
|
107
|
+
.refine(unique, 'Desktop entry ids must be unique');
|
|
96
108
|
/**
|
|
97
109
|
* What Oxy staff write for an application: the whole declaration, replaced at
|
|
98
110
|
* once. `null` and `[]` declare nothing for that platform.
|
|
111
|
+
*
|
|
112
|
+
* ADR 0058 adds two fields a writer may omit, and an omitted one is left as
|
|
113
|
+
* the registry holds it (a writer that predates them cannot erase them):
|
|
114
|
+
*
|
|
115
|
+
* - `platformHost`: this application IS a platform that holds the Oxy session
|
|
116
|
+
* (OxyOS, Astro). Its public client id is the one a platform's own sign-in
|
|
117
|
+
* names (`platformClient`), and only an Oxy application may declare it.
|
|
118
|
+
* - `oxyosDesktopEntryIds`: the OxyOS desktop entry ids that launch this
|
|
119
|
+
* application, each naming one application only, as a web origin does.
|
|
99
120
|
*/
|
|
100
121
|
exports.applicationRecognitionWriteSchema = zod_1.z
|
|
101
122
|
.object({
|
|
@@ -105,12 +126,16 @@ exports.applicationRecognitionWriteSchema = zod_1.z
|
|
|
105
126
|
.refine(unique, 'Origins must be unique'),
|
|
106
127
|
android: exports.applicationAndroidRecognitionSchema.nullable(),
|
|
107
128
|
ios: exports.applicationIosRecognitionSchema.nullable(),
|
|
129
|
+
platformHost: exports.platformHostSchema.nullable().optional(),
|
|
130
|
+
oxyosDesktopEntryIds: oxyosDesktopEntryIdsSchema.optional(),
|
|
108
131
|
})
|
|
109
132
|
.strict();
|
|
110
133
|
/** An application's recognition as the registry holds it; `updatedAt` is `null` when none was written. */
|
|
111
134
|
exports.applicationRecognitionSchema = exports.applicationRecognitionWriteSchema
|
|
112
135
|
.extend({
|
|
113
136
|
applicationId: applicationIdSchema,
|
|
137
|
+
platformHost: exports.platformHostSchema.nullable(),
|
|
138
|
+
oxyosDesktopEntryIds: oxyosDesktopEntryIdsSchema,
|
|
114
139
|
updatedAt: zod_1.z.string().check((0, stringChecks_1.isoDateTime)()).nullable(),
|
|
115
140
|
})
|
|
116
141
|
.strict();
|
|
@@ -161,10 +186,14 @@ exports.appAttestKeyResponseSchema = zod_1.z.object({ keyId: exports.appAttestKe
|
|
|
161
186
|
* `POST /apps/assertions`. The body names the application and the platform;
|
|
162
187
|
* the proof is the platform's: none on the web (the browser's `Origin` is), a
|
|
163
188
|
* Play Integrity token on Android, an App Attest assertion on iOS, each over a
|
|
164
|
-
* challenge minted for `assertion`.
|
|
189
|
+
* challenge minted for `assertion`. On `oxyos` and `astro` the bearer is the
|
|
190
|
+
* proof: an application token that platform minted for this application
|
|
191
|
+
* (ADR 0058).
|
|
165
192
|
*/
|
|
166
193
|
exports.appAssertionRequestSchema = zod_1.z.discriminatedUnion('platform', [
|
|
167
194
|
zod_1.z.object({ applicationId: applicationIdSchema, platform: zod_1.z.literal('web') }).strict(),
|
|
195
|
+
zod_1.z.object({ applicationId: applicationIdSchema, platform: zod_1.z.literal('oxyos') }).strict(),
|
|
196
|
+
zod_1.z.object({ applicationId: applicationIdSchema, platform: zod_1.z.literal('astro') }).strict(),
|
|
168
197
|
zod_1.z
|
|
169
198
|
.object({
|
|
170
199
|
applicationId: applicationIdSchema,
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.appAssertionResponseCheck = exports.appAttestKeyResponseCheck = exports.appAssertionChallengeResponseCheck = exports.APP_ASSERTION_ERROR_CODES = exports.OXY_APP_ASSERTION_TTL_SECONDS = exports.OXY_APP_ASSERTION_HEADER = exports.OXY_APP_ASSERTION_AUDIENCE = exports.OXY_APP_ASSERTION_TYPE = exports.APP_ASSERTION_CHALLENGE_PURPOSES = exports.APP_ASSERTION_PLATFORMS = void 0;
|
|
15
15
|
const check_1 = require("./check");
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* How an app proves itself: the browser's origin, Play Integrity, App Attest,
|
|
18
|
+
* or (`oxyos`, `astro`) an application token the platform holding the session
|
|
19
|
+
* minted for it (ADR 0058), whose bearer is the proof.
|
|
20
|
+
*/
|
|
21
|
+
exports.APP_ASSERTION_PLATFORMS = ['web', 'android', 'ios', 'oxyos', 'astro'];
|
|
18
22
|
/**
|
|
19
23
|
* What a device challenge is spent on: an assertion, or (iOS only) registering
|
|
20
24
|
* an App Attest key. A challenge minted for one is refused for the other.
|
|
@@ -45,6 +49,9 @@ exports.OXY_APP_ASSERTION_TTL_SECONDS = 300;
|
|
|
45
49
|
* - `attestation_invalid`: the App Attest attestation does not verify.
|
|
46
50
|
* - `assertion_invalid`: the App Attest assertion does not verify, or its counter did not advance.
|
|
47
51
|
* - `signing_unavailable`: Oxy cannot sign (503).
|
|
52
|
+
* - `app_token_mismatch`: an `oxyos` or `astro` assertion needs an application token that
|
|
53
|
+
* platform minted for this application; an application token gets an assertion for its own
|
|
54
|
+
* application and platform only.
|
|
48
55
|
*/
|
|
49
56
|
exports.APP_ASSERTION_ERROR_CODES = [
|
|
50
57
|
'application_unavailable',
|
|
@@ -60,6 +67,7 @@ exports.APP_ASSERTION_ERROR_CODES = [
|
|
|
60
67
|
'attestation_invalid',
|
|
61
68
|
'assertion_invalid',
|
|
62
69
|
'signing_unavailable',
|
|
70
|
+
'app_token_mismatch',
|
|
63
71
|
];
|
|
64
72
|
/** 32 random bytes, base64url: a challenge, or the SHA-256 it is bound into. */
|
|
65
73
|
const BASE64URL_32 = /^[A-Za-z0-9_-]{43}$/;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A personal account's key history (`GET /identity/key-history`), without Zod.
|
|
4
|
+
* Schema: `../identityKeyHistory.ts`.
|
|
5
|
+
*
|
|
6
|
+
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.identityKeyHistoryCheck = void 0;
|
|
10
|
+
const check_1 = require("./check");
|
|
11
|
+
const canonicalPublicKey = (0, check_1.string)((0, check_1.pattern)(/^04[0-9a-f]{128}$/));
|
|
12
|
+
exports.identityKeyHistoryCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
13
|
+
publicKey: (0, check_1.nullable)(canonicalPublicKey),
|
|
14
|
+
retired: (0, check_1.array)((0, check_1.strictObject)({ publicKey: canonicalPublicKey, retiredAt: (0, check_1.string)(check_1.datetime) })),
|
|
15
|
+
}));
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -31,10 +31,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.ORGANIZATION_KEY_PROOF_ACTION_VALUES = exports.ORGANIZATION_KEY_PROOF_ACTIONS = exports.ORGANIZATION_KEY_OPERATIONS = exports.ORGANIZATION_KEY_ERROR_CODES = 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.isPlainTextTitle = exports.accountTitleCheck = exports.accountNamePolicyForKind = exports.ACCOUNT_TITLE_MAX_LENGTH = exports.ACCOUNT_TITLE_DISALLOWED_SOURCE = exports.ACCOUNT_NAME_POLICY_BY_KIND = exports.newlyAddedRetiredCategories = exports.kindAcceptsAccountCategories = exports.isSelectableAccountCategoryId = exports.isOperatorSwitchTargetKind = exports.isMemberOperatedKind = 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;
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
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 = exports.USER_PROFILE_COLORS = 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.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.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = void 0;
|
|
34
|
+
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.identityKeyHistoryCheck = 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
|
+
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.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.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 = void 0;
|
|
36
|
+
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.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.supervisionInviteInputCheck = exports.supervisionInvitationCheck = exports.supervisionContactsResponseCheck = void 0;
|
|
37
|
+
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 = 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.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 = void 0;
|
|
38
38
|
var check_1 = require("./check");
|
|
39
39
|
Object.defineProperty(exports, "ContractCheckError", { enumerable: true, get: function () { return check_1.ContractCheckError; } });
|
|
40
40
|
Object.defineProperty(exports, "checkContract", { enumerable: true, get: function () { return check_1.checkContract; } });
|
|
@@ -127,6 +127,8 @@ Object.defineProperty(exports, "deviceSessionStateCheck", { enumerable: true, ge
|
|
|
127
127
|
Object.defineProperty(exports, "deviceSessionSyncCheck", { enumerable: true, get: function () { return deviceSession_1.deviceSessionSyncCheck; } });
|
|
128
128
|
Object.defineProperty(exports, "deviceTokenMintResponseCheck", { enumerable: true, get: function () { return deviceSession_1.deviceTokenMintResponseCheck; } });
|
|
129
129
|
Object.defineProperty(exports, "sessionAccountsChangedEventCheck", { enumerable: true, get: function () { return deviceSession_1.sessionAccountsChangedEventCheck; } });
|
|
130
|
+
var identityKeyHistory_1 = require("./identityKeyHistory");
|
|
131
|
+
Object.defineProperty(exports, "identityKeyHistoryCheck", { enumerable: true, get: function () { return identityKeyHistory_1.identityKeyHistoryCheck; } });
|
|
130
132
|
var identityLink_1 = require("./identityLink");
|
|
131
133
|
Object.defineProperty(exports, "IDENTITY_LINK_QR_PREFIX", { enumerable: true, get: function () { return identityLink_1.IDENTITY_LINK_QR_PREFIX; } });
|
|
132
134
|
Object.defineProperty(exports, "IDENTITY_LINK_STATUSES", { enumerable: true, get: function () { return identityLink_1.IDENTITY_LINK_STATUSES; } });
|
|
@@ -262,6 +264,8 @@ var userResponse_1 = require("./userResponse");
|
|
|
262
264
|
Object.defineProperty(exports, "userNameCheck", { enumerable: true, get: function () { return userResponse_1.userNameCheck; } });
|
|
263
265
|
Object.defineProperty(exports, "PROFILE_LINKS_MAX", { enumerable: true, get: function () { return userResponse_1.PROFILE_LINKS_MAX; } });
|
|
264
266
|
Object.defineProperty(exports, "PROFILE_LINK_TITLE_MAX", { enumerable: true, get: function () { return userResponse_1.PROFILE_LINK_TITLE_MAX; } });
|
|
267
|
+
var userResponse_2 = require("./userResponse");
|
|
268
|
+
Object.defineProperty(exports, "PRONOUNS", { enumerable: true, get: function () { return userResponse_2.PRONOUNS; } });
|
|
265
269
|
var contentClaims_1 = require("./contentClaims");
|
|
266
270
|
Object.defineProperty(exports, "CLAIMANT_RELATIONSHIPS", { enumerable: true, get: function () { return contentClaims_1.CLAIMANT_RELATIONSHIPS; } });
|
|
267
271
|
Object.defineProperty(exports, "CLOSED_CONTENT_CLAIM_STATES", { enumerable: true, get: function () { return contentClaims_1.CLOSED_CONTENT_CLAIM_STATES; } });
|
|
@@ -288,6 +292,13 @@ Object.defineProperty(exports, "OXY_APP_ASSERTION_TYPE", { enumerable: true, get
|
|
|
288
292
|
Object.defineProperty(exports, "appAssertionChallengeResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAssertionChallengeResponseCheck; } });
|
|
289
293
|
Object.defineProperty(exports, "appAssertionResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAssertionResponseCheck; } });
|
|
290
294
|
Object.defineProperty(exports, "appAttestKeyResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAttestKeyResponseCheck; } });
|
|
295
|
+
var platformSession_1 = require("./platformSession");
|
|
296
|
+
Object.defineProperty(exports, "APP_TOKEN_DEVICE_ACCESS_DENIED", { enumerable: true, get: function () { return platformSession_1.APP_TOKEN_DEVICE_ACCESS_DENIED; } });
|
|
297
|
+
Object.defineProperty(exports, "DEVICE_APP_TOKEN_ERROR_CODES", { enumerable: true, get: function () { return platformSession_1.DEVICE_APP_TOKEN_ERROR_CODES; } });
|
|
298
|
+
Object.defineProperty(exports, "DEVICE_APP_TOKEN_TTL_SECONDS", { enumerable: true, get: function () { return platformSession_1.DEVICE_APP_TOKEN_TTL_SECONDS; } });
|
|
299
|
+
Object.defineProperty(exports, "OXYOS_DESKTOP_ENTRY_ID_PATTERN", { enumerable: true, get: function () { return platformSession_1.OXYOS_DESKTOP_ENTRY_ID_PATTERN; } });
|
|
300
|
+
Object.defineProperty(exports, "PLATFORM_HOSTS", { enumerable: true, get: function () { return platformSession_1.PLATFORM_HOSTS; } });
|
|
301
|
+
Object.defineProperty(exports, "deviceAppTokenResponseCheck", { enumerable: true, get: function () { return platformSession_1.deviceAppTokenResponseCheck; } });
|
|
291
302
|
var profileColors_generated_1 = require("../profileColors.generated");
|
|
292
303
|
Object.defineProperty(exports, "USER_PROFILE_COLORS", { enumerable: true, get: function () { return profileColors_generated_1.USER_PROFILE_COLORS; } });
|
|
293
304
|
Object.defineProperty(exports, "USER_PROFILE_COLOR_PRESETS", { enumerable: true, get: function () { return profileColors_generated_1.USER_PROFILE_COLOR_PRESETS; } });
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A platform that holds the Oxy session (ADR 0058), without Zod. Schemas:
|
|
4
|
+
* `../platformSession.ts`.
|
|
5
|
+
*
|
|
6
|
+
* OxyOS and Astro hold the person's Oxy session themselves, on a PLATFORM
|
|
7
|
+
* CREDENTIAL, and ask Oxy for a short token named for each application they
|
|
8
|
+
* run (`POST /session/device/app-token`). Applications hold no credential.
|
|
9
|
+
*
|
|
10
|
+
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.deviceAppTokenResponseCheck = exports.APP_TOKEN_DEVICE_ACCESS_DENIED = exports.DEVICE_APP_TOKEN_ERROR_CODES = exports.DEVICE_APP_TOKEN_TTL_SECONDS = exports.OXYOS_DESKTOP_ENTRY_ID_PATTERN = exports.PLATFORM_HOSTS = void 0;
|
|
14
|
+
const check_1 = require("./check");
|
|
15
|
+
/** The platforms that hold the Oxy session for the applications they run. */
|
|
16
|
+
exports.PLATFORM_HOSTS = ['oxyos', 'astro'];
|
|
17
|
+
/**
|
|
18
|
+
* An OxyOS desktop entry id (`so.oxy.dropsea`): the reverse-DNS id OxyOS names
|
|
19
|
+
* an application by in its registry and launch records. Lowercase, at least two
|
|
20
|
+
* segments, unique across applications like a web origin.
|
|
21
|
+
*/
|
|
22
|
+
exports.OXYOS_DESKTOP_ENTRY_ID_PATTERN = /^[a-z0-9]+(\.[a-z0-9-]+)+$/;
|
|
23
|
+
/** An application token lives exactly this long (ADR 0058 2.3). */
|
|
24
|
+
exports.DEVICE_APP_TOKEN_TTL_SECONDS = 300;
|
|
25
|
+
/**
|
|
26
|
+
* Why `POST /session/device/app-token` refused. The API answers `{ error: <code> }`.
|
|
27
|
+
*
|
|
28
|
+
* - `invalid_request` (400): the body is not the contract's.
|
|
29
|
+
* - `browser_not_allowed` (403): the request carries a web `Origin` (or
|
|
30
|
+
* `Sec-Fetch-Site`); only a platform's own native service mints.
|
|
31
|
+
* - `invalid_device_secret` (401): the secret proves no PLATFORM credential of
|
|
32
|
+
* that device. A wrong secret counts toward the device-secret lockout.
|
|
33
|
+
* - `application_not_recognised` (403): the credential is another platform's,
|
|
34
|
+
* or the attestation names no active Oxy application recognised for this
|
|
35
|
+
* platform (an unknown desktop entry id, an origin that is not the
|
|
36
|
+
* application's, auth.oxy.so's application, a third-party application, a
|
|
37
|
+
* `clientId` of another application).
|
|
38
|
+
* - `no_active_session` / `account_not_on_device` (401): as
|
|
39
|
+
* `POST /session/device/token`: nothing live to mint for, or the pinned
|
|
40
|
+
* account is not live on the device.
|
|
41
|
+
*/
|
|
42
|
+
exports.DEVICE_APP_TOKEN_ERROR_CODES = [
|
|
43
|
+
'invalid_request',
|
|
44
|
+
'browser_not_allowed',
|
|
45
|
+
'invalid_device_secret',
|
|
46
|
+
'application_not_recognised',
|
|
47
|
+
'no_active_session',
|
|
48
|
+
'account_not_on_device',
|
|
49
|
+
];
|
|
50
|
+
/**
|
|
51
|
+
* Every bearer-authenticated `/session/device/*` route answers an application
|
|
52
|
+
* token (one carrying `host`) with `403 { error: APP_TOKEN_DEVICE_ACCESS_DENIED }`:
|
|
53
|
+
* the device is the platform's, never an application's.
|
|
54
|
+
*/
|
|
55
|
+
exports.APP_TOKEN_DEVICE_ACCESS_DENIED = 'app_token_device_access_denied';
|
|
56
|
+
exports.deviceAppTokenResponseCheck = (0, check_1.exact)()((0, check_1.object)({
|
|
57
|
+
accessToken: (0, check_1.string)((0, check_1.minLength)(1)),
|
|
58
|
+
expiresAt: (0, check_1.string)(check_1.datetime),
|
|
59
|
+
applicationId: (0, check_1.string)((0, check_1.minLength)(1)),
|
|
60
|
+
accountId: (0, check_1.string)((0, check_1.minLength)(1)),
|
|
61
|
+
}));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = exports.userNameCheck = void 0;
|
|
8
|
+
exports.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = exports.PRONOUNS = exports.userNameCheck = void 0;
|
|
9
9
|
const check_1 = require("./check");
|
|
10
10
|
exports.userNameCheck = (0, check_1.exact)()((0, check_1.looseObject)({
|
|
11
11
|
first: (0, check_1.optional)((0, check_1.string)()),
|
|
@@ -17,6 +17,20 @@ exports.userNameCheck = (0, check_1.exact)()((0, check_1.looseObject)({
|
|
|
17
17
|
* Most links a profile may show. Enforced by the server on every write that
|
|
18
18
|
* carries `linksMetadata` (see `user.service.ts`), and by the editor.
|
|
19
19
|
*/
|
|
20
|
+
/**
|
|
21
|
+
* How an account names its pronouns: one of a closed list, never free text. A
|
|
22
|
+
* federated account's source value is mapped onto it; a value that maps to none
|
|
23
|
+
* of these is `unspecified`.
|
|
24
|
+
*/
|
|
25
|
+
exports.PRONOUNS = [
|
|
26
|
+
'unspecified',
|
|
27
|
+
'he_him',
|
|
28
|
+
'she_her',
|
|
29
|
+
'they_them',
|
|
30
|
+
'he_they',
|
|
31
|
+
'she_they',
|
|
32
|
+
'it_its',
|
|
33
|
+
];
|
|
20
34
|
exports.PROFILE_LINKS_MAX = 10;
|
|
21
35
|
/**
|
|
22
36
|
* Longest title an editor may give a profile link, in characters. Not enforced
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.identityKeyHistorySchema = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A personal account's key history: `GET /identity/key-history`.
|
|
6
|
+
*
|
|
7
|
+
* The current root (`null` without one) and every root a rotation replaced,
|
|
8
|
+
* oldest first. Commons reads it to accept a previous recovery phrase only when
|
|
9
|
+
* it derives a key that WAS this account's root, and keeps that key to spend
|
|
10
|
+
* what it received. A retired root is never any account's again (ADR 0061 D2).
|
|
11
|
+
*
|
|
12
|
+
* Keys are canonical: uncompressed, lowercase (`04` + 128 hex). No private key
|
|
13
|
+
* or phrase crosses this contract.
|
|
14
|
+
*
|
|
15
|
+
* The Zod-free check is `./client/identityKeyHistory.ts`.
|
|
16
|
+
*/
|
|
17
|
+
const zod_1 = require("zod");
|
|
18
|
+
const stringChecks_1 = require("./stringChecks");
|
|
19
|
+
const canonicalPublicKey = zod_1.z.string().regex(/^04[0-9a-f]{128}$/);
|
|
20
|
+
exports.identityKeyHistorySchema = zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
publicKey: canonicalPublicKey.nullable(),
|
|
23
|
+
retired: zod_1.z.array(zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
publicKey: canonicalPublicKey,
|
|
26
|
+
retiredAt: zod_1.z.string().check((0, stringChecks_1.isoDateTime)()),
|
|
27
|
+
})
|
|
28
|
+
.strict()),
|
|
29
|
+
})
|
|
30
|
+
.strict();
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,20 +26,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.USERNAME_MAX_LENGTH = exports.USERNAME_MIN_LENGTH = exports.applyBotUsernameSuffix = exports.stripDisallowedUsernameCharacters = exports.isValidUsername = exports.usernameSchemaForAccountKind = exports.usernameSchema = exports.financialEffectAttributionSchema = exports.attributeFinancialEffect = exports.accountKindActsAsItself = exports.accountKindActorNature = exports.accountActorNatureSchema = exports.accountActorChainSchema = exports.accountActorChainFromSession = exports.KIND_INDEPENDENT_ACCOUNT_DIMENSIONS = exports.FINANCIAL_EFFECT_DIRECTIONS = exports.ACCOUNT_SUBJECT_CONTRACT_VERSION = exports.ACCOUNT_ACTOR_NATURES = exports.parseAvatarCharacter = exports.avatarCharacterSchema = exports.avatarCharacterFor = exports.AVATAR_PICKABLE_SHAPES = exports.AVATAR_PICKABLE_COLORS = exports.AVATAR_EYE_SPACING = exports.isPlainTextTitle = exports.accountTitleSchema = exports.accountNamePolicyForKind = exports.ACCOUNT_TITLE_MAX_LENGTH = exports.ACCOUNT_TITLE_DISALLOWED_SOURCE = exports.ACCOUNT_NAME_POLICY_BY_KIND = exports.accountNameSchema = exports.createAccountRequestSchema = exports.SELECTABLE_ACCOUNT_CATEGORY_IDS = exports.RETIRED_ACCOUNT_CATEGORY_IDS = exports.newlyAddedRetiredCategories = exports.MAX_ACCOUNT_CATEGORIES = exports.kindAcceptsAccountCategories = exports.isSelectableAccountCategoryId = exports.accountCategoryIdSchema = exports.accountCategoriesSchema = exports.ACCOUNT_CATEGORY_KINDS = exports.ACCOUNT_CATEGORY_IDS = exports.isMemberOperatedKind = exports.isOperatorSwitchTargetKind = exports.isDelegatedActAsEligibleKind = exports.isAccountKind = exports.childAccountKindSchema = exports.CHILD_ACCOUNT_KINDS = exports.accountKindSchema = exports.ACCOUNT_KINDS = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.applicationAccountTotalSchema = exports.applicationAccountRegistrationResponseSchema = exports.applicationAccountRegistrationRequestSchema = exports.APPLICATION_ACCOUNT_TOTAL_MAX_AGE_SECONDS = exports.APPLICATION_ACCOUNT_REGISTRATION_BATCH_MAX = exports.campaignAttributionSchema = exports.safeNumberCheck = exports.integerCheck = exports.urlCheck = exports.isoDateTime = exports.utf16Length = exports.utf16MaxLength = exports.utf16MinLength = exports.FREE_USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLORS = exports.productPlanCatalogueSchema = 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 = exports.subjectProductGrantSnapshotSchema = exports.productAccessGrantSchema = exports.productSubscriptionSourceSchema = exports.productOfferSchema = exports.productBenefitSchema = exports.subjectProductAccessQuerySchema = exports.productDefinitionSchema = exports.inboxInferenceStreamEventSchema = void 0;
|
|
29
|
+
exports.appUserSignalIngestSchema = exports.appInterestInputSchema = exports.appEndorsementInputSchema = exports.recommendationResponseSchema = exports.recommendationItemSchema = exports.recommendationCountSchema = exports.recommendationRequestSchema = exports.recommendationSignalWeightsSchema = exports.recommendationBoostSchema = exports.recommendationExcludeTypeSchema = exports.oxyServiceEventsHeartbeatSchema = exports.oxySessionRevocationEventSchema = exports.OXY_SERVICE_EVENTS_FORBIDDEN = exports.OXY_SERVICE_EVENTS_STALE_AFTER_MS = exports.OXY_SERVICE_EVENTS_HEARTBEAT_MS = exports.OXY_SERVICE_EVENTS_HEARTBEAT_EVENT = exports.OXY_SESSION_REVOKED_EVENT = exports.OXY_SERVICE_EVENTS_NAMESPACE = exports.oxyUserInvalidationEventSchema = exports.isPublishedOxyUserChangeReason = exports.OXY_PUBLISHED_USER_CHANGE_REASONS = exports.OXY_USER_CHANGE_REASONS = exports.OXY_USER_INVALIDATION_CHANNEL = exports.inboxEmailPushDataSchema = exports.INBOX_EMAIL_PUSH_TYPE = exports.INBOX_EMAIL_PUSH_CHANNEL = exports.IDENTITY_APPROVAL_PUSH_CHANNEL = exports.commonsDenyReasonSchema = exports.COMMONS_DENY_REASONS = exports.sessionStatusSchema = exports.publicApplicationSchema = exports.applicationTypeSchema = exports.safeParseContract = exports.resolveUserId = exports.deviceLinkedSessionsResponseSchema = exports.deviceLinkedSessionSchema = exports.currentUserResponseSchema = exports.userProfileUpdateSchema = exports.userResponseSchema = exports.dateOfBirthSchema = exports.themePreferenceSchema = exports.userRelationshipSchema = exports.userNameSchema = exports.PROFILE_LINK_TITLE_MAX = exports.PROFILE_LINKS_MAX = exports.PRONOUNS = exports.NUMERIC_USERNAME_MESSAGE = exports.RESERVED_USERNAME_MESSAGE = exports.BOT_USERNAME_INVALID_MESSAGE = exports.USERNAME_INVALID_MESSAGE = void 0;
|
|
30
|
+
exports.reputationTargetEntityTypeSchema = exports.trustTierSchema = exports.reputationTransactionStatusSchema = exports.reputationCategorySchema = exports.REPUTATION_INFLUENCE_CONTEXTS = exports.REPUTATION_TARGET_ENTITY_TYPES = exports.TRUST_TIERS = exports.REPUTATION_TRANSACTION_STATUSES = exports.REPUTATION_CATEGORIES = exports.credentialVerifyResultSchema = exports.credentialListResultSchema = exports.credentialIssueResultSchema = exports.verifiableCredentialResponseSchema = exports.credentialRecordSchema = exports.vouchResultSchema = exports.personhoodStatusResultSchema = exports.personhoodBreakdownSchema = exports.personhoodVouchRecordSchema = exports.validationVoteResultSchema = exports.validationRequestSummarySchema = exports.validationOpenResultSchema = exports.validationOpenRequestSchema = exports.validationVerdictRecordSchema = exports.realLifeAttestationResultSchema = exports.realLifeAttestationRecordSchema = exports.signedPublicCardSchema = exports.publicCardSchema = exports.logPageResponseSchema = exports.chainHeadResponseSchema = exports.oxySignedRecordTypeSchema = exports.exportBundleSchema = exports.exportFinancialSectionSchema = exports.exportUsageReservationSchema = exports.exportLedgerEntrySchema = exports.exportUsageReceiptSchema = exports.exportAttestationSchema = exports.authMethodsResponseSchema = exports.authMethodEntrySchema = exports.domainVerificationInstructionsSchema = exports.resourceDomainOwnershipResponseSchema = exports.resourceDomainOwnershipRequestSchema = exports.domainVerificationRequestSchema = exports.verifiedDomainSchema = exports.signedRecordEnvelopeSchema = exports.didDocumentSchema = exports.didServiceSchema = exports.verificationMethodSchema = exports.appAffinityEventsIngestSchema = exports.appAffinityEventSchema = exports.appAffinityEventTypeSchema = void 0;
|
|
31
|
+
exports.applyModerationDecisionResultSchema = exports.moderationEffectSchema = exports.reverseModerationEffectSchema = exports.finalizeModerationDecisionSchema = exports.moderationDecisionEventSchema = exports.moderationPolicyVersionsSchema = exports.moderationDecisionEventSubjectSchema = exports.moderationFindingSchema = exports.applicationModerationStandingSchema = exports.identityBindingStatusSchema = exports.identityBindingTypeSchema = exports.personhoodStatusSchema = exports.contributionTierSchema = exports.conductStandingSchema = exports.conductStrikeStatusSchema = exports.moderationEffectSkipReasonSchema = exports.moderationEffectStatusSchema = exports.moderationEffectTypeSchema = exports.moderationDecisionStatusSchema = exports.moderationAttributionSchema = exports.moderationFindingScopeSchema = exports.moderationSeveritySchema = exports.APPLICATION_MODERATION_STANDINGS = exports.IDENTITY_BINDING_STATUSES = exports.IDENTITY_BINDING_TYPES = exports.PERSONHOOD_STATUSES = exports.CONTRIBUTION_TIERS = exports.CONDUCT_STANDINGS = exports.CONDUCT_STRIKE_STATUSES = exports.MODERATION_EFFECT_SKIP_REASONS = exports.MODERATION_EFFECT_STATUSES = exports.MODERATION_EFFECT_TYPES = exports.MODERATION_DECISION_STATUSES = exports.MODERATION_ATTRIBUTIONS = exports.MODERATION_FINDING_SCOPES = exports.MODERATION_SEVERITIES = exports.isFullReputationBalance = exports.awardReputationSchema = exports.reputationInfluenceResultSchema = exports.reputationLeaderboardEntrySchema = exports.reputationLeaderboardUserSchema = exports.reputationRulesResponseSchema = exports.reputationRuleSchema = exports.reputationBalanceSchema = exports.reputationBalanceSummarySchema = exports.reputationReliabilitySchema = exports.reputationInfluenceSchema = exports.reputationBalanceBreakdownSchema = exports.reputationTransactionSchema = exports.reputationInfluenceContextSchema = void 0;
|
|
32
|
+
exports.rotateKeyCompleteRequestSchema = exports.rotateKeyChallengeResponseSchema = exports.loginResultSchema = exports.mcpOAuthConsentResponseSchema = exports.mcpOAuthClientInfoResponseSchema = exports.mcpOAuthConsentContextSchema = exports.mcpOAuthWriteActionSchema = exports.mcpOAuthClientApplicationSchema = exports.oauthAuthorizeCodeResponseSchema = exports.oauthConsentDecisionSchema = exports.deviceDirectorySyncSchema = exports.deviceActivateResponseSchema = exports.deviceActivateRequestSchema = exports.deviceDirectorySchema = exports.devicePrincipalSchema = exports.deviceAccountContextSchema = exports.deviceDirectoryProfileSchema = exports.deviceContextRelationshipSchema = exports.sessionAccountsChangedEventSchema = exports.sessionAccountsChangedReasonSchema = exports.SESSION_ACCOUNTS_CHANGED_EVENT = exports.deviceJoinResponseSchema = exports.deviceJoinRequestSchema = exports.deviceJoinCodeResponseSchema = exports.deviceJoinCodeRequestSchema = exports.deviceRegisterResponseSchema = exports.deviceProofSchema = exports.deviceBackgroundTokenResponseSchema = exports.deviceBackgroundTokenRequestSchema = exports.deviceBackgroundCredentialResponseSchema = exports.holderContextEvidenceV1ResponseSchema = exports.holderContextEvidenceV1RequestSchema = exports.deviceContextTokenV1ResponseSchema = exports.deviceContextTokenV1RequestSchema = exports.deviceTokenMintResponseSchema = exports.deviceTokenMintRequestSchema = exports.deviceSessionSyncSchema = exports.activeTokenSchema = exports.deviceSessionStateSchema = exports.sessionAccountSchema = exports.applicationModerationTrustSchema = exports.reputationContextualInfluenceSchema = exports.reputationReviewingSchema = exports.reputationReportingSchema = exports.reputationConductSchema = exports.reputationContributionSchema = exports.reputationPersonhoodSchema = exports.identityBindingSchema = exports.registerIdentityBindingSchema = exports.reverseModerationEffectResultSchema = void 0;
|
|
33
|
+
exports.EMAIL_TICKET_TTL_MS = exports.EMAIL_CODE_MAX_ATTEMPTS = exports.EMAIL_CODE_TTL_MS = exports.EMAIL_CODE_LENGTH = exports.EMAIL_VERIFICATION_PURPOSES = exports.updateRolloutPatchSchema = exports.promoteRequestSchema = exports.rollbackToEmbeddedRequestSchema = exports.rollbackRequestSchema = exports.updateListResponseSchema = exports.channelListResponseSchema = exports.channelSchema = exports.rollbackToEmbeddedEntrySchema = exports.createUpdateResponseSchema = exports.updateSchema = exports.createUpdateRequestSchema = exports.updateAssetRefSchema = exports.assetCompleteResponseSchema = exports.assetCompleteResultItemSchema = exports.assetCompleteRequestSchema = exports.assetInitResponseSchema = exports.assetUploadTicketSchema = exports.assetInitRequestSchema = exports.assetInitItemSchema = exports.rolloutPercentSchema = exports.runtimeVersionSchema = exports.channelNameSchema = exports.sha256HexSchema = exports.updateAssetStatusSchema = exports.updateStatusSchema = exports.updatePlatformSchema = exports.identityRootStatusSchema = exports.identityProofChallengeResponseSchema = exports.identityProofChallengeRequestSchema = exports.identityProofSchema = exports.buildIdentityProofMessage = exports.canonicalJson = exports.IDENTITY_ERROR_CODES = exports.IDENTITY_PROOF_ACTION_VALUES = exports.IDENTITY_PROOF_ACTIONS = exports.IDENTITY_PROOF_CHALLENGE_TTL_MS = exports.IDENTITY_PROOF_AUDIENCE = exports.IDENTITY_PROOF_DOMAIN = exports.IDENTITY_PROOF_VERSION = exports.backupStatusResponseSchema = exports.backupUploadRequestSchema = exports.encryptedBackupEnvelopeSchema = exports.backupLookupIdSchema = exports.identityKeyHistorySchema = exports.rotateKeyCompleteResponseSchema = void 0;
|
|
34
|
+
exports.emailChangeStartRequestSchema = exports.signInMethodRemoveRequestSchema = exports.passwordSetRequestSchema = exports.reauthEmailStartRequestSchema = exports.REAUTH_ACTIONS = exports.reauthProofSchema = exports.isSecondFactorRequired = exports.signUpRequestSchema = exports.secondFactorRequiredSchema = exports.secondFactorSignInRequestSchema = exports.passwordSignInRequestSchema = exports.isEmailSignInChooseAccount = exports.emailSignInChooseRequestSchema = exports.emailSignInChooseAccountSchema = exports.emailSignInAccountOptionSchema = exports.EMAIL_ACCOUNTS_MAX = exports.EMAIL_SIGNIN_CHOICE_TTL_MS = exports.emailSignInPendingSchema = exports.emailSignInLinkResponseSchema = exports.emailSignInLinkRequestSchema = exports.emailSignInCollectRequestSchema = exports.EMAIL_SIGNIN_LONG_CODE_LENGTH = exports.EMAIL_SIGNIN_LONG_CODE_ALPHABET = exports.normalizeEmailSignInCode = exports.emailSignInCodeSchema = exports.emailSignInConfirmRequestSchema = exports.emailSignInStartResponseSchema = exports.emailSignInStartRequestSchema = exports.secondFactorCodeSchema = exports.newPasswordSchema = exports.passwordInputSchema = exports.signInIdentifierSchema = exports.SIGN_IN_ERROR_CODES = exports.TOTP_BACKUP_CODE_COUNT = exports.TOTP_PERIOD_SECONDS = exports.TOTP_DIGITS = exports.SIGN_IN_IDENTIFIER_MAX_LENGTH = exports.SECOND_FACTOR_CODE_MAX_LENGTH = exports.PASSWORD_MAX_LENGTH = exports.PASSWORD_MIN_LENGTH = exports.SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS = exports.SIGNIN_SECOND_FACTOR_TTL_MS = exports.EMAIL_SIGNIN_LINK_TTL_MS = exports.emailVerificationConfirmResponseSchema = exports.emailVerificationConfirmRequestSchema = exports.emailVerificationStartResponseSchema = exports.emailVerificationStartRequestSchema = exports.emailTicketSchema = exports.emailAddressSchema = exports.EMAIL_VERIFICATION_ERROR_CODES = void 0;
|
|
35
|
+
exports.USAGE_UNITS = exports.moneySchema = exports.exactDecimalSchema = exports.INFERENCE_MONEY_SCALE = exports.currencyCodeSchema = exports.RESERVED_ALIA_PUBLISHER = exports.inferenceFundingTierSchema = exports.inferenceRegionSchema = exports.deploymentIdSchema = exports.inferenceProviderSlugSchema = exports.routingProfileSlugSchema = exports.routingProfileIdSchema = exports.modelReferenceSchema = exports.modelRevisionLabelSchema = exports.modelIdSchema = exports.modelSlugSchema = exports.publisherSlugSchema = exports.sha256DigestSchema = exports.inferenceHttpsUrlSchema = exports.inferenceDateSchema = exports.inferenceTimestampSchema = exports.inferenceEnvironmentSchema = exports.idempotencyKeySchema = exports.generationIdSchema = exports.requestIdSchema = exports.oxyCredentialIdSchema = exports.oxyApplicationIdSchema = exports.delegatedUserIdSchema = exports.oxyAccountIdSchema = exports.INFERENCE_CONTRACT_VERSION = exports.transparencyCheckpointListSchema = exports.transparencyInclusionProofSchema = exports.transparencyCheckpointSchema = exports.transparencyAnchorSchema = exports.transparencyCheckpointSignatureSchema = exports.identityLinkCompleteRequestSchema = exports.identityLinkProofRequestSchema = exports.identityLinkStateSchema = exports.identityLinkCreateResponseSchema = exports.parseIdentityLinkQrPayload = exports.buildIdentityLinkQrPayload = exports.identityLinkIdSchema = exports.IDENTITY_LINK_QR_PREFIX = exports.IDENTITY_LINK_STATUSES = exports.totpBackupCodesResponseSchema = exports.totpReauthRequestSchema = exports.totpConfirmRequestSchema = exports.totpEnrollResponseSchema = exports.signInMethodsSchema = exports.emailSetRequestSchema = void 0;
|
|
36
|
+
exports.routingProfileSchema = exports.routingProfileCandidateSchema = exports.modelDeploymentSchema = exports.inferenceProviderSchema = exports.modelRevisionSchema = exports.catalogueModelSchema = exports.modelPublisherSchema = exports.modelSafetyMetadataSchema = exports.modelEvaluationResultSchema = exports.modelDeprecationSchema = exports.commercialPermissionSchema = exports.availabilityScopeSchema = exports.inferenceDataPolicySchema = exports.modelProvenanceSchema = exports.modelLicenseSchema = exports.modelCapabilitiesSchema = exports.modelRealtimeCapabilitiesSchema = exports.realtimeSessionTransportSchema = exports.realtimeSessionKindSchema = exports.inferenceApiFormatSchema = exports.modelPowerClassSchema = exports.powerLevelSchema = exports.reasoningEffortSchema = exports.inferenceOutputModalitySchema = exports.inferenceModalitySchema = exports.priceSnapshotSchema = exports.priceVersionSchema = exports.priceVersionStatusSchema = exports.embeddingResponseSchema = exports.embeddingFailureSchema = exports.embeddingSuccessSchema = exports.embeddingUsageSchema = exports.embeddingVectorSchema = exports.inferenceErrorSchema = exports.providerErrorPassthroughSchema = exports.safeErrorTextSchema = exports.upstreamErrorCategorySchema = exports.inferenceErrorCodeSchema = exports.NON_RETRYABLE_INFERENCE_ERROR_CODES = exports.INFERENCE_ERROR_CODES = exports.inferenceAttributionSchema = exports.authenticatedPrincipalSchema = exports.billingPrincipalSchema = exports.inferenceScopeSchema = exports.INFERENCE_SCOPES = exports.unitPriceSchema = exports.usageQuantitySchema = exports.usageSourceSchema = exports.USAGE_SOURCES = exports.usageUnitSchema = void 0;
|
|
37
|
+
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 = exports.inferenceToolCallSchema = exports.inferenceContentPartSchema = exports.inferenceContentSourceSchema = exports.modelDocumentationSchema = exports.modelReleaseIngestionResultSchema = exports.modelReleaseIngestionRequestSchema = exports.modelLineDeclarationSchema = exports.modelGpaiDocumentationSchema = exports.modelDownstreamDocumentationSchema = exports.SYSTEMIC_RISK_COMPUTE_THRESHOLD_FLOPS = exports.trainingComputeFlopsSchema = exports.modelSystemicRiskTierSchema = exports.modelDistributionMethodSchema = exports.aliaModelReleaseManifestSchema = exports.aliaReleaseSignatureSchema = exports.aliaReleaseArtifactSchema = exports.authorizedRouteSchema = exports.effectiveSameModelDeployment = exports.routingPolicyReferenceSchema = exports.routingPolicySchema = exports.routingFallbackPolicySchema = exports.routingPolicyScopeSchema = exports.routingTargetSchema = exports.modelCatalogueEntrySchema = exports.catalogueServingProviderSummarySchema = exports.cataloguePublisherSummarySchema = void 0;
|
|
38
|
+
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 = 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 = void 0;
|
|
39
|
+
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 = 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 = void 0;
|
|
40
|
+
exports.executionAuthorizationRefSchema = exports.capabilityCatalogBindingSchema = exports.grantLimitSchema = exports.toolGrantOverrideSchema = exports.resourceRefSchema = exports.firstPartyTaskInputSchema = exports.firstPartyExecutionAuthorizationInputSchema = 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 = 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 = void 0;
|
|
41
|
+
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 = 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.catalogToolAllowsActor = exports.catalogToolActors = exports.catalogToolActorTypeSchema = exports.CATALOG_TOOL_DEFAULT_ACTORS = exports.CATALOG_TOOL_ACTOR_TYPES = exports.auditEventSchema = exports.auditResultSchema = exports.policyDecisionSchema = exports.invocationPrincipalSchema = exports.capabilityTicketClaimsSchema = exports.automationDefinitionSchema = exports.automationDataFlowSchema = exports.automationActorSelectionSchema = exports.automationTriggerSchema = exports.agentAvailabilitySchema = exports.applicationAgentSchema = exports.applicationAgentWriteSchema = exports.applicationAgentAvailabilitySchema = exports.APPLICATION_AGENT_AVAILABILITIES = exports.agentRequesterCeilingSchema = exports.agentRequesterCeilingWriteSchema = exports.AGENT_REQUESTER_CEILING_AUTONOMY = exports.delegationGrantSchema = exports.capabilityTicketRequestSchema = exports.capabilityCoordinatorSchema = void 0;
|
|
42
|
+
exports.applicationAccountTotalSchema = exports.applicationAccountRegistrationResponseSchema = exports.applicationAccountRegistrationRequestSchema = exports.APPLICATION_ACCOUNT_TOTAL_MAX_AGE_SECONDS = exports.APPLICATION_ACCOUNT_REGISTRATION_BATCH_MAX = exports.campaignAttributionSchema = exports.safeNumberCheck = exports.integerCheck = exports.urlCheck = exports.isoDateTime = exports.utf16Length = exports.utf16MaxLength = exports.utf16MinLength = exports.FREE_USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLORS = exports.productPlanCatalogueSchema = 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 = exports.subjectProductGrantSnapshotSchema = exports.productAccessGrantSchema = exports.productSubscriptionSourceSchema = exports.productOfferSchema = exports.productBenefitSchema = exports.subjectProductAccessQuerySchema = exports.productDefinitionSchema = exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = 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; } });
|
|
@@ -100,6 +100,7 @@ Object.defineProperty(exports, "BOT_USERNAME_INVALID_MESSAGE", { enumerable: tru
|
|
|
100
100
|
Object.defineProperty(exports, "RESERVED_USERNAME_MESSAGE", { enumerable: true, get: function () { return username_1.RESERVED_USERNAME_MESSAGE; } });
|
|
101
101
|
Object.defineProperty(exports, "NUMERIC_USERNAME_MESSAGE", { enumerable: true, get: function () { return username_1.NUMERIC_USERNAME_MESSAGE; } });
|
|
102
102
|
var userResponse_1 = require("./client/userResponse");
|
|
103
|
+
Object.defineProperty(exports, "PRONOUNS", { enumerable: true, get: function () { return userResponse_1.PRONOUNS; } });
|
|
103
104
|
Object.defineProperty(exports, "PROFILE_LINKS_MAX", { enumerable: true, get: function () { return userResponse_1.PROFILE_LINKS_MAX; } });
|
|
104
105
|
Object.defineProperty(exports, "PROFILE_LINK_TITLE_MAX", { enumerable: true, get: function () { return userResponse_1.PROFILE_LINK_TITLE_MAX; } });
|
|
105
106
|
var userResponse_2 = require("./userResponse");
|
|
@@ -340,6 +341,9 @@ var keyRotation_1 = require("./keyRotation");
|
|
|
340
341
|
Object.defineProperty(exports, "rotateKeyChallengeResponseSchema", { enumerable: true, get: function () { return keyRotation_1.rotateKeyChallengeResponseSchema; } });
|
|
341
342
|
Object.defineProperty(exports, "rotateKeyCompleteRequestSchema", { enumerable: true, get: function () { return keyRotation_1.rotateKeyCompleteRequestSchema; } });
|
|
342
343
|
Object.defineProperty(exports, "rotateKeyCompleteResponseSchema", { enumerable: true, get: function () { return keyRotation_1.rotateKeyCompleteResponseSchema; } });
|
|
344
|
+
// A personal account's current root and the roots rotation replaced
|
|
345
|
+
var identityKeyHistory_1 = require("./identityKeyHistory");
|
|
346
|
+
Object.defineProperty(exports, "identityKeyHistorySchema", { enumerable: true, get: function () { return identityKeyHistory_1.identityKeyHistorySchema; } });
|
|
343
347
|
var keyRecovery_1 = require("./keyRecovery");
|
|
344
348
|
// Schemas — encrypted off-device identity backup (b3 Feature 1)
|
|
345
349
|
Object.defineProperty(exports, "backupLookupIdSchema", { enumerable: true, get: function () { return keyRecovery_1.backupLookupIdSchema; } });
|
|
@@ -908,6 +912,7 @@ __exportStar(require("./serviceToken"), exports);
|
|
|
908
912
|
__exportStar(require("./applicationRoles"), exports);
|
|
909
913
|
__exportStar(require("./contentClaims"), exports);
|
|
910
914
|
__exportStar(require("./appAssertions"), exports);
|
|
915
|
+
__exportStar(require("./platformSession"), exports);
|
|
911
916
|
__exportStar(require("./products/one"), exports);
|
|
912
917
|
var profileColors_generated_1 = require("./profileColors.generated");
|
|
913
918
|
Object.defineProperty(exports, "USER_PROFILE_COLORS", { enumerable: true, get: function () { return profileColors_generated_1.USER_PROFILE_COLORS; } });
|