@oxy.so/contracts 2.0.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 (53) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountEmail.js +83 -0
  3. package/dist/cjs/federationInstanceFetch.js +44 -0
  4. package/dist/cjs/identityLink.js +89 -0
  5. package/dist/cjs/identityProof.js +6 -29
  6. package/dist/cjs/index.js +36 -49
  7. package/dist/cjs/linkedAccounts.js +34 -1
  8. package/dist/cjs/notifications.js +20 -1
  9. package/dist/cjs/webauthn.js +50 -21
  10. package/dist/esm/.tsbuildinfo +1 -1
  11. package/dist/esm/accountEmail.js +80 -0
  12. package/dist/esm/federationInstanceFetch.js +41 -0
  13. package/dist/esm/identityLink.js +84 -0
  14. package/dist/esm/identityProof.js +6 -29
  15. package/dist/esm/index.js +8 -10
  16. package/dist/esm/linkedAccounts.js +33 -0
  17. package/dist/esm/notifications.js +19 -0
  18. package/dist/esm/webauthn.js +49 -20
  19. package/dist/types/.tsbuildinfo +1 -1
  20. package/dist/types/accountEmail.d.ts +98 -0
  21. package/dist/types/accountGraph.d.ts +4 -4
  22. package/dist/types/agency.d.ts +2 -2
  23. package/dist/types/deviceSession.d.ts +4 -4
  24. package/dist/types/externalIdentity.d.ts +8 -8
  25. package/dist/types/federationInstanceFetch.d.ts +63 -0
  26. package/dist/types/identityLink.d.ts +210 -0
  27. package/dist/types/identityProof.d.ts +15 -42
  28. package/dist/types/index.d.ts +7 -8
  29. package/dist/types/inference/accountBilling.d.ts +2 -2
  30. package/dist/types/inference/aliaModelRelease.d.ts +8 -8
  31. package/dist/types/inference/embeddings.d.ts +16 -16
  32. package/dist/types/inference/errors.d.ts +8 -8
  33. package/dist/types/inference/inbox.d.ts +8 -8
  34. package/dist/types/inference/modelDocumentation.d.ts +8 -8
  35. package/dist/types/inference/providerConnection.d.ts +20 -20
  36. package/dist/types/inference/request.d.ts +16 -16
  37. package/dist/types/inference/streamEvents.d.ts +20 -20
  38. package/dist/types/keyRecovery.d.ts +4 -4
  39. package/dist/types/linkedAccounts.d.ts +33 -0
  40. package/dist/types/notifications.d.ts +26 -0
  41. package/dist/types/sessionStatus.d.ts +2 -2
  42. package/dist/types/userResponse.d.ts +4 -4
  43. package/dist/types/webauthn.d.ts +102 -214
  44. package/package.json +1 -1
  45. package/dist/cjs/identityMove.js +0 -156
  46. package/dist/cjs/identityRecovery.js +0 -51
  47. package/dist/cjs/webIdentityCarrier.js +0 -181
  48. package/dist/esm/identityMove.js +0 -148
  49. package/dist/esm/identityRecovery.js +0 -48
  50. package/dist/esm/webIdentityCarrier.js +0 -178
  51. package/dist/types/identityMove.d.ts +0 -185
  52. package/dist/types/identityRecovery.d.ts +0 -246
  53. package/dist/types/webIdentityCarrier.d.ts +0 -1130
@@ -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
  }>;
@@ -339,3 +339,36 @@ export type ServiceLinkedAccountListResponse = z.infer<typeof serviceLinkedAccou
339
339
  */
340
340
  export declare const LINKED_ACCOUNT_CALLBACK_ERRORS: readonly ["access_denied", "verification_failed", "provider_unavailable"];
341
341
  export type LinkedAccountCallbackError = (typeof LINKED_ACCOUNT_CALLBACK_ERRORS)[number];
342
+ /**
343
+ * Why `POST /linked-accounts/:network/start` refused, as `details.reason` on
344
+ * its 400 (`{ error: 'BAD_REQUEST', message, details: { reason } }`). The
345
+ * message is for logs; show the user a text chosen from the reason.
346
+ *
347
+ * - `instance_invalid`: the ActivityPub `instance` is not a server name.
348
+ * - `instance_unreachable`: the server does not resolve to a public address, or
349
+ * could not be connected to.
350
+ * - `handle_unresolvable`: the atproto handle or DID does not resolve to an
351
+ * account. The only reason that means "check what you typed".
352
+ * - `provider_rejected`: the other network answered and refused Oxy's
353
+ * request — for atproto an authorization-server error such as
354
+ * `invalid_client_metadata`; for a Mastodon-API server a refused app
355
+ * registration (often: not a Mastodon-compatible server). Nothing the user
356
+ * typed is wrong.
357
+ * - `provider_unavailable`: the other network could not be asked right now
358
+ * (its OAuth metadata did not load, a 5xx, a timeout). Try again later.
359
+ *
360
+ * A refusal with no `details.reason` (a bad `returnTo`, a missing field) is a
361
+ * client bug, not something to show.
362
+ */
363
+ export declare const LINKED_ACCOUNT_START_ERROR_REASONS: readonly ["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"];
364
+ export type LinkedAccountStartErrorReason = (typeof LINKED_ACCOUNT_START_ERROR_REASONS)[number];
365
+ export declare const linkedAccountStartErrorReasonSchema: z.ZodEnum<["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"]>;
366
+ /** The `details` of a start refusal. */
367
+ export declare const linkedAccountStartErrorDetailsSchema: z.ZodObject<{
368
+ reason: z.ZodEnum<["instance_invalid", "instance_unreachable", "handle_unresolvable", "provider_rejected", "provider_unavailable"]>;
369
+ }, "strict", z.ZodTypeAny, {
370
+ reason: "provider_unavailable" | "instance_invalid" | "instance_unreachable" | "handle_unresolvable" | "provider_rejected";
371
+ }, {
372
+ reason: "provider_unavailable" | "instance_invalid" | "instance_unreachable" | "handle_unresolvable" | "provider_rejected";
373
+ }>;
374
+ export type LinkedAccountStartErrorDetails = z.infer<typeof linkedAccountStartErrorDetailsSchema>;
@@ -91,3 +91,29 @@ export declare const createOxyNotificationRequestSchema: z.ZodEffects<z.ZodObjec
91
91
  title?: string | undefined;
92
92
  }>;
93
93
  export type CreateOxyNotificationRequest = z.infer<typeof createOxyNotificationRequestSchema>;
94
+ /**
95
+ * Android notification channel a `system` notification is pushed on — a wire
96
+ * contract, because Android 8+ silently drops a push whose channel the app has
97
+ * not created. Created by the vault (Commons) before it registers its token.
98
+ */
99
+ export declare const OXY_ACCOUNT_PUSH_CHANNEL = "account";
100
+ /** Runtime type discriminator of the push that announces a `system` notification. */
101
+ export declare const OXY_SYSTEM_NOTIFICATION_PUSH_TYPE = "oxy_system_notification";
102
+ /**
103
+ * The ONLY data a `system` notification's push carries: its id. The title and
104
+ * message ride as the push's own title and body; the deep link does NOT travel,
105
+ * because a push payload is untrusted at the receiver. On a tap the vault
106
+ * re-reads the notification from Oxy by id (scoped to the signed-in recipient)
107
+ * and opens the `url` stored there.
108
+ */
109
+ export declare const oxySystemNotificationPushDataSchema: z.ZodObject<{
110
+ type: z.ZodLiteral<"oxy_system_notification">;
111
+ notificationId: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ type: "oxy_system_notification";
114
+ notificationId: string;
115
+ }, {
116
+ type: "oxy_system_notification";
117
+ notificationId: string;
118
+ }>;
119
+ export type OxySystemNotificationPushData = z.infer<typeof oxySystemNotificationPushDataSchema>;
@@ -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;