@oxy.so/contracts 4.16.0 → 4.17.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 (113) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountEmail.js +12 -34
  3. package/dist/cjs/accountGraph.js +22 -320
  4. package/dist/cjs/agentKeys.js +11 -13
  5. package/dist/cjs/client/accountEmail.js +48 -0
  6. package/dist/cjs/client/accountGraph.js +323 -0
  7. package/dist/cjs/client/agentKeys.js +77 -0
  8. package/dist/cjs/client/check.js +466 -0
  9. package/dist/cjs/client/deviceBoot.js +22 -0
  10. package/dist/cjs/client/deviceDirectory.js +51 -0
  11. package/dist/cjs/client/deviceSession.js +63 -0
  12. package/dist/cjs/client/externalIdentity.js +19 -0
  13. package/dist/cjs/client/identity.js +45 -0
  14. package/dist/cjs/client/identityLink.js +55 -0
  15. package/dist/cjs/client/identityProof.js +109 -0
  16. package/dist/cjs/client/index.js +190 -0
  17. package/dist/cjs/client/organizations.js +114 -0
  18. package/dist/cjs/client/products.js +153 -0
  19. package/dist/cjs/client/recommendations.js +33 -0
  20. package/dist/cjs/client/reputation.js +41 -0
  21. package/dist/cjs/client/safety.js +15 -0
  22. package/dist/cjs/client/sessionStatus.js +23 -0
  23. package/dist/cjs/client/signIn.js +157 -0
  24. package/dist/cjs/client/userResponse.js +15 -0
  25. package/dist/cjs/client/username.js +173 -0
  26. package/dist/cjs/deviceSession.js +3 -16
  27. package/dist/cjs/identityLink.js +13 -34
  28. package/dist/cjs/identityProof.js +18 -106
  29. package/dist/cjs/organizations.js +21 -41
  30. package/dist/cjs/reputation.js +3 -34
  31. package/dist/cjs/signIn.js +33 -111
  32. package/dist/cjs/username.js +23 -158
  33. package/dist/esm/.tsbuildinfo +1 -1
  34. package/dist/esm/accountEmail.js +4 -32
  35. package/dist/esm/accountGraph.js +4 -309
  36. package/dist/esm/agentKeys.js +4 -10
  37. package/dist/esm/client/accountEmail.js +45 -0
  38. package/dist/esm/client/accountGraph.js +314 -0
  39. package/dist/esm/client/agentKeys.js +74 -0
  40. package/dist/esm/client/check.js +428 -0
  41. package/dist/esm/client/deviceBoot.js +19 -0
  42. package/dist/esm/client/deviceDirectory.js +48 -0
  43. package/dist/esm/client/deviceSession.js +60 -0
  44. package/dist/esm/client/externalIdentity.js +16 -0
  45. package/dist/esm/client/identity.js +42 -0
  46. package/dist/esm/client/identityLink.js +50 -0
  47. package/dist/esm/client/identityProof.js +104 -0
  48. package/dist/esm/client/index.js +37 -0
  49. package/dist/esm/client/organizations.js +111 -0
  50. package/dist/esm/client/products.js +150 -0
  51. package/dist/esm/client/recommendations.js +30 -0
  52. package/dist/esm/client/reputation.js +37 -0
  53. package/dist/esm/client/safety.js +12 -0
  54. package/dist/esm/client/sessionStatus.js +20 -0
  55. package/dist/esm/client/signIn.js +151 -0
  56. package/dist/esm/client/userResponse.js +12 -0
  57. package/dist/esm/client/username.js +167 -0
  58. package/dist/esm/deviceSession.js +1 -15
  59. package/dist/esm/identityLink.js +4 -27
  60. package/dist/esm/identityProof.js +4 -99
  61. package/dist/esm/organizations.js +4 -31
  62. package/dist/esm/reputation.js +1 -32
  63. package/dist/esm/signIn.js +4 -96
  64. package/dist/esm/username.js +4 -148
  65. package/dist/types/.tsbuildinfo +1 -1
  66. package/dist/types/accountEmail.d.ts +2 -34
  67. package/dist/types/accountGraph.d.ts +12 -208
  68. package/dist/types/agency.d.ts +24 -24
  69. package/dist/types/agentKeys.d.ts +8 -6
  70. package/dist/types/client/accountEmail.d.ts +44 -0
  71. package/dist/types/client/accountGraph.d.ts +203 -0
  72. package/dist/types/client/agentKeys.d.ts +113 -0
  73. package/dist/types/client/check.d.ts +184 -0
  74. package/dist/types/client/deviceBoot.d.ts +6 -0
  75. package/dist/types/client/deviceDirectory.d.ts +134 -0
  76. package/dist/types/client/deviceSession.d.ts +91 -0
  77. package/dist/types/client/externalIdentity.d.ts +14 -0
  78. package/dist/types/client/identity.d.ts +8 -0
  79. package/dist/types/client/identityLink.d.ts +21 -0
  80. package/dist/types/client/identityProof.d.ts +73 -0
  81. package/dist/types/client/index.d.ts +37 -0
  82. package/dist/types/client/organizations.d.ts +167 -0
  83. package/dist/types/client/products.d.ts +145 -0
  84. package/dist/types/client/recommendations.d.ts +27 -0
  85. package/dist/types/client/reputation.d.ts +28 -0
  86. package/dist/types/client/safety.d.ts +13 -0
  87. package/dist/types/client/sessionStatus.d.ts +19 -0
  88. package/dist/types/client/signIn.d.ts +107 -0
  89. package/dist/types/client/userResponse.d.ts +7 -0
  90. package/dist/types/client/username.d.ts +126 -0
  91. package/dist/types/deviceDirectory.d.ts +28 -28
  92. package/dist/types/deviceSession.d.ts +1 -12
  93. package/dist/types/externalIdentity.d.ts +11 -11
  94. package/dist/types/identityLink.d.ts +3 -11
  95. package/dist/types/identityProof.d.ts +2 -65
  96. package/dist/types/inference/decisions.d.ts +10 -10
  97. package/dist/types/inference/embeddings.d.ts +16 -16
  98. package/dist/types/inference/errors.d.ts +8 -8
  99. package/dist/types/inference/inbox.d.ts +8 -8
  100. package/dist/types/inference/privateAutoExecution.d.ts +6 -6
  101. package/dist/types/inference/realtime.d.ts +30 -30
  102. package/dist/types/inference/request.d.ts +28 -28
  103. package/dist/types/inference/streamEvents.d.ts +16 -16
  104. package/dist/types/inference/usage.d.ts +4 -4
  105. package/dist/types/oauth.d.ts +2 -2
  106. package/dist/types/organizations.d.ts +8 -10
  107. package/dist/types/products/billing.d.ts +3 -0
  108. package/dist/types/reputation.d.ts +1 -11
  109. package/dist/types/sessionStatus.d.ts +2 -2
  110. package/dist/types/signIn.d.ts +6 -89
  111. package/dist/types/userResponse.d.ts +20 -20
  112. package/dist/types/username.d.ts +1 -96
  113. package/package.json +20 -1
@@ -130,7 +130,7 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
130
130
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
131
131
  }, "strip", z.ZodTypeAny, {
132
132
  active: boolean;
133
- kind: "organization" | "bot" | "personal" | "project" | "channel";
133
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
134
134
  accountId: string;
135
135
  id: string;
136
136
  lastUsedAt: number | null;
@@ -146,7 +146,7 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
146
146
  available: boolean;
147
147
  }, {
148
148
  active: boolean;
149
- kind: "organization" | "bot" | "personal" | "project" | "channel";
149
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
150
150
  accountId: string;
151
151
  id: string;
152
152
  lastUsedAt: number | null;
@@ -232,7 +232,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
232
232
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
233
233
  }, "strip", z.ZodTypeAny, {
234
234
  active: boolean;
235
- kind: "organization" | "bot" | "personal" | "project" | "channel";
235
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
236
236
  accountId: string;
237
237
  id: string;
238
238
  lastUsedAt: number | null;
@@ -248,7 +248,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
248
248
  available: boolean;
249
249
  }, {
250
250
  active: boolean;
251
- kind: "organization" | "bot" | "personal" | "project" | "channel";
251
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
252
252
  accountId: string;
253
253
  id: string;
254
254
  lastUsedAt: number | null;
@@ -276,7 +276,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
276
276
  userId: string;
277
277
  contexts: {
278
278
  active: boolean;
279
- kind: "organization" | "bot" | "personal" | "project" | "channel";
279
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
280
280
  accountId: string;
281
281
  id: string;
282
282
  lastUsedAt: number | null;
@@ -304,7 +304,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
304
304
  userId: string;
305
305
  contexts: {
306
306
  active: boolean;
307
- kind: "organization" | "bot" | "personal" | "project" | "channel";
307
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
308
308
  accountId: string;
309
309
  id: string;
310
310
  lastUsedAt: number | null;
@@ -395,7 +395,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
395
395
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
396
396
  }, "strip", z.ZodTypeAny, {
397
397
  active: boolean;
398
- kind: "organization" | "bot" | "personal" | "project" | "channel";
398
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
399
399
  accountId: string;
400
400
  id: string;
401
401
  lastUsedAt: number | null;
@@ -411,7 +411,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
411
411
  available: boolean;
412
412
  }, {
413
413
  active: boolean;
414
- kind: "organization" | "bot" | "personal" | "project" | "channel";
414
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
415
415
  accountId: string;
416
416
  id: string;
417
417
  lastUsedAt: number | null;
@@ -439,7 +439,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
439
439
  userId: string;
440
440
  contexts: {
441
441
  active: boolean;
442
- kind: "organization" | "bot" | "personal" | "project" | "channel";
442
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
443
443
  accountId: string;
444
444
  id: string;
445
445
  lastUsedAt: number | null;
@@ -467,7 +467,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
467
467
  userId: string;
468
468
  contexts: {
469
469
  active: boolean;
470
- kind: "organization" | "bot" | "personal" | "project" | "channel";
470
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
471
471
  accountId: string;
472
472
  id: string;
473
473
  lastUsedAt: number | null;
@@ -502,7 +502,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
502
502
  userId: string;
503
503
  contexts: {
504
504
  active: boolean;
505
- kind: "organization" | "bot" | "personal" | "project" | "channel";
505
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
506
506
  accountId: string;
507
507
  id: string;
508
508
  lastUsedAt: number | null;
@@ -536,7 +536,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
536
536
  userId: string;
537
537
  contexts: {
538
538
  active: boolean;
539
- kind: "organization" | "bot" | "personal" | "project" | "channel";
539
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
540
540
  accountId: string;
541
541
  id: string;
542
542
  lastUsedAt: number | null;
@@ -649,7 +649,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
649
649
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
650
650
  }, "strip", z.ZodTypeAny, {
651
651
  active: boolean;
652
- kind: "organization" | "bot" | "personal" | "project" | "channel";
652
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
653
653
  accountId: string;
654
654
  id: string;
655
655
  lastUsedAt: number | null;
@@ -665,7 +665,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
665
665
  available: boolean;
666
666
  }, {
667
667
  active: boolean;
668
- kind: "organization" | "bot" | "personal" | "project" | "channel";
668
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
669
669
  accountId: string;
670
670
  id: string;
671
671
  lastUsedAt: number | null;
@@ -693,7 +693,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
693
693
  userId: string;
694
694
  contexts: {
695
695
  active: boolean;
696
- kind: "organization" | "bot" | "personal" | "project" | "channel";
696
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
697
697
  accountId: string;
698
698
  id: string;
699
699
  lastUsedAt: number | null;
@@ -721,7 +721,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
721
721
  userId: string;
722
722
  contexts: {
723
723
  active: boolean;
724
- kind: "organization" | "bot" | "personal" | "project" | "channel";
724
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
725
725
  accountId: string;
726
726
  id: string;
727
727
  lastUsedAt: number | null;
@@ -756,7 +756,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
756
756
  userId: string;
757
757
  contexts: {
758
758
  active: boolean;
759
- kind: "organization" | "bot" | "personal" | "project" | "channel";
759
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
760
760
  accountId: string;
761
761
  id: string;
762
762
  lastUsedAt: number | null;
@@ -790,7 +790,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
790
790
  userId: string;
791
791
  contexts: {
792
792
  active: boolean;
793
- kind: "organization" | "bot" | "personal" | "project" | "channel";
793
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
794
794
  accountId: string;
795
795
  id: string;
796
796
  lastUsedAt: number | null;
@@ -840,7 +840,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
840
840
  userId: string;
841
841
  contexts: {
842
842
  active: boolean;
843
- kind: "organization" | "bot" | "personal" | "project" | "channel";
843
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
844
844
  accountId: string;
845
845
  id: string;
846
846
  lastUsedAt: number | null;
@@ -880,7 +880,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
880
880
  userId: string;
881
881
  contexts: {
882
882
  active: boolean;
883
- kind: "organization" | "bot" | "personal" | "project" | "channel";
883
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
884
884
  accountId: string;
885
885
  id: string;
886
886
  lastUsedAt: number | null;
@@ -990,7 +990,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
990
990
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
991
991
  }, "strip", z.ZodTypeAny, {
992
992
  active: boolean;
993
- kind: "organization" | "bot" | "personal" | "project" | "channel";
993
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
994
994
  accountId: string;
995
995
  id: string;
996
996
  lastUsedAt: number | null;
@@ -1006,7 +1006,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1006
1006
  available: boolean;
1007
1007
  }, {
1008
1008
  active: boolean;
1009
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1009
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1010
1010
  accountId: string;
1011
1011
  id: string;
1012
1012
  lastUsedAt: number | null;
@@ -1034,7 +1034,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1034
1034
  userId: string;
1035
1035
  contexts: {
1036
1036
  active: boolean;
1037
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1037
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1038
1038
  accountId: string;
1039
1039
  id: string;
1040
1040
  lastUsedAt: number | null;
@@ -1062,7 +1062,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1062
1062
  userId: string;
1063
1063
  contexts: {
1064
1064
  active: boolean;
1065
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1065
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1066
1066
  accountId: string;
1067
1067
  id: string;
1068
1068
  lastUsedAt: number | null;
@@ -1097,7 +1097,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1097
1097
  userId: string;
1098
1098
  contexts: {
1099
1099
  active: boolean;
1100
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1100
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1101
1101
  accountId: string;
1102
1102
  id: string;
1103
1103
  lastUsedAt: number | null;
@@ -1131,7 +1131,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1131
1131
  userId: string;
1132
1132
  contexts: {
1133
1133
  active: boolean;
1134
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1134
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1135
1135
  accountId: string;
1136
1136
  id: string;
1137
1137
  lastUsedAt: number | null;
@@ -1237,7 +1237,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1237
1237
  userId: string;
1238
1238
  contexts: {
1239
1239
  active: boolean;
1240
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1240
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1241
1241
  accountId: string;
1242
1242
  id: string;
1243
1243
  lastUsedAt: number | null;
@@ -1289,7 +1289,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1289
1289
  userId: string;
1290
1290
  contexts: {
1291
1291
  active: boolean;
1292
- kind: "organization" | "bot" | "personal" | "project" | "channel";
1292
+ kind: "organization" | "personal" | "project" | "bot" | "channel";
1293
1293
  accountId: string;
1294
1294
  id: string;
1295
1295
  lastUsedAt: number | null;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export { SESSION_ACCOUNTS_CHANGED_EVENT } from './client/deviceSession';
2
3
  export declare const sessionAccountSchema: z.ZodObject<{
3
4
  accountId: z.ZodString;
4
5
  sessionId: z.ZodString;
@@ -283,18 +284,6 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
283
284
  }>;
284
285
  export type DeviceTokenMintRequest = z.infer<typeof deviceTokenMintRequestSchema>;
285
286
  export type DeviceTokenMintResponse = z.infer<typeof deviceTokenMintResponseSchema>;
286
- /**
287
- * Name of the token-free Socket.IO event emitted to room `user:<userId>` on
288
- * every DeviceSession mutation that changes what is signed in for that user.
289
- *
290
- * This is a pure SIGNAL — it carries NO access token, NO deviceSecret and NO
291
- * account bodies. A client that receives it re-fetches its authenticated
292
- * session/account state (`GET /session/device/state`, `GET /accounts`). Unlike
293
- * `session_state` (scoped to `device:<deviceId>`, i.e. a single origin), this
294
- * reaches ALL of a user's connected sockets across their devices/origins so
295
- * every Oxy app reflects an add / switch / signout instantly.
296
- */
297
- export declare const SESSION_ACCOUNTS_CHANGED_EVENT = "session_accounts_changed";
298
287
  /**
299
288
  * Why the signed-in set changed:
300
289
  * - `login` — a brand-new session was minted for the user (QR / cross-app authorize)
@@ -71,7 +71,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
71
71
  did: z.ZodOptional<z.ZodString>;
72
72
  verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
73
73
  kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
74
- accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[]>>;
74
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
75
75
  character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
76
76
  relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
77
77
  themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
@@ -141,7 +141,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
141
141
  did: z.ZodOptional<z.ZodString>;
142
142
  verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
143
143
  kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
144
- accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[]>>;
144
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
145
145
  character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
146
146
  relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
147
147
  themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
@@ -211,7 +211,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
211
211
  did: z.ZodOptional<z.ZodString>;
212
212
  verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
213
213
  kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
214
- accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[]>>;
214
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
215
215
  character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
216
216
  relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
217
217
  themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
@@ -330,11 +330,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
330
330
  redirectedUserIds: string[];
331
331
  email?: string | undefined;
332
332
  color?: string | null | undefined;
333
- kind?: "organization" | "bot" | "personal" | "project" | "channel" | undefined;
333
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
334
334
  avatar?: string | null | undefined;
335
335
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
336
336
  bio?: string | undefined;
337
- accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[] | undefined;
337
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
338
338
  character?: import("./avatarCharacter").AvatarCharacter | undefined;
339
339
  publicKey?: string | undefined;
340
340
  verified?: boolean | undefined;
@@ -391,11 +391,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
391
391
  redirectedUserIds: string[];
392
392
  email?: string | undefined;
393
393
  color?: string | null | undefined;
394
- kind?: "organization" | "bot" | "personal" | "project" | "channel" | undefined;
394
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
395
395
  avatar?: string | null | undefined;
396
396
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
397
397
  bio?: string | undefined;
398
- accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[] | undefined;
398
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
399
399
  character?: unknown;
400
400
  publicKey?: string | undefined;
401
401
  verified?: boolean | undefined;
@@ -452,11 +452,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
452
452
  redirectedUserIds: string[];
453
453
  email?: string | undefined;
454
454
  color?: string | null | undefined;
455
- kind?: "organization" | "bot" | "personal" | "project" | "channel" | undefined;
455
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
456
456
  avatar?: string | null | undefined;
457
457
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
458
458
  bio?: string | undefined;
459
- accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[] | undefined;
459
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
460
460
  character?: import("./avatarCharacter").AvatarCharacter | undefined;
461
461
  publicKey?: string | undefined;
462
462
  verified?: boolean | undefined;
@@ -513,11 +513,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
513
513
  redirectedUserIds: string[];
514
514
  email?: string | undefined;
515
515
  color?: string | null | undefined;
516
- kind?: "organization" | "bot" | "personal" | "project" | "channel" | undefined;
516
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
517
517
  avatar?: string | null | undefined;
518
518
  verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
519
519
  bio?: string | undefined;
520
- accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "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" | "government" | "activism" | "environment" | "religion")[] | undefined;
520
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
521
521
  character?: unknown;
522
522
  publicKey?: string | undefined;
523
523
  verified?: boolean | undefined;
@@ -24,18 +24,10 @@
24
24
  * The server stores only the challenge's hash; the challenge travels in the QR.
25
25
  */
26
26
  import { z } from 'zod';
27
- export declare const IDENTITY_LINK_STATUSES: readonly ["pending", "signed", "completed", "cancelled"];
28
- export type IdentityLinkStatus = (typeof IDENTITY_LINK_STATUSES)[number];
29
- /** The scheme and host Commons routes a link QR to. */
30
- export declare const IDENTITY_LINK_QR_PREFIX = "oxycommons://link";
27
+ import { type IdentityLinkStatus } from './client/identityLink';
28
+ export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, } from './client/identityLink';
29
+ export type { IdentityLinkStatus } from './client/identityLink';
31
30
  export declare const identityLinkIdSchema: z.ZodString;
32
- /** The QR auth.oxy.so shows: the request's id and the challenge Commons signs. */
33
- export declare function buildIdentityLinkQrPayload(linkId: string, challenge: string): string;
34
- /** The request a scanned code names, or `null` for anything that is not a link QR. */
35
- export declare function parseIdentityLinkQrPayload(raw: string): {
36
- linkId: string;
37
- challenge: string;
38
- } | null;
39
31
  /** `POST /identity/link` */
40
32
  export interface IdentityLinkCreateResponse {
41
33
  linkId: string;
@@ -16,59 +16,8 @@
16
16
  * primitive and passes the hex digest in).
17
17
  */
18
18
  import { z } from 'zod';
19
- export declare const IDENTITY_PROOF_VERSION: 2;
20
- export declare const IDENTITY_PROOF_DOMAIN: "oxy-identity-proof";
21
- /** The audience every API-verified identity proof names. */
22
- export declare const IDENTITY_PROOF_AUDIENCE: "oxy-api/identity";
23
- /** How long a proof challenge lives: one interactive ceremony. */
24
- export declare const IDENTITY_PROOF_CHALLENGE_TTL_MS: number;
25
- /**
26
- * Everything a root proof may authorize. A challenge is minted for exactly one
27
- * action and spent only by a proof for that action.
28
- */
29
- export declare const IDENTITY_PROOF_ACTIONS: {
30
- /**
31
- * Link Commons' root to an account that has none (`POST /auth/link`).
32
- * The account becomes self-custodied and its email is deleted
33
- * (ADR 0029 D3).
34
- */
35
- readonly link: "link_identity";
36
- };
37
- export type IdentityProofAction = (typeof IDENTITY_PROOF_ACTIONS)[keyof typeof IDENTITY_PROOF_ACTIONS];
38
- export declare const IDENTITY_PROOF_ACTION_VALUES: [IdentityProofAction, ...IdentityProofAction[]];
39
- /**
40
- * The signed claims. `null` is written explicitly for a field that does not
41
- * apply, so "absent" can never be confused with a value.
42
- */
43
- export interface IdentityProofClaims {
44
- action: IdentityProofAction;
45
- /** The account the operation changes (`users.id`), or a namespaced subject (`username:alice`) before one exists. */
46
- subject: string;
47
- /** Who performs it: the signed-in personal principal, or `credential:<id>` / `anonymous` where none exists. */
48
- actor: string;
49
- /** The root doing the signing, lowercase uncompressed hex. */
50
- rootPublicKey: string;
51
- /** SHA-256 hex of `canonicalJson(payload)`, or `null` when the operation has no payload. */
52
- payloadDigest: string | null;
53
- /** The revision the operation expects to replace, or `null` when it replaces nothing. */
54
- expectedRevision: number | null;
55
- audience: string;
56
- /** The one-use server challenge. */
57
- challenge: string;
58
- /** Unix milliseconds after which the proof is refused. */
59
- expiresAt: number;
60
- }
61
- /**
62
- * Canonical JSON: object keys sorted by UTF-16 code unit, no whitespace,
63
- * `undefined` members omitted, arrays in order. Numbers must be finite. This is
64
- * the ONLY serializer for anything digested into a proof.
65
- */
66
- export declare function canonicalJson(value: unknown): string;
67
- /**
68
- * The exact bytes a root signs. Throws on a malformed claim rather than signing
69
- * (or verifying) something ambiguous.
70
- */
71
- export declare function buildIdentityProofMessage(claims: IdentityProofClaims): string;
19
+ export { IDENTITY_PROOF_VERSION, IDENTITY_PROOF_DOMAIN, IDENTITY_PROOF_AUDIENCE, IDENTITY_PROOF_CHALLENGE_TTL_MS, IDENTITY_PROOF_ACTIONS, IDENTITY_PROOF_ACTION_VALUES, canonicalJson, buildIdentityProofMessage, IDENTITY_ERROR_CODES, } from './client/identityProof';
20
+ export type { IdentityProofAction, IdentityProofClaims, IdentityErrorCode, } from './client/identityProof';
72
21
  /** The proof as it travels: the signature plus the two claims the verifier cannot derive. */
73
22
  export declare const identityProofSchema: z.ZodObject<{
74
23
  v: z.ZodLiteral<2>;
@@ -103,18 +52,6 @@ export interface IdentityProofChallengeResponse {
103
52
  audience: string;
104
53
  }
105
54
  export declare const identityProofChallengeResponseSchema: z.ZodType<IdentityProofChallengeResponse>;
106
- /**
107
- * Stable error codes the root routes answer with (`error.code` in the API error
108
- * body). Clients map these through their localization, never the English message.
109
- */
110
- export declare const IDENTITY_ERROR_CODES: {
111
- readonly proofInvalid: "IDENTITY_PROOF_INVALID";
112
- readonly rootAlreadyLinked: "IDENTITY_ROOT_ALREADY_LINKED";
113
- readonly rootLinkedElsewhere: "IDENTITY_ROOT_LINKED_ELSEWHERE";
114
- readonly freshFactorRequired: "IDENTITY_FRESH_FACTOR_REQUIRED";
115
- readonly notPersonal: "IDENTITY_NOT_PERSONAL_ACCOUNT";
116
- };
117
- export type IdentityErrorCode = (typeof IDENTITY_ERROR_CODES)[keyof typeof IDENTITY_ERROR_CODES];
118
55
  /**
119
56
  * `GET /identity/root-status` — how the signed-in account is kept (ADR 0029 D3),
120
57
  * for Accounts and the account menu to recommend linking Commons. Read with a
@@ -1111,14 +1111,14 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1111
1111
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1112
1112
  }, "strict", z.ZodTypeAny, {
1113
1113
  provider: string;
1114
- status?: number | undefined;
1115
1114
  code?: string | undefined;
1116
1115
  message?: string | undefined;
1116
+ status?: number | undefined;
1117
1117
  }, {
1118
1118
  provider: string;
1119
- status?: number | undefined;
1120
1119
  code?: string | undefined;
1121
1120
  message?: string | undefined;
1121
+ status?: number | undefined;
1122
1122
  }>>;
1123
1123
  }, "strip", z.ZodTypeAny, {
1124
1124
  code: "rate_limited" | "internal_error" | "service_unavailable" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -1131,9 +1131,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1131
1131
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1132
1132
  providerError?: {
1133
1133
  provider: string;
1134
- status?: number | undefined;
1135
1134
  code?: string | undefined;
1136
1135
  message?: string | undefined;
1136
+ status?: number | undefined;
1137
1137
  } | undefined;
1138
1138
  }, {
1139
1139
  code: "rate_limited" | "internal_error" | "service_unavailable" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -1146,9 +1146,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1146
1146
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1147
1147
  providerError?: {
1148
1148
  provider: string;
1149
- status?: number | undefined;
1150
1149
  code?: string | undefined;
1151
1150
  message?: string | undefined;
1151
+ status?: number | undefined;
1152
1152
  } | undefined;
1153
1153
  }>, {
1154
1154
  code: "rate_limited" | "internal_error" | "service_unavailable" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -1161,9 +1161,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1161
1161
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1162
1162
  providerError?: {
1163
1163
  provider: string;
1164
- status?: number | undefined;
1165
1164
  code?: string | undefined;
1166
1165
  message?: string | undefined;
1166
+ status?: number | undefined;
1167
1167
  } | undefined;
1168
1168
  }, {
1169
1169
  code: "rate_limited" | "internal_error" | "service_unavailable" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -1176,9 +1176,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1176
1176
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1177
1177
  providerError?: {
1178
1178
  provider: string;
1179
- status?: number | undefined;
1180
1179
  code?: string | undefined;
1181
1180
  message?: string | undefined;
1181
+ status?: number | undefined;
1182
1182
  } | undefined;
1183
1183
  }>;
1184
1184
  usage: z.ZodOptional<z.ZodEffects<z.ZodObject<{
@@ -1406,9 +1406,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1406
1406
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1407
1407
  providerError?: {
1408
1408
  provider: string;
1409
- status?: number | undefined;
1410
1409
  code?: string | undefined;
1411
1410
  message?: string | undefined;
1411
+ status?: number | undefined;
1412
1412
  } | undefined;
1413
1413
  };
1414
1414
  schemaVersion: 1;
@@ -1458,9 +1458,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1458
1458
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1459
1459
  providerError?: {
1460
1460
  provider: string;
1461
- status?: number | undefined;
1462
1461
  code?: string | undefined;
1463
1462
  message?: string | undefined;
1463
+ status?: number | undefined;
1464
1464
  } | undefined;
1465
1465
  };
1466
1466
  schemaVersion: 1;
@@ -1510,9 +1510,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1510
1510
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1511
1511
  providerError?: {
1512
1512
  provider: string;
1513
- status?: number | undefined;
1514
1513
  code?: string | undefined;
1515
1514
  message?: string | undefined;
1515
+ status?: number | undefined;
1516
1516
  } | undefined;
1517
1517
  };
1518
1518
  schemaVersion: 1;
@@ -1562,9 +1562,9 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
1562
1562
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
1563
1563
  providerError?: {
1564
1564
  provider: string;
1565
- status?: number | undefined;
1566
1565
  code?: string | undefined;
1567
1566
  message?: string | undefined;
1567
+ status?: number | undefined;
1568
1568
  } | undefined;
1569
1569
  };
1570
1570
  schemaVersion: 1;