@oxy.so/contracts 1.1.1 → 1.3.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 (65) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/identity.js +3 -2
  3. package/dist/cjs/identityMove.js +156 -0
  4. package/dist/cjs/identityProof.js +164 -0
  5. package/dist/cjs/identityRecovery.js +51 -0
  6. package/dist/cjs/index.js +75 -19
  7. package/dist/cjs/inference/catalogue.js +7 -6
  8. package/dist/cjs/inference/identifiers.js +3 -1
  9. package/dist/cjs/inference/providerConnection.js +1 -1
  10. package/dist/cjs/inference/request.js +15 -1
  11. package/dist/cjs/inference/streamEvents.js +24 -2
  12. package/dist/cjs/inference/version.js +1 -1
  13. package/dist/cjs/userResponse.js +82 -1
  14. package/dist/cjs/username.js +70 -2
  15. package/dist/cjs/webIdentityCarrier.js +181 -0
  16. package/dist/cjs/webauthn.js +14 -0
  17. package/dist/esm/.tsbuildinfo +1 -1
  18. package/dist/esm/identity.js +3 -2
  19. package/dist/esm/identityMove.js +148 -0
  20. package/dist/esm/identityProof.js +159 -0
  21. package/dist/esm/identityRecovery.js +48 -0
  22. package/dist/esm/index.js +16 -7
  23. package/dist/esm/inference/catalogue.js +7 -6
  24. package/dist/esm/inference/identifiers.js +2 -0
  25. package/dist/esm/inference/providerConnection.js +2 -2
  26. package/dist/esm/inference/request.js +14 -0
  27. package/dist/esm/inference/streamEvents.js +24 -2
  28. package/dist/esm/inference/version.js +1 -1
  29. package/dist/esm/userResponse.js +81 -0
  30. package/dist/esm/username.js +69 -1
  31. package/dist/esm/webIdentityCarrier.js +178 -0
  32. package/dist/esm/webauthn.js +14 -0
  33. package/dist/types/.tsbuildinfo +1 -1
  34. package/dist/types/accountGraph.d.ts +7 -7
  35. package/dist/types/agency.d.ts +24 -24
  36. package/dist/types/browserHub.d.ts +16 -16
  37. package/dist/types/deviceDirectory.d.ts +28 -28
  38. package/dist/types/externalIdentity.d.ts +21 -7
  39. package/dist/types/identity.d.ts +3 -2
  40. package/dist/types/identityMove.d.ts +185 -0
  41. package/dist/types/identityProof.d.ts +156 -0
  42. package/dist/types/identityRecovery.d.ts +246 -0
  43. package/dist/types/index.d.ts +14 -8
  44. package/dist/types/inference/catalogue.d.ts +21 -20
  45. package/dist/types/inference/embeddings.d.ts +12 -12
  46. package/dist/types/inference/errors.d.ts +4 -4
  47. package/dist/types/inference/identifiers.d.ts +2 -0
  48. package/dist/types/inference/inbox.d.ts +6 -6
  49. package/dist/types/inference/providerConnection.d.ts +40 -40
  50. package/dist/types/inference/request.d.ts +84 -36
  51. package/dist/types/inference/streamEvents.d.ts +69 -13
  52. package/dist/types/inference/usage.d.ts +8 -8
  53. package/dist/types/inference/version.d.ts +1 -1
  54. package/dist/types/keyRotation.d.ts +2 -2
  55. package/dist/types/oauth.d.ts +30 -30
  56. package/dist/types/sessionStatus.d.ts +6 -6
  57. package/dist/types/transparency.d.ts +10 -10
  58. package/dist/types/userResponse.d.ts +386 -18
  59. package/dist/types/username.d.ts +25 -2
  60. package/dist/types/webIdentityCarrier.d.ts +1130 -0
  61. package/dist/types/webauthn.d.ts +208 -0
  62. package/package.json +1 -1
  63. package/dist/cjs/devicePairing.js +0 -138
  64. package/dist/esm/devicePairing.js +0 -135
  65. package/dist/types/devicePairing.d.ts +0 -130
@@ -103,7 +103,7 @@ export declare const mcpOAuthClientApplicationSchema: z.ZodObject<{
103
103
  } & {
104
104
  clientId: z.ZodString;
105
105
  }, "strict", z.ZodTypeAny, {
106
- type: "internal" | "system" | "first_party" | "third_party";
106
+ type: "system" | "internal" | "first_party" | "third_party";
107
107
  name: string;
108
108
  id: string;
109
109
  clientId: string;
@@ -117,7 +117,7 @@ export declare const mcpOAuthClientApplicationSchema: z.ZodObject<{
117
117
  termsUrl?: string | undefined;
118
118
  developerName?: string | undefined;
119
119
  }, {
120
- type: "internal" | "system" | "first_party" | "third_party";
120
+ type: "system" | "internal" | "first_party" | "third_party";
121
121
  name: string;
122
122
  id: string;
123
123
  clientId: string;
@@ -212,7 +212,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
212
212
  } & {
213
213
  clientId: z.ZodString;
214
214
  }, "strict", z.ZodTypeAny, {
215
- type: "internal" | "system" | "first_party" | "third_party";
215
+ type: "system" | "internal" | "first_party" | "third_party";
216
216
  name: string;
217
217
  id: string;
218
218
  clientId: string;
@@ -226,7 +226,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
226
226
  termsUrl?: string | undefined;
227
227
  developerName?: string | undefined;
228
228
  }, {
229
- type: "internal" | "system" | "first_party" | "third_party";
229
+ type: "system" | "internal" | "first_party" | "third_party";
230
230
  name: string;
231
231
  id: string;
232
232
  clientId: string;
@@ -273,7 +273,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
273
273
  scopes: z.ZodArray<z.ZodString, "many">;
274
274
  developerName: z.ZodOptional<z.ZodString>;
275
275
  }, "strip", z.ZodTypeAny, {
276
- type: "internal" | "system" | "first_party" | "third_party";
276
+ type: "system" | "internal" | "first_party" | "third_party";
277
277
  name: string;
278
278
  id: string;
279
279
  isOfficial: boolean;
@@ -286,7 +286,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
286
286
  termsUrl?: string | undefined;
287
287
  developerName?: string | undefined;
288
288
  }, {
289
- type: "internal" | "system" | "first_party" | "third_party";
289
+ type: "system" | "internal" | "first_party" | "third_party";
290
290
  name: string;
291
291
  id: string;
292
292
  isOfficial: boolean;
@@ -302,7 +302,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
302
302
  }, "strict", z.ZodTypeAny, {
303
303
  appId: string;
304
304
  application: {
305
- type: "internal" | "system" | "first_party" | "third_party";
305
+ type: "system" | "internal" | "first_party" | "third_party";
306
306
  name: string;
307
307
  id: string;
308
308
  isOfficial: boolean;
@@ -319,7 +319,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
319
319
  }, {
320
320
  appId: string;
321
321
  application: {
322
- type: "internal" | "system" | "first_party" | "third_party";
322
+ type: "system" | "internal" | "first_party" | "third_party";
323
323
  name: string;
324
324
  id: string;
325
325
  isOfficial: boolean;
@@ -397,7 +397,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
397
397
  resource: {
398
398
  appId: string;
399
399
  application: {
400
- type: "internal" | "system" | "first_party" | "third_party";
400
+ type: "system" | "internal" | "first_party" | "third_party";
401
401
  name: string;
402
402
  id: string;
403
403
  isOfficial: boolean;
@@ -420,7 +420,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
420
420
  handle?: string | undefined;
421
421
  };
422
422
  client: {
423
- type: "internal" | "system" | "first_party" | "third_party";
423
+ type: "system" | "internal" | "first_party" | "third_party";
424
424
  name: string;
425
425
  id: string;
426
426
  clientId: string;
@@ -445,7 +445,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
445
445
  resource: {
446
446
  appId: string;
447
447
  application: {
448
- type: "internal" | "system" | "first_party" | "third_party";
448
+ type: "system" | "internal" | "first_party" | "third_party";
449
449
  name: string;
450
450
  id: string;
451
451
  isOfficial: boolean;
@@ -468,7 +468,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
468
468
  handle?: string | undefined;
469
469
  };
470
470
  client: {
471
- type: "internal" | "system" | "first_party" | "third_party";
471
+ type: "system" | "internal" | "first_party" | "third_party";
472
472
  name: string;
473
473
  id: string;
474
474
  clientId: string;
@@ -507,7 +507,7 @@ export declare const mcpOAuthClientInfoResponseSchema: z.ZodObject<{
507
507
  } & {
508
508
  clientId: z.ZodString;
509
509
  }, "strict", z.ZodTypeAny, {
510
- type: "internal" | "system" | "first_party" | "third_party";
510
+ type: "system" | "internal" | "first_party" | "third_party";
511
511
  name: string;
512
512
  id: string;
513
513
  clientId: string;
@@ -521,7 +521,7 @@ export declare const mcpOAuthClientInfoResponseSchema: z.ZodObject<{
521
521
  termsUrl?: string | undefined;
522
522
  developerName?: string | undefined;
523
523
  }, {
524
- type: "internal" | "system" | "first_party" | "third_party";
524
+ type: "system" | "internal" | "first_party" | "third_party";
525
525
  name: string;
526
526
  id: string;
527
527
  clientId: string;
@@ -537,7 +537,7 @@ export declare const mcpOAuthClientInfoResponseSchema: z.ZodObject<{
537
537
  }>;
538
538
  }, "strict", z.ZodTypeAny, {
539
539
  application: {
540
- type: "internal" | "system" | "first_party" | "third_party";
540
+ type: "system" | "internal" | "first_party" | "third_party";
541
541
  name: string;
542
542
  id: string;
543
543
  clientId: string;
@@ -553,7 +553,7 @@ export declare const mcpOAuthClientInfoResponseSchema: z.ZodObject<{
553
553
  };
554
554
  }, {
555
555
  application: {
556
- type: "internal" | "system" | "first_party" | "third_party";
556
+ type: "system" | "internal" | "first_party" | "third_party";
557
557
  name: string;
558
558
  id: string;
559
559
  clientId: string;
@@ -587,7 +587,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
587
587
  } & {
588
588
  clientId: z.ZodString;
589
589
  }, "strict", z.ZodTypeAny, {
590
- type: "internal" | "system" | "first_party" | "third_party";
590
+ type: "system" | "internal" | "first_party" | "third_party";
591
591
  name: string;
592
592
  id: string;
593
593
  clientId: string;
@@ -601,7 +601,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
601
601
  termsUrl?: string | undefined;
602
602
  developerName?: string | undefined;
603
603
  }, {
604
- type: "internal" | "system" | "first_party" | "third_party";
604
+ type: "system" | "internal" | "first_party" | "third_party";
605
605
  name: string;
606
606
  id: string;
607
607
  clientId: string;
@@ -648,7 +648,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
648
648
  scopes: z.ZodArray<z.ZodString, "many">;
649
649
  developerName: z.ZodOptional<z.ZodString>;
650
650
  }, "strip", z.ZodTypeAny, {
651
- type: "internal" | "system" | "first_party" | "third_party";
651
+ type: "system" | "internal" | "first_party" | "third_party";
652
652
  name: string;
653
653
  id: string;
654
654
  isOfficial: boolean;
@@ -661,7 +661,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
661
661
  termsUrl?: string | undefined;
662
662
  developerName?: string | undefined;
663
663
  }, {
664
- type: "internal" | "system" | "first_party" | "third_party";
664
+ type: "system" | "internal" | "first_party" | "third_party";
665
665
  name: string;
666
666
  id: string;
667
667
  isOfficial: boolean;
@@ -677,7 +677,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
677
677
  }, "strict", z.ZodTypeAny, {
678
678
  appId: string;
679
679
  application: {
680
- type: "internal" | "system" | "first_party" | "third_party";
680
+ type: "system" | "internal" | "first_party" | "third_party";
681
681
  name: string;
682
682
  id: string;
683
683
  isOfficial: boolean;
@@ -694,7 +694,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
694
694
  }, {
695
695
  appId: string;
696
696
  application: {
697
- type: "internal" | "system" | "first_party" | "third_party";
697
+ type: "system" | "internal" | "first_party" | "third_party";
698
698
  name: string;
699
699
  id: string;
700
700
  isOfficial: boolean;
@@ -772,7 +772,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
772
772
  resource: {
773
773
  appId: string;
774
774
  application: {
775
- type: "internal" | "system" | "first_party" | "third_party";
775
+ type: "system" | "internal" | "first_party" | "third_party";
776
776
  name: string;
777
777
  id: string;
778
778
  isOfficial: boolean;
@@ -795,7 +795,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
795
795
  handle?: string | undefined;
796
796
  };
797
797
  client: {
798
- type: "internal" | "system" | "first_party" | "third_party";
798
+ type: "system" | "internal" | "first_party" | "third_party";
799
799
  name: string;
800
800
  id: string;
801
801
  clientId: string;
@@ -820,7 +820,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
820
820
  resource: {
821
821
  appId: string;
822
822
  application: {
823
- type: "internal" | "system" | "first_party" | "third_party";
823
+ type: "system" | "internal" | "first_party" | "third_party";
824
824
  name: string;
825
825
  id: string;
826
826
  isOfficial: boolean;
@@ -843,7 +843,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
843
843
  handle?: string | undefined;
844
844
  };
845
845
  client: {
846
- type: "internal" | "system" | "first_party" | "third_party";
846
+ type: "system" | "internal" | "first_party" | "third_party";
847
847
  name: string;
848
848
  id: string;
849
849
  clientId: string;
@@ -870,7 +870,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
870
870
  resource: {
871
871
  appId: string;
872
872
  application: {
873
- type: "internal" | "system" | "first_party" | "third_party";
873
+ type: "system" | "internal" | "first_party" | "third_party";
874
874
  name: string;
875
875
  id: string;
876
876
  isOfficial: boolean;
@@ -893,7 +893,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
893
893
  handle?: string | undefined;
894
894
  };
895
895
  client: {
896
- type: "internal" | "system" | "first_party" | "third_party";
896
+ type: "system" | "internal" | "first_party" | "third_party";
897
897
  name: string;
898
898
  id: string;
899
899
  clientId: string;
@@ -921,7 +921,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
921
921
  resource: {
922
922
  appId: string;
923
923
  application: {
924
- type: "internal" | "system" | "first_party" | "third_party";
924
+ type: "system" | "internal" | "first_party" | "third_party";
925
925
  name: string;
926
926
  id: string;
927
927
  isOfficial: boolean;
@@ -944,7 +944,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
944
944
  handle?: string | undefined;
945
945
  };
946
946
  client: {
947
- type: "internal" | "system" | "first_party" | "third_party";
947
+ type: "system" | "internal" | "first_party" | "third_party";
948
948
  name: string;
949
949
  id: string;
950
950
  clientId: string;
@@ -68,7 +68,7 @@ export declare const publicApplicationSchema: z.ZodObject<{
68
68
  scopes: z.ZodArray<z.ZodString, "many">;
69
69
  developerName: z.ZodOptional<z.ZodString>;
70
70
  }, "strip", z.ZodTypeAny, {
71
- type: "internal" | "system" | "first_party" | "third_party";
71
+ type: "system" | "internal" | "first_party" | "third_party";
72
72
  name: string;
73
73
  id: string;
74
74
  isOfficial: boolean;
@@ -81,7 +81,7 @@ export declare const publicApplicationSchema: z.ZodObject<{
81
81
  termsUrl?: string | undefined;
82
82
  developerName?: string | undefined;
83
83
  }, {
84
- type: "internal" | "system" | "first_party" | "third_party";
84
+ type: "system" | "internal" | "first_party" | "third_party";
85
85
  name: string;
86
86
  id: string;
87
87
  isOfficial: boolean;
@@ -140,7 +140,7 @@ export declare const sessionStatusSchema: z.ZodObject<{
140
140
  scopes: z.ZodArray<z.ZodString, "many">;
141
141
  developerName: z.ZodOptional<z.ZodString>;
142
142
  }, "strip", z.ZodTypeAny, {
143
- type: "internal" | "system" | "first_party" | "third_party";
143
+ type: "system" | "internal" | "first_party" | "third_party";
144
144
  name: string;
145
145
  id: string;
146
146
  isOfficial: boolean;
@@ -153,7 +153,7 @@ export declare const sessionStatusSchema: z.ZodObject<{
153
153
  termsUrl?: string | undefined;
154
154
  developerName?: string | undefined;
155
155
  }, {
156
- type: "internal" | "system" | "first_party" | "third_party";
156
+ type: "system" | "internal" | "first_party" | "third_party";
157
157
  name: string;
158
158
  id: string;
159
159
  isOfficial: boolean;
@@ -186,7 +186,7 @@ export declare const sessionStatusSchema: z.ZodObject<{
186
186
  sessionToken?: string | undefined;
187
187
  authorized?: boolean | undefined;
188
188
  application?: {
189
- type: "internal" | "system" | "first_party" | "third_party";
189
+ type: "system" | "internal" | "first_party" | "third_party";
190
190
  name: string;
191
191
  id: string;
192
192
  isOfficial: boolean;
@@ -211,7 +211,7 @@ export declare const sessionStatusSchema: z.ZodObject<{
211
211
  sessionToken?: string | undefined;
212
212
  authorized?: boolean | undefined;
213
213
  application?: {
214
- type: "internal" | "system" | "first_party" | "third_party";
214
+ type: "system" | "internal" | "first_party" | "third_party";
215
215
  name: string;
216
216
  id: string;
217
217
  isOfficial: boolean;
@@ -90,10 +90,10 @@ export declare const transparencyCheckpointSchema: z.ZodObject<{
90
90
  anchoredAt: number;
91
91
  }>, "many">;
92
92
  }, "strip", z.ZodTypeAny, {
93
+ root: string;
93
94
  index: number;
94
95
  periodEnd: number;
95
96
  treeSize: number;
96
- root: string;
97
97
  prevCheckpointHash: string | null;
98
98
  signatures: {
99
99
  signature: string;
@@ -107,10 +107,10 @@ export declare const transparencyCheckpointSchema: z.ZodObject<{
107
107
  anchoredAt: number;
108
108
  }[];
109
109
  }, {
110
+ root: string;
110
111
  index: number;
111
112
  periodEnd: number;
112
113
  treeSize: number;
113
- root: string;
114
114
  prevCheckpointHash: string | null;
115
115
  signatures: {
116
116
  signature: string;
@@ -175,10 +175,10 @@ export declare const transparencyInclusionProofSchema: z.ZodObject<{
175
175
  anchoredAt: number;
176
176
  }>, "many">;
177
177
  }, "strip", z.ZodTypeAny, {
178
+ root: string;
178
179
  index: number;
179
180
  periodEnd: number;
180
181
  treeSize: number;
181
- root: string;
182
182
  prevCheckpointHash: string | null;
183
183
  signatures: {
184
184
  signature: string;
@@ -192,10 +192,10 @@ export declare const transparencyInclusionProofSchema: z.ZodObject<{
192
192
  anchoredAt: number;
193
193
  }[];
194
194
  }, {
195
+ root: string;
195
196
  index: number;
196
197
  periodEnd: number;
197
198
  treeSize: number;
198
- root: string;
199
199
  prevCheckpointHash: string | null;
200
200
  signatures: {
201
201
  signature: string;
@@ -221,10 +221,10 @@ export declare const transparencyInclusionProofSchema: z.ZodObject<{
221
221
  proof: string[];
222
222
  headRecordId: string;
223
223
  checkpoint: {
224
+ root: string;
224
225
  index: number;
225
226
  periodEnd: number;
226
227
  treeSize: number;
227
- root: string;
228
228
  prevCheckpointHash: string | null;
229
229
  signatures: {
230
230
  signature: string;
@@ -246,10 +246,10 @@ export declare const transparencyInclusionProofSchema: z.ZodObject<{
246
246
  proof: string[];
247
247
  headRecordId: string;
248
248
  checkpoint: {
249
+ root: string;
249
250
  index: number;
250
251
  periodEnd: number;
251
252
  treeSize: number;
252
- root: string;
253
253
  prevCheckpointHash: string | null;
254
254
  signatures: {
255
255
  signature: string;
@@ -312,10 +312,10 @@ export declare const transparencyCheckpointListSchema: z.ZodObject<{
312
312
  anchoredAt: number;
313
313
  }>, "many">;
314
314
  }, "strip", z.ZodTypeAny, {
315
+ root: string;
315
316
  index: number;
316
317
  periodEnd: number;
317
318
  treeSize: number;
318
- root: string;
319
319
  prevCheckpointHash: string | null;
320
320
  signatures: {
321
321
  signature: string;
@@ -329,10 +329,10 @@ export declare const transparencyCheckpointListSchema: z.ZodObject<{
329
329
  anchoredAt: number;
330
330
  }[];
331
331
  }, {
332
+ root: string;
332
333
  index: number;
333
334
  periodEnd: number;
334
335
  treeSize: number;
335
- root: string;
336
336
  prevCheckpointHash: string | null;
337
337
  signatures: {
338
338
  signature: string;
@@ -348,10 +348,10 @@ export declare const transparencyCheckpointListSchema: z.ZodObject<{
348
348
  }>, "many">;
349
349
  }, "strip", z.ZodTypeAny, {
350
350
  checkpoints: {
351
+ root: string;
351
352
  index: number;
352
353
  periodEnd: number;
353
354
  treeSize: number;
354
- root: string;
355
355
  prevCheckpointHash: string | null;
356
356
  signatures: {
357
357
  signature: string;
@@ -367,10 +367,10 @@ export declare const transparencyCheckpointListSchema: z.ZodObject<{
367
367
  }[];
368
368
  }, {
369
369
  checkpoints: {
370
+ root: string;
370
371
  index: number;
371
372
  periodEnd: number;
372
373
  treeSize: number;
373
- root: string;
374
374
  prevCheckpointHash: string | null;
375
375
  signatures: {
376
376
  signature: string;