@oxy.so/contracts 2.1.0 → 3.0.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/.tsbuildinfo +1 -1
- package/dist/cjs/accountEmail.js +79 -0
- package/dist/cjs/deviceBoot.js +2 -2
- package/dist/cjs/deviceSession.js +73 -16
- package/dist/cjs/identity.js +1 -3
- package/dist/cjs/identityLink.js +92 -0
- package/dist/cjs/identityProof.js +6 -29
- package/dist/cjs/index.js +82 -65
- package/dist/cjs/reputation.js +10 -55
- package/dist/cjs/signIn.js +304 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountEmail.js +76 -0
- package/dist/esm/deviceBoot.js +2 -2
- package/dist/esm/deviceSession.js +72 -15
- package/dist/esm/identity.js +1 -3
- package/dist/esm/identityLink.js +87 -0
- package/dist/esm/identityProof.js +6 -29
- package/dist/esm/index.js +13 -16
- package/dist/esm/reputation.js +9 -54
- package/dist/esm/signIn.js +299 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountEmail.d.ts +90 -0
- package/dist/types/agency.d.ts +2 -2
- package/dist/types/deviceBoot.d.ts +2 -2
- package/dist/types/deviceSession.d.ts +131 -19
- package/dist/types/externalIdentity.d.ts +4 -4
- package/dist/types/identity.d.ts +4 -8
- package/dist/types/identityLink.d.ts +146 -0
- package/dist/types/identityProof.d.ts +15 -42
- package/dist/types/index.d.ts +10 -12
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/embeddings.d.ts +16 -16
- package/dist/types/inference/entitlement.d.ts +2 -2
- package/dist/types/inference/errors.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +8 -8
- package/dist/types/inference/providerConnection.d.ts +20 -20
- package/dist/types/inference/request.d.ts +16 -16
- package/dist/types/inference/streamEvents.d.ts +20 -20
- package/dist/types/keyRecovery.d.ts +4 -4
- package/dist/types/oauth.d.ts +16 -16
- package/dist/types/reputation.d.ts +32 -127
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +717 -0
- package/dist/types/userResponse.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/identityMove.js +0 -156
- package/dist/cjs/identityRecovery.js +0 -51
- package/dist/cjs/webIdentityCarrier.js +0 -181
- package/dist/cjs/webauthn.js +0 -85
- package/dist/esm/identityMove.js +0 -148
- package/dist/esm/identityRecovery.js +0 -48
- package/dist/esm/webIdentityCarrier.js +0 -178
- package/dist/esm/webauthn.js +0 -82
- package/dist/types/identityMove.d.ts +0 -185
- package/dist/types/identityRecovery.d.ts +0 -246
- package/dist/types/webIdentityCarrier.d.ts +0 -1130
- package/dist/types/webauthn.d.ts +0 -285
|
@@ -137,25 +137,25 @@ export declare const kaanaCredentialRotateMutationSchema: z.ZodObject<{
|
|
|
137
137
|
ownerAccountId: string;
|
|
138
138
|
schemaVersion: 1;
|
|
139
139
|
action: "rotate";
|
|
140
|
-
expectedRevision: number;
|
|
141
140
|
provider: string;
|
|
142
141
|
connectionId: string;
|
|
143
142
|
operationId: string;
|
|
144
143
|
operationActor: string;
|
|
145
144
|
secretBase64: string;
|
|
146
145
|
credentialHandle: string;
|
|
146
|
+
expectedRevision: number;
|
|
147
147
|
}, {
|
|
148
148
|
environment: "development" | "staging" | "production";
|
|
149
149
|
ownerAccountId: string;
|
|
150
150
|
schemaVersion: 1;
|
|
151
151
|
action: "rotate";
|
|
152
|
-
expectedRevision: number;
|
|
153
152
|
provider: string;
|
|
154
153
|
connectionId: string;
|
|
155
154
|
operationId: string;
|
|
156
155
|
operationActor: string;
|
|
157
156
|
secretBase64: string;
|
|
158
157
|
credentialHandle: string;
|
|
158
|
+
expectedRevision: number;
|
|
159
159
|
}>;
|
|
160
160
|
export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
|
|
161
161
|
provider: z.ZodString;
|
|
@@ -174,23 +174,23 @@ export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
|
|
|
174
174
|
ownerAccountId: string;
|
|
175
175
|
schemaVersion: 1;
|
|
176
176
|
action: "revoke";
|
|
177
|
-
expectedRevision: number;
|
|
178
177
|
provider: string;
|
|
179
178
|
connectionId: string;
|
|
180
179
|
operationId: string;
|
|
181
180
|
operationActor: string;
|
|
182
181
|
credentialHandle: string;
|
|
182
|
+
expectedRevision: number;
|
|
183
183
|
}, {
|
|
184
184
|
environment: "development" | "staging" | "production";
|
|
185
185
|
ownerAccountId: string;
|
|
186
186
|
schemaVersion: 1;
|
|
187
187
|
action: "revoke";
|
|
188
|
-
expectedRevision: number;
|
|
189
188
|
provider: string;
|
|
190
189
|
connectionId: string;
|
|
191
190
|
operationId: string;
|
|
192
191
|
operationActor: string;
|
|
193
192
|
credentialHandle: string;
|
|
193
|
+
expectedRevision: number;
|
|
194
194
|
}>;
|
|
195
195
|
export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
196
196
|
provider: z.ZodString;
|
|
@@ -241,25 +241,25 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
|
|
|
241
241
|
ownerAccountId: string;
|
|
242
242
|
schemaVersion: 1;
|
|
243
243
|
action: "rotate";
|
|
244
|
-
expectedRevision: number;
|
|
245
244
|
provider: string;
|
|
246
245
|
connectionId: string;
|
|
247
246
|
operationId: string;
|
|
248
247
|
operationActor: string;
|
|
249
248
|
secretBase64: string;
|
|
250
249
|
credentialHandle: string;
|
|
250
|
+
expectedRevision: number;
|
|
251
251
|
}, {
|
|
252
252
|
environment: "development" | "staging" | "production";
|
|
253
253
|
ownerAccountId: string;
|
|
254
254
|
schemaVersion: 1;
|
|
255
255
|
action: "rotate";
|
|
256
|
-
expectedRevision: number;
|
|
257
256
|
provider: string;
|
|
258
257
|
connectionId: string;
|
|
259
258
|
operationId: string;
|
|
260
259
|
operationActor: string;
|
|
261
260
|
secretBase64: string;
|
|
262
261
|
credentialHandle: string;
|
|
262
|
+
expectedRevision: number;
|
|
263
263
|
}>, z.ZodObject<{
|
|
264
264
|
provider: z.ZodString;
|
|
265
265
|
ownerAccountId: z.ZodString;
|
|
@@ -277,23 +277,23 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
|
|
|
277
277
|
ownerAccountId: string;
|
|
278
278
|
schemaVersion: 1;
|
|
279
279
|
action: "revoke";
|
|
280
|
-
expectedRevision: number;
|
|
281
280
|
provider: string;
|
|
282
281
|
connectionId: string;
|
|
283
282
|
operationId: string;
|
|
284
283
|
operationActor: string;
|
|
285
284
|
credentialHandle: string;
|
|
285
|
+
expectedRevision: number;
|
|
286
286
|
}, {
|
|
287
287
|
environment: "development" | "staging" | "production";
|
|
288
288
|
ownerAccountId: string;
|
|
289
289
|
schemaVersion: 1;
|
|
290
290
|
action: "revoke";
|
|
291
|
-
expectedRevision: number;
|
|
292
291
|
provider: string;
|
|
293
292
|
connectionId: string;
|
|
294
293
|
operationId: string;
|
|
295
294
|
operationActor: string;
|
|
296
295
|
credentialHandle: string;
|
|
296
|
+
expectedRevision: number;
|
|
297
297
|
}>]>;
|
|
298
298
|
export declare const kaanaCredentialCreateOutcomeRequestSchema: z.ZodObject<{
|
|
299
299
|
provider: z.ZodString;
|
|
@@ -337,21 +337,21 @@ export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
|
|
|
337
337
|
ownerAccountId: string;
|
|
338
338
|
schemaVersion: 1;
|
|
339
339
|
action: "rotate";
|
|
340
|
-
expectedRevision: number;
|
|
341
340
|
provider: string;
|
|
342
341
|
connectionId: string;
|
|
343
342
|
operationId: string;
|
|
344
343
|
credentialHandle: string;
|
|
344
|
+
expectedRevision: number;
|
|
345
345
|
}, {
|
|
346
346
|
environment: "development" | "staging" | "production";
|
|
347
347
|
ownerAccountId: string;
|
|
348
348
|
schemaVersion: 1;
|
|
349
349
|
action: "rotate";
|
|
350
|
-
expectedRevision: number;
|
|
351
350
|
provider: string;
|
|
352
351
|
connectionId: string;
|
|
353
352
|
operationId: string;
|
|
354
353
|
credentialHandle: string;
|
|
354
|
+
expectedRevision: number;
|
|
355
355
|
}>;
|
|
356
356
|
export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
|
|
357
357
|
provider: z.ZodString;
|
|
@@ -369,21 +369,21 @@ export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
|
|
|
369
369
|
ownerAccountId: string;
|
|
370
370
|
schemaVersion: 1;
|
|
371
371
|
action: "revoke";
|
|
372
|
-
expectedRevision: number;
|
|
373
372
|
provider: string;
|
|
374
373
|
connectionId: string;
|
|
375
374
|
operationId: string;
|
|
376
375
|
credentialHandle: string;
|
|
376
|
+
expectedRevision: number;
|
|
377
377
|
}, {
|
|
378
378
|
environment: "development" | "staging" | "production";
|
|
379
379
|
ownerAccountId: string;
|
|
380
380
|
schemaVersion: 1;
|
|
381
381
|
action: "revoke";
|
|
382
|
-
expectedRevision: number;
|
|
383
382
|
provider: string;
|
|
384
383
|
connectionId: string;
|
|
385
384
|
operationId: string;
|
|
386
385
|
credentialHandle: string;
|
|
386
|
+
expectedRevision: number;
|
|
387
387
|
}>;
|
|
388
388
|
export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
389
389
|
provider: z.ZodString;
|
|
@@ -426,21 +426,21 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
|
|
|
426
426
|
ownerAccountId: string;
|
|
427
427
|
schemaVersion: 1;
|
|
428
428
|
action: "rotate";
|
|
429
|
-
expectedRevision: number;
|
|
430
429
|
provider: string;
|
|
431
430
|
connectionId: string;
|
|
432
431
|
operationId: string;
|
|
433
432
|
credentialHandle: string;
|
|
433
|
+
expectedRevision: number;
|
|
434
434
|
}, {
|
|
435
435
|
environment: "development" | "staging" | "production";
|
|
436
436
|
ownerAccountId: string;
|
|
437
437
|
schemaVersion: 1;
|
|
438
438
|
action: "rotate";
|
|
439
|
-
expectedRevision: number;
|
|
440
439
|
provider: string;
|
|
441
440
|
connectionId: string;
|
|
442
441
|
operationId: string;
|
|
443
442
|
credentialHandle: string;
|
|
443
|
+
expectedRevision: number;
|
|
444
444
|
}>, z.ZodObject<{
|
|
445
445
|
provider: z.ZodString;
|
|
446
446
|
ownerAccountId: z.ZodString;
|
|
@@ -457,21 +457,21 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
|
|
|
457
457
|
ownerAccountId: string;
|
|
458
458
|
schemaVersion: 1;
|
|
459
459
|
action: "revoke";
|
|
460
|
-
expectedRevision: number;
|
|
461
460
|
provider: string;
|
|
462
461
|
connectionId: string;
|
|
463
462
|
operationId: string;
|
|
464
463
|
credentialHandle: string;
|
|
464
|
+
expectedRevision: number;
|
|
465
465
|
}, {
|
|
466
466
|
environment: "development" | "staging" | "production";
|
|
467
467
|
ownerAccountId: string;
|
|
468
468
|
schemaVersion: 1;
|
|
469
469
|
action: "revoke";
|
|
470
|
-
expectedRevision: number;
|
|
471
470
|
provider: string;
|
|
472
471
|
connectionId: string;
|
|
473
472
|
operationId: string;
|
|
474
473
|
credentialHandle: string;
|
|
474
|
+
expectedRevision: number;
|
|
475
475
|
}>]>;
|
|
476
476
|
export declare const kaanaCredentialAppliedOutcomeSchema: z.ZodObject<{
|
|
477
477
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -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";
|
|
835
836
|
validation: {
|
|
836
837
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
837
838
|
failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
|
|
838
839
|
lastValidatedAt?: string | undefined;
|
|
839
840
|
};
|
|
840
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
841
841
|
environment: "development" | "staging" | "production";
|
|
842
842
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
843
843
|
createdAt: string;
|
|
@@ -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";
|
|
865
866
|
validation: {
|
|
866
867
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
867
868
|
failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
|
|
868
869
|
lastValidatedAt?: string | undefined;
|
|
869
870
|
};
|
|
870
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
871
871
|
environment: "development" | "staging" | "production";
|
|
872
872
|
ownerAccountId: string;
|
|
873
873
|
createdAt: string;
|
|
@@ -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";
|
|
895
896
|
validation: {
|
|
896
897
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
897
898
|
failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
|
|
898
899
|
lastValidatedAt?: string | undefined;
|
|
899
900
|
};
|
|
900
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
901
901
|
environment: "development" | "staging" | "production";
|
|
902
902
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
903
903
|
createdAt: string;
|
|
@@ -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";
|
|
925
926
|
validation: {
|
|
926
927
|
state: "valid" | "invalid" | "expired" | "unvalidated";
|
|
927
928
|
failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
|
|
928
929
|
lastValidatedAt?: string | undefined;
|
|
929
930
|
};
|
|
930
|
-
status: "active" | "revoked" | "disabled" | "pending_validation";
|
|
931
931
|
environment: "development" | "staging" | "production";
|
|
932
932
|
ownerAccountId: string;
|
|
933
933
|
createdAt: string;
|
|
@@ -1188,14 +1188,14 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
1188
1188
|
type: "function";
|
|
1189
1189
|
name: string;
|
|
1190
1190
|
parameters: Record<string, unknown>;
|
|
1191
|
-
description?: string | undefined;
|
|
1192
1191
|
strict?: boolean | undefined;
|
|
1192
|
+
description?: string | undefined;
|
|
1193
1193
|
}, {
|
|
1194
1194
|
type: "function";
|
|
1195
1195
|
name: string;
|
|
1196
1196
|
parameters: Record<string, unknown>;
|
|
1197
|
-
description?: string | undefined;
|
|
1198
1197
|
strict?: boolean | undefined;
|
|
1198
|
+
description?: string | undefined;
|
|
1199
1199
|
}>;
|
|
1200
1200
|
/** Whether, and which, tool the model must call. */
|
|
1201
1201
|
export declare const toolChoiceSchema: z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
|
|
@@ -1228,14 +1228,14 @@ export declare const responseFormatSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1228
1228
|
strict: z.ZodBoolean;
|
|
1229
1229
|
}, "strict", z.ZodTypeAny, {
|
|
1230
1230
|
type: "json_schema";
|
|
1231
|
+
strict: boolean;
|
|
1231
1232
|
schema: Record<string, unknown>;
|
|
1232
1233
|
name: string;
|
|
1233
|
-
strict: boolean;
|
|
1234
1234
|
}, {
|
|
1235
1235
|
type: "json_schema";
|
|
1236
|
+
strict: boolean;
|
|
1236
1237
|
schema: Record<string, unknown>;
|
|
1237
1238
|
name: string;
|
|
1238
|
-
strict: boolean;
|
|
1239
1239
|
}>]>;
|
|
1240
1240
|
/**
|
|
1241
1241
|
* The caller's reasoning control. Strict, like every leaf: a provider-specific
|
|
@@ -1946,14 +1946,14 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1946
1946
|
type: "function";
|
|
1947
1947
|
name: string;
|
|
1948
1948
|
parameters: Record<string, unknown>;
|
|
1949
|
-
description?: string | undefined;
|
|
1950
1949
|
strict?: boolean | undefined;
|
|
1950
|
+
description?: string | undefined;
|
|
1951
1951
|
}, {
|
|
1952
1952
|
type: "function";
|
|
1953
1953
|
name: string;
|
|
1954
1954
|
parameters: Record<string, unknown>;
|
|
1955
|
-
description?: string | undefined;
|
|
1956
1955
|
strict?: boolean | undefined;
|
|
1956
|
+
description?: string | undefined;
|
|
1957
1957
|
}>, "many">>;
|
|
1958
1958
|
toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
|
|
1959
1959
|
type: z.ZodLiteral<"function">;
|
|
@@ -1984,14 +1984,14 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1984
1984
|
strict: z.ZodBoolean;
|
|
1985
1985
|
}, "strict", z.ZodTypeAny, {
|
|
1986
1986
|
type: "json_schema";
|
|
1987
|
+
strict: boolean;
|
|
1987
1988
|
schema: Record<string, unknown>;
|
|
1988
1989
|
name: string;
|
|
1989
|
-
strict: boolean;
|
|
1990
1990
|
}, {
|
|
1991
1991
|
type: "json_schema";
|
|
1992
|
+
strict: boolean;
|
|
1992
1993
|
schema: Record<string, unknown>;
|
|
1993
1994
|
name: string;
|
|
1994
|
-
strict: boolean;
|
|
1995
1995
|
}>]>>;
|
|
1996
1996
|
client: z.ZodObject<{
|
|
1997
1997
|
/** The public dialect the customer called. The response is rendered in it. */
|
|
@@ -2225,8 +2225,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2225
2225
|
type: "function";
|
|
2226
2226
|
name: string;
|
|
2227
2227
|
parameters: Record<string, unknown>;
|
|
2228
|
-
description?: string | undefined;
|
|
2229
2228
|
strict?: boolean | undefined;
|
|
2229
|
+
description?: string | undefined;
|
|
2230
2230
|
}[];
|
|
2231
2231
|
attribution: {
|
|
2232
2232
|
requestId: string;
|
|
@@ -2340,9 +2340,9 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2340
2340
|
type: "json_object";
|
|
2341
2341
|
} | {
|
|
2342
2342
|
type: "json_schema";
|
|
2343
|
+
strict: boolean;
|
|
2343
2344
|
schema: Record<string, unknown>;
|
|
2344
2345
|
name: string;
|
|
2345
|
-
strict: boolean;
|
|
2346
2346
|
} | undefined;
|
|
2347
2347
|
speech?: {
|
|
2348
2348
|
voice: string;
|
|
@@ -2488,8 +2488,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2488
2488
|
type: "function";
|
|
2489
2489
|
name: string;
|
|
2490
2490
|
parameters: Record<string, unknown>;
|
|
2491
|
-
description?: string | undefined;
|
|
2492
2491
|
strict?: boolean | undefined;
|
|
2492
|
+
description?: string | undefined;
|
|
2493
2493
|
}[] | undefined;
|
|
2494
2494
|
idempotencyKey?: string | undefined;
|
|
2495
2495
|
reasoning?: {
|
|
@@ -2502,9 +2502,9 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2502
2502
|
type: "json_object";
|
|
2503
2503
|
} | {
|
|
2504
2504
|
type: "json_schema";
|
|
2505
|
+
strict: boolean;
|
|
2505
2506
|
schema: Record<string, unknown>;
|
|
2506
2507
|
name: string;
|
|
2507
|
-
strict: boolean;
|
|
2508
2508
|
} | undefined;
|
|
2509
2509
|
speech?: {
|
|
2510
2510
|
voice: string;
|
|
@@ -2549,8 +2549,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2549
2549
|
type: "function";
|
|
2550
2550
|
name: string;
|
|
2551
2551
|
parameters: Record<string, unknown>;
|
|
2552
|
-
description?: string | undefined;
|
|
2553
2552
|
strict?: boolean | undefined;
|
|
2553
|
+
description?: string | undefined;
|
|
2554
2554
|
}[];
|
|
2555
2555
|
attribution: {
|
|
2556
2556
|
requestId: string;
|
|
@@ -2664,9 +2664,9 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2664
2664
|
type: "json_object";
|
|
2665
2665
|
} | {
|
|
2666
2666
|
type: "json_schema";
|
|
2667
|
+
strict: boolean;
|
|
2667
2668
|
schema: Record<string, unknown>;
|
|
2668
2669
|
name: string;
|
|
2669
|
-
strict: boolean;
|
|
2670
2670
|
} | undefined;
|
|
2671
2671
|
speech?: {
|
|
2672
2672
|
voice: string;
|
|
@@ -2812,8 +2812,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2812
2812
|
type: "function";
|
|
2813
2813
|
name: string;
|
|
2814
2814
|
parameters: Record<string, unknown>;
|
|
2815
|
-
description?: string | undefined;
|
|
2816
2815
|
strict?: boolean | undefined;
|
|
2816
|
+
description?: string | undefined;
|
|
2817
2817
|
}[] | undefined;
|
|
2818
2818
|
idempotencyKey?: string | undefined;
|
|
2819
2819
|
reasoning?: {
|
|
@@ -2826,9 +2826,9 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2826
2826
|
type: "json_object";
|
|
2827
2827
|
} | {
|
|
2828
2828
|
type: "json_schema";
|
|
2829
|
+
strict: boolean;
|
|
2829
2830
|
schema: Record<string, unknown>;
|
|
2830
2831
|
name: string;
|
|
2831
|
-
strict: boolean;
|
|
2832
2832
|
} | undefined;
|
|
2833
2833
|
speech?: {
|
|
2834
2834
|
voice: string;
|
|
@@ -77,16 +77,16 @@ export declare const inferenceStreamDeltaEventSchema: z.ZodObject<{
|
|
|
77
77
|
channel: z.ZodEnum<["output_text", "reasoning", "refusal"]>;
|
|
78
78
|
text: z.ZodString;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
channel: "reasoning" | "refusal" | "output_text";
|
|
81
80
|
type: "delta";
|
|
81
|
+
channel: "reasoning" | "refusal" | "output_text";
|
|
82
82
|
schemaVersion: 1;
|
|
83
83
|
requestId: string;
|
|
84
84
|
text: string;
|
|
85
85
|
sequence: number;
|
|
86
86
|
outputIndex: number;
|
|
87
87
|
}, {
|
|
88
|
-
channel: "reasoning" | "refusal" | "output_text";
|
|
89
88
|
type: "delta";
|
|
89
|
+
channel: "reasoning" | "refusal" | "output_text";
|
|
90
90
|
schemaVersion: 1;
|
|
91
91
|
requestId: string;
|
|
92
92
|
text: string;
|
|
@@ -421,14 +421,14 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
421
421
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
422
422
|
}, "strict", z.ZodTypeAny, {
|
|
423
423
|
provider: string;
|
|
424
|
+
status?: number | undefined;
|
|
424
425
|
code?: string | undefined;
|
|
425
426
|
message?: string | undefined;
|
|
426
|
-
status?: number | undefined;
|
|
427
427
|
}, {
|
|
428
428
|
provider: string;
|
|
429
|
+
status?: number | undefined;
|
|
429
430
|
code?: string | undefined;
|
|
430
431
|
message?: string | undefined;
|
|
431
|
-
status?: number | undefined;
|
|
432
432
|
}>>;
|
|
433
433
|
}, "strip", z.ZodTypeAny, {
|
|
434
434
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -441,9 +441,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
441
441
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
442
442
|
providerError?: {
|
|
443
443
|
provider: string;
|
|
444
|
+
status?: number | undefined;
|
|
444
445
|
code?: string | undefined;
|
|
445
446
|
message?: string | undefined;
|
|
446
|
-
status?: number | undefined;
|
|
447
447
|
} | undefined;
|
|
448
448
|
}, {
|
|
449
449
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -456,9 +456,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
456
456
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
457
457
|
providerError?: {
|
|
458
458
|
provider: string;
|
|
459
|
+
status?: number | undefined;
|
|
459
460
|
code?: string | undefined;
|
|
460
461
|
message?: string | undefined;
|
|
461
|
-
status?: number | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
}>, {
|
|
464
464
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -471,9 +471,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
471
471
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
472
472
|
providerError?: {
|
|
473
473
|
provider: string;
|
|
474
|
+
status?: number | undefined;
|
|
474
475
|
code?: string | undefined;
|
|
475
476
|
message?: string | undefined;
|
|
476
|
-
status?: number | undefined;
|
|
477
477
|
} | undefined;
|
|
478
478
|
}, {
|
|
479
479
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -486,9 +486,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
486
486
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
487
487
|
providerError?: {
|
|
488
488
|
provider: string;
|
|
489
|
+
status?: number | undefined;
|
|
489
490
|
code?: string | undefined;
|
|
490
491
|
message?: string | undefined;
|
|
491
|
-
status?: number | undefined;
|
|
492
492
|
} | undefined;
|
|
493
493
|
}>;
|
|
494
494
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -506,9 +506,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
506
506
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
507
507
|
providerError?: {
|
|
508
508
|
provider: string;
|
|
509
|
+
status?: number | undefined;
|
|
509
510
|
code?: string | undefined;
|
|
510
511
|
message?: string | undefined;
|
|
511
|
-
status?: number | undefined;
|
|
512
512
|
} | undefined;
|
|
513
513
|
};
|
|
514
514
|
sequence: number;
|
|
@@ -527,9 +527,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
527
527
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
528
528
|
providerError?: {
|
|
529
529
|
provider: string;
|
|
530
|
+
status?: number | undefined;
|
|
530
531
|
code?: string | undefined;
|
|
531
532
|
message?: string | undefined;
|
|
532
|
-
status?: number | undefined;
|
|
533
533
|
} | undefined;
|
|
534
534
|
};
|
|
535
535
|
sequence: number;
|
|
@@ -626,16 +626,16 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
626
626
|
channel: z.ZodEnum<["output_text", "reasoning", "refusal"]>;
|
|
627
627
|
text: z.ZodString;
|
|
628
628
|
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
channel: "reasoning" | "refusal" | "output_text";
|
|
630
629
|
type: "delta";
|
|
630
|
+
channel: "reasoning" | "refusal" | "output_text";
|
|
631
631
|
schemaVersion: 1;
|
|
632
632
|
requestId: string;
|
|
633
633
|
text: string;
|
|
634
634
|
sequence: number;
|
|
635
635
|
outputIndex: number;
|
|
636
636
|
}, {
|
|
637
|
-
channel: "reasoning" | "refusal" | "output_text";
|
|
638
637
|
type: "delta";
|
|
638
|
+
channel: "reasoning" | "refusal" | "output_text";
|
|
639
639
|
schemaVersion: 1;
|
|
640
640
|
requestId: string;
|
|
641
641
|
text: string;
|
|
@@ -851,14 +851,14 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
851
851
|
message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
852
852
|
}, "strict", z.ZodTypeAny, {
|
|
853
853
|
provider: string;
|
|
854
|
+
status?: number | undefined;
|
|
854
855
|
code?: string | undefined;
|
|
855
856
|
message?: string | undefined;
|
|
856
|
-
status?: number | undefined;
|
|
857
857
|
}, {
|
|
858
858
|
provider: string;
|
|
859
|
+
status?: number | undefined;
|
|
859
860
|
code?: string | undefined;
|
|
860
861
|
message?: string | undefined;
|
|
861
|
-
status?: number | undefined;
|
|
862
862
|
}>>;
|
|
863
863
|
}, "strip", z.ZodTypeAny, {
|
|
864
864
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -871,9 +871,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
871
871
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
872
872
|
providerError?: {
|
|
873
873
|
provider: string;
|
|
874
|
+
status?: number | undefined;
|
|
874
875
|
code?: string | undefined;
|
|
875
876
|
message?: string | undefined;
|
|
876
|
-
status?: number | undefined;
|
|
877
877
|
} | undefined;
|
|
878
878
|
}, {
|
|
879
879
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -886,9 +886,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
886
886
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
887
887
|
providerError?: {
|
|
888
888
|
provider: string;
|
|
889
|
+
status?: number | undefined;
|
|
889
890
|
code?: string | undefined;
|
|
890
891
|
message?: string | undefined;
|
|
891
|
-
status?: number | undefined;
|
|
892
892
|
} | undefined;
|
|
893
893
|
}>, {
|
|
894
894
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -901,9 +901,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
901
901
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
902
902
|
providerError?: {
|
|
903
903
|
provider: string;
|
|
904
|
+
status?: number | undefined;
|
|
904
905
|
code?: string | undefined;
|
|
905
906
|
message?: string | undefined;
|
|
906
|
-
status?: number | undefined;
|
|
907
907
|
} | undefined;
|
|
908
908
|
}, {
|
|
909
909
|
code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
@@ -916,9 +916,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
916
916
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
917
917
|
providerError?: {
|
|
918
918
|
provider: string;
|
|
919
|
+
status?: number | undefined;
|
|
919
920
|
code?: string | undefined;
|
|
920
921
|
message?: string | undefined;
|
|
921
|
-
status?: number | undefined;
|
|
922
922
|
} | undefined;
|
|
923
923
|
}>;
|
|
924
924
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -936,9 +936,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
936
936
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
937
937
|
providerError?: {
|
|
938
938
|
provider: string;
|
|
939
|
+
status?: number | undefined;
|
|
939
940
|
code?: string | undefined;
|
|
940
941
|
message?: string | undefined;
|
|
941
|
-
status?: number | undefined;
|
|
942
942
|
} | undefined;
|
|
943
943
|
};
|
|
944
944
|
sequence: number;
|
|
@@ -957,9 +957,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
957
957
|
upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
|
|
958
958
|
providerError?: {
|
|
959
959
|
provider: string;
|
|
960
|
+
status?: number | undefined;
|
|
960
961
|
code?: string | undefined;
|
|
961
962
|
message?: string | undefined;
|
|
962
|
-
status?: number | undefined;
|
|
963
963
|
} | undefined;
|
|
964
964
|
};
|
|
965
965
|
sequence: number;
|
|
@@ -62,17 +62,17 @@ export declare const encryptedBackupEnvelopeSchema: z.ZodObject<{
|
|
|
62
62
|
version: number;
|
|
63
63
|
createdAt: string;
|
|
64
64
|
nonce: string;
|
|
65
|
-
ciphertext: string;
|
|
66
65
|
algorithm: "xchacha20poly1305";
|
|
67
66
|
kdfInfo: string;
|
|
67
|
+
ciphertext: string;
|
|
68
68
|
publicKeyHint: string;
|
|
69
69
|
}, {
|
|
70
70
|
version: number;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
nonce: string;
|
|
73
|
-
ciphertext: string;
|
|
74
73
|
algorithm: "xchacha20poly1305";
|
|
75
74
|
kdfInfo: string;
|
|
75
|
+
ciphertext: string;
|
|
76
76
|
publicKeyHint: string;
|
|
77
77
|
}>;
|
|
78
78
|
export type EncryptedBackupEnvelope = z.infer<typeof encryptedBackupEnvelopeSchema>;
|
|
@@ -101,18 +101,18 @@ export declare const backupUploadRequestSchema: z.ZodObject<{
|
|
|
101
101
|
version: number;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
nonce: string;
|
|
104
|
-
ciphertext: string;
|
|
105
104
|
algorithm: "xchacha20poly1305";
|
|
106
105
|
kdfInfo: string;
|
|
106
|
+
ciphertext: string;
|
|
107
107
|
publicKeyHint: string;
|
|
108
108
|
lookupId: string;
|
|
109
109
|
}, {
|
|
110
110
|
version: number;
|
|
111
111
|
createdAt: string;
|
|
112
112
|
nonce: string;
|
|
113
|
-
ciphertext: string;
|
|
114
113
|
algorithm: "xchacha20poly1305";
|
|
115
114
|
kdfInfo: string;
|
|
115
|
+
ciphertext: string;
|
|
116
116
|
publicKeyHint: string;
|
|
117
117
|
lookupId: string;
|
|
118
118
|
}>;
|