@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,13 +1,213 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Safety and supervision checks, without Zod. Schemas: `../safety.ts`.
|
|
3
|
+
*
|
|
4
|
+
* Only what a browser or device sends and reads is here: the profile-access
|
|
5
|
+
* read, supervision management and the guardian's purchase review. The service
|
|
6
|
+
* decision lanes are server-only (`@oxy.so/core/server`) and parse with the
|
|
7
|
+
* Zod schemas directly.
|
|
3
8
|
*
|
|
4
9
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
5
10
|
*/
|
|
6
|
-
|
|
11
|
+
import { type Check } from './check';
|
|
12
|
+
/** Supervision is a personal-account safety policy, never a new login/account kind. */
|
|
13
|
+
export declare const SUPERVISED_ACTIONS: readonly ["profile", "messaging", "content", "purchases"];
|
|
14
|
+
export declare const SAFETY_POLICY_VERSION: "2";
|
|
15
|
+
export declare const SUPERVISION_CONSENT_VERSION: "1";
|
|
16
|
+
export declare const SUPERVISION_STATUSES: readonly ["active", "orphaned", "ended"];
|
|
17
|
+
export declare const SUPERVISION_INVITATION_STATUSES: readonly ["pending", "accepted", "cancelled"];
|
|
18
|
+
export declare const PURCHASE_APPROVAL_STATUSES: readonly ["pending", "approved", "rejected", "reserved", "confirmed", "cancelled"];
|
|
19
|
+
export declare const profileAccessInputCheck: Check<{
|
|
7
20
|
subjectAccountId: string;
|
|
8
21
|
}>;
|
|
9
|
-
export declare const profileAccessDecisionCheck:
|
|
22
|
+
export declare const profileAccessDecisionCheck: Check<{
|
|
10
23
|
allowed: boolean;
|
|
11
|
-
reason: "
|
|
24
|
+
reason: "owner" | "unavailable" | "public" | "private" | "blocked";
|
|
12
25
|
policyVersion: "1";
|
|
13
26
|
}>;
|
|
27
|
+
export declare const supervisionInvitationCheck: Check<{
|
|
28
|
+
status: "pending" | "accepted" | "cancelled";
|
|
29
|
+
createdAt: string;
|
|
30
|
+
id: string;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
childAccountId: string;
|
|
33
|
+
guardianAccountId: string;
|
|
34
|
+
consentVersion: "1";
|
|
35
|
+
}>;
|
|
36
|
+
export declare const supervisionStateCheck: Check<{
|
|
37
|
+
self: {
|
|
38
|
+
status: "active" | "orphaned" | "ended";
|
|
39
|
+
createdAt: string;
|
|
40
|
+
policyVersion: "2";
|
|
41
|
+
childAccountId: string;
|
|
42
|
+
guardianAccountId: string | null;
|
|
43
|
+
consentVersion: "1";
|
|
44
|
+
} | null;
|
|
45
|
+
children: {
|
|
46
|
+
status: "active" | "orphaned" | "ended";
|
|
47
|
+
createdAt: string;
|
|
48
|
+
policyVersion: "2";
|
|
49
|
+
childAccountId: string;
|
|
50
|
+
guardianAccountId: string | null;
|
|
51
|
+
consentVersion: "1";
|
|
52
|
+
}[];
|
|
53
|
+
invitations: {
|
|
54
|
+
status: "pending" | "accepted" | "cancelled";
|
|
55
|
+
createdAt: string;
|
|
56
|
+
id: string;
|
|
57
|
+
expiresAt: string;
|
|
58
|
+
childAccountId: string;
|
|
59
|
+
guardianAccountId: string;
|
|
60
|
+
consentVersion: "1";
|
|
61
|
+
}[];
|
|
62
|
+
}>;
|
|
63
|
+
export declare const supervisionContactsResponseCheck: Check<{
|
|
64
|
+
items: {
|
|
65
|
+
childAccountId: string;
|
|
66
|
+
contactAccountId: string;
|
|
67
|
+
approvedAt: string;
|
|
68
|
+
}[];
|
|
69
|
+
}>;
|
|
70
|
+
export declare const supervisionInviteInputCheck: Check<{
|
|
71
|
+
reauth: {
|
|
72
|
+
password?: string | undefined;
|
|
73
|
+
emailCode?: {
|
|
74
|
+
code: string;
|
|
75
|
+
verificationId: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
totpCode?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
guardianAccountId: string;
|
|
80
|
+
consentVersion: "1";
|
|
81
|
+
}>;
|
|
82
|
+
export declare const supervisionAcceptInputCheck: Check<{
|
|
83
|
+
reauth: {
|
|
84
|
+
password?: string | undefined;
|
|
85
|
+
emailCode?: {
|
|
86
|
+
code: string;
|
|
87
|
+
verificationId: string;
|
|
88
|
+
} | undefined;
|
|
89
|
+
totpCode?: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
consentVersion: "1";
|
|
92
|
+
}>;
|
|
93
|
+
export declare const supervisionContactInputCheck: Check<{
|
|
94
|
+
reauth: {
|
|
95
|
+
password?: string | undefined;
|
|
96
|
+
emailCode?: {
|
|
97
|
+
code: string;
|
|
98
|
+
verificationId: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
totpCode?: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
childAccountId: string;
|
|
103
|
+
contactAccountId: string;
|
|
104
|
+
}>;
|
|
105
|
+
export declare const supervisionReviewInputCheck: Check<{
|
|
106
|
+
evidenceReference: string;
|
|
107
|
+
reauth: {
|
|
108
|
+
password?: string | undefined;
|
|
109
|
+
emailCode?: {
|
|
110
|
+
code: string;
|
|
111
|
+
verificationId: string;
|
|
112
|
+
} | undefined;
|
|
113
|
+
totpCode?: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
action: "end" | "transfer";
|
|
116
|
+
childAccountId: string;
|
|
117
|
+
guardianAccountId?: string | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
export declare const safetyPeopleInputCheck: Check<{
|
|
120
|
+
query: string;
|
|
121
|
+
} | {
|
|
122
|
+
accountIds: string[];
|
|
123
|
+
}>;
|
|
124
|
+
export declare const safetyPeopleResponseCheck: Check<{
|
|
125
|
+
items: {
|
|
126
|
+
accountId: string;
|
|
127
|
+
username: string | null;
|
|
128
|
+
displayName: string | null;
|
|
129
|
+
}[];
|
|
130
|
+
}>;
|
|
131
|
+
export declare const safetyOrganizationsInputCheck: Check<{
|
|
132
|
+
query: string;
|
|
133
|
+
limit?: number | undefined;
|
|
134
|
+
} | {
|
|
135
|
+
ids: string[];
|
|
136
|
+
}>;
|
|
137
|
+
export declare const safetyOrganizationsResponseCheck: Check<{
|
|
138
|
+
items: {
|
|
139
|
+
requestedAccountId: string;
|
|
140
|
+
organization: {
|
|
141
|
+
name: string;
|
|
142
|
+
organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
|
|
143
|
+
accountId: string;
|
|
144
|
+
username: string | null;
|
|
145
|
+
};
|
|
146
|
+
}[];
|
|
147
|
+
missingIds: string[];
|
|
148
|
+
}>;
|
|
149
|
+
export declare const purchaseApprovalCheck: Check<{
|
|
150
|
+
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
151
|
+
createdAt: string;
|
|
152
|
+
id: string;
|
|
153
|
+
expiresAt: string;
|
|
154
|
+
resourceId: string;
|
|
155
|
+
applicationId: string;
|
|
156
|
+
currency: string;
|
|
157
|
+
operationId: string;
|
|
158
|
+
summary: string;
|
|
159
|
+
childAccountId: string;
|
|
160
|
+
cartFingerprint: string;
|
|
161
|
+
merchantAccountIds: string[];
|
|
162
|
+
lineItems: {
|
|
163
|
+
title: string;
|
|
164
|
+
quantity: number;
|
|
165
|
+
itemReference: string;
|
|
166
|
+
optionsText: string;
|
|
167
|
+
merchantAccountId: string;
|
|
168
|
+
unitAmountMinor: number;
|
|
169
|
+
lineAmountMinor: number;
|
|
170
|
+
}[];
|
|
171
|
+
shippingMinor: number;
|
|
172
|
+
taxMinor: number;
|
|
173
|
+
discountMinor: number;
|
|
174
|
+
roundingAdjustmentMinor: number;
|
|
175
|
+
paymentFingerprint: string;
|
|
176
|
+
amountMinor: number;
|
|
177
|
+
receiptReference: string | null;
|
|
178
|
+
}>;
|
|
179
|
+
export declare const purchaseApprovalListCheck: Check<{
|
|
180
|
+
items: {
|
|
181
|
+
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
182
|
+
createdAt: string;
|
|
183
|
+
id: string;
|
|
184
|
+
expiresAt: string;
|
|
185
|
+
resourceId: string;
|
|
186
|
+
applicationId: string;
|
|
187
|
+
currency: string;
|
|
188
|
+
operationId: string;
|
|
189
|
+
summary: string;
|
|
190
|
+
childAccountId: string;
|
|
191
|
+
cartFingerprint: string;
|
|
192
|
+
merchantAccountIds: string[];
|
|
193
|
+
shippingMinor: number;
|
|
194
|
+
taxMinor: number;
|
|
195
|
+
discountMinor: number;
|
|
196
|
+
roundingAdjustmentMinor: number;
|
|
197
|
+
paymentFingerprint: string;
|
|
198
|
+
amountMinor: number;
|
|
199
|
+
receiptReference: string | null;
|
|
200
|
+
}[];
|
|
201
|
+
nextCursor: string | null;
|
|
202
|
+
}>;
|
|
203
|
+
export declare const purchaseReviewInputCheck: Check<{
|
|
204
|
+
decision: "approved" | "rejected";
|
|
205
|
+
reauth: {
|
|
206
|
+
password?: string | undefined;
|
|
207
|
+
emailCode?: {
|
|
208
|
+
code: string;
|
|
209
|
+
verificationId: string;
|
|
210
|
+
} | undefined;
|
|
211
|
+
totpCode?: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
}>;
|
|
@@ -50,7 +50,7 @@ export declare function isEmailSignInChooseAccount(result: EmailSignInStepResult
|
|
|
50
50
|
* What a re-verification email code confirms. The code is bound to it: a code
|
|
51
51
|
* asked for one change never authorises another, and the email names it.
|
|
52
52
|
*/
|
|
53
|
-
export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account", "credentials_manage"];
|
|
53
|
+
export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account", "credentials_manage", "supervision", "supervision_purchase"];
|
|
54
54
|
export type ReauthAction = (typeof REAUTH_ACTIONS)[number];
|
|
55
55
|
/**
|
|
56
56
|
* Stable error codes (`error.code` in the API error body). Clients map these
|
|
@@ -342,13 +342,13 @@ export declare const deviceBackgroundCredentialResponseSchema: z.ZodObject<{
|
|
|
342
342
|
accountId: z.ZodString;
|
|
343
343
|
expiresAt: z.ZodString;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
expiresAt: string;
|
|
346
345
|
accountId: string;
|
|
346
|
+
expiresAt: string;
|
|
347
347
|
deviceId: string;
|
|
348
348
|
secret: string;
|
|
349
349
|
}, {
|
|
350
|
-
expiresAt: string;
|
|
351
350
|
accountId: string;
|
|
351
|
+
expiresAt: string;
|
|
352
352
|
deviceId: string;
|
|
353
353
|
secret: string;
|
|
354
354
|
}>;
|
|
@@ -387,12 +387,12 @@ export declare const deviceBackgroundTokenResponseSchema: z.ZodObject<{
|
|
|
387
387
|
expiresAt: z.ZodString;
|
|
388
388
|
accountId: z.ZodString;
|
|
389
389
|
}, "strip", z.ZodTypeAny, {
|
|
390
|
-
expiresAt: string;
|
|
391
390
|
accountId: string;
|
|
391
|
+
expiresAt: string;
|
|
392
392
|
accessToken: string;
|
|
393
393
|
}, {
|
|
394
|
-
expiresAt: string;
|
|
395
394
|
accountId: string;
|
|
395
|
+
expiresAt: string;
|
|
396
396
|
accessToken: string;
|
|
397
397
|
}>;
|
|
398
398
|
export type DeviceBackgroundCredentialResponse = z.infer<typeof deviceBackgroundCredentialResponseSchema>;
|
|
@@ -2190,11 +2190,11 @@ export declare const emailContactSchema: z.ZodObject<{
|
|
|
2190
2190
|
createdAt: z.ZodString;
|
|
2191
2191
|
updatedAt: z.ZodString;
|
|
2192
2192
|
}, "strip", z.ZodTypeAny, {
|
|
2193
|
-
email: string;
|
|
2194
2193
|
name: string;
|
|
2195
2194
|
createdAt: string;
|
|
2196
2195
|
updatedAt: string;
|
|
2197
2196
|
id: string;
|
|
2197
|
+
email: string;
|
|
2198
2198
|
userId: string;
|
|
2199
2199
|
_id: string;
|
|
2200
2200
|
starred: boolean;
|
|
@@ -2203,11 +2203,11 @@ export declare const emailContactSchema: z.ZodObject<{
|
|
|
2203
2203
|
autoCollected: boolean;
|
|
2204
2204
|
lastContactedAt: string | null;
|
|
2205
2205
|
}, {
|
|
2206
|
-
email: string;
|
|
2207
2206
|
name: string;
|
|
2208
2207
|
createdAt: string;
|
|
2209
2208
|
updatedAt: string;
|
|
2210
2209
|
id: string;
|
|
2210
|
+
email: string;
|
|
2211
2211
|
userId: string;
|
|
2212
2212
|
_id: string;
|
|
2213
2213
|
starred: boolean;
|
|
@@ -328,7 +328,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
328
328
|
sourceUserId: string;
|
|
329
329
|
}[];
|
|
330
330
|
redirectedUserIds: string[];
|
|
331
|
-
email?: string | undefined;
|
|
332
331
|
color?: string | null | undefined;
|
|
333
332
|
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
334
333
|
avatar?: string | null | undefined;
|
|
@@ -336,6 +335,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
336
335
|
bio?: string | undefined;
|
|
337
336
|
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
338
337
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
338
|
+
email?: string | undefined;
|
|
339
339
|
publicKey?: string | undefined;
|
|
340
340
|
verified?: boolean | undefined;
|
|
341
341
|
did?: string | undefined;
|
|
@@ -389,7 +389,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
389
389
|
sourceUserId: string;
|
|
390
390
|
}[];
|
|
391
391
|
redirectedUserIds: string[];
|
|
392
|
-
email?: string | undefined;
|
|
393
392
|
color?: string | null | undefined;
|
|
394
393
|
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
395
394
|
avatar?: string | null | undefined;
|
|
@@ -397,6 +396,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
397
396
|
bio?: string | undefined;
|
|
398
397
|
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
399
398
|
character?: unknown;
|
|
399
|
+
email?: string | undefined;
|
|
400
400
|
publicKey?: string | undefined;
|
|
401
401
|
verified?: boolean | undefined;
|
|
402
402
|
did?: string | undefined;
|
|
@@ -450,7 +450,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
450
450
|
sourceUserId: string;
|
|
451
451
|
}[];
|
|
452
452
|
redirectedUserIds: string[];
|
|
453
|
-
email?: string | undefined;
|
|
454
453
|
color?: string | null | undefined;
|
|
455
454
|
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
456
455
|
avatar?: string | null | undefined;
|
|
@@ -458,6 +457,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
458
457
|
bio?: string | undefined;
|
|
459
458
|
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
460
459
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
460
|
+
email?: string | undefined;
|
|
461
461
|
publicKey?: string | undefined;
|
|
462
462
|
verified?: boolean | undefined;
|
|
463
463
|
did?: string | undefined;
|
|
@@ -511,7 +511,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
511
511
|
sourceUserId: string;
|
|
512
512
|
}[];
|
|
513
513
|
redirectedUserIds: string[];
|
|
514
|
-
email?: string | undefined;
|
|
515
514
|
color?: string | null | undefined;
|
|
516
515
|
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
517
516
|
avatar?: string | null | undefined;
|
|
@@ -519,6 +518,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
519
518
|
bio?: string | undefined;
|
|
520
519
|
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
521
520
|
character?: unknown;
|
|
521
|
+
email?: string | undefined;
|
|
522
522
|
publicKey?: string | undefined;
|
|
523
523
|
verified?: boolean | undefined;
|
|
524
524
|
did?: string | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -102,8 +102,8 @@ export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATU
|
|
|
102
102
|
export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
|
|
103
103
|
export { INFERENCE_ECONOMIC_TREATMENTS, inferenceEconomicTreatmentSchema, PROVIDER_COST_SOURCES, providerCostSourceSchema, costCenterUsageSchema, } from './inference/economics';
|
|
104
104
|
export type { InferenceEconomicTreatment, ProviderCostSource, CostCenterUsage, } from './inference/economics';
|
|
105
|
-
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
-
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
105
|
+
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
+
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
107
107
|
export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
|
|
108
108
|
export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
|
|
109
109
|
export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
|
|
@@ -113,6 +113,7 @@ export type { InboxComposeRequest, InboxDailyBriefRequest, InboxDailyBriefRespon
|
|
|
113
113
|
export * from './externalIdentity';
|
|
114
114
|
export * from './linkedAccounts';
|
|
115
115
|
export * from './federationInstanceFetch';
|
|
116
|
+
export * from './accountAccess';
|
|
116
117
|
export * from './notifications';
|
|
117
118
|
export * from './email/messages';
|
|
118
119
|
export * from './stickers';
|
|
@@ -136,3 +137,5 @@ export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type Perso
|
|
|
136
137
|
export * from './products/checkout';
|
|
137
138
|
export * from './organizations';
|
|
138
139
|
export * from './safety';
|
|
140
|
+
export { serviceTokenScopesSchema, serviceTokenOptionsSchema, type ServiceTokenOptions, } from './serviceToken';
|
|
141
|
+
export * from './applicationRoles';
|
|
@@ -251,6 +251,7 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
251
251
|
}>;
|
|
252
252
|
}, "strict", z.ZodTypeAny, {
|
|
253
253
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
254
|
+
inherited: boolean;
|
|
254
255
|
schemaVersion: 1;
|
|
255
256
|
profile: {
|
|
256
257
|
status: "active" | "suspended" | "closed";
|
|
@@ -268,9 +269,9 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
268
269
|
};
|
|
269
270
|
};
|
|
270
271
|
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
271
|
-
inherited: boolean;
|
|
272
272
|
}, {
|
|
273
273
|
accountId: string;
|
|
274
|
+
inherited: boolean;
|
|
274
275
|
schemaVersion: 1;
|
|
275
276
|
profile: {
|
|
276
277
|
status: "active" | "suspended" | "closed";
|
|
@@ -288,7 +289,6 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
288
289
|
};
|
|
289
290
|
};
|
|
290
291
|
billingAccountId: string;
|
|
291
|
-
inherited: boolean;
|
|
292
292
|
}>;
|
|
293
293
|
export declare const BILLING_INVOICE_STATUSES: readonly ["draft", "open", "paid", "void"];
|
|
294
294
|
export declare const billingInvoiceStatusSchema: z.ZodEnum<["draft", "open", "paid", "void"]>;
|
|
@@ -338,22 +338,22 @@ export declare const modelDeprecationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
338
338
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
339
339
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
340
340
|
}, "strict", z.ZodTypeAny, {
|
|
341
|
-
status: "active" | "
|
|
341
|
+
status: "active" | "retired" | "deprecated";
|
|
342
342
|
replacementModelReference?: string | undefined;
|
|
343
343
|
announcedAt?: string | undefined;
|
|
344
344
|
sunsetAt?: string | undefined;
|
|
345
345
|
}, {
|
|
346
|
-
status: "active" | "
|
|
346
|
+
status: "active" | "retired" | "deprecated";
|
|
347
347
|
replacementModelReference?: string | undefined;
|
|
348
348
|
announcedAt?: string | undefined;
|
|
349
349
|
sunsetAt?: string | undefined;
|
|
350
350
|
}>, {
|
|
351
|
-
status: "active" | "
|
|
351
|
+
status: "active" | "retired" | "deprecated";
|
|
352
352
|
replacementModelReference?: string | undefined;
|
|
353
353
|
announcedAt?: string | undefined;
|
|
354
354
|
sunsetAt?: string | undefined;
|
|
355
355
|
}, {
|
|
356
|
-
status: "active" | "
|
|
356
|
+
status: "active" | "retired" | "deprecated";
|
|
357
357
|
replacementModelReference?: string | undefined;
|
|
358
358
|
announcedAt?: string | undefined;
|
|
359
359
|
sunsetAt?: string | undefined;
|
|
@@ -603,22 +603,22 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
603
603
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
604
604
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
605
605
|
}, "strict", z.ZodTypeAny, {
|
|
606
|
-
status: "active" | "
|
|
606
|
+
status: "active" | "retired" | "deprecated";
|
|
607
607
|
replacementModelReference?: string | undefined;
|
|
608
608
|
announcedAt?: string | undefined;
|
|
609
609
|
sunsetAt?: string | undefined;
|
|
610
610
|
}, {
|
|
611
|
-
status: "active" | "
|
|
611
|
+
status: "active" | "retired" | "deprecated";
|
|
612
612
|
replacementModelReference?: string | undefined;
|
|
613
613
|
announcedAt?: string | undefined;
|
|
614
614
|
sunsetAt?: string | undefined;
|
|
615
615
|
}>, {
|
|
616
|
-
status: "active" | "
|
|
616
|
+
status: "active" | "retired" | "deprecated";
|
|
617
617
|
replacementModelReference?: string | undefined;
|
|
618
618
|
announcedAt?: string | undefined;
|
|
619
619
|
sunsetAt?: string | undefined;
|
|
620
620
|
}, {
|
|
621
|
-
status: "active" | "
|
|
621
|
+
status: "active" | "retired" | "deprecated";
|
|
622
622
|
replacementModelReference?: string | undefined;
|
|
623
623
|
announcedAt?: string | undefined;
|
|
624
624
|
sunsetAt?: string | undefined;
|
|
@@ -663,7 +663,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
663
663
|
};
|
|
664
664
|
currentRevision: string;
|
|
665
665
|
deprecation: {
|
|
666
|
-
status: "active" | "
|
|
666
|
+
status: "active" | "retired" | "deprecated";
|
|
667
667
|
replacementModelReference?: string | undefined;
|
|
668
668
|
announcedAt?: string | undefined;
|
|
669
669
|
sunsetAt?: string | undefined;
|
|
@@ -711,7 +711,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
711
711
|
};
|
|
712
712
|
currentRevision: string;
|
|
713
713
|
deprecation: {
|
|
714
|
-
status: "active" | "
|
|
714
|
+
status: "active" | "retired" | "deprecated";
|
|
715
715
|
replacementModelReference?: string | undefined;
|
|
716
716
|
announcedAt?: string | undefined;
|
|
717
717
|
sunsetAt?: string | undefined;
|
|
@@ -759,7 +759,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
759
759
|
};
|
|
760
760
|
currentRevision: string;
|
|
761
761
|
deprecation: {
|
|
762
|
-
status: "active" | "
|
|
762
|
+
status: "active" | "retired" | "deprecated";
|
|
763
763
|
replacementModelReference?: string | undefined;
|
|
764
764
|
announcedAt?: string | undefined;
|
|
765
765
|
sunsetAt?: string | undefined;
|
|
@@ -807,7 +807,7 @@ export declare const catalogueModelSchema: z.ZodEffects<z.ZodObject<{
|
|
|
807
807
|
};
|
|
808
808
|
currentRevision: string;
|
|
809
809
|
deprecation: {
|
|
810
|
-
status: "active" | "
|
|
810
|
+
status: "active" | "retired" | "deprecated";
|
|
811
811
|
replacementModelReference?: string | undefined;
|
|
812
812
|
announcedAt?: string | undefined;
|
|
813
813
|
sunsetAt?: string | undefined;
|
|
@@ -1211,7 +1211,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1211
1211
|
/** The price version customers are charged under on this route. */
|
|
1212
1212
|
priceVersionId: z.ZodOptional<z.ZodString>;
|
|
1213
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
status: "active" | "
|
|
1214
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1215
1215
|
schemaVersion: 2;
|
|
1216
1216
|
provider: string;
|
|
1217
1217
|
modelReference: string;
|
|
@@ -1255,7 +1255,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1255
1255
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1256
1256
|
} | undefined;
|
|
1257
1257
|
}, {
|
|
1258
|
-
status: "active" | "
|
|
1258
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1259
1259
|
schemaVersion: 2;
|
|
1260
1260
|
provider: string;
|
|
1261
1261
|
modelReference: string;
|
|
@@ -1299,7 +1299,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1299
1299
|
maxCostUsd: string;
|
|
1300
1300
|
} | undefined;
|
|
1301
1301
|
}>, {
|
|
1302
|
-
status: "active" | "
|
|
1302
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1303
1303
|
schemaVersion: 2;
|
|
1304
1304
|
provider: string;
|
|
1305
1305
|
modelReference: string;
|
|
@@ -1343,7 +1343,7 @@ export declare const modelDeploymentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1343
1343
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1344
1344
|
} | undefined;
|
|
1345
1345
|
}, {
|
|
1346
|
-
status: "active" | "
|
|
1346
|
+
status: "active" | "retired" | "disabled" | "degraded";
|
|
1347
1347
|
schemaVersion: 2;
|
|
1348
1348
|
provider: string;
|
|
1349
1349
|
modelReference: string;
|
|
@@ -1906,22 +1906,22 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
1906
1906
|
announcedAt: z.ZodOptional<z.ZodString>;
|
|
1907
1907
|
sunsetAt: z.ZodOptional<z.ZodString>;
|
|
1908
1908
|
}, "strict", z.ZodTypeAny, {
|
|
1909
|
-
status: "active" | "
|
|
1909
|
+
status: "active" | "retired" | "deprecated";
|
|
1910
1910
|
replacementModelReference?: string | undefined;
|
|
1911
1911
|
announcedAt?: string | undefined;
|
|
1912
1912
|
sunsetAt?: string | undefined;
|
|
1913
1913
|
}, {
|
|
1914
|
-
status: "active" | "
|
|
1914
|
+
status: "active" | "retired" | "deprecated";
|
|
1915
1915
|
replacementModelReference?: string | undefined;
|
|
1916
1916
|
announcedAt?: string | undefined;
|
|
1917
1917
|
sunsetAt?: string | undefined;
|
|
1918
1918
|
}>, {
|
|
1919
|
-
status: "active" | "
|
|
1919
|
+
status: "active" | "retired" | "deprecated";
|
|
1920
1920
|
replacementModelReference?: string | undefined;
|
|
1921
1921
|
announcedAt?: string | undefined;
|
|
1922
1922
|
sunsetAt?: string | undefined;
|
|
1923
1923
|
}, {
|
|
1924
|
-
status: "active" | "
|
|
1924
|
+
status: "active" | "retired" | "deprecated";
|
|
1925
1925
|
replacementModelReference?: string | undefined;
|
|
1926
1926
|
announcedAt?: string | undefined;
|
|
1927
1927
|
sunsetAt?: string | undefined;
|
|
@@ -2013,7 +2013,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2013
2013
|
};
|
|
2014
2014
|
currentRevision: string;
|
|
2015
2015
|
deprecation: {
|
|
2016
|
-
status: "active" | "
|
|
2016
|
+
status: "active" | "retired" | "deprecated";
|
|
2017
2017
|
replacementModelReference?: string | undefined;
|
|
2018
2018
|
announcedAt?: string | undefined;
|
|
2019
2019
|
sunsetAt?: string | undefined;
|
|
@@ -2115,7 +2115,7 @@ export declare const modelCatalogueEntrySchema: z.ZodObject<{
|
|
|
2115
2115
|
};
|
|
2116
2116
|
currentRevision: string;
|
|
2117
2117
|
deprecation: {
|
|
2118
|
-
status: "active" | "
|
|
2118
|
+
status: "active" | "retired" | "deprecated";
|
|
2119
2119
|
replacementModelReference?: string | undefined;
|
|
2120
2120
|
announcedAt?: string | undefined;
|
|
2121
2121
|
sunsetAt?: string | undefined;
|
|
@@ -832,12 +832,12 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
832
832
|
createdAt: z.ZodString;
|
|
833
833
|
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
834
834
|
}, "strict", z.ZodTypeAny, {
|
|
835
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
836
835
|
validation: {
|
|
837
836
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
838
837
|
failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
|
|
839
838
|
lastValidatedAt?: string | undefined;
|
|
840
839
|
};
|
|
840
|
+
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
841
841
|
createdAt: string;
|
|
842
842
|
environment: "development" | "staging" | "production";
|
|
843
843
|
schemaVersion: 2;
|
|
@@ -862,12 +862,12 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
862
862
|
termsAcknowledgedAt?: string | undefined;
|
|
863
863
|
rotatedAt?: string | undefined;
|
|
864
864
|
}, {
|
|
865
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
866
865
|
validation: {
|
|
867
866
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
868
867
|
failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
|
|
869
868
|
lastValidatedAt?: string | undefined;
|
|
870
869
|
};
|
|
870
|
+
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
871
871
|
createdAt: string;
|
|
872
872
|
environment: "development" | "staging" | "production";
|
|
873
873
|
schemaVersion: 2;
|
|
@@ -892,12 +892,12 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
892
892
|
termsAcknowledgedAt?: string | undefined;
|
|
893
893
|
rotatedAt?: string | undefined;
|
|
894
894
|
}>, {
|
|
895
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
896
895
|
validation: {
|
|
897
896
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
898
897
|
failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
|
|
899
898
|
lastValidatedAt?: string | undefined;
|
|
900
899
|
};
|
|
900
|
+
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
901
901
|
createdAt: string;
|
|
902
902
|
environment: "development" | "staging" | "production";
|
|
903
903
|
schemaVersion: 2;
|
|
@@ -922,12 +922,12 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
922
922
|
termsAcknowledgedAt?: string | undefined;
|
|
923
923
|
rotatedAt?: string | undefined;
|
|
924
924
|
}, {
|
|
925
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
926
925
|
validation: {
|
|
927
926
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
928
927
|
failureCode?: "unknown" | "unauthorized" | "forbidden" | "not_found" | "rate_limited" | "network" | undefined;
|
|
929
928
|
lastValidatedAt?: string | undefined;
|
|
930
929
|
};
|
|
930
|
+
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
931
931
|
createdAt: string;
|
|
932
932
|
environment: "development" | "staging" | "production";
|
|
933
933
|
schemaVersion: 2;
|