@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
@@ -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
  }>;
@@ -179,6 +179,7 @@ export declare const sessionStatusSchema: z.ZodObject<{
179
179
  openedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
180
  }, "strip", z.ZodTypeAny, {
181
181
  status: string;
182
+ purpose?: "device_sign_in" | "oauth_authorization" | undefined;
182
183
  expiresAt?: string | undefined;
183
184
  publicKey?: string | null | undefined;
184
185
  userId?: string | null | undefined;
@@ -199,11 +200,11 @@ export declare const sessionStatusSchema: z.ZodObject<{
199
200
  termsUrl?: string | undefined;
200
201
  developerName?: string | undefined;
201
202
  } | null | undefined;
202
- purpose?: "device_sign_in" | "oauth_authorization" | undefined;
203
203
  pushSentAt?: string | null | undefined;
204
204
  openedAt?: string | null | undefined;
205
205
  }, {
206
206
  status: string;
207
+ purpose?: "device_sign_in" | "oauth_authorization" | undefined;
207
208
  expiresAt?: string | undefined;
208
209
  publicKey?: string | null | undefined;
209
210
  userId?: string | null | undefined;
@@ -224,7 +225,6 @@ export declare const sessionStatusSchema: z.ZodObject<{
224
225
  termsUrl?: string | undefined;
225
226
  developerName?: string | undefined;
226
227
  } | null | undefined;
227
- purpose?: "device_sign_in" | "oauth_authorization" | undefined;
228
228
  pushSentAt?: string | null | undefined;
229
229
  openedAt?: string | null | undefined;
230
230
  }>;
@@ -969,8 +969,9 @@ export declare const currentUserResponseSchema: z.ZodObject<{
969
969
  }, "strip", z.ZodTypeAny, {
970
970
  data: {
971
971
  name: UserNameResponse;
972
- kind?: "bot" | "personal" | "organization" | "project" | "channel" | undefined;
972
+ email?: string | undefined;
973
973
  username?: string | undefined;
974
+ kind?: "bot" | "personal" | "organization" | "project" | "channel" | undefined;
974
975
  avatar?: string | null | undefined;
975
976
  color?: string | null | undefined;
976
977
  accountCategories?: ("security" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
@@ -980,7 +981,6 @@ export declare const currentUserResponseSchema: z.ZodObject<{
980
981
  did?: string | undefined;
981
982
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
982
983
  _id?: string | undefined;
983
- email?: string | undefined;
984
984
  phone?: string | undefined;
985
985
  address?: string | undefined;
986
986
  birthday?: string | undefined;
@@ -995,8 +995,9 @@ export declare const currentUserResponseSchema: z.ZodObject<{
995
995
  }, {
996
996
  data: {
997
997
  name: UserNameResponse;
998
- kind?: "bot" | "personal" | "organization" | "project" | "channel" | undefined;
998
+ email?: string | undefined;
999
999
  username?: string | undefined;
1000
+ kind?: "bot" | "personal" | "organization" | "project" | "channel" | undefined;
1000
1001
  avatar?: string | null | undefined;
1001
1002
  color?: string | null | undefined;
1002
1003
  accountCategories?: ("security" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
@@ -1006,7 +1007,6 @@ export declare const currentUserResponseSchema: z.ZodObject<{
1006
1007
  did?: string | undefined;
1007
1008
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
1008
1009
  _id?: string | undefined;
1009
- email?: string | undefined;
1010
1010
  phone?: string | undefined;
1011
1011
  address?: string | undefined;
1012
1012
  birthday?: string | undefined;