@oxy.so/contracts 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +675 -201
- package/NOTICE +7 -2
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/identity.js +3 -2
- package/dist/cjs/identityMove.js +111 -40
- package/dist/cjs/identityProof.js +164 -0
- package/dist/cjs/identityRecovery.js +51 -0
- package/dist/cjs/index.js +52 -21
- package/dist/cjs/inference/catalogue.js +23 -1
- package/dist/cjs/inference/identifiers.js +3 -1
- package/dist/cjs/inference/providerConnection.js +1 -1
- package/dist/cjs/inference/request.js +27 -1
- package/dist/cjs/inference/streamEvents.js +24 -2
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/username.js +70 -2
- package/dist/cjs/webIdentityCarrier.js +112 -53
- package/dist/cjs/webauthn.js +14 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/identity.js +3 -2
- package/dist/esm/identityMove.js +105 -39
- package/dist/esm/identityProof.js +159 -0
- package/dist/esm/identityRecovery.js +48 -0
- package/dist/esm/index.js +12 -9
- package/dist/esm/inference/catalogue.js +22 -0
- package/dist/esm/inference/identifiers.js +2 -0
- package/dist/esm/inference/providerConnection.js +2 -2
- package/dist/esm/inference/request.js +27 -1
- package/dist/esm/inference/streamEvents.js +24 -2
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/username.js +69 -1
- package/dist/esm/webIdentityCarrier.js +111 -52
- package/dist/esm/webauthn.js +14 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +7 -7
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/browserHub.d.ts +16 -16
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/externalIdentity.d.ts +7 -7
- package/dist/types/identity.d.ts +3 -2
- package/dist/types/identityMove.d.ts +119 -43
- package/dist/types/identityProof.d.ts +156 -0
- package/dist/types/identityRecovery.d.ts +246 -0
- package/dist/types/index.d.ts +15 -13
- package/dist/types/inference/catalogue.d.ts +51 -0
- package/dist/types/inference/identifiers.d.ts +2 -0
- package/dist/types/inference/modelDocumentation.d.ts +12 -0
- package/dist/types/inference/providerConnection.d.ts +40 -40
- package/dist/types/inference/request.d.ts +119 -36
- package/dist/types/inference/streamEvents.d.ts +57 -1
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/keyRotation.d.ts +2 -2
- package/dist/types/oauth.d.ts +30 -30
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/transparency.d.ts +10 -10
- package/dist/types/userResponse.d.ts +18 -18
- package/dist/types/username.d.ts +25 -2
- package/dist/types/webIdentityCarrier.d.ts +767 -159
- package/dist/types/webauthn.d.ts +208 -0
- package/package.json +2 -2
- package/dist/cjs/devicePairing.js +0 -138
- package/dist/esm/devicePairing.js +0 -135
- package/dist/types/devicePairing.d.ts +0 -130
package/dist/cjs/index.js
CHANGED
|
@@ -25,17 +25,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
25
25
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = exports.inboxNaturalSearchResponseSchema = exports.inboxInferenceTextResponseSchema = exports.inboxMessageInferenceParamsSchema = exports.inboxNaturalSearchRequestSchema = exports.inboxDailyBriefRequestSchema = exports.inboxComposeRequestSchema = exports.emailAgentContextSchema = exports.emailContextMessageSchema = exports.emailContextMailboxSchema = exports.emailContextAddressSchema = exports.normalizedAppEventSchema = exports.catalogRegistrationSchema = exports.appCapabilityCatalogSchema = void 0;
|
|
28
|
+
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.NUMERIC_USERNAME_MESSAGE = exports.RESERVED_USERNAME_MESSAGE = exports.BOT_USERNAME_INVALID_MESSAGE = exports.USERNAME_INVALID_MESSAGE = exports.USERNAME_MAX_LENGTH = exports.USERNAME_MIN_LENGTH = exports.applyBotUsernameSuffix = exports.stripDisallowedUsernameCharacters = exports.isValidUsername = exports.usernameSchemaForAccountKind = exports.usernameSchema = 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.isOperatorSwitchTargetKind = exports.isDelegatedActAsEligibleKind = exports.isAccountKind = exports.childAccountKindSchema = exports.CHILD_ACCOUNT_KINDS = exports.accountKindSchema = exports.ACCOUNT_KINDS = void 0;
|
|
29
|
+
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 = exports.appUserSignalIngestSchema = exports.appInterestInputSchema = exports.appEndorsementInputSchema = exports.recommendationResponseSchema = exports.recommendationItemSchema = exports.recommendationCountSchema = exports.recommendationRequestSchema = exports.recommendationSignalWeightsSchema = exports.recommendationBoostSchema = exports.recommendationExcludeTypeSchema = exports.oxyUserInvalidationEventSchema = exports.isPublishedOxyUserChangeReason = exports.OXY_PUBLISHED_USER_CHANGE_REASONS = exports.OXY_USER_CHANGE_REASONS = void 0;
|
|
30
|
+
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.reverseReputationTransactionSchema = exports.upsertReputationRuleSchema = exports.resolveReputationDisputeSchema = exports.createReputationDisputeSchema = exports.awardReputationSchema = exports.reverseReputationTransactionResultSchema = exports.reputationInfluenceResultSchema = exports.reputationLeaderboardEntrySchema = exports.reputationLeaderboardUserSchema = exports.reputationRuleSchema = exports.reputationDisputeSchema = exports.reputationBalanceSchema = exports.reputationBalanceSummarySchema = exports.reputationReliabilitySchema = exports.reputationInfluenceSchema = exports.reputationBalanceBreakdownSchema = exports.reputationTransactionSchema = exports.reputationInfluenceContextSchema = exports.reputationDisputeStatusSchema = exports.reputationTargetEntityTypeSchema = exports.trustTierSchema = exports.reputationTransactionStatusSchema = exports.reputationCategorySchema = exports.REPUTATION_INFLUENCE_CONTEXTS = exports.REPUTATION_DISPUTE_STATUSES = 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 = void 0;
|
|
31
|
+
exports.deviceActivateResponseSchema = exports.deviceActivateRequestSchema = exports.deviceDirectorySchema = exports.devicePrincipalSchema = exports.deviceAccountContextSchema = exports.deviceDirectoryProfileSchema = exports.deviceContextRelationshipSchema = exports.sessionAccountsChangedEventSchema = exports.sessionAccountsChangedReasonSchema = exports.SESSION_ACCOUNTS_CHANGED_EVENT = exports.deviceBackgroundTokenResponseSchema = exports.deviceBackgroundTokenRequestSchema = exports.deviceBackgroundCredentialResponseSchema = 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 = 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 = void 0;
|
|
32
|
+
exports.IDENTITY_PROOF_ACTIONS = exports.IDENTITY_PROOF_CHALLENGE_TTL_MS = exports.IDENTITY_PROOF_AUDIENCE = exports.IDENTITY_PROOF_DOMAIN = exports.IDENTITY_PROOF_VERSION = exports.webIdentityEnvelopeEstablishSchema = exports.webauthnAssertionResponseSchema = exports.webIdentityEnvelopePutSchema = exports.webIdentityEnvelopeActionSchema = exports.webIdentityEnvelopeProofFieldsSchema = exports.webIdentityEnvelopeResponseSchema = exports.webIdentityHolderSchema = exports.webIdentityEnvelopeUploadSchema = exports.webIdentityEnvelopeSchema = exports.webIdentityWrapSchema = exports.webauthnRpIdSchema = exports.webauthnCredentialIdSchema = exports.webIdentityPublicKeySchema = exports.WEB_IDENTITY_SECRET_KINDS = exports.WEB_IDENTITY_ENVELOPE_VERSION = exports.backupStatusResponseSchema = exports.backupUploadRequestSchema = exports.encryptedBackupEnvelopeSchema = exports.backupLookupIdSchema = exports.rotateKeyCompleteResponseSchema = exports.rotateKeyCompleteRequestSchema = exports.rotateKeyChallengeResponseSchema = exports.loginResultSchema = exports.hubAuthorizeResultSchema = exports.hubAuthorizeRequestSchema = exports.hubActivateRequestSchema = exports.hubClaimRequestSchema = exports.hubSessionSchema = exports.browserHubRevokeResponseSchema = exports.browserHubErrorSchema = exports.browserHubResolveResponseSchema = exports.browserHubHandleResponseSchema = exports.browserHubHandleRequestSchema = exports.browserHubHandleSchema = exports.BROWSER_HUB_HANDLE_TTL_MS = exports.BROWSER_HUB_COOKIE_ATTRIBUTES = exports.BROWSER_HUB_COOKIE_NAME = exports.mcpOAuthConsentResponseSchema = exports.mcpOAuthClientInfoResponseSchema = exports.mcpOAuthConsentContextSchema = exports.mcpOAuthWriteActionSchema = exports.mcpOAuthClientApplicationSchema = exports.oauthAuthorizeCodeResponseSchema = exports.oauthConsentDecisionSchema = exports.deviceDirectorySyncSchema = void 0;
|
|
33
|
+
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.identityMoveStateSchema = exports.identityMoveReceiptRequestSchema = exports.identityMoveSealRequestSchema = exports.identityMoveJoinRequestSchema = exports.identityMoveCreateResponseSchema = exports.identityMoveCreateRequestSchema = exports.identityMoveEphemeralKeySchema = exports.identityMoveIdSchema = exports.buildMoveReceiptMessage = exports.buildMoveCiphertextDigestInput = exports.buildMoveSealPayload = exports.buildMoveSasInput = exports.buildMoveCommitmentInput = exports.identityMoveRevealRequestSchema = exports.IDENTITY_MOVE_QR_PREFIX = exports.IDENTITY_MOVE_STATUSES = exports.IDENTITY_MOVE_TTL_MS = exports.identityRecoveryCompleteRequestSchema = exports.identityRecoveryStartRequestSchema = exports.identityRecoveryChallengeResponseSchema = exports.IDENTITY_RECOVERY_TTL_MS = exports.identityRootStatusSchema = exports.identityProofChallengeResponseSchema = exports.identityProofChallengeRequestSchema = exports.identityProofSchema = exports.buildIdentityProofMessage = exports.canonicalJson = exports.IDENTITY_ERROR_CODES = exports.IDENTITY_PROOF_ACTION_VALUES = void 0;
|
|
34
|
+
exports.inferenceScopeSchema = exports.INFERENCE_SCOPES = exports.unitPriceSchema = exports.usageQuantitySchema = exports.usageSourceSchema = exports.USAGE_SOURCES = exports.usageUnitSchema = exports.USAGE_UNITS = exports.moneySchema = exports.exactDecimalSchema = exports.INFERENCE_MONEY_SCALE = exports.currencyCodeSchema = exports.RESERVED_ALIA_PUBLISHER = 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.webauthnLoginVerifyRequestSchema = exports.webauthnRegisterVerifyRequestSchema = exports.webauthnLoginOptionsRequestSchema = exports.webauthnRegisterOptionsRequestSchema = exports.updateRolloutPatchSchema = exports.promoteRequestSchema = exports.rollbackToEmbeddedRequestSchema = exports.rollbackRequestSchema = exports.updateListResponseSchema = void 0;
|
|
35
|
+
exports.modelSystemicRiskTierSchema = exports.modelDistributionMethodSchema = exports.aliaModelReleaseManifestSchema = exports.aliaReleaseSignatureSchema = exports.aliaReleaseArtifactSchema = exports.authorizedRouteSchema = exports.routingPolicyReferenceSchema = exports.routingPolicySchema = exports.routingFallbackPolicySchema = exports.routingPolicyScopeSchema = exports.routingTargetSchema = exports.modelCatalogueEntrySchema = exports.catalogueServingProviderSummarySchema = exports.cataloguePublisherSummarySchema = 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.reasoningEffortSchema = 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 = void 0;
|
|
36
|
+
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.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.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 = void 0;
|
|
37
|
+
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 = exports.kaanaCredentialRotateMutationSchema = exports.kaanaCredentialCreateMutationSchema = void 0;
|
|
38
|
+
exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = exports.inboxNaturalSearchResponseSchema = exports.inboxInferenceTextResponseSchema = exports.inboxMessageInferenceParamsSchema = exports.inboxNaturalSearchRequestSchema = exports.inboxDailyBriefRequestSchema = exports.inboxComposeRequestSchema = exports.emailAgentContextSchema = exports.emailContextMessageSchema = exports.emailContextMailboxSchema = exports.emailContextAddressSchema = exports.normalizedAppEventSchema = exports.catalogRegistrationSchema = exports.appCapabilityCatalogSchema = exports.catalogEventSchema = exports.catalogToolSchema = exports.auditEventSchema = exports.auditResultSchema = exports.policyDecisionSchema = exports.capabilityTicketClaimsSchema = exports.automationDefinitionSchema = exports.automationDataFlowSchema = exports.automationActorSelectionSchema = exports.automationTriggerSchema = exports.delegationGrantSchema = exports.capabilityCoordinatorSchema = exports.executionAuthorizationRefSchema = exports.capabilityCatalogBindingSchema = exports.grantLimitSchema = exports.toolGrantOverrideSchema = exports.resourceRefSchema = exports.actorRefSchema = exports.capabilityPackageSchema = exports.autonomyLevelSchema = exports.CAPABILITY_PACKAGES = exports.AUTONOMY_LEVELS = exports.productEntitlementSchema = exports.costCenterSpendSchema = exports.costCenterSchema = exports.costCenterStatusSchema = exports.COST_CENTER_STATUSES = exports.payAsYouGoEntitlementSchema = exports.productPlanSchema = void 0;
|
|
39
39
|
var accountGraph_1 = require("./accountGraph");
|
|
40
40
|
Object.defineProperty(exports, "ACCOUNT_KINDS", { enumerable: true, get: function () { return accountGraph_1.ACCOUNT_KINDS; } });
|
|
41
41
|
Object.defineProperty(exports, "accountKindSchema", { enumerable: true, get: function () { return accountGraph_1.accountKindSchema; } });
|
|
@@ -65,6 +65,8 @@ Object.defineProperty(exports, "USERNAME_MIN_LENGTH", { enumerable: true, get: f
|
|
|
65
65
|
Object.defineProperty(exports, "USERNAME_MAX_LENGTH", { enumerable: true, get: function () { return username_1.USERNAME_MAX_LENGTH; } });
|
|
66
66
|
Object.defineProperty(exports, "USERNAME_INVALID_MESSAGE", { enumerable: true, get: function () { return username_1.USERNAME_INVALID_MESSAGE; } });
|
|
67
67
|
Object.defineProperty(exports, "BOT_USERNAME_INVALID_MESSAGE", { enumerable: true, get: function () { return username_1.BOT_USERNAME_INVALID_MESSAGE; } });
|
|
68
|
+
Object.defineProperty(exports, "RESERVED_USERNAME_MESSAGE", { enumerable: true, get: function () { return username_1.RESERVED_USERNAME_MESSAGE; } });
|
|
69
|
+
Object.defineProperty(exports, "NUMERIC_USERNAME_MESSAGE", { enumerable: true, get: function () { return username_1.NUMERIC_USERNAME_MESSAGE; } });
|
|
68
70
|
var userResponse_1 = require("./userResponse");
|
|
69
71
|
// Schemas
|
|
70
72
|
Object.defineProperty(exports, "userNameSchema", { enumerable: true, get: function () { return userResponse_1.userNameSchema; } });
|
|
@@ -315,20 +317,52 @@ Object.defineProperty(exports, "backupStatusResponseSchema", { enumerable: true,
|
|
|
315
317
|
var webIdentityCarrier_1 = require("./webIdentityCarrier");
|
|
316
318
|
// Schemas — web identity carrier (one identity, two carriers)
|
|
317
319
|
Object.defineProperty(exports, "WEB_IDENTITY_ENVELOPE_VERSION", { enumerable: true, get: function () { return webIdentityCarrier_1.WEB_IDENTITY_ENVELOPE_VERSION; } });
|
|
320
|
+
Object.defineProperty(exports, "WEB_IDENTITY_SECRET_KINDS", { enumerable: true, get: function () { return webIdentityCarrier_1.WEB_IDENTITY_SECRET_KINDS; } });
|
|
318
321
|
Object.defineProperty(exports, "webIdentityPublicKeySchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityPublicKeySchema; } });
|
|
319
322
|
Object.defineProperty(exports, "webauthnCredentialIdSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webauthnCredentialIdSchema; } });
|
|
323
|
+
Object.defineProperty(exports, "webauthnRpIdSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webauthnRpIdSchema; } });
|
|
320
324
|
Object.defineProperty(exports, "webIdentityWrapSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityWrapSchema; } });
|
|
321
325
|
Object.defineProperty(exports, "webIdentityEnvelopeSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeSchema; } });
|
|
322
326
|
Object.defineProperty(exports, "webIdentityEnvelopeUploadSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeUploadSchema; } });
|
|
327
|
+
Object.defineProperty(exports, "webIdentityHolderSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityHolderSchema; } });
|
|
323
328
|
Object.defineProperty(exports, "webIdentityEnvelopeResponseSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeResponseSchema; } });
|
|
324
|
-
Object.defineProperty(exports, "
|
|
329
|
+
Object.defineProperty(exports, "webIdentityEnvelopeProofFieldsSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeProofFieldsSchema; } });
|
|
330
|
+
Object.defineProperty(exports, "webIdentityEnvelopeActionSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeActionSchema; } });
|
|
325
331
|
Object.defineProperty(exports, "webIdentityEnvelopePutSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopePutSchema; } });
|
|
332
|
+
Object.defineProperty(exports, "webauthnAssertionResponseSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webauthnAssertionResponseSchema; } });
|
|
326
333
|
Object.defineProperty(exports, "webIdentityEnvelopeEstablishSchema", { enumerable: true, get: function () { return webIdentityCarrier_1.webIdentityEnvelopeEstablishSchema; } });
|
|
334
|
+
var identityProof_1 = require("./identityProof");
|
|
335
|
+
// Identity proofs (ADR 0024 D7) — the one signed format for root operations
|
|
336
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_VERSION", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_VERSION; } });
|
|
337
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_DOMAIN", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_DOMAIN; } });
|
|
338
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_AUDIENCE", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_AUDIENCE; } });
|
|
339
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_CHALLENGE_TTL_MS", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_CHALLENGE_TTL_MS; } });
|
|
340
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_ACTIONS", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_ACTIONS; } });
|
|
341
|
+
Object.defineProperty(exports, "IDENTITY_PROOF_ACTION_VALUES", { enumerable: true, get: function () { return identityProof_1.IDENTITY_PROOF_ACTION_VALUES; } });
|
|
342
|
+
Object.defineProperty(exports, "IDENTITY_ERROR_CODES", { enumerable: true, get: function () { return identityProof_1.IDENTITY_ERROR_CODES; } });
|
|
343
|
+
Object.defineProperty(exports, "canonicalJson", { enumerable: true, get: function () { return identityProof_1.canonicalJson; } });
|
|
344
|
+
Object.defineProperty(exports, "buildIdentityProofMessage", { enumerable: true, get: function () { return identityProof_1.buildIdentityProofMessage; } });
|
|
345
|
+
Object.defineProperty(exports, "identityProofSchema", { enumerable: true, get: function () { return identityProof_1.identityProofSchema; } });
|
|
346
|
+
Object.defineProperty(exports, "identityProofChallengeRequestSchema", { enumerable: true, get: function () { return identityProof_1.identityProofChallengeRequestSchema; } });
|
|
347
|
+
Object.defineProperty(exports, "identityProofChallengeResponseSchema", { enumerable: true, get: function () { return identityProof_1.identityProofChallengeResponseSchema; } });
|
|
348
|
+
Object.defineProperty(exports, "identityRootStatusSchema", { enumerable: true, get: function () { return identityProof_1.identityRootStatusSchema; } });
|
|
349
|
+
var identityRecovery_1 = require("./identityRecovery");
|
|
350
|
+
// Signed-out recovery (ADR 0024 D5)
|
|
351
|
+
Object.defineProperty(exports, "IDENTITY_RECOVERY_TTL_MS", { enumerable: true, get: function () { return identityRecovery_1.IDENTITY_RECOVERY_TTL_MS; } });
|
|
352
|
+
Object.defineProperty(exports, "identityRecoveryChallengeResponseSchema", { enumerable: true, get: function () { return identityRecovery_1.identityRecoveryChallengeResponseSchema; } });
|
|
353
|
+
Object.defineProperty(exports, "identityRecoveryStartRequestSchema", { enumerable: true, get: function () { return identityRecovery_1.identityRecoveryStartRequestSchema; } });
|
|
354
|
+
Object.defineProperty(exports, "identityRecoveryCompleteRequestSchema", { enumerable: true, get: function () { return identityRecovery_1.identityRecoveryCompleteRequestSchema; } });
|
|
327
355
|
var identityMove_1 = require("./identityMove");
|
|
328
356
|
// Schemas — moving a web identity into Commons
|
|
329
357
|
Object.defineProperty(exports, "IDENTITY_MOVE_TTL_MS", { enumerable: true, get: function () { return identityMove_1.IDENTITY_MOVE_TTL_MS; } });
|
|
330
358
|
Object.defineProperty(exports, "IDENTITY_MOVE_STATUSES", { enumerable: true, get: function () { return identityMove_1.IDENTITY_MOVE_STATUSES; } });
|
|
331
359
|
Object.defineProperty(exports, "IDENTITY_MOVE_QR_PREFIX", { enumerable: true, get: function () { return identityMove_1.IDENTITY_MOVE_QR_PREFIX; } });
|
|
360
|
+
Object.defineProperty(exports, "identityMoveRevealRequestSchema", { enumerable: true, get: function () { return identityMove_1.identityMoveRevealRequestSchema; } });
|
|
361
|
+
Object.defineProperty(exports, "buildMoveCommitmentInput", { enumerable: true, get: function () { return identityMove_1.buildMoveCommitmentInput; } });
|
|
362
|
+
Object.defineProperty(exports, "buildMoveSasInput", { enumerable: true, get: function () { return identityMove_1.buildMoveSasInput; } });
|
|
363
|
+
Object.defineProperty(exports, "buildMoveSealPayload", { enumerable: true, get: function () { return identityMove_1.buildMoveSealPayload; } });
|
|
364
|
+
Object.defineProperty(exports, "buildMoveCiphertextDigestInput", { enumerable: true, get: function () { return identityMove_1.buildMoveCiphertextDigestInput; } });
|
|
365
|
+
Object.defineProperty(exports, "buildMoveReceiptMessage", { enumerable: true, get: function () { return identityMove_1.buildMoveReceiptMessage; } });
|
|
332
366
|
Object.defineProperty(exports, "identityMoveIdSchema", { enumerable: true, get: function () { return identityMove_1.identityMoveIdSchema; } });
|
|
333
367
|
Object.defineProperty(exports, "identityMoveEphemeralKeySchema", { enumerable: true, get: function () { return identityMove_1.identityMoveEphemeralKeySchema; } });
|
|
334
368
|
Object.defineProperty(exports, "identityMoveCreateRequestSchema", { enumerable: true, get: function () { return identityMove_1.identityMoveCreateRequestSchema; } });
|
|
@@ -375,15 +409,6 @@ Object.defineProperty(exports, "webauthnRegisterOptionsRequestSchema", { enumera
|
|
|
375
409
|
Object.defineProperty(exports, "webauthnLoginOptionsRequestSchema", { enumerable: true, get: function () { return webauthn_1.webauthnLoginOptionsRequestSchema; } });
|
|
376
410
|
Object.defineProperty(exports, "webauthnRegisterVerifyRequestSchema", { enumerable: true, get: function () { return webauthn_1.webauthnRegisterVerifyRequestSchema; } });
|
|
377
411
|
Object.defineProperty(exports, "webauthnLoginVerifyRequestSchema", { enumerable: true, get: function () { return webauthn_1.webauthnLoginVerifyRequestSchema; } });
|
|
378
|
-
var devicePairing_1 = require("./devicePairing");
|
|
379
|
-
// Schemas
|
|
380
|
-
Object.defineProperty(exports, "devicePairingStatusSchema", { enumerable: true, get: function () { return devicePairing_1.devicePairingStatusSchema; } });
|
|
381
|
-
Object.defineProperty(exports, "deviceTransferInitRequestSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferInitRequestSchema; } });
|
|
382
|
-
Object.defineProperty(exports, "deviceTransferInitResponseSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferInitResponseSchema; } });
|
|
383
|
-
Object.defineProperty(exports, "deviceTransferInfoResponseSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferInfoResponseSchema; } });
|
|
384
|
-
Object.defineProperty(exports, "deviceTransferApproveRequestSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferApproveRequestSchema; } });
|
|
385
|
-
Object.defineProperty(exports, "deviceTransferApproveResponseSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferApproveResponseSchema; } });
|
|
386
|
-
Object.defineProperty(exports, "deviceTransferDenyResponseSchema", { enumerable: true, get: function () { return devicePairing_1.deviceTransferDenyResponseSchema; } });
|
|
387
412
|
var transparency_1 = require("./transparency");
|
|
388
413
|
// Schemas — transparency log (checkpoints + inclusion proofs)
|
|
389
414
|
Object.defineProperty(exports, "transparencyCheckpointSignatureSchema", { enumerable: true, get: function () { return transparency_1.transparencyCheckpointSignatureSchema; } });
|
|
@@ -467,6 +492,7 @@ Object.defineProperty(exports, "priceSnapshotSchema", { enumerable: true, get: f
|
|
|
467
492
|
var catalogue_1 = require("./inference/catalogue");
|
|
468
493
|
// The six distinct catalogue objects + the customer-safe projection.
|
|
469
494
|
Object.defineProperty(exports, "inferenceModalitySchema", { enumerable: true, get: function () { return catalogue_1.inferenceModalitySchema; } });
|
|
495
|
+
Object.defineProperty(exports, "reasoningEffortSchema", { enumerable: true, get: function () { return catalogue_1.reasoningEffortSchema; } });
|
|
470
496
|
Object.defineProperty(exports, "modelCapabilitiesSchema", { enumerable: true, get: function () { return catalogue_1.modelCapabilitiesSchema; } });
|
|
471
497
|
Object.defineProperty(exports, "modelLicenseSchema", { enumerable: true, get: function () { return catalogue_1.modelLicenseSchema; } });
|
|
472
498
|
Object.defineProperty(exports, "modelProvenanceSchema", { enumerable: true, get: function () { return catalogue_1.modelProvenanceSchema; } });
|
|
@@ -524,15 +550,20 @@ Object.defineProperty(exports, "inferenceMessageRoleSchema", { enumerable: true,
|
|
|
524
550
|
Object.defineProperty(exports, "inferenceMessageSchema", { enumerable: true, get: function () { return request_1.inferenceMessageSchema; } });
|
|
525
551
|
Object.defineProperty(exports, "inferenceInputSchema", { enumerable: true, get: function () { return request_1.inferenceInputSchema; } });
|
|
526
552
|
Object.defineProperty(exports, "samplingParametersSchema", { enumerable: true, get: function () { return request_1.samplingParametersSchema; } });
|
|
553
|
+
Object.defineProperty(exports, "inferenceReasoningSchema", { enumerable: true, get: function () { return request_1.inferenceReasoningSchema; } });
|
|
527
554
|
Object.defineProperty(exports, "toolDefinitionSchema", { enumerable: true, get: function () { return request_1.toolDefinitionSchema; } });
|
|
528
555
|
Object.defineProperty(exports, "toolChoiceSchema", { enumerable: true, get: function () { return request_1.toolChoiceSchema; } });
|
|
529
556
|
Object.defineProperty(exports, "responseFormatSchema", { enumerable: true, get: function () { return request_1.responseFormatSchema; } });
|
|
530
557
|
Object.defineProperty(exports, "clientRequestMetadataSchema", { enumerable: true, get: function () { return request_1.clientRequestMetadataSchema; } });
|
|
531
558
|
Object.defineProperty(exports, "inferenceRequestSchema", { enumerable: true, get: function () { return request_1.inferenceRequestSchema; } });
|
|
559
|
+
Object.defineProperty(exports, "inferenceSpeechParametersSchema", { enumerable: true, get: function () { return request_1.inferenceSpeechParametersSchema; } });
|
|
532
560
|
var streamEvents_1 = require("./inference/streamEvents");
|
|
533
561
|
// Normalized SSE events.
|
|
534
562
|
Object.defineProperty(exports, "inferenceStreamStartEventSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceStreamStartEventSchema; } });
|
|
535
563
|
Object.defineProperty(exports, "inferenceStreamDeltaEventSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceStreamDeltaEventSchema; } });
|
|
564
|
+
Object.defineProperty(exports, "inferenceAudioMediaTypeSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceAudioMediaTypeSchema; } });
|
|
565
|
+
Object.defineProperty(exports, "MAX_INFERENCE_AUDIO_BYTES", { enumerable: true, get: function () { return streamEvents_1.MAX_INFERENCE_AUDIO_BYTES; } });
|
|
566
|
+
Object.defineProperty(exports, "inferenceStreamAudioEventSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceStreamAudioEventSchema; } });
|
|
536
567
|
Object.defineProperty(exports, "inferenceStreamToolCallEventSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceStreamToolCallEventSchema; } });
|
|
537
568
|
Object.defineProperty(exports, "inferenceStreamUsageEventSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceStreamUsageEventSchema; } });
|
|
538
569
|
Object.defineProperty(exports, "inferenceRouteSwitchDetailSchema", { enumerable: true, get: function () { return streamEvents_1.inferenceRouteSwitchDetailSchema; } });
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* Decided in: docs/adr/0008-catalogue-concept-separation.md.
|
|
29
29
|
*/
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.modelCatalogueEntrySchema = exports.catalogueServingProviderSummarySchema = exports.cataloguePublisherSummarySchema = 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.inferenceModalitySchema = void 0;
|
|
31
|
+
exports.modelCatalogueEntrySchema = exports.catalogueServingProviderSummarySchema = exports.cataloguePublisherSummarySchema = 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.reasoningEffortSchema = exports.inferenceModalitySchema = void 0;
|
|
32
32
|
const zod_1 = require("zod");
|
|
33
33
|
const identifiers_1 = require("./identifiers");
|
|
34
34
|
const priceVersion_1 = require("./priceVersion");
|
|
@@ -43,6 +43,15 @@ exports.inferenceModalitySchema = zod_1.z.enum([
|
|
|
43
43
|
'video',
|
|
44
44
|
'embedding',
|
|
45
45
|
]);
|
|
46
|
+
/**
|
|
47
|
+
* How hard a reasoning model is asked to think before it answers.
|
|
48
|
+
*
|
|
49
|
+
* A closed, provider-neutral vocabulary: Kaana translates each value into the
|
|
50
|
+
* serving provider's own control. A model advertises the subset it accepts in
|
|
51
|
+
* `modelCapabilitiesSchema.reasoningEfforts`, and Oxy refuses a request for an
|
|
52
|
+
* effort the resolved model does not advertise rather than dropping it.
|
|
53
|
+
*/
|
|
54
|
+
exports.reasoningEffortSchema = zod_1.z.enum(['low', 'medium', 'high']);
|
|
46
55
|
/**
|
|
47
56
|
* What a model can do, in the terms a caller has to decide against before
|
|
48
57
|
* sending a request: can it call tools, does it accept images, will it honour a
|
|
@@ -57,6 +66,13 @@ exports.modelCapabilitiesSchema = zod_1.z
|
|
|
57
66
|
structuredOutput: zod_1.z.boolean(),
|
|
58
67
|
jsonMode: zod_1.z.boolean(),
|
|
59
68
|
reasoning: zod_1.z.boolean(),
|
|
69
|
+
/**
|
|
70
|
+
* The reasoning efforts a request may name for this model, in the order
|
|
71
|
+
* low → high. Empty means the model takes no effort control at all (it may
|
|
72
|
+
* still reason: `reasoning` answers that). Added in contract set 3.1.0;
|
|
73
|
+
* absent on the wire from an older producer, it parses as `[]`.
|
|
74
|
+
*/
|
|
75
|
+
reasoningEfforts: zod_1.z.array(exports.reasoningEffortSchema).default([]),
|
|
60
76
|
streaming: zod_1.z.boolean(),
|
|
61
77
|
promptCaching: zod_1.z.boolean(),
|
|
62
78
|
maxContextTokens: zod_1.z.number().int().positive().safe(),
|
|
@@ -472,6 +488,12 @@ exports.modelCatalogueEntrySchema = zod_1.z.object({
|
|
|
472
488
|
provenance: exports.modelProvenanceSchema,
|
|
473
489
|
knowledgeCutoff: identifiers_1.inferenceDateSchema.optional(),
|
|
474
490
|
releasedOn: identifiers_1.inferenceDateSchema.optional(),
|
|
491
|
+
/**
|
|
492
|
+
* When the upstream provider first published this model, as that provider
|
|
493
|
+
* reports it. Present only when a provider reported it; never an Oxy or Kaana
|
|
494
|
+
* observation time. Lets a picker order models newest first.
|
|
495
|
+
*/
|
|
496
|
+
releasedAt: identifiers_1.inferenceTimestampSchema.optional(),
|
|
475
497
|
regions: zod_1.z.array(identifiers_1.inferenceRegionSchema).default([]),
|
|
476
498
|
servingProviders: zod_1.z.array(exports.catalogueServingProviderSummarySchema).default([]),
|
|
477
499
|
dataPolicy: exports.inferenceDataPolicySchema,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Decided in: docs/adr/0007-canonical-request-attribution.md, docs/adr/0008-catalogue-concept-separation.md.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.RESERVED_ALIA_PUBLISHER = exports.inferenceRegionSchema = exports.deploymentIdSchema = exports.inferenceProviderSlugSchema = exports.routingProfileIdSchema = exports.routingProfileSlugSchema = 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 = void 0;
|
|
22
|
+
exports.RESERVED_ALIA_PUBLISHER = exports.inferenceRegionSchema = exports.deploymentIdSchema = exports.inferenceProviderSlugSchema = exports.routingProfileIdSchema = exports.routingProfileSlugSchema = exports.modelReferenceSchema = exports.modelRevisionLabelSchema = exports.modelIdSchema = exports.modelSlugSchema = exports.publisherSlugSchema = exports.PADDED_BASE64_PATTERN = exports.sha256DigestSchema = exports.inferenceHttpsUrlSchema = exports.inferenceDateSchema = exports.inferenceTimestampSchema = exports.inferenceEnvironmentSchema = exports.idempotencyKeySchema = exports.generationIdSchema = exports.requestIdSchema = exports.oxyCredentialIdSchema = exports.oxyApplicationIdSchema = exports.delegatedUserIdSchema = exports.oxyAccountIdSchema = void 0;
|
|
23
23
|
const zod_1 = require("zod");
|
|
24
24
|
/* -------------------------------------------------------------------------- */
|
|
25
25
|
/* Principal identifiers */
|
|
@@ -129,6 +129,8 @@ exports.inferenceHttpsUrlSchema = zod_1.z
|
|
|
129
129
|
exports.sha256DigestSchema = zod_1.z
|
|
130
130
|
.string()
|
|
131
131
|
.regex(/^sha256:[a-f0-9]{64}$/, 'digest must be sha256:<64 lowercase hex>');
|
|
132
|
+
/** Standard base64 in whole, padded 4-character groups. */
|
|
133
|
+
exports.PADDED_BASE64_PATTERN = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
132
134
|
/* -------------------------------------------------------------------------- */
|
|
133
135
|
/* Catalogue references */
|
|
134
136
|
/* -------------------------------------------------------------------------- */
|
|
@@ -114,7 +114,7 @@ const kaanaCredentialSecretBase64Schema = zod_1.z
|
|
|
114
114
|
.string()
|
|
115
115
|
.min(1)
|
|
116
116
|
.max(8192)
|
|
117
|
-
.regex(
|
|
117
|
+
.regex(identifiers_1.PADDED_BASE64_PATTERN)
|
|
118
118
|
.refine(isVisibleASCIIProviderCredential, {
|
|
119
119
|
message: 'a decoded provider credential is 1-4096 visible ASCII bytes',
|
|
120
120
|
});
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* docs/adr/0017-authorized-routes-in-the-envelope.md.
|
|
26
26
|
*/
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.inferenceRequestSchema = exports.clientRequestMetadataSchema = exports.responseFormatSchema = exports.toolChoiceSchema = exports.toolDefinitionSchema = exports.samplingParametersSchema = exports.inferenceInputSchema = exports.inferenceMessageSchema = exports.inferenceMessageRoleSchema = exports.inferenceToolCallSchema = exports.inferenceContentPartSchema = exports.inferenceContentSourceSchema = void 0;
|
|
28
|
+
exports.inferenceRequestSchema = exports.inferenceSpeechParametersSchema = exports.clientRequestMetadataSchema = exports.inferenceReasoningSchema = exports.responseFormatSchema = exports.toolChoiceSchema = exports.toolDefinitionSchema = exports.samplingParametersSchema = exports.inferenceInputSchema = exports.inferenceMessageSchema = exports.inferenceMessageRoleSchema = exports.inferenceToolCallSchema = exports.inferenceContentPartSchema = exports.inferenceContentSourceSchema = void 0;
|
|
29
29
|
const zod_1 = require("zod");
|
|
30
30
|
const attribution_1 = require("./attribution");
|
|
31
31
|
const catalogue_1 = require("./catalogue");
|
|
@@ -263,6 +263,16 @@ exports.responseFormatSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
263
263
|
})
|
|
264
264
|
.strict(),
|
|
265
265
|
]);
|
|
266
|
+
/**
|
|
267
|
+
* The caller's reasoning control. Strict, like every leaf: a provider-specific
|
|
268
|
+
* knob (`budget_tokens`, `summary`) is refused rather than silently dropped.
|
|
269
|
+
*
|
|
270
|
+
* Oxy forwards it only after checking the resolved model advertises the effort
|
|
271
|
+
* in its catalogue `reasoningEfforts`; Kaana translates it per provider.
|
|
272
|
+
*/
|
|
273
|
+
exports.inferenceReasoningSchema = zod_1.z
|
|
274
|
+
.object({ effort: catalogue_1.reasoningEffortSchema })
|
|
275
|
+
.strict();
|
|
266
276
|
/* -------------------------------------------------------------------------- */
|
|
267
277
|
/* Client metadata */
|
|
268
278
|
/* -------------------------------------------------------------------------- */
|
|
@@ -314,6 +324,12 @@ const modelLineOf = (reference) => {
|
|
|
314
324
|
const at = reference.indexOf("@");
|
|
315
325
|
return at === -1 ? reference : reference.slice(0, at);
|
|
316
326
|
};
|
|
327
|
+
/** Parameters for text-to-speech, preserved in the signed request. */
|
|
328
|
+
exports.inferenceSpeechParametersSchema = zod_1.z.object({
|
|
329
|
+
voice: zod_1.z.string().min(1).max(64),
|
|
330
|
+
responseFormat: zod_1.z.enum(["mp3", "opus", "aac", "flac", "wav", "pcm"]),
|
|
331
|
+
speed: zod_1.z.number().min(0.25).max(4).optional(),
|
|
332
|
+
}).strict();
|
|
317
333
|
/**
|
|
318
334
|
* The canonical internal request Oxy forwards to the data plane.
|
|
319
335
|
*
|
|
@@ -333,6 +349,9 @@ exports.inferenceRequestSchema = zod_1.z
|
|
|
333
349
|
stream: zod_1.z.boolean(),
|
|
334
350
|
maxOutputTokens: zod_1.z.number().int().positive().safe().optional(),
|
|
335
351
|
sampling: exports.samplingParametersSchema,
|
|
352
|
+
/** Absent means the route's own default reasoning behaviour. */
|
|
353
|
+
reasoning: exports.inferenceReasoningSchema.optional(),
|
|
354
|
+
speech: exports.inferenceSpeechParametersSchema.optional(),
|
|
336
355
|
tools: zod_1.z.array(exports.toolDefinitionSchema).default([]),
|
|
337
356
|
toolChoice: exports.toolChoiceSchema.optional(),
|
|
338
357
|
responseFormat: exports.responseFormatSchema.optional(),
|
|
@@ -375,6 +394,13 @@ exports.inferenceRequestSchema = zod_1.z
|
|
|
375
394
|
authorizedRoutes: zod_1.z.array(routingPolicy_1.authorizedRouteSchema).min(1).optional(),
|
|
376
395
|
})
|
|
377
396
|
.superRefine((request, ctx) => {
|
|
397
|
+
const isSpeech = request.client.apiFormat === "audio_speech";
|
|
398
|
+
if (isSpeech && request.speech !== undefined && (request.modality !== "audio" || request.input.format !== "text" || request.stream)) {
|
|
399
|
+
ctx.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ["speech"], message: "speech requires audio modality, text input, parameters and non-streaming output" });
|
|
400
|
+
}
|
|
401
|
+
if (!isSpeech && request.speech !== undefined) {
|
|
402
|
+
ctx.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ["speech"], message: "speech parameters require the audio_speech API format" });
|
|
403
|
+
}
|
|
378
404
|
if (request.toolChoice !== undefined && request.tools.length === 0) {
|
|
379
405
|
ctx.addIssue({
|
|
380
406
|
code: zod_1.z.ZodIssueCode.custom,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Normalized stream events — what the data plane emits and the Oxy edge
|
|
4
4
|
* forwards as SSE.
|
|
5
5
|
*
|
|
6
|
-
* One discriminated union,
|
|
6
|
+
* One discriminated union, eight shapes, all carrying `requestId` and a
|
|
7
7
|
* monotonic `sequence`. `requestId` is on EVERY event rather than only the
|
|
8
8
|
* first because a proxy that re-frames or a client that reconnects would
|
|
9
9
|
* otherwise be holding events it cannot attribute; `sequence` is what makes a
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* Decided in: docs/adr/0010-public-api-compatibility.md, docs/adr/0008-catalogue-concept-separation.md.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.inferenceStreamEventSchema = exports.inferenceStreamDoneEventSchema = exports.inferenceFinishReasonSchema = exports.inferenceStreamErrorEventSchema = exports.inferenceStreamRouteSwitchEventSchema = exports.inferenceRouteSwitchReasonSchema = exports.inferenceRouteSwitchDetailSchema = exports.inferenceStreamUsageEventSchema = exports.inferenceStreamToolCallEventSchema = exports.inferenceStreamDeltaEventSchema = exports.inferenceStreamStartEventSchema = void 0;
|
|
25
|
+
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 = void 0;
|
|
26
26
|
const zod_1 = require("zod");
|
|
27
27
|
const identifiers_1 = require("./identifiers");
|
|
28
28
|
const errors_1 = require("./errors");
|
|
@@ -65,6 +65,27 @@ exports.inferenceStreamDeltaEventSchema = zod_1.z.object({
|
|
|
65
65
|
channel: zod_1.z.enum(['output_text', 'reasoning', 'refusal']),
|
|
66
66
|
text: zod_1.z.string(),
|
|
67
67
|
});
|
|
68
|
+
/** The encodings an audio output may carry. */
|
|
69
|
+
exports.inferenceAudioMediaTypeSchema = zod_1.z.enum([
|
|
70
|
+
'audio/mpeg',
|
|
71
|
+
'audio/wav',
|
|
72
|
+
'audio/ogg',
|
|
73
|
+
'audio/aac',
|
|
74
|
+
'audio/flac',
|
|
75
|
+
'audio/pcm',
|
|
76
|
+
]);
|
|
77
|
+
/** The most bytes one folded audio output may hold, at the edge and in the SDK. */
|
|
78
|
+
exports.MAX_INFERENCE_AUDIO_BYTES = 20 * 1024 * 1024;
|
|
79
|
+
/** A bounded, independently base64-encoded chunk of one audio output. */
|
|
80
|
+
exports.inferenceStreamAudioEventSchema = zod_1.z.object({
|
|
81
|
+
schemaVersion: zod_1.z.literal(1),
|
|
82
|
+
type: zod_1.z.literal('audio'),
|
|
83
|
+
requestId: identifiers_1.requestIdSchema,
|
|
84
|
+
sequence: zod_1.z.number().int().nonnegative().safe(),
|
|
85
|
+
outputIndex: zod_1.z.number().int().nonnegative().safe(),
|
|
86
|
+
mediaType: exports.inferenceAudioMediaTypeSchema,
|
|
87
|
+
data: zod_1.z.string().min(4).max(65536).regex(identifiers_1.PADDED_BASE64_PATTERN),
|
|
88
|
+
});
|
|
68
89
|
/**
|
|
69
90
|
* A tool call being streamed.
|
|
70
91
|
*
|
|
@@ -250,6 +271,7 @@ exports.inferenceStreamDoneEventSchema = zod_1.z.object({
|
|
|
250
271
|
exports.inferenceStreamEventSchema = zod_1.z.discriminatedUnion('type', [
|
|
251
272
|
exports.inferenceStreamStartEventSchema,
|
|
252
273
|
exports.inferenceStreamDeltaEventSchema,
|
|
274
|
+
exports.inferenceStreamAudioEventSchema,
|
|
253
275
|
exports.inferenceStreamToolCallEventSchema,
|
|
254
276
|
exports.inferenceStreamUsageEventSchema,
|
|
255
277
|
exports.inferenceStreamRouteSwitchEventSchema,
|
|
@@ -102,4 +102,4 @@ exports.INFERENCE_CONTRACT_VERSION = void 0;
|
|
|
102
102
|
* change to, say, the catalogue reject every in-flight inference request; the
|
|
103
103
|
* per-shape `schemaVersion` is what a message is validated against.
|
|
104
104
|
*/
|
|
105
|
-
exports.INFERENCE_CONTRACT_VERSION = '3.
|
|
105
|
+
exports.INFERENCE_CONTRACT_VERSION = '3.1.0';
|
package/dist/cjs/username.js
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
* knows what is taken, and it must not pretend to.
|
|
101
101
|
*/
|
|
102
102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103
|
-
exports.botUsernameSchema = exports.BOT_USERNAME_INVALID_MESSAGE = exports.BOT_USERNAME_SUFFIX = exports.usernameSchema = exports.USERNAME_PATTERN_SOURCE = exports.USERNAME_INVALID_MESSAGE = exports.USERNAME_MAX_LENGTH = exports.USERNAME_MIN_LENGTH = void 0;
|
|
103
|
+
exports.botUsernameSchema = exports.BOT_USERNAME_INVALID_MESSAGE = exports.BOT_USERNAME_SUFFIX = exports.usernameSchema = exports.USERNAME_PATTERN_SOURCE = exports.NUMERIC_USERNAME_MESSAGE = exports.RESERVED_USERNAME_MESSAGE = exports.RESERVED_USERNAMES = exports.USERNAME_INVALID_MESSAGE = exports.USERNAME_MAX_LENGTH = exports.USERNAME_MIN_LENGTH = void 0;
|
|
104
104
|
exports.isValidUsername = isValidUsername;
|
|
105
105
|
exports.stripDisallowedUsernameCharacters = stripDisallowedUsernameCharacters;
|
|
106
106
|
exports.usernameSchemaForAccountKind = usernameSchemaForAccountKind;
|
|
@@ -113,6 +113,71 @@ exports.USERNAME_MAX_LENGTH = 30;
|
|
|
113
113
|
/** The 400 / inline-validation copy for every path that rejects a handle. */
|
|
114
114
|
exports.USERNAME_INVALID_MESSAGE = 'Username must be 3-30 characters, use only letters, numbers, hyphens and underscores, ' +
|
|
115
115
|
'start and end with a letter or number, and never repeat a separator';
|
|
116
|
+
/**
|
|
117
|
+
* Exact-match handles nobody may newly claim, regardless of account kind.
|
|
118
|
+
*
|
|
119
|
+
* This is NOT a namespace tightening like the bot suffix — it is a list of
|
|
120
|
+
* names withheld from `users_lower_username_key` before anybody asks for
|
|
121
|
+
* them. Compared against the same normalization the unique index applies
|
|
122
|
+
* (`lower(btrim(username))`), so `Admin`, ` ADMIN ` and `admin` are the one
|
|
123
|
+
* name this list means.
|
|
124
|
+
*
|
|
125
|
+
* `oxy`, `mention`, `homiio`, `clarity`, `faircoin`, `astro` and `mercaria`
|
|
126
|
+
* are deliberately NOT here: each already has an `organization`/`project`
|
|
127
|
+
* row, so the unique index already refuses a second one, and `oxy` is the
|
|
128
|
+
* name `USERNAME_MIN_LENGTH` is pinned against in
|
|
129
|
+
* `__tests__/username.test.ts` — listing it would make
|
|
130
|
+
* `usernameSchema.safeParse('oxy')` fail and falsify that comment. A brand
|
|
131
|
+
* with no account of its own yet (measured 2026-09-18: Alia, Allo, TNP,
|
|
132
|
+
* Kaana, Bloom) has no row to protect it, so it is listed until one exists.
|
|
133
|
+
*/
|
|
134
|
+
exports.RESERVED_USERNAMES = new Set([
|
|
135
|
+
// Oxy product lines with no account row of their own yet.
|
|
136
|
+
'alia',
|
|
137
|
+
'allo',
|
|
138
|
+
'tnp',
|
|
139
|
+
'kaana',
|
|
140
|
+
'bloom',
|
|
141
|
+
// System / role words a signup impersonating staff or Oxy itself would reach for.
|
|
142
|
+
'admin',
|
|
143
|
+
'administrator',
|
|
144
|
+
'root',
|
|
145
|
+
'superadmin',
|
|
146
|
+
'super',
|
|
147
|
+
'superuser',
|
|
148
|
+
'support',
|
|
149
|
+
'staff',
|
|
150
|
+
'moderator',
|
|
151
|
+
'mod',
|
|
152
|
+
'security',
|
|
153
|
+
'system',
|
|
154
|
+
'official',
|
|
155
|
+
'help',
|
|
156
|
+
'noreply',
|
|
157
|
+
'anonymous',
|
|
158
|
+
'everyone',
|
|
159
|
+
'owner',
|
|
160
|
+
]);
|
|
161
|
+
/** The 400 / inline-validation copy for a handle on {@link RESERVED_USERNAMES}. */
|
|
162
|
+
exports.RESERVED_USERNAME_MESSAGE = 'This username is reserved and cannot be registered';
|
|
163
|
+
/**
|
|
164
|
+
* {@link RESERVED_USERNAMES}, minus `alia`, checked against each `-`/`_`
|
|
165
|
+
* separated SEGMENT of a candidate rather than the whole string — so
|
|
166
|
+
* `official-oxy`, `super-admin` and `team-kaana` are refused the same as the
|
|
167
|
+
* bare words, without banning every word that merely CONTAINS one as a
|
|
168
|
+
* substring (`superman`, `modern`, `grassroot`, `homeowner` all stay legal:
|
|
169
|
+
* none of them separates the reserved word from the rest with `-` or `_`).
|
|
170
|
+
*
|
|
171
|
+
* `alia` is excluded because `alia-` is the live internal-cost-centre
|
|
172
|
+
* namespace: `alia-production-chat` is a minted account and
|
|
173
|
+
* `alia-research` / `alia-voice` / `alia-evaluations` are pinned as legal
|
|
174
|
+
* slugs in `__tests__/username.test.ts` and `internalCostCenterSpecs.test.ts`.
|
|
175
|
+
* Segment-matching `alia` would refuse all four. The bare word `alia` is
|
|
176
|
+
* still refused — {@link RESERVED_USERNAMES} above catches it exactly.
|
|
177
|
+
*/
|
|
178
|
+
const RESERVED_USERNAME_SEGMENTS = new Set([...exports.RESERVED_USERNAMES].filter((word) => word !== 'alia'));
|
|
179
|
+
/** The 400 / inline-validation copy for a handle that is only digits. */
|
|
180
|
+
exports.NUMERIC_USERNAME_MESSAGE = 'Username cannot be only numbers';
|
|
116
181
|
/**
|
|
117
182
|
* Alphanumeric runs joined by single separators, as a SOURCE string.
|
|
118
183
|
*
|
|
@@ -149,7 +214,10 @@ exports.usernameSchema = zod_1.z
|
|
|
149
214
|
.trim()
|
|
150
215
|
.min(exports.USERNAME_MIN_LENGTH, exports.USERNAME_INVALID_MESSAGE)
|
|
151
216
|
.max(exports.USERNAME_MAX_LENGTH, exports.USERNAME_INVALID_MESSAGE)
|
|
152
|
-
.regex(USERNAME_PATTERN, exports.USERNAME_INVALID_MESSAGE)
|
|
217
|
+
.regex(USERNAME_PATTERN, exports.USERNAME_INVALID_MESSAGE)
|
|
218
|
+
.refine((username) => !/^[0-9]+$/.test(username), exports.NUMERIC_USERNAME_MESSAGE)
|
|
219
|
+
.refine((username) => !exports.RESERVED_USERNAMES.has(username.toLowerCase()), exports.RESERVED_USERNAME_MESSAGE)
|
|
220
|
+
.refine((username) => !username.split(/[-_]/).some((segment) => RESERVED_USERNAME_SEGMENTS.has(segment.toLowerCase())), exports.RESERVED_USERNAME_MESSAGE);
|
|
153
221
|
/**
|
|
154
222
|
* Whether a candidate handle is storable — the boolean form, for input surfaces
|
|
155
223
|
* that show a message as somebody types rather than throwing.
|