@oxy.so/contracts 2.1.0 → 2.2.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.
Files changed (42) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountEmail.js +83 -0
  3. package/dist/cjs/identityLink.js +89 -0
  4. package/dist/cjs/identityProof.js +6 -29
  5. package/dist/cjs/index.js +35 -49
  6. package/dist/cjs/webauthn.js +50 -21
  7. package/dist/esm/.tsbuildinfo +1 -1
  8. package/dist/esm/accountEmail.js +80 -0
  9. package/dist/esm/identityLink.js +84 -0
  10. package/dist/esm/identityProof.js +6 -29
  11. package/dist/esm/index.js +7 -10
  12. package/dist/esm/webauthn.js +49 -20
  13. package/dist/types/.tsbuildinfo +1 -1
  14. package/dist/types/accountEmail.d.ts +98 -0
  15. package/dist/types/accountGraph.d.ts +4 -4
  16. package/dist/types/agency.d.ts +2 -2
  17. package/dist/types/deviceSession.d.ts +4 -4
  18. package/dist/types/externalIdentity.d.ts +8 -8
  19. package/dist/types/identityLink.d.ts +210 -0
  20. package/dist/types/identityProof.d.ts +15 -42
  21. package/dist/types/index.d.ts +6 -8
  22. package/dist/types/inference/accountBilling.d.ts +2 -2
  23. package/dist/types/inference/embeddings.d.ts +16 -16
  24. package/dist/types/inference/errors.d.ts +8 -8
  25. package/dist/types/inference/inbox.d.ts +8 -8
  26. package/dist/types/inference/providerConnection.d.ts +20 -20
  27. package/dist/types/inference/request.d.ts +16 -16
  28. package/dist/types/inference/streamEvents.d.ts +20 -20
  29. package/dist/types/keyRecovery.d.ts +4 -4
  30. package/dist/types/sessionStatus.d.ts +2 -2
  31. package/dist/types/userResponse.d.ts +4 -4
  32. package/dist/types/webauthn.d.ts +102 -214
  33. package/package.json +1 -1
  34. package/dist/cjs/identityMove.js +0 -156
  35. package/dist/cjs/identityRecovery.js +0 -51
  36. package/dist/cjs/webIdentityCarrier.js +0 -181
  37. package/dist/esm/identityMove.js +0 -148
  38. package/dist/esm/identityRecovery.js +0 -48
  39. package/dist/esm/webIdentityCarrier.js +0 -178
  40. package/dist/types/identityMove.d.ts +0 -185
  41. package/dist/types/identityRecovery.d.ts +0 -246
  42. package/dist/types/webIdentityCarrier.d.ts +0 -1130
@@ -322,7 +322,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
322
322
  paidAt: z.ZodOptional<z.ZodString>;
323
323
  receiptCount: z.ZodNumber;
324
324
  }, "strict", z.ZodTypeAny, {
325
- status: "draft" | "void" | "open" | "paid";
325
+ status: "void" | "draft" | "open" | "paid";
326
326
  accountId: string & z.BRAND<"OxyAccountId">;
327
327
  id: string;
328
328
  schemaVersion: 1;
@@ -337,7 +337,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
337
337
  externalInvoiceRef?: string | undefined;
338
338
  paidAt?: string | undefined;
339
339
  }, {
340
- status: "draft" | "void" | "open" | "paid";
340
+ status: "void" | "draft" | "open" | "paid";
341
341
  accountId: string;
342
342
  id: string;
343
343
  schemaVersion: 1;
@@ -128,14 +128,14 @@ export declare const embeddingFailureSchema: z.ZodObject<{
128
128
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
129
129
  }, "strict", z.ZodTypeAny, {
130
130
  provider: string;
131
+ status?: number | undefined;
131
132
  code?: string | undefined;
132
133
  message?: string | undefined;
133
- status?: number | undefined;
134
134
  }, {
135
135
  provider: string;
136
+ status?: number | undefined;
136
137
  code?: string | undefined;
137
138
  message?: string | undefined;
138
- status?: number | undefined;
139
139
  }>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  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";
@@ -148,9 +148,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
148
148
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
149
149
  providerError?: {
150
150
  provider: string;
151
+ status?: number | undefined;
151
152
  code?: string | undefined;
152
153
  message?: string | undefined;
153
- status?: number | undefined;
154
154
  } | undefined;
155
155
  }, {
156
156
  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";
@@ -163,9 +163,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
163
163
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
164
164
  providerError?: {
165
165
  provider: string;
166
+ status?: number | undefined;
166
167
  code?: string | undefined;
167
168
  message?: string | undefined;
168
- status?: number | undefined;
169
169
  } | undefined;
170
170
  }>, {
171
171
  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";
@@ -178,9 +178,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
178
178
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
179
179
  providerError?: {
180
180
  provider: string;
181
+ status?: number | undefined;
181
182
  code?: string | undefined;
182
183
  message?: string | undefined;
183
- status?: number | undefined;
184
184
  } | undefined;
185
185
  }, {
186
186
  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";
@@ -193,9 +193,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
193
193
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
194
194
  providerError?: {
195
195
  provider: string;
196
+ status?: number | undefined;
196
197
  code?: string | undefined;
197
198
  message?: string | undefined;
198
- status?: number | undefined;
199
199
  } | undefined;
200
200
  }>;
201
201
  }, "strict", z.ZodTypeAny, {
@@ -212,9 +212,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
212
212
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
213
213
  providerError?: {
214
214
  provider: string;
215
+ status?: number | undefined;
215
216
  code?: string | undefined;
216
217
  message?: string | undefined;
217
- status?: number | undefined;
218
218
  } | undefined;
219
219
  };
220
220
  }, {
@@ -231,9 +231,9 @@ export declare const embeddingFailureSchema: z.ZodObject<{
231
231
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
232
232
  providerError?: {
233
233
  provider: string;
234
+ status?: number | undefined;
234
235
  code?: string | undefined;
235
236
  message?: string | undefined;
236
- status?: number | undefined;
237
237
  } | undefined;
238
238
  };
239
239
  }>;
@@ -339,14 +339,14 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
339
339
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
340
340
  }, "strict", z.ZodTypeAny, {
341
341
  provider: string;
342
+ status?: number | undefined;
342
343
  code?: string | undefined;
343
344
  message?: string | undefined;
344
- status?: number | undefined;
345
345
  }, {
346
346
  provider: string;
347
+ status?: number | undefined;
347
348
  code?: string | undefined;
348
349
  message?: string | undefined;
349
- status?: number | undefined;
350
350
  }>>;
351
351
  }, "strip", z.ZodTypeAny, {
352
352
  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";
@@ -359,9 +359,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
359
359
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
360
360
  providerError?: {
361
361
  provider: string;
362
+ status?: number | undefined;
362
363
  code?: string | undefined;
363
364
  message?: string | undefined;
364
- status?: number | undefined;
365
365
  } | undefined;
366
366
  }, {
367
367
  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";
@@ -374,9 +374,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
374
374
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
375
375
  providerError?: {
376
376
  provider: string;
377
+ status?: number | undefined;
377
378
  code?: string | undefined;
378
379
  message?: string | undefined;
379
- status?: number | undefined;
380
380
  } | undefined;
381
381
  }>, {
382
382
  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";
@@ -389,9 +389,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
389
389
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
390
390
  providerError?: {
391
391
  provider: string;
392
+ status?: number | undefined;
392
393
  code?: string | undefined;
393
394
  message?: string | undefined;
394
- status?: number | undefined;
395
395
  } | undefined;
396
396
  }, {
397
397
  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";
@@ -404,9 +404,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
404
404
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
405
405
  providerError?: {
406
406
  provider: string;
407
+ status?: number | undefined;
407
408
  code?: string | undefined;
408
409
  message?: string | undefined;
409
- status?: number | undefined;
410
410
  } | undefined;
411
411
  }>;
412
412
  }, "strict", z.ZodTypeAny, {
@@ -423,9 +423,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
423
423
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
424
424
  providerError?: {
425
425
  provider: string;
426
+ status?: number | undefined;
426
427
  code?: string | undefined;
427
428
  message?: string | undefined;
428
- status?: number | undefined;
429
429
  } | undefined;
430
430
  };
431
431
  }, {
@@ -442,9 +442,9 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
442
442
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
443
443
  providerError?: {
444
444
  provider: string;
445
+ status?: number | undefined;
445
446
  code?: string | undefined;
446
447
  message?: string | undefined;
447
- status?: number | undefined;
448
448
  } | undefined;
449
449
  };
450
450
  }>]>;
@@ -127,14 +127,14 @@ export declare const providerErrorPassthroughSchema: z.ZodObject<{
127
127
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
128
128
  }, "strict", z.ZodTypeAny, {
129
129
  provider: string;
130
+ status?: number | undefined;
130
131
  code?: string | undefined;
131
132
  message?: string | undefined;
132
- status?: number | undefined;
133
133
  }, {
134
134
  provider: string;
135
+ status?: number | undefined;
135
136
  code?: string | undefined;
136
137
  message?: string | undefined;
137
- status?: number | undefined;
138
138
  }>;
139
139
  /**
140
140
  * The error body every inference surface returns and every stream error event
@@ -166,14 +166,14 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
166
166
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
167
167
  }, "strict", z.ZodTypeAny, {
168
168
  provider: string;
169
+ status?: number | undefined;
169
170
  code?: string | undefined;
170
171
  message?: string | undefined;
171
- status?: number | undefined;
172
172
  }, {
173
173
  provider: string;
174
+ status?: number | undefined;
174
175
  code?: string | undefined;
175
176
  message?: string | undefined;
176
- status?: number | undefined;
177
177
  }>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
179
  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";
@@ -186,9 +186,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
186
186
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
187
187
  providerError?: {
188
188
  provider: string;
189
+ status?: number | undefined;
189
190
  code?: string | undefined;
190
191
  message?: string | undefined;
191
- status?: number | undefined;
192
192
  } | undefined;
193
193
  }, {
194
194
  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";
@@ -201,9 +201,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
201
201
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
202
202
  providerError?: {
203
203
  provider: string;
204
+ status?: number | undefined;
204
205
  code?: string | undefined;
205
206
  message?: string | undefined;
206
- status?: number | undefined;
207
207
  } | undefined;
208
208
  }>, {
209
209
  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";
@@ -216,9 +216,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
216
216
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
217
217
  providerError?: {
218
218
  provider: string;
219
+ status?: number | undefined;
219
220
  code?: string | undefined;
220
221
  message?: string | undefined;
221
- status?: number | undefined;
222
222
  } | undefined;
223
223
  }, {
224
224
  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";
@@ -231,9 +231,9 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
231
231
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
232
232
  providerError?: {
233
233
  provider: string;
234
+ status?: number | undefined;
234
235
  code?: string | undefined;
235
236
  message?: string | undefined;
236
- status?: number | undefined;
237
237
  } | undefined;
238
238
  }>;
239
239
  export type InferenceErrorCode = z.infer<typeof inferenceErrorCodeSchema>;
@@ -258,14 +258,14 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
258
258
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
259
259
  }, "strict", z.ZodTypeAny, {
260
260
  provider: string;
261
+ status?: number | undefined;
261
262
  code?: string | undefined;
262
263
  message?: string | undefined;
263
- status?: number | undefined;
264
264
  }, {
265
265
  provider: string;
266
+ status?: number | undefined;
266
267
  code?: string | undefined;
267
268
  message?: string | undefined;
268
- status?: number | undefined;
269
269
  }>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
271
  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";
@@ -278,9 +278,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
278
278
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
279
279
  providerError?: {
280
280
  provider: string;
281
+ status?: number | undefined;
281
282
  code?: string | undefined;
282
283
  message?: string | undefined;
283
- status?: number | undefined;
284
284
  } | undefined;
285
285
  }, {
286
286
  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";
@@ -293,9 +293,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
293
293
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
294
294
  providerError?: {
295
295
  provider: string;
296
+ status?: number | undefined;
296
297
  code?: string | undefined;
297
298
  message?: string | undefined;
298
- status?: number | undefined;
299
299
  } | undefined;
300
300
  }>, {
301
301
  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";
@@ -308,9 +308,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
308
308
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
309
309
  providerError?: {
310
310
  provider: string;
311
+ status?: number | undefined;
311
312
  code?: string | undefined;
312
313
  message?: string | undefined;
313
- status?: number | undefined;
314
314
  } | undefined;
315
315
  }, {
316
316
  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";
@@ -323,9 +323,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
323
323
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
324
324
  providerError?: {
325
325
  provider: string;
326
+ status?: number | undefined;
326
327
  code?: string | undefined;
327
328
  message?: string | undefined;
328
- status?: number | undefined;
329
329
  } | undefined;
330
330
  }>;
331
331
  }, "strict", z.ZodTypeAny, {
@@ -341,9 +341,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
341
341
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
342
342
  providerError?: {
343
343
  provider: string;
344
+ status?: number | undefined;
344
345
  code?: string | undefined;
345
346
  message?: string | undefined;
346
- status?: number | undefined;
347
347
  } | undefined;
348
348
  };
349
349
  }, {
@@ -359,9 +359,9 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
359
359
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
360
360
  providerError?: {
361
361
  provider: string;
362
+ status?: number | undefined;
362
363
  code?: string | undefined;
363
364
  message?: string | undefined;
364
- status?: number | undefined;
365
365
  } | undefined;
366
366
  };
367
367
  }>]>;
@@ -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;