@oxy.so/contracts 4.17.0 → 4.21.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/accountAccess.js +72 -0
- package/dist/cjs/agency.js +112 -1
- package/dist/cjs/applicationRoles.js +211 -0
- package/dist/cjs/client/check.js +9 -0
- package/dist/cjs/client/index.js +22 -1
- package/dist/cjs/client/safety.js +183 -2
- package/dist/cjs/client/signIn.js +2 -0
- package/dist/cjs/index.js +13 -3
- package/dist/cjs/safety.js +430 -1
- package/dist/cjs/serviceToken.js +14 -0
- package/dist/esm/accountAccess.js +69 -0
- package/dist/esm/agency.js +111 -0
- package/dist/esm/applicationRoles.js +207 -0
- package/dist/esm/client/check.js +8 -0
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/client/safety.js +183 -2
- package/dist/esm/client/signIn.js +2 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/safety.js +423 -0
- package/dist/esm/serviceToken.js +11 -0
- package/dist/types/accountAccess.d.ts +128 -0
- package/dist/types/accountEmail.d.ts +2 -2
- package/dist/types/agency.d.ts +327 -2
- package/dist/types/agentKeys.d.ts +6 -6
- package/dist/types/applicationRoles.d.ts +438 -0
- package/dist/types/client/agentKeys.d.ts +2 -2
- package/dist/types/client/check.d.ts +3 -0
- package/dist/types/client/deviceSession.d.ts +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/client/safety.d.ts +204 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/deviceSession.d.ts +4 -4
- package/dist/types/email/messages.d.ts +2 -2
- package/dist/types/externalIdentity.d.ts +4 -4
- package/dist/types/index.d.ts +5 -2
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/catalogue.d.ts +22 -22
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/inference/realtime.d.ts +74 -74
- package/dist/types/inference/request.d.ts +60 -60
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/products/access.d.ts +4 -4
- package/dist/types/safety.d.ts +2374 -2
- package/dist/types/serviceToken.d.ts +11 -0
- package/dist/types/signIn.d.ts +5 -5
- package/dist/types/userResponse.d.ts +2 -2
- package/package.json +5 -20
- package/dist/cjs/.tsbuildinfo +0 -1
- package/dist/esm/.tsbuildinfo +0 -1
- package/dist/types/.tsbuildinfo +0 -1
|
@@ -1,15 +1,196 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Safety and supervision checks, without Zod. Schemas: `../safety.ts`.
|
|
4
|
+
*
|
|
5
|
+
* Only what a browser or device sends and reads is here: the profile-access
|
|
6
|
+
* read, supervision management and the guardian's purchase review. The service
|
|
7
|
+
* decision lanes are server-only (`@oxy.so/core/server`) and parse with the
|
|
8
|
+
* Zod schemas directly.
|
|
4
9
|
*
|
|
5
10
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
6
11
|
*/
|
|
7
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.profileAccessDecisionCheck = exports.profileAccessInputCheck = void 0;
|
|
13
|
+
exports.purchaseReviewInputCheck = exports.purchaseApprovalListCheck = exports.purchaseApprovalCheck = exports.safetyOrganizationsResponseCheck = exports.safetyOrganizationsInputCheck = exports.safetyPeopleResponseCheck = exports.safetyPeopleInputCheck = exports.supervisionReviewInputCheck = exports.supervisionContactInputCheck = exports.supervisionAcceptInputCheck = exports.supervisionInviteInputCheck = exports.supervisionContactsResponseCheck = exports.supervisionStateCheck = exports.supervisionInvitationCheck = exports.profileAccessDecisionCheck = exports.profileAccessInputCheck = exports.PURCHASE_APPROVAL_STATUSES = exports.SUPERVISION_INVITATION_STATUSES = exports.SUPERVISION_STATUSES = exports.SUPERVISION_CONSENT_VERSION = exports.SAFETY_POLICY_VERSION = exports.SUPERVISED_ACTIONS = void 0;
|
|
9
14
|
const check_1 = require("./check");
|
|
15
|
+
const organizations_1 = require("./organizations");
|
|
16
|
+
const signIn_1 = require("./signIn");
|
|
17
|
+
/** Supervision is a personal-account safety policy, never a new login/account kind. */
|
|
18
|
+
exports.SUPERVISED_ACTIONS = ['profile', 'messaging', 'content', 'purchases'];
|
|
19
|
+
exports.SAFETY_POLICY_VERSION = '2';
|
|
20
|
+
exports.SUPERVISION_CONSENT_VERSION = '1';
|
|
21
|
+
exports.SUPERVISION_STATUSES = ['active', 'orphaned', 'ended'];
|
|
22
|
+
exports.SUPERVISION_INVITATION_STATUSES = ['pending', 'accepted', 'cancelled'];
|
|
23
|
+
exports.PURCHASE_APPROVAL_STATUSES = [
|
|
24
|
+
'pending',
|
|
25
|
+
'approved',
|
|
26
|
+
'rejected',
|
|
27
|
+
'reserved',
|
|
28
|
+
'confirmed',
|
|
29
|
+
'cancelled',
|
|
30
|
+
];
|
|
10
31
|
exports.profileAccessInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ subjectAccountId: (0, check_1.string)((0, check_1.minLength)(1), (0, check_1.maxLength)(128)) }));
|
|
11
32
|
exports.profileAccessDecisionCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
12
33
|
allowed: check_1.boolean,
|
|
13
34
|
reason: (0, check_1.oneOf)(['public', 'owner', 'private', 'blocked', 'unavailable']),
|
|
14
35
|
policyVersion: (0, check_1.literal)('1'),
|
|
15
36
|
}));
|
|
37
|
+
const accountId = (0, check_1.string)((0, check_1.minLength)(1), (0, check_1.maxLength)(128));
|
|
38
|
+
const resourceId = (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(256));
|
|
39
|
+
const uniqueIds = (max) => (0, check_1.refine)((0, check_1.array)(accountId, (0, check_1.minItems)(1), (0, check_1.maxItems)(max)), (ids) => new Set(ids).size === ids.length, 'Account IDs must be unique');
|
|
40
|
+
/* -------------------------------------------------------------------------- */
|
|
41
|
+
/* Supervision management */
|
|
42
|
+
/* -------------------------------------------------------------------------- */
|
|
43
|
+
const supervisionCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
44
|
+
childAccountId: accountId,
|
|
45
|
+
guardianAccountId: (0, check_1.nullable)(accountId),
|
|
46
|
+
status: (0, check_1.oneOf)(exports.SUPERVISION_STATUSES),
|
|
47
|
+
policyVersion: (0, check_1.literal)(exports.SAFETY_POLICY_VERSION),
|
|
48
|
+
consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
|
|
49
|
+
createdAt: (0, check_1.string)(check_1.datetime),
|
|
50
|
+
}));
|
|
51
|
+
exports.supervisionInvitationCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
52
|
+
id: accountId,
|
|
53
|
+
childAccountId: accountId,
|
|
54
|
+
guardianAccountId: accountId,
|
|
55
|
+
status: (0, check_1.oneOf)(exports.SUPERVISION_INVITATION_STATUSES),
|
|
56
|
+
expiresAt: (0, check_1.string)(check_1.datetime),
|
|
57
|
+
consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
|
|
58
|
+
createdAt: (0, check_1.string)(check_1.datetime),
|
|
59
|
+
}));
|
|
60
|
+
exports.supervisionStateCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
61
|
+
self: (0, check_1.nullable)(supervisionCheck),
|
|
62
|
+
children: (0, check_1.array)(supervisionCheck, (0, check_1.maxItems)(100)),
|
|
63
|
+
invitations: (0, check_1.array)(exports.supervisionInvitationCheck, (0, check_1.maxItems)(100)),
|
|
64
|
+
}));
|
|
65
|
+
exports.supervisionContactsResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
66
|
+
items: (0, check_1.array)((0, check_1.strictObject)({
|
|
67
|
+
childAccountId: accountId,
|
|
68
|
+
contactAccountId: accountId,
|
|
69
|
+
approvedAt: (0, check_1.string)(check_1.datetime),
|
|
70
|
+
}), (0, check_1.maxItems)(1000)),
|
|
71
|
+
}));
|
|
72
|
+
exports.supervisionInviteInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
73
|
+
guardianAccountId: accountId,
|
|
74
|
+
consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION),
|
|
75
|
+
reauth: signIn_1.reauthProofCheck,
|
|
76
|
+
}));
|
|
77
|
+
exports.supervisionAcceptInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ consentVersion: (0, check_1.literal)(exports.SUPERVISION_CONSENT_VERSION), reauth: signIn_1.reauthProofCheck }));
|
|
78
|
+
exports.supervisionContactInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
79
|
+
childAccountId: accountId,
|
|
80
|
+
contactAccountId: accountId,
|
|
81
|
+
reauth: signIn_1.reauthProofCheck,
|
|
82
|
+
}));
|
|
83
|
+
exports.supervisionReviewInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
84
|
+
childAccountId: accountId,
|
|
85
|
+
action: (0, check_1.oneOf)(['end', 'transfer']),
|
|
86
|
+
guardianAccountId: (0, check_1.optional)(accountId),
|
|
87
|
+
evidenceReference: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(2048)),
|
|
88
|
+
reauth: signIn_1.reauthProofCheck,
|
|
89
|
+
}));
|
|
90
|
+
/* -------------------------------------------------------------------------- */
|
|
91
|
+
/* Minimal identities for the management screens */
|
|
92
|
+
/* -------------------------------------------------------------------------- */
|
|
93
|
+
const safetyPersonCheck = (0, check_1.exact)()((0, check_1.strictObject)({ accountId, username: (0, check_1.nullable)((0, check_1.string)()), displayName: (0, check_1.nullable)((0, check_1.string)()) }));
|
|
94
|
+
exports.safetyPeopleInputCheck = (0, check_1.exact)()((0, check_1.union)((0, check_1.strictObject)({ query: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(2), (0, check_1.maxLength)(100)) }), (0, check_1.strictObject)({ accountIds: uniqueIds(100) })));
|
|
95
|
+
exports.safetyPeopleResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({ items: (0, check_1.array)(safetyPersonCheck, (0, check_1.maxItems)(100)) }));
|
|
96
|
+
exports.safetyOrganizationsInputCheck = (0, check_1.exact)()((0, check_1.union)((0, check_1.strictObject)({
|
|
97
|
+
query: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(100)),
|
|
98
|
+
limit: (0, check_1.optional)((0, check_1.number)(check_1.int, (0, check_1.atLeast)(1), (0, check_1.atMost)(20))),
|
|
99
|
+
}), (0, check_1.strictObject)({ ids: uniqueIds(100) })));
|
|
100
|
+
exports.safetyOrganizationsResponseCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
101
|
+
items: (0, check_1.array)((0, check_1.strictObject)({
|
|
102
|
+
requestedAccountId: accountId,
|
|
103
|
+
organization: (0, check_1.strictObject)({
|
|
104
|
+
accountId,
|
|
105
|
+
username: (0, check_1.nullable)((0, check_1.string)()),
|
|
106
|
+
name: (0, check_1.string)(),
|
|
107
|
+
organizationType: (0, check_1.oneOf)(organizations_1.ORGANIZATION_TYPES),
|
|
108
|
+
}),
|
|
109
|
+
}), (0, check_1.maxItems)(100)),
|
|
110
|
+
missingIds: (0, check_1.array)(accountId, (0, check_1.maxItems)(100)),
|
|
111
|
+
}));
|
|
112
|
+
/* -------------------------------------------------------------------------- */
|
|
113
|
+
/* Purchase approvals */
|
|
114
|
+
/* -------------------------------------------------------------------------- */
|
|
115
|
+
const fingerprint = (0, check_1.string)((0, check_1.pattern)(/^[a-f0-9]{64}$/));
|
|
116
|
+
const minorUnits = (0, check_1.number)(check_1.int, check_1.nonnegative, (0, check_1.atMost)(Number.MAX_SAFE_INTEGER));
|
|
117
|
+
const purchaseApprovalLineCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
118
|
+
itemReference: resourceId,
|
|
119
|
+
title: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(300)),
|
|
120
|
+
optionsText: (0, check_1.string)(check_1.trim, (0, check_1.maxLength)(300)),
|
|
121
|
+
merchantAccountId: accountId,
|
|
122
|
+
quantity: (0, check_1.number)(check_1.int, (0, check_1.atLeast)(1), (0, check_1.atMost)(1000000)),
|
|
123
|
+
unitAmountMinor: minorUnits,
|
|
124
|
+
lineAmountMinor: minorUnits,
|
|
125
|
+
}));
|
|
126
|
+
/** The effect fields every approval shape shares, in the schema's key order. */
|
|
127
|
+
const purchaseEffectFields = {
|
|
128
|
+
operationId: resourceId,
|
|
129
|
+
resourceId,
|
|
130
|
+
cartFingerprint: fingerprint,
|
|
131
|
+
summary: (0, check_1.string)(check_1.trim, (0, check_1.minLength)(1), (0, check_1.maxLength)(300)),
|
|
132
|
+
merchantAccountIds: (0, check_1.transform)((0, check_1.refine)((0, check_1.array)(accountId, (0, check_1.minItems)(1), (0, check_1.maxItems)(100)), (ids) => new Set(ids).size === ids.length, 'Merchant accounts must be unique'), (ids) => [...ids].sort()),
|
|
133
|
+
};
|
|
134
|
+
const purchaseAmountFields = {
|
|
135
|
+
shippingMinor: minorUnits,
|
|
136
|
+
taxMinor: minorUnits,
|
|
137
|
+
discountMinor: minorUnits,
|
|
138
|
+
roundingAdjustmentMinor: (0, check_1.number)(check_1.int, (0, check_1.atLeast)(-Number.MAX_SAFE_INTEGER), (0, check_1.atMost)(Number.MAX_SAFE_INTEGER)),
|
|
139
|
+
paymentFingerprint: fingerprint,
|
|
140
|
+
amountMinor: minorUnits,
|
|
141
|
+
currency: (0, check_1.string)((0, check_1.pattern)(/^[A-Z]{3}$/)),
|
|
142
|
+
expiresAt: (0, check_1.string)(check_1.datetime),
|
|
143
|
+
};
|
|
144
|
+
const purchaseApprovalFields = {
|
|
145
|
+
id: accountId,
|
|
146
|
+
childAccountId: accountId,
|
|
147
|
+
applicationId: accountId,
|
|
148
|
+
status: (0, check_1.oneOf)(exports.PURCHASE_APPROVAL_STATUSES),
|
|
149
|
+
createdAt: (0, check_1.string)(check_1.datetime),
|
|
150
|
+
receiptReference: (0, check_1.nullable)((0, check_1.string)((0, check_1.maxLength)(512))),
|
|
151
|
+
};
|
|
152
|
+
/** The first problem `validatePurchaseEvidence` in `../safety.ts` reports, in its order. */
|
|
153
|
+
function purchaseEvidenceProblem(value) {
|
|
154
|
+
const merchants = new Set(value.merchantAccountIds);
|
|
155
|
+
const references = new Set();
|
|
156
|
+
for (const line of value.lineItems) {
|
|
157
|
+
const key = `${line.merchantAccountId}:${line.itemReference}`;
|
|
158
|
+
if (!merchants.has(line.merchantAccountId) || references.has(key)) {
|
|
159
|
+
return {
|
|
160
|
+
path: [],
|
|
161
|
+
message: 'Purchase lines must name an included merchant and unique item reference',
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
references.add(key);
|
|
165
|
+
}
|
|
166
|
+
if (merchants.size !== new Set(value.lineItems.map((line) => line.merchantAccountId)).size) {
|
|
167
|
+
return { path: [], message: 'Every merchant must have an approval line' };
|
|
168
|
+
}
|
|
169
|
+
const total = value.lineItems.reduce((sum, line) => sum + BigInt(line.lineAmountMinor), 0n) +
|
|
170
|
+
BigInt(value.shippingMinor) +
|
|
171
|
+
BigInt(value.taxMinor) -
|
|
172
|
+
BigInt(value.discountMinor) +
|
|
173
|
+
BigInt(value.roundingAdjustmentMinor);
|
|
174
|
+
if (total < 0n ||
|
|
175
|
+
total > BigInt(Number.MAX_SAFE_INTEGER) ||
|
|
176
|
+
total !== BigInt(value.amountMinor)) {
|
|
177
|
+
return { path: [], message: 'Approval evidence must equal the exact payment total' };
|
|
178
|
+
}
|
|
179
|
+
if (Math.abs(value.roundingAdjustmentMinor) >
|
|
180
|
+
value.lineItems.length + 3 * value.merchantAccountIds.length) {
|
|
181
|
+
return { path: [], message: 'Rounding adjustment exceeds the bounded conversion stages' };
|
|
182
|
+
}
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
exports.purchaseApprovalCheck = (0, check_1.exact)()((0, check_1.refineAt)((0, check_1.strictObject)({
|
|
186
|
+
...purchaseEffectFields,
|
|
187
|
+
lineItems: (0, check_1.array)(purchaseApprovalLineCheck, (0, check_1.minItems)(1), (0, check_1.maxItems)(200)),
|
|
188
|
+
...purchaseAmountFields,
|
|
189
|
+
...purchaseApprovalFields,
|
|
190
|
+
}), purchaseEvidenceProblem));
|
|
191
|
+
const purchaseApprovalSummaryCheck = (0, check_1.exact)()((0, check_1.strictObject)({ ...purchaseEffectFields, ...purchaseAmountFields, ...purchaseApprovalFields }));
|
|
192
|
+
exports.purchaseApprovalListCheck = (0, check_1.exact)()((0, check_1.strictObject)({
|
|
193
|
+
items: (0, check_1.array)(purchaseApprovalSummaryCheck, (0, check_1.maxItems)(100)),
|
|
194
|
+
nextCursor: (0, check_1.nullable)((0, check_1.string)()),
|
|
195
|
+
}));
|
|
196
|
+
exports.purchaseReviewInputCheck = (0, check_1.exact)()((0, check_1.strictObject)({ decision: (0, check_1.oneOf)(['approved', 'rejected']), reauth: signIn_1.reauthProofCheck }));
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,9 +37,9 @@ exports.inferenceToolCallSchema = exports.inferenceContentPartSchema = exports.i
|
|
|
37
37
|
exports.realtimeItemTruncateCommandSchema = exports.realtimeItemDeleteCommandSchema = exports.realtimeItemCreateCommandSchema = exports.realtimeSessionUpdateCommandSchema = exports.realtimeResponseParametersSchema = exports.realtimeConversationItemSchema = exports.realtimeContentPartSchema = exports.realtimeSessionRequestSchema = exports.realtimeClientMetadataSchema = exports.realtimeSessionLimitsSchema = exports.realtimeSessionConfigUpdateSchema = exports.realtimeSessionConfigSchema = exports.realtimeTranslationSchema = exports.realtimeInputTranscriptionSchema = exports.realtimeTurnDetectionSchema = exports.realtimeOutputModalitySchema = exports.realtimeAudioFormatSchema = exports.realtimeResponseIdSchema = exports.realtimeItemIdSchema = exports.realtimeCommandIdSchema = exports.MAX_REALTIME_RESUME_WINDOW_MS = exports.MAX_REALTIME_SESSION_AUDIO_BYTES = exports.MAX_REALTIME_SESSION_DURATION_MS = exports.MAX_REALTIME_AUDIO_FRAME_BASE64_LENGTH = exports.inferenceStreamEventSchema = exports.inferenceStreamDoneEventSchema = exports.inferenceFinishReasonSchema = exports.inferenceStreamErrorEventSchema = exports.inferenceStreamRouteSwitchEventSchema = exports.inferenceRouteSwitchReasonSchema = exports.inferenceRouteSwitchDetailSchema = exports.inferenceStreamUsageEventSchema = exports.inferenceStreamToolCallEventSchema = exports.inferenceStreamAudioEventSchema = exports.MAX_INFERENCE_AUDIO_BYTES = exports.inferenceAudioMediaTypeSchema = exports.inferenceStreamDeltaEventSchema = exports.inferenceStreamStartEventSchema = exports.inferenceAudioOutputParametersSchema = exports.inferenceSpeechParametersSchema = exports.inferenceRequestSchema = exports.clientRequestMetadataSchema = exports.responseFormatSchema = exports.toolChoiceSchema = exports.toolDefinitionSchema = exports.inferenceReasoningSchema = exports.samplingParametersSchema = exports.inferenceInputSchema = exports.inferenceMessageSchema = exports.inferenceMessageRoleSchema = void 0;
|
|
38
38
|
exports.kaanaCredentialRotateMutationSchema = exports.kaanaCredentialCreateMutationSchema = exports.kaanaCredentialIdentitySchema = exports.kaanaCredentialOperationActionSchema = exports.kaanaCredentialOperationIdSchema = exports.kaanaCredentialHandleSchema = exports.providerConnectionScopeSchema = exports.usageRefundSchema = exports.usageRefundReasonSchema = exports.usageRefundSubjectSchema = exports.usageReceiptSchema = exports.normalizedUsageReportSchema = exports.inferenceRequestOutcomeSchema = exports.usageReservationSchema = exports.usageReservationStatusSchema = exports.usageReservationRequestSchema = exports.realtimeServerEventSchema = exports.realtimeSessionClosedEventSchema = exports.realtimeSessionCloseReasonSchema = exports.realtimeErrorEventSchema = exports.realtimeResponseDoneEventSchema = exports.realtimeResponseStatusSchema = exports.realtimeToolCallEventSchema = exports.realtimeTextDeltaEventSchema = exports.realtimeTranscriptDoneEventSchema = exports.realtimeTranscriptDeltaEventSchema = exports.realtimeTranscriptSourceSchema = exports.realtimeOutputAudioDoneEventSchema = exports.realtimeOutputAudioDeltaEventSchema = exports.realtimeResponseCreatedEventSchema = exports.realtimeInputAudioClearedEventSchema = exports.realtimeInputAudioCommittedEventSchema = exports.realtimeSpeechStoppedEventSchema = exports.realtimeSpeechStartedEventSchema = exports.realtimeItemTruncatedEventSchema = exports.realtimeItemDeletedEventSchema = exports.realtimeItemDoneEventSchema = exports.realtimeItemAddedEventSchema = exports.realtimeCommandAcceptedEventSchema = exports.realtimeSessionResumedEventSchema = exports.realtimeSessionUpdatedEventSchema = exports.realtimeSessionCreatedEventSchema = exports.realtimeClientCommandSchema = exports.realtimeSessionCloseCommandSchema = exports.realtimeSessionResumeCommandSchema = exports.realtimeResponseCancelCommandSchema = exports.realtimeResponseCreateCommandSchema = exports.realtimeInputAudioClearCommandSchema = exports.realtimeInputAudioCommitCommandSchema = exports.realtimeInputAudioAppendCommandSchema = void 0;
|
|
39
39
|
exports.payAsYouGoEntitlementSchema = exports.productPlanSchema = exports.planAllowanceSchema = exports.LIVE_PRODUCT_PLAN_STATUSES = exports.productPlanStatusSchema = exports.PRODUCT_PLAN_STATUSES = exports.reconciliationReportSchema = exports.reconciliationRunSchema = exports.reconciliationDiscrepancySchema = exports.reconciliationRunStatusSchema = exports.RECONCILIATION_RUN_STATUSES = exports.reconciliationDiscrepancyKindSchema = exports.RECONCILIATION_DISCREPANCY_KINDS = exports.autoRechargeAttemptSchema = exports.autoRechargeStatusSchema = exports.AUTO_RECHARGE_STATUSES = exports.externalPaymentSchema = exports.externalPaymentKindSchema = exports.EXTERNAL_PAYMENT_KINDS = exports.externalPaymentProviderSchema = exports.EXTERNAL_PAYMENT_PROVIDERS = exports.billingInvoiceSchema = exports.billingInvoiceStatusSchema = exports.BILLING_INVOICE_STATUSES = exports.accountBillingStateSchema = exports.billingProfileSchema = exports.autoRechargeSchema = exports.billingProfileStatusSchema = exports.BILLING_PROFILE_STATUSES = exports.billingModeSchema = exports.BILLING_MODES = exports.providerConnectionSchema = exports.providerConnectionStatusSchema = exports.providerConnectionValidationSchema = exports.providerCredentialCustodyStateSchema = exports.providerCredentialValidationDeploymentSchema = exports.providerCredentialValidationOperationSchema = exports.kaanaCredentialValidationOutcomeSchema = exports.kaanaCredentialValidationFailureCodeSchema = exports.kaanaCredentialValidationOutcomeStateSchema = exports.kaanaCredentialValidationTaskSchema = exports.kaanaCredentialOutcomeSchema = exports.kaanaCredentialConflictOutcomeSchema = exports.kaanaCredentialAppliedOutcomeSchema = exports.kaanaCredentialOutcomeRequestSchema = exports.kaanaCredentialRevokeOutcomeRequestSchema = exports.kaanaCredentialRotateOutcomeRequestSchema = exports.kaanaCredentialCreateOutcomeRequestSchema = exports.kaanaCredentialMutationSchema = exports.kaanaCredentialRevokeMutationSchema = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.personalPlanCatalogueSchema = exports.personalPlanDisplayPriceSchema = exports.productSubscriptionCancellationResultSchema = exports.cancelProductSubscriptionSchema = exports.subscriptionCreditGrantsResponseSchema = exports.subscriptionCreditGrantSchema = exports.productSubscriptionsResponseSchema = exports.productSubscriptionSummarySchema = exports.isLoopbackOrigin = void 0;
|
|
40
|
+
exports.resolveCatalogInvocation = exports.matchCatalogInvocation = exports.findOverlappingCatalogInvocations = exports.catalogInvocationTemplatesEquivalent = exports.catalogInvocationsOverlap = exports.catalogInvocationPathParameters = exports.normalizedAppEventSchema = exports.catalogRegistrationSchema = exports.appCapabilityCatalogSchema = exports.CATALOG_INTERNAL_TRANSPORTS = exports.catalogFeatureSchema = exports.catalogEventSchema = exports.catalogToolSchema = exports.auditEventSchema = exports.auditResultSchema = exports.policyDecisionSchema = exports.invocationPrincipalSchema = exports.capabilityTicketClaimsSchema = exports.automationDefinitionSchema = exports.automationDataFlowSchema = exports.automationActorSelectionSchema = exports.automationTriggerSchema = exports.agentRequesterCeilingSchema = exports.agentRequesterCeilingWriteSchema = exports.AGENT_REQUESTER_CEILING_AUTONOMY = exports.delegationGrantSchema = exports.capabilityTicketRequestSchema = exports.capabilityCoordinatorSchema = exports.executionAuthorizationRefSchema = exports.capabilityCatalogBindingSchema = exports.grantLimitSchema = exports.toolGrantOverrideSchema = exports.resourceRefSchema = exports.foregroundExecutionAuthorizationInputSchema = exports.executionActorRefSchema = exports.actorRefSchema = exports.capabilityPackageSchema = exports.autonomyLevelSchema = exports.CAPABILITY_PACKAGES = exports.AUTONOMY_LEVELS = exports.costCenterUsageSchema = exports.providerCostSourceSchema = exports.PROVIDER_COST_SOURCES = exports.inferenceEconomicTreatmentSchema = exports.INFERENCE_ECONOMIC_TREATMENTS = exports.productEntitlementSchema = exports.costCenterSpendSchema = exports.costCenterSchema = exports.costCenterStatusSchema = exports.COST_CENTER_STATUSES = void 0;
|
|
41
|
+
exports.subjectProductGrantSnapshotSchema = exports.productAccessGrantSchema = exports.productSubscriptionSourceSchema = exports.productOfferSchema = exports.productBenefitSchema = exports.subjectProductAccessQuerySchema = exports.productDefinitionSchema = exports.privateAutoInferenceRequestSchema = exports.privateAutoOperationId = exports.privateAutoInputSchema = exports.privateAutoExecutionSchema = exports.privateAutoSourceApprovalSchema = exports.privateAutoPrincipalSchema = exports.PRIVATE_AUTO_QUESTION = exports.PRIVATE_AUTO_INSTRUCTIONS = exports.PRIVATE_AUTO_LIMITS = exports.PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION = exports.PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION = exports.scopedInferenceRequestSchema = exports.canonicalScopedExecutionJson = exports.scopedExecutionSchema = exports.scopedExecutionAudienceSchema = exports.SCOPED_REQUEST_ENVELOPE_VERSION = exports.SCOPED_EXECUTION_CONTRACT_VERSION = exports.decisionAnswersMatch = exports.decisionFitsGateway = exports.decisionInputBudget = exports.decisionFailureSchema = exports.decisionSuccessSchema = exports.decisionResultSchema = exports.decisionAnswerSchema = exports.decisionRequestSchema = exports.decisionInputSchema = exports.decisionQuestionSchema = exports.decisionEffortSchema = exports.inboxInferenceStreamEventSchema = exports.inboxThreadSummaryResponseSchema = exports.inboxSmartRepliesResponseSchema = exports.inboxNaturalSearchResponseSchema = exports.inboxInferenceTextResponseSchema = exports.inboxMessageInferenceParamsSchema = exports.inboxNaturalSearchRequestSchema = exports.INBOX_DAILY_BRIEF_SECTIONS = exports.inboxDailyBriefResponseSchema = exports.inboxDailyBriefRequestSchema = exports.inboxComposeRequestSchema = exports.emailAgentContextSchema = exports.emailContextMessageSchema = exports.emailContextMailboxSchema = exports.emailContextAddressSchema = void 0;
|
|
42
|
+
exports.serviceTokenOptionsSchema = exports.serviceTokenScopesSchema = exports.personalPlanCatalogueSchema = exports.personalPlanDisplayPriceSchema = exports.productSubscriptionCancellationResultSchema = exports.cancelProductSubscriptionSchema = exports.subscriptionCreditGrantsResponseSchema = exports.subscriptionCreditGrantSchema = exports.productSubscriptionsResponseSchema = exports.productSubscriptionSummarySchema = exports.isLoopbackOrigin = exports.inputSatisfiesCapabilityLimits = exports.canonicalCapabilityJson = exports.meteredGenerationSchema = exports.subjectProductAccessSchema = exports.productOfferSegmentSchema = void 0;
|
|
43
43
|
var accountGraph_1 = require("./accountGraph");
|
|
44
44
|
Object.defineProperty(exports, "ACCOUNT_KINDS", { enumerable: true, get: function () { return accountGraph_1.ACCOUNT_KINDS; } });
|
|
45
45
|
Object.defineProperty(exports, "accountKindSchema", { enumerable: true, get: function () { return accountGraph_1.accountKindSchema; } });
|
|
@@ -782,6 +782,9 @@ Object.defineProperty(exports, "executionAuthorizationRefSchema", { enumerable:
|
|
|
782
782
|
Object.defineProperty(exports, "capabilityCoordinatorSchema", { enumerable: true, get: function () { return agency_1.capabilityCoordinatorSchema; } });
|
|
783
783
|
Object.defineProperty(exports, "capabilityTicketRequestSchema", { enumerable: true, get: function () { return agency_1.capabilityTicketRequestSchema; } });
|
|
784
784
|
Object.defineProperty(exports, "delegationGrantSchema", { enumerable: true, get: function () { return agency_1.delegationGrantSchema; } });
|
|
785
|
+
Object.defineProperty(exports, "AGENT_REQUESTER_CEILING_AUTONOMY", { enumerable: true, get: function () { return agency_1.AGENT_REQUESTER_CEILING_AUTONOMY; } });
|
|
786
|
+
Object.defineProperty(exports, "agentRequesterCeilingWriteSchema", { enumerable: true, get: function () { return agency_1.agentRequesterCeilingWriteSchema; } });
|
|
787
|
+
Object.defineProperty(exports, "agentRequesterCeilingSchema", { enumerable: true, get: function () { return agency_1.agentRequesterCeilingSchema; } });
|
|
785
788
|
Object.defineProperty(exports, "automationTriggerSchema", { enumerable: true, get: function () { return agency_1.automationTriggerSchema; } });
|
|
786
789
|
Object.defineProperty(exports, "automationActorSelectionSchema", { enumerable: true, get: function () { return agency_1.automationActorSelectionSchema; } });
|
|
787
790
|
Object.defineProperty(exports, "automationDataFlowSchema", { enumerable: true, get: function () { return agency_1.automationDataFlowSchema; } });
|
|
@@ -793,6 +796,8 @@ Object.defineProperty(exports, "auditResultSchema", { enumerable: true, get: fun
|
|
|
793
796
|
Object.defineProperty(exports, "auditEventSchema", { enumerable: true, get: function () { return agency_1.auditEventSchema; } });
|
|
794
797
|
Object.defineProperty(exports, "catalogToolSchema", { enumerable: true, get: function () { return agency_1.catalogToolSchema; } });
|
|
795
798
|
Object.defineProperty(exports, "catalogEventSchema", { enumerable: true, get: function () { return agency_1.catalogEventSchema; } });
|
|
799
|
+
Object.defineProperty(exports, "catalogFeatureSchema", { enumerable: true, get: function () { return agency_1.catalogFeatureSchema; } });
|
|
800
|
+
Object.defineProperty(exports, "CATALOG_INTERNAL_TRANSPORTS", { enumerable: true, get: function () { return agency_1.CATALOG_INTERNAL_TRANSPORTS; } });
|
|
796
801
|
Object.defineProperty(exports, "appCapabilityCatalogSchema", { enumerable: true, get: function () { return agency_1.appCapabilityCatalogSchema; } });
|
|
797
802
|
Object.defineProperty(exports, "catalogRegistrationSchema", { enumerable: true, get: function () { return agency_1.catalogRegistrationSchema; } });
|
|
798
803
|
Object.defineProperty(exports, "normalizedAppEventSchema", { enumerable: true, get: function () { return agency_1.normalizedAppEventSchema; } });
|
|
@@ -823,6 +828,7 @@ Object.defineProperty(exports, "inboxInferenceStreamEventSchema", { enumerable:
|
|
|
823
828
|
__exportStar(require("./externalIdentity"), exports);
|
|
824
829
|
__exportStar(require("./linkedAccounts"), exports);
|
|
825
830
|
__exportStar(require("./federationInstanceFetch"), exports);
|
|
831
|
+
__exportStar(require("./accountAccess"), exports);
|
|
826
832
|
__exportStar(require("./notifications"), exports);
|
|
827
833
|
__exportStar(require("./email/messages"), exports);
|
|
828
834
|
__exportStar(require("./stickers"), exports);
|
|
@@ -889,3 +895,7 @@ Object.defineProperty(exports, "personalPlanCatalogueSchema", { enumerable: true
|
|
|
889
895
|
__exportStar(require("./products/checkout"), exports);
|
|
890
896
|
__exportStar(require("./organizations"), exports);
|
|
891
897
|
__exportStar(require("./safety"), exports);
|
|
898
|
+
var serviceToken_1 = require("./serviceToken");
|
|
899
|
+
Object.defineProperty(exports, "serviceTokenScopesSchema", { enumerable: true, get: function () { return serviceToken_1.serviceTokenScopesSchema; } });
|
|
900
|
+
Object.defineProperty(exports, "serviceTokenOptionsSchema", { enumerable: true, get: function () { return serviceToken_1.serviceTokenOptionsSchema; } });
|
|
901
|
+
__exportStar(require("./applicationRoles"), exports);
|