@oxy.so/contracts 4.8.0 → 4.9.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 (58) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +13 -5
  3. package/dist/cjs/accountSubject.js +189 -0
  4. package/dist/cjs/agency.js +56 -4
  5. package/dist/cjs/agentKeys.js +67 -0
  6. package/dist/cjs/capabilityBindings.js +72 -0
  7. package/dist/cjs/index.js +60 -13
  8. package/dist/cjs/inference/economics.js +135 -0
  9. package/dist/cjs/products/access.js +60 -0
  10. package/dist/cjs/products/billing.js +32 -0
  11. package/dist/cjs/signIn.js +1 -1
  12. package/dist/esm/.tsbuildinfo +1 -1
  13. package/dist/esm/accountGraph.js +13 -5
  14. package/dist/esm/accountSubject.js +182 -0
  15. package/dist/esm/agency.js +55 -3
  16. package/dist/esm/agentKeys.js +63 -0
  17. package/dist/esm/capabilityBindings.js +67 -0
  18. package/dist/esm/index.js +10 -1
  19. package/dist/esm/inference/economics.js +132 -0
  20. package/dist/esm/products/access.js +57 -0
  21. package/dist/esm/products/billing.js +29 -0
  22. package/dist/esm/signIn.js +1 -1
  23. package/dist/types/.tsbuildinfo +1 -1
  24. package/dist/types/accountGraph.d.ts +23 -8
  25. package/dist/types/accountSubject.d.ts +210 -0
  26. package/dist/types/agency.d.ts +956 -190
  27. package/dist/types/agentKeys.d.ts +525 -0
  28. package/dist/types/capabilityBindings.d.ts +6 -0
  29. package/dist/types/deviceDirectory.d.ts +50 -50
  30. package/dist/types/deviceSession.d.ts +14 -14
  31. package/dist/types/externalIdentity.d.ts +4 -4
  32. package/dist/types/identity.d.ts +2 -2
  33. package/dist/types/index.d.ts +12 -2
  34. package/dist/types/inference/accountBilling.d.ts +30 -30
  35. package/dist/types/inference/aliaModelRelease.d.ts +83 -83
  36. package/dist/types/inference/catalogue.d.ts +180 -180
  37. package/dist/types/inference/economics.d.ts +376 -0
  38. package/dist/types/inference/entitlement.d.ts +47 -47
  39. package/dist/types/inference/inbox.d.ts +12 -12
  40. package/dist/types/inference/modelDocumentation.d.ts +231 -231
  41. package/dist/types/inference/priceVersion.d.ts +4 -4
  42. package/dist/types/inference/providerConnection.d.ts +38 -38
  43. package/dist/types/inference/realtime.d.ts +802 -802
  44. package/dist/types/inference/request.d.ts +844 -844
  45. package/dist/types/inference/routingPolicy.d.ts +4 -4
  46. package/dist/types/inference/scopedExecution.d.ts +38 -38
  47. package/dist/types/inference/streamEvents.d.ts +4 -4
  48. package/dist/types/inference/usage.d.ts +12 -12
  49. package/dist/types/keyRotation.d.ts +2 -2
  50. package/dist/types/notifications.d.ts +4 -4
  51. package/dist/types/oauth.d.ts +30 -30
  52. package/dist/types/products/access.d.ts +487 -0
  53. package/dist/types/products/billing.d.ts +563 -0
  54. package/dist/types/recommendations.d.ts +2 -2
  55. package/dist/types/sessionStatus.d.ts +10 -10
  56. package/dist/types/signIn.d.ts +6 -6
  57. package/dist/types/transparency.d.ts +2 -2
  58. package/package.json +1 -1
@@ -64,8 +64,8 @@ export declare const priceVersionSchema: z.ZodEffects<z.ZodObject<{
64
64
  createdAt: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  status: "draft" | "active" | "superseded";
67
- createdAt: string;
68
67
  schemaVersion: 1;
68
+ createdAt: string;
69
69
  currency: string;
70
70
  provider: string;
71
71
  priceVersionId: string;
@@ -81,8 +81,8 @@ export declare const priceVersionSchema: z.ZodEffects<z.ZodObject<{
81
81
  supersedesPriceVersionId?: string | undefined;
82
82
  }, {
83
83
  status: "draft" | "active" | "superseded";
84
- createdAt: string;
85
84
  schemaVersion: 1;
85
+ createdAt: string;
86
86
  currency: string;
87
87
  provider: string;
88
88
  priceVersionId: string;
@@ -98,8 +98,8 @@ export declare const priceVersionSchema: z.ZodEffects<z.ZodObject<{
98
98
  supersedesPriceVersionId?: string | undefined;
99
99
  }>, {
100
100
  status: "draft" | "active" | "superseded";
101
- createdAt: string;
102
101
  schemaVersion: 1;
102
+ createdAt: string;
103
103
  currency: string;
104
104
  provider: string;
105
105
  priceVersionId: string;
@@ -115,8 +115,8 @@ export declare const priceVersionSchema: z.ZodEffects<z.ZodObject<{
115
115
  supersedesPriceVersionId?: string | undefined;
116
116
  }, {
117
117
  status: "draft" | "active" | "superseded";
118
- createdAt: string;
119
118
  schemaVersion: 1;
119
+ createdAt: string;
120
120
  currency: string;
121
121
  provider: string;
122
122
  priceVersionId: string;
@@ -100,8 +100,8 @@ export declare const kaanaCredentialCreateMutationSchema: z.ZodObject<{
100
100
  secretBase64: z.ZodEffects<z.ZodString, string, string>;
101
101
  }, "strict", z.ZodTypeAny, {
102
102
  environment: "development" | "staging" | "production";
103
- ownerAccountId: string;
104
103
  schemaVersion: 1;
104
+ ownerAccountId: string;
105
105
  action: "create";
106
106
  provider: string;
107
107
  connectionId: string;
@@ -110,8 +110,8 @@ export declare const kaanaCredentialCreateMutationSchema: z.ZodObject<{
110
110
  secretBase64: string;
111
111
  }, {
112
112
  environment: "development" | "staging" | "production";
113
- ownerAccountId: string;
114
113
  schemaVersion: 1;
114
+ ownerAccountId: string;
115
115
  action: "create";
116
116
  provider: string;
117
117
  connectionId: string;
@@ -134,8 +134,8 @@ export declare const kaanaCredentialRotateMutationSchema: z.ZodObject<{
134
134
  secretBase64: z.ZodEffects<z.ZodString, string, string>;
135
135
  }, "strict", z.ZodTypeAny, {
136
136
  environment: "development" | "staging" | "production";
137
- ownerAccountId: string;
138
137
  schemaVersion: 1;
138
+ ownerAccountId: string;
139
139
  action: "rotate";
140
140
  provider: string;
141
141
  connectionId: string;
@@ -146,8 +146,8 @@ export declare const kaanaCredentialRotateMutationSchema: z.ZodObject<{
146
146
  expectedRevision: number;
147
147
  }, {
148
148
  environment: "development" | "staging" | "production";
149
- ownerAccountId: string;
150
149
  schemaVersion: 1;
150
+ ownerAccountId: string;
151
151
  action: "rotate";
152
152
  provider: string;
153
153
  connectionId: string;
@@ -171,8 +171,8 @@ export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
171
171
  expectedRevision: z.ZodNumber;
172
172
  }, "strict", z.ZodTypeAny, {
173
173
  environment: "development" | "staging" | "production";
174
- ownerAccountId: string;
175
174
  schemaVersion: 1;
175
+ ownerAccountId: string;
176
176
  action: "revoke";
177
177
  provider: string;
178
178
  connectionId: string;
@@ -182,8 +182,8 @@ export declare const kaanaCredentialRevokeMutationSchema: z.ZodObject<{
182
182
  expectedRevision: number;
183
183
  }, {
184
184
  environment: "development" | "staging" | "production";
185
- ownerAccountId: string;
186
185
  schemaVersion: 1;
186
+ ownerAccountId: string;
187
187
  action: "revoke";
188
188
  provider: string;
189
189
  connectionId: string;
@@ -205,8 +205,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
205
205
  secretBase64: z.ZodEffects<z.ZodString, string, string>;
206
206
  }, "strict", z.ZodTypeAny, {
207
207
  environment: "development" | "staging" | "production";
208
- ownerAccountId: string;
209
208
  schemaVersion: 1;
209
+ ownerAccountId: string;
210
210
  action: "create";
211
211
  provider: string;
212
212
  connectionId: string;
@@ -215,8 +215,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
215
215
  secretBase64: string;
216
216
  }, {
217
217
  environment: "development" | "staging" | "production";
218
- ownerAccountId: string;
219
218
  schemaVersion: 1;
219
+ ownerAccountId: string;
220
220
  action: "create";
221
221
  provider: string;
222
222
  connectionId: string;
@@ -238,8 +238,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
238
238
  secretBase64: z.ZodEffects<z.ZodString, string, string>;
239
239
  }, "strict", z.ZodTypeAny, {
240
240
  environment: "development" | "staging" | "production";
241
- ownerAccountId: string;
242
241
  schemaVersion: 1;
242
+ ownerAccountId: string;
243
243
  action: "rotate";
244
244
  provider: string;
245
245
  connectionId: string;
@@ -250,8 +250,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
250
250
  expectedRevision: number;
251
251
  }, {
252
252
  environment: "development" | "staging" | "production";
253
- ownerAccountId: string;
254
253
  schemaVersion: 1;
254
+ ownerAccountId: string;
255
255
  action: "rotate";
256
256
  provider: string;
257
257
  connectionId: string;
@@ -274,8 +274,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
274
274
  expectedRevision: z.ZodNumber;
275
275
  }, "strict", z.ZodTypeAny, {
276
276
  environment: "development" | "staging" | "production";
277
- ownerAccountId: string;
278
277
  schemaVersion: 1;
278
+ ownerAccountId: string;
279
279
  action: "revoke";
280
280
  provider: string;
281
281
  connectionId: string;
@@ -285,8 +285,8 @@ export declare const kaanaCredentialMutationSchema: z.ZodDiscriminatedUnion<"act
285
285
  expectedRevision: number;
286
286
  }, {
287
287
  environment: "development" | "staging" | "production";
288
- ownerAccountId: string;
289
288
  schemaVersion: 1;
289
+ ownerAccountId: string;
290
290
  action: "revoke";
291
291
  provider: string;
292
292
  connectionId: string;
@@ -306,16 +306,16 @@ export declare const kaanaCredentialCreateOutcomeRequestSchema: z.ZodObject<{
306
306
  operationId: z.ZodString;
307
307
  }, "strict", z.ZodTypeAny, {
308
308
  environment: "development" | "staging" | "production";
309
- ownerAccountId: string;
310
309
  schemaVersion: 1;
310
+ ownerAccountId: string;
311
311
  action: "create";
312
312
  provider: string;
313
313
  connectionId: string;
314
314
  operationId: string;
315
315
  }, {
316
316
  environment: "development" | "staging" | "production";
317
- ownerAccountId: string;
318
317
  schemaVersion: 1;
318
+ ownerAccountId: string;
319
319
  action: "create";
320
320
  provider: string;
321
321
  connectionId: string;
@@ -334,8 +334,8 @@ export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
334
334
  expectedRevision: z.ZodNumber;
335
335
  }, "strict", z.ZodTypeAny, {
336
336
  environment: "development" | "staging" | "production";
337
- ownerAccountId: string;
338
337
  schemaVersion: 1;
338
+ ownerAccountId: string;
339
339
  action: "rotate";
340
340
  provider: string;
341
341
  connectionId: string;
@@ -344,8 +344,8 @@ export declare const kaanaCredentialRotateOutcomeRequestSchema: z.ZodObject<{
344
344
  expectedRevision: number;
345
345
  }, {
346
346
  environment: "development" | "staging" | "production";
347
- ownerAccountId: string;
348
347
  schemaVersion: 1;
348
+ ownerAccountId: string;
349
349
  action: "rotate";
350
350
  provider: string;
351
351
  connectionId: string;
@@ -366,8 +366,8 @@ export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
366
366
  expectedRevision: z.ZodNumber;
367
367
  }, "strict", z.ZodTypeAny, {
368
368
  environment: "development" | "staging" | "production";
369
- ownerAccountId: string;
370
369
  schemaVersion: 1;
370
+ ownerAccountId: string;
371
371
  action: "revoke";
372
372
  provider: string;
373
373
  connectionId: string;
@@ -376,8 +376,8 @@ export declare const kaanaCredentialRevokeOutcomeRequestSchema: z.ZodObject<{
376
376
  expectedRevision: number;
377
377
  }, {
378
378
  environment: "development" | "staging" | "production";
379
- ownerAccountId: string;
380
379
  schemaVersion: 1;
380
+ ownerAccountId: string;
381
381
  action: "revoke";
382
382
  provider: string;
383
383
  connectionId: string;
@@ -396,16 +396,16 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
396
396
  operationId: z.ZodString;
397
397
  }, "strict", z.ZodTypeAny, {
398
398
  environment: "development" | "staging" | "production";
399
- ownerAccountId: string;
400
399
  schemaVersion: 1;
400
+ ownerAccountId: string;
401
401
  action: "create";
402
402
  provider: string;
403
403
  connectionId: string;
404
404
  operationId: string;
405
405
  }, {
406
406
  environment: "development" | "staging" | "production";
407
- ownerAccountId: string;
408
407
  schemaVersion: 1;
408
+ ownerAccountId: string;
409
409
  action: "create";
410
410
  provider: string;
411
411
  connectionId: string;
@@ -423,8 +423,8 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
423
423
  expectedRevision: z.ZodNumber;
424
424
  }, "strict", z.ZodTypeAny, {
425
425
  environment: "development" | "staging" | "production";
426
- ownerAccountId: string;
427
426
  schemaVersion: 1;
427
+ ownerAccountId: string;
428
428
  action: "rotate";
429
429
  provider: string;
430
430
  connectionId: string;
@@ -433,8 +433,8 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
433
433
  expectedRevision: number;
434
434
  }, {
435
435
  environment: "development" | "staging" | "production";
436
- ownerAccountId: string;
437
436
  schemaVersion: 1;
437
+ ownerAccountId: string;
438
438
  action: "rotate";
439
439
  provider: string;
440
440
  connectionId: string;
@@ -454,8 +454,8 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
454
454
  expectedRevision: z.ZodNumber;
455
455
  }, "strict", z.ZodTypeAny, {
456
456
  environment: "development" | "staging" | "production";
457
- ownerAccountId: string;
458
457
  schemaVersion: 1;
458
+ ownerAccountId: string;
459
459
  action: "revoke";
460
460
  provider: string;
461
461
  connectionId: string;
@@ -464,8 +464,8 @@ export declare const kaanaCredentialOutcomeRequestSchema: z.ZodDiscriminatedUnio
464
464
  expectedRevision: number;
465
465
  }, {
466
466
  environment: "development" | "staging" | "production";
467
- ownerAccountId: string;
468
467
  schemaVersion: 1;
468
+ ownerAccountId: string;
469
469
  action: "revoke";
470
470
  provider: string;
471
471
  connectionId: string;
@@ -569,9 +569,9 @@ export declare const kaanaCredentialValidationTaskSchema: z.ZodObject<{
569
569
  deploymentId: z.ZodString;
570
570
  }, "strict", z.ZodTypeAny, {
571
571
  environment: "development" | "staging" | "production";
572
+ schemaVersion: 1;
572
573
  ownerAccountId: string;
573
574
  applicationId: string;
574
- schemaVersion: 1;
575
575
  provider: string;
576
576
  deploymentId: string;
577
577
  connectionId: string;
@@ -580,9 +580,9 @@ export declare const kaanaCredentialValidationTaskSchema: z.ZodObject<{
580
580
  credentialRevision: number;
581
581
  }, {
582
582
  environment: "development" | "staging" | "production";
583
+ schemaVersion: 1;
583
584
  ownerAccountId: string;
584
585
  applicationId: string;
585
- schemaVersion: 1;
586
586
  provider: string;
587
587
  deploymentId: string;
588
588
  connectionId: string;
@@ -615,9 +615,9 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
615
615
  failureCode: z.ZodOptional<z.ZodEnum<["unauthorized", "forbidden", "not_found", "rate_limited", "network", "unknown"]>>;
616
616
  }, "strict", z.ZodTypeAny, {
617
617
  environment: "development" | "staging" | "production";
618
+ schemaVersion: 1;
618
619
  ownerAccountId: string;
619
620
  applicationId: string;
620
- schemaVersion: 1;
621
621
  state: "valid" | "pending" | "invalid" | "inconclusive";
622
622
  provider: string;
623
623
  deploymentId: string;
@@ -628,9 +628,9 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
628
628
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
629
629
  }, {
630
630
  environment: "development" | "staging" | "production";
631
+ schemaVersion: 1;
631
632
  ownerAccountId: string;
632
633
  applicationId: string;
633
- schemaVersion: 1;
634
634
  state: "valid" | "pending" | "invalid" | "inconclusive";
635
635
  provider: string;
636
636
  deploymentId: string;
@@ -641,9 +641,9 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
641
641
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
642
642
  }>, {
643
643
  environment: "development" | "staging" | "production";
644
+ schemaVersion: 1;
644
645
  ownerAccountId: string;
645
646
  applicationId: string;
646
- schemaVersion: 1;
647
647
  state: "valid" | "pending" | "invalid" | "inconclusive";
648
648
  provider: string;
649
649
  deploymentId: string;
@@ -654,9 +654,9 @@ export declare const kaanaCredentialValidationOutcomeSchema: z.ZodEffects<z.ZodO
654
654
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
655
655
  }, {
656
656
  environment: "development" | "staging" | "production";
657
+ schemaVersion: 1;
657
658
  ownerAccountId: string;
658
659
  applicationId: string;
659
- schemaVersion: 1;
660
660
  state: "valid" | "pending" | "invalid" | "inconclusive";
661
661
  provider: string;
662
662
  deploymentId: string;
@@ -684,9 +684,9 @@ export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z
684
684
  createdAt: z.ZodString;
685
685
  completedAt: z.ZodOptional<z.ZodString>;
686
686
  }, "strict", z.ZodTypeAny, {
687
+ schemaVersion: 1;
687
688
  applicationId: string;
688
689
  createdAt: string;
689
- schemaVersion: 1;
690
690
  state: "valid" | "pending" | "invalid" | "inconclusive";
691
691
  deploymentId: string;
692
692
  connectionId: string;
@@ -694,9 +694,9 @@ export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z
694
694
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
695
695
  completedAt?: string | undefined;
696
696
  }, {
697
+ schemaVersion: 1;
697
698
  applicationId: string;
698
699
  createdAt: string;
699
- schemaVersion: 1;
700
700
  state: "valid" | "pending" | "invalid" | "inconclusive";
701
701
  deploymentId: string;
702
702
  connectionId: string;
@@ -704,9 +704,9 @@ export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z
704
704
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
705
705
  completedAt?: string | undefined;
706
706
  }>, {
707
+ schemaVersion: 1;
707
708
  applicationId: string;
708
709
  createdAt: string;
709
- schemaVersion: 1;
710
710
  state: "valid" | "pending" | "invalid" | "inconclusive";
711
711
  deploymentId: string;
712
712
  connectionId: string;
@@ -714,9 +714,9 @@ export declare const providerCredentialValidationOperationSchema: z.ZodEffects<z
714
714
  failureCode?: "unknown" | "network" | "rate_limited" | "unauthorized" | "forbidden" | "not_found" | undefined;
715
715
  completedAt?: string | undefined;
716
716
  }, {
717
+ schemaVersion: 1;
717
718
  applicationId: string;
718
719
  createdAt: string;
719
- schemaVersion: 1;
720
720
  state: "valid" | "pending" | "invalid" | "inconclusive";
721
721
  deploymentId: string;
722
722
  connectionId: string;
@@ -839,9 +839,9 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
839
839
  lastValidatedAt?: string | undefined;
840
840
  };
841
841
  environment: "development" | "staging" | "production";
842
+ schemaVersion: 2;
842
843
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
843
844
  createdAt: string;
844
- schemaVersion: 2;
845
845
  scope: {
846
846
  kind: "account";
847
847
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -869,9 +869,9 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
869
869
  lastValidatedAt?: string | undefined;
870
870
  };
871
871
  environment: "development" | "staging" | "production";
872
+ schemaVersion: 2;
872
873
  ownerAccountId: string;
873
874
  createdAt: string;
874
- schemaVersion: 2;
875
875
  scope: {
876
876
  kind: "account";
877
877
  accountId: string;
@@ -899,9 +899,9 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
899
899
  lastValidatedAt?: string | undefined;
900
900
  };
901
901
  environment: "development" | "staging" | "production";
902
+ schemaVersion: 2;
902
903
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
903
904
  createdAt: string;
904
- schemaVersion: 2;
905
905
  scope: {
906
906
  kind: "account";
907
907
  accountId: string & z.BRAND<"OxyAccountId">;
@@ -929,9 +929,9 @@ export declare const providerConnectionSchema: z.ZodEffects<z.ZodObject<{
929
929
  lastValidatedAt?: string | undefined;
930
930
  };
931
931
  environment: "development" | "staging" | "production";
932
+ schemaVersion: 2;
932
933
  ownerAccountId: string;
933
934
  createdAt: string;
934
- schemaVersion: 2;
935
935
  scope: {
936
936
  kind: "account";
937
937
  accountId: string;