@oxy.so/contracts 4.14.0 → 4.15.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 (51) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/index.js +2 -1
  3. package/dist/cjs/products/billing.js +1 -0
  4. package/dist/cjs/products/checkout.js +14 -1
  5. package/dist/cjs/products/plans.js +18 -2
  6. package/dist/cjs/userResponse.js +8 -1
  7. package/dist/esm/.tsbuildinfo +1 -1
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/products/billing.js +1 -0
  10. package/dist/esm/products/checkout.js +13 -0
  11. package/dist/esm/products/plans.js +17 -1
  12. package/dist/esm/userResponse.js +8 -1
  13. package/dist/types/.tsbuildinfo +1 -1
  14. package/dist/types/accountGraph.d.ts +22 -22
  15. package/dist/types/accountSubject.d.ts +4 -4
  16. package/dist/types/agency.d.ts +86 -86
  17. package/dist/types/deviceDirectory.d.ts +180 -180
  18. package/dist/types/email/messages.d.ts +78 -78
  19. package/dist/types/externalIdentity.d.ts +92 -59
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/inference/accountBilling.d.ts +36 -36
  22. package/dist/types/inference/catalogue.d.ts +12 -12
  23. package/dist/types/inference/decisions.d.ts +16 -16
  24. package/dist/types/inference/economics.d.ts +6 -6
  25. package/dist/types/inference/embeddings.d.ts +18 -18
  26. package/dist/types/inference/entitlement.d.ts +12 -12
  27. package/dist/types/inference/errors.d.ts +4 -4
  28. package/dist/types/inference/inbox.d.ts +17 -17
  29. package/dist/types/inference/priceVersion.d.ts +8 -8
  30. package/dist/types/inference/privateAutoExecution.d.ts +12 -12
  31. package/dist/types/inference/providerConnection.d.ts +24 -24
  32. package/dist/types/inference/realtime.d.ts +26 -26
  33. package/dist/types/inference/request.d.ts +26 -26
  34. package/dist/types/inference/routingPolicy.d.ts +4 -4
  35. package/dist/types/inference/scopedExecution.d.ts +8 -8
  36. package/dist/types/inference/streamEvents.d.ts +20 -20
  37. package/dist/types/inference/usage.d.ts +8 -8
  38. package/dist/types/keyRecovery.d.ts +4 -4
  39. package/dist/types/linkedAccounts.d.ts +16 -16
  40. package/dist/types/notifications.d.ts +4 -4
  41. package/dist/types/oauth.d.ts +40 -40
  42. package/dist/types/products/access.d.ts +18 -18
  43. package/dist/types/products/billing.d.ts +32 -24
  44. package/dist/types/products/checkout.d.ts +36 -0
  45. package/dist/types/products/plans.d.ts +108 -11
  46. package/dist/types/recommendations.d.ts +30 -30
  47. package/dist/types/safety.d.ts +2 -2
  48. package/dist/types/sessionStatus.d.ts +6 -6
  49. package/dist/types/stickers.d.ts +32 -32
  50. package/dist/types/userResponse.d.ts +247 -111
  51. package/package.json +1 -1
@@ -6,14 +6,14 @@ export declare const productDefinitionSchema: z.ZodObject<{
6
6
  ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
7
7
  applicationId: z.ZodString;
8
8
  }, "strict", z.ZodTypeAny, {
9
+ id: string;
9
10
  schemaVersion: 1;
10
11
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
11
- id: string;
12
12
  applicationId: string;
13
13
  }, {
14
+ id: string;
14
15
  schemaVersion: 1;
15
16
  ownerAccountId: string;
16
- id: string;
17
17
  applicationId: string;
18
18
  }>;
19
19
  export declare const subjectProductAccessQuerySchema: z.ZodObject<{
@@ -106,9 +106,9 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
106
106
  }>]>, "many">;
107
107
  }, "strict", z.ZodTypeAny, {
108
108
  kind: "bundle" | "individual";
109
+ id: string;
109
110
  schemaVersion: 1;
110
111
  version: number;
111
- id: string;
112
112
  benefits: ({
113
113
  kind: "capability";
114
114
  key: string;
@@ -123,9 +123,9 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
123
123
  })[];
124
124
  }, {
125
125
  kind: "bundle" | "individual";
126
+ id: string;
126
127
  schemaVersion: 1;
127
128
  version: number;
128
- id: string;
129
129
  benefits: ({
130
130
  kind: "capability";
131
131
  key: string;
@@ -140,9 +140,9 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
140
140
  })[];
141
141
  }>, {
142
142
  kind: "bundle" | "individual";
143
+ id: string;
143
144
  schemaVersion: 1;
144
145
  version: number;
145
- id: string;
146
146
  benefits: ({
147
147
  kind: "capability";
148
148
  key: string;
@@ -157,9 +157,9 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
157
157
  })[];
158
158
  }, {
159
159
  kind: "bundle" | "individual";
160
+ id: string;
160
161
  schemaVersion: 1;
161
162
  version: number;
162
- id: string;
163
163
  benefits: ({
164
164
  kind: "capability";
165
165
  key: string;
@@ -200,8 +200,8 @@ export declare const productSubscriptionSourceSchema: z.ZodObject<{
200
200
  cancelAtPeriodEnd: z.ZodBoolean;
201
201
  }, "strict", z.ZodTypeAny, {
202
202
  status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
203
- schemaVersion: 1;
204
203
  id: string;
204
+ schemaVersion: 1;
205
205
  provider: "stripe" | "peable";
206
206
  cancelAtPeriodEnd: boolean;
207
207
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
@@ -213,8 +213,8 @@ export declare const productSubscriptionSourceSchema: z.ZodObject<{
213
213
  };
214
214
  }, {
215
215
  status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
216
- schemaVersion: 1;
217
216
  id: string;
217
+ schemaVersion: 1;
218
218
  provider: "stripe" | "peable";
219
219
  cancelAtPeriodEnd: boolean;
220
220
  beneficiaryAccountId: string;
@@ -251,8 +251,8 @@ export declare const productOfferSegmentSchema: z.ZodObject<{
251
251
  end: string;
252
252
  }>;
253
253
  }, "strict", z.ZodTypeAny, {
254
- schemaVersion: 1;
255
254
  id: string;
255
+ schemaVersion: 1;
256
256
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
257
257
  period: {
258
258
  start: string;
@@ -263,8 +263,8 @@ export declare const productOfferSegmentSchema: z.ZodObject<{
263
263
  offerVersion: number;
264
264
  origin: "bundle" | "individual";
265
265
  }, {
266
- schemaVersion: 1;
267
266
  id: string;
267
+ schemaVersion: 1;
268
268
  beneficiaryAccountId: string;
269
269
  period: {
270
270
  start: string;
@@ -336,8 +336,8 @@ export declare const productAccessGrantSchema: z.ZodObject<{
336
336
  }>;
337
337
  revokedAt: z.ZodNullable<z.ZodString>;
338
338
  }, "strict", z.ZodTypeAny, {
339
- schemaVersion: 1;
340
339
  id: string;
340
+ schemaVersion: 1;
341
341
  revokedAt: string | null;
342
342
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
343
343
  period: {
@@ -361,8 +361,8 @@ export declare const productAccessGrantSchema: z.ZodObject<{
361
361
  combination: "maximum" | "sum" | "exclusive";
362
362
  };
363
363
  }, {
364
- schemaVersion: 1;
365
364
  id: string;
365
+ schemaVersion: 1;
366
366
  revokedAt: string | null;
367
367
  beneficiaryAccountId: string;
368
368
  period: {
@@ -638,8 +638,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
638
638
  }>;
639
639
  revokedAt: z.ZodNullable<z.ZodString>;
640
640
  }, "strict", z.ZodTypeAny, {
641
- schemaVersion: 1;
642
641
  id: string;
642
+ schemaVersion: 1;
643
643
  revokedAt: string | null;
644
644
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
645
645
  period: {
@@ -663,8 +663,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
663
663
  combination: "maximum" | "sum" | "exclusive";
664
664
  };
665
665
  }, {
666
- schemaVersion: 1;
667
666
  id: string;
667
+ schemaVersion: 1;
668
668
  revokedAt: string | null;
669
669
  beneficiaryAccountId: string;
670
670
  period: {
@@ -713,8 +713,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
713
713
  }[];
714
714
  };
715
715
  grants: {
716
- schemaVersion: 1;
717
716
  id: string;
717
+ schemaVersion: 1;
718
718
  revokedAt: string | null;
719
719
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
720
720
  period: {
@@ -763,8 +763,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
763
763
  }[];
764
764
  };
765
765
  grants: {
766
- schemaVersion: 1;
767
766
  id: string;
767
+ schemaVersion: 1;
768
768
  revokedAt: string | null;
769
769
  beneficiaryAccountId: string;
770
770
  period: {
@@ -813,8 +813,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
813
813
  }[];
814
814
  };
815
815
  grants: {
816
- schemaVersion: 1;
817
816
  id: string;
817
+ schemaVersion: 1;
818
818
  revokedAt: string | null;
819
819
  beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
820
820
  period: {
@@ -863,8 +863,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
863
863
  }[];
864
864
  };
865
865
  grants: {
866
- schemaVersion: 1;
867
866
  id: string;
867
+ schemaVersion: 1;
868
868
  revokedAt: string | null;
869
869
  beneficiaryAccountId: string;
870
870
  period: {
@@ -21,6 +21,7 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
21
21
  }>;
22
22
  cancelAtPeriodEnd: z.ZodBoolean;
23
23
  canCancel: z.ZodBoolean;
24
+ canRenew: z.ZodOptional<z.ZodBoolean>;
24
25
  offers: z.ZodArray<z.ZodObject<{
25
26
  segmentId: z.ZodString;
26
27
  offerId: z.ZodString;
@@ -48,11 +49,11 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
48
49
  id: z.ZodString;
49
50
  displayName: z.ZodString;
50
51
  }, "strict", z.ZodTypeAny, {
51
- displayName: string;
52
52
  id: string;
53
- }, {
54
53
  displayName: string;
54
+ }, {
55
55
  id: string;
56
+ displayName: string;
56
57
  }>, "many">;
57
58
  }, "strict", z.ZodTypeAny, {
58
59
  displayName: string;
@@ -66,8 +67,8 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
66
67
  segmentId: string;
67
68
  current: boolean;
68
69
  products: {
69
- displayName: string;
70
70
  id: string;
71
+ displayName: string;
71
72
  }[];
72
73
  }, {
73
74
  displayName: string;
@@ -81,8 +82,8 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
81
82
  segmentId: string;
82
83
  current: boolean;
83
84
  products: {
84
- displayName: string;
85
85
  id: string;
86
+ displayName: string;
86
87
  }[];
87
88
  }>, "many">;
88
89
  }, "strict", z.ZodTypeAny, {
@@ -106,10 +107,11 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
106
107
  segmentId: string;
107
108
  current: boolean;
108
109
  products: {
109
- displayName: string;
110
110
  id: string;
111
+ displayName: string;
111
112
  }[];
112
113
  }[];
114
+ canRenew?: boolean | undefined;
113
115
  }, {
114
116
  status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
115
117
  sourceId: string;
@@ -131,10 +133,11 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
131
133
  segmentId: string;
132
134
  current: boolean;
133
135
  products: {
134
- displayName: string;
135
136
  id: string;
137
+ displayName: string;
136
138
  }[];
137
139
  }[];
140
+ canRenew?: boolean | undefined;
138
141
  }>;
139
142
  export declare const productSubscriptionsResponseSchema: z.ZodObject<{
140
143
  subscriptions: z.ZodArray<z.ZodObject<{
@@ -158,6 +161,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
158
161
  }>;
159
162
  cancelAtPeriodEnd: z.ZodBoolean;
160
163
  canCancel: z.ZodBoolean;
164
+ canRenew: z.ZodOptional<z.ZodBoolean>;
161
165
  offers: z.ZodArray<z.ZodObject<{
162
166
  segmentId: z.ZodString;
163
167
  offerId: z.ZodString;
@@ -185,11 +189,11 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
185
189
  id: z.ZodString;
186
190
  displayName: z.ZodString;
187
191
  }, "strict", z.ZodTypeAny, {
188
- displayName: string;
189
192
  id: string;
190
- }, {
191
193
  displayName: string;
194
+ }, {
192
195
  id: string;
196
+ displayName: string;
193
197
  }>, "many">;
194
198
  }, "strict", z.ZodTypeAny, {
195
199
  displayName: string;
@@ -203,8 +207,8 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
203
207
  segmentId: string;
204
208
  current: boolean;
205
209
  products: {
206
- displayName: string;
207
210
  id: string;
211
+ displayName: string;
208
212
  }[];
209
213
  }, {
210
214
  displayName: string;
@@ -218,8 +222,8 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
218
222
  segmentId: string;
219
223
  current: boolean;
220
224
  products: {
221
- displayName: string;
222
225
  id: string;
226
+ displayName: string;
223
227
  }[];
224
228
  }>, "many">;
225
229
  }, "strict", z.ZodTypeAny, {
@@ -243,10 +247,11 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
243
247
  segmentId: string;
244
248
  current: boolean;
245
249
  products: {
246
- displayName: string;
247
250
  id: string;
251
+ displayName: string;
248
252
  }[];
249
253
  }[];
254
+ canRenew?: boolean | undefined;
250
255
  }, {
251
256
  status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
252
257
  sourceId: string;
@@ -268,10 +273,11 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
268
273
  segmentId: string;
269
274
  current: boolean;
270
275
  products: {
271
- displayName: string;
272
276
  id: string;
277
+ displayName: string;
273
278
  }[];
274
279
  }[];
280
+ canRenew?: boolean | undefined;
275
281
  }>, "many">;
276
282
  }, "strict", z.ZodTypeAny, {
277
283
  subscriptions: {
@@ -295,10 +301,11 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
295
301
  segmentId: string;
296
302
  current: boolean;
297
303
  products: {
298
- displayName: string;
299
304
  id: string;
305
+ displayName: string;
300
306
  }[];
301
307
  }[];
308
+ canRenew?: boolean | undefined;
302
309
  }[];
303
310
  }, {
304
311
  subscriptions: {
@@ -322,10 +329,11 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
322
329
  segmentId: string;
323
330
  current: boolean;
324
331
  products: {
325
- displayName: string;
326
332
  id: string;
333
+ displayName: string;
327
334
  }[];
328
335
  }[];
336
+ canRenew?: boolean | undefined;
329
337
  }[];
330
338
  }>;
331
339
  export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
@@ -355,8 +363,8 @@ export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
355
363
  promotionId: z.ZodNullable<z.ZodString>;
356
364
  createdAt: z.ZodString;
357
365
  }, "strict", z.ZodTypeAny, {
358
- id: string;
359
366
  createdAt: string;
367
+ id: string;
360
368
  granted: number;
361
369
  remaining: number;
362
370
  period: {
@@ -369,8 +377,8 @@ export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
369
377
  clawed: number;
370
378
  promotionId: string | null;
371
379
  }, {
372
- id: string;
373
380
  createdAt: string;
381
+ id: string;
374
382
  granted: number;
375
383
  remaining: number;
376
384
  period: {
@@ -383,8 +391,8 @@ export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
383
391
  clawed: number;
384
392
  promotionId: string | null;
385
393
  }>, {
386
- id: string;
387
394
  createdAt: string;
395
+ id: string;
388
396
  granted: number;
389
397
  remaining: number;
390
398
  period: {
@@ -397,8 +405,8 @@ export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
397
405
  clawed: number;
398
406
  promotionId: string | null;
399
407
  }, {
400
- id: string;
401
408
  createdAt: string;
409
+ id: string;
402
410
  granted: number;
403
411
  remaining: number;
404
412
  period: {
@@ -439,8 +447,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
439
447
  promotionId: z.ZodNullable<z.ZodString>;
440
448
  createdAt: z.ZodString;
441
449
  }, "strict", z.ZodTypeAny, {
442
- id: string;
443
450
  createdAt: string;
451
+ id: string;
444
452
  granted: number;
445
453
  remaining: number;
446
454
  period: {
@@ -453,8 +461,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
453
461
  clawed: number;
454
462
  promotionId: string | null;
455
463
  }, {
456
- id: string;
457
464
  createdAt: string;
465
+ id: string;
458
466
  granted: number;
459
467
  remaining: number;
460
468
  period: {
@@ -467,8 +475,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
467
475
  clawed: number;
468
476
  promotionId: string | null;
469
477
  }>, {
470
- id: string;
471
478
  createdAt: string;
479
+ id: string;
472
480
  granted: number;
473
481
  remaining: number;
474
482
  period: {
@@ -481,8 +489,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
481
489
  clawed: number;
482
490
  promotionId: string | null;
483
491
  }, {
484
- id: string;
485
492
  createdAt: string;
493
+ id: string;
486
494
  granted: number;
487
495
  remaining: number;
488
496
  period: {
@@ -497,8 +505,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
497
505
  }>, "many">;
498
506
  }, "strict", z.ZodTypeAny, {
499
507
  grants: {
500
- id: string;
501
508
  createdAt: string;
509
+ id: string;
502
510
  granted: number;
503
511
  remaining: number;
504
512
  period: {
@@ -513,8 +521,8 @@ export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
513
521
  }[];
514
522
  }, {
515
523
  grants: {
516
- id: string;
517
524
  createdAt: string;
525
+ id: string;
518
526
  granted: number;
519
527
  remaining: number;
520
528
  period: {
@@ -58,3 +58,39 @@ export declare const personalPlanCheckoutResultSchema: z.ZodDiscriminatedUnion<"
58
58
  }>]>;
59
59
  export type PersonalPlanCheckoutRequest = z.infer<typeof personalPlanCheckoutRequestSchema>;
60
60
  export type PersonalPlanCheckoutResult = z.infer<typeof personalPlanCheckoutResultSchema>;
61
+ /** Explicit individual product offer; still owned and paid through Oxy. */
62
+ export declare const productPlanCheckoutRequestSchema: z.ZodObject<{
63
+ expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
64
+ offerId: z.ZodString;
65
+ offerVersion: z.ZodNumber;
66
+ idempotencyKey: z.ZodString;
67
+ } & {
68
+ productId: z.ZodString;
69
+ }, "strict", z.ZodTypeAny, {
70
+ idempotencyKey: string;
71
+ productId: string;
72
+ offerId: string;
73
+ offerVersion: number;
74
+ expectedSubjectAccountId: string & z.BRAND<"OxyAccountId">;
75
+ }, {
76
+ idempotencyKey: string;
77
+ productId: string;
78
+ offerId: string;
79
+ offerVersion: number;
80
+ expectedSubjectAccountId: string;
81
+ }>;
82
+ export type ProductPlanCheckoutRequest = z.infer<typeof productPlanCheckoutRequestSchema>;
83
+ export declare const productSubscriptionRenewalRequestSchema: z.ZodObject<{
84
+ expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
85
+ sourceId: z.ZodString;
86
+ idempotencyKey: z.ZodString;
87
+ }, "strict", z.ZodTypeAny, {
88
+ sourceId: string;
89
+ idempotencyKey: string;
90
+ expectedSubjectAccountId: string & z.BRAND<"OxyAccountId">;
91
+ }, {
92
+ sourceId: string;
93
+ idempotencyKey: string;
94
+ expectedSubjectAccountId: string;
95
+ }>;
96
+ export type ProductSubscriptionRenewalRequest = z.infer<typeof productSubscriptionRenewalRequestSchema>;
@@ -26,7 +26,7 @@ export declare const personalPlanDisplayPriceSchema: z.ZodObject<{
26
26
  export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
27
27
  schemaVersion: z.ZodLiteral<1>;
28
28
  state: z.ZodEnum<["unconfigured", "configured"]>;
29
- purchase: z.ZodLiteral<"unavailable">;
29
+ purchase: z.ZodEnum<["unavailable", "available"]>;
30
30
  plans: z.ZodArray<z.ZodObject<{
31
31
  offerId: z.ZodString;
32
32
  offerVersion: z.ZodNumber;
@@ -121,8 +121,8 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
121
121
  };
122
122
  }>, "many">;
123
123
  }, "strict", z.ZodTypeAny, {
124
- displayName: string;
125
124
  kind: "oxy_one";
125
+ displayName: string;
126
126
  audience: "personal";
127
127
  benefits: {
128
128
  displayName: string;
@@ -150,8 +150,8 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
150
150
  merchantTotal: "final";
151
151
  } | undefined;
152
152
  }, {
153
- displayName: string;
154
153
  kind: "oxy_one";
154
+ displayName: string;
155
155
  audience: "personal";
156
156
  benefits: {
157
157
  displayName: string;
@@ -182,10 +182,10 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
182
182
  }, "strict", z.ZodTypeAny, {
183
183
  schemaVersion: 1;
184
184
  state: "unconfigured" | "configured";
185
- purchase: "unavailable";
185
+ purchase: "unavailable" | "available";
186
186
  plans: {
187
- displayName: string;
188
187
  kind: "oxy_one";
188
+ displayName: string;
189
189
  audience: "personal";
190
190
  benefits: {
191
191
  displayName: string;
@@ -216,10 +216,10 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
216
216
  }, {
217
217
  schemaVersion: 1;
218
218
  state: "unconfigured" | "configured";
219
- purchase: "unavailable";
219
+ purchase: "unavailable" | "available";
220
220
  plans: {
221
- displayName: string;
222
221
  kind: "oxy_one";
222
+ displayName: string;
223
223
  audience: "personal";
224
224
  benefits: {
225
225
  displayName: string;
@@ -250,10 +250,10 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
250
250
  }>, {
251
251
  schemaVersion: 1;
252
252
  state: "unconfigured" | "configured";
253
- purchase: "unavailable";
253
+ purchase: "unavailable" | "available";
254
254
  plans: {
255
- displayName: string;
256
255
  kind: "oxy_one";
256
+ displayName: string;
257
257
  audience: "personal";
258
258
  benefits: {
259
259
  displayName: string;
@@ -284,10 +284,10 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
284
284
  }, {
285
285
  schemaVersion: 1;
286
286
  state: "unconfigured" | "configured";
287
- purchase: "unavailable";
287
+ purchase: "unavailable" | "available";
288
288
  plans: {
289
- displayName: string;
290
289
  kind: "oxy_one";
290
+ displayName: string;
291
291
  audience: "personal";
292
292
  benefits: {
293
293
  displayName: string;
@@ -317,3 +317,100 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
317
317
  }[];
318
318
  }>;
319
319
  export type PersonalPlanCatalogue = z.infer<typeof personalPlanCatalogueSchema>;
320
+ export declare const productPlanCatalogueSchema: z.ZodObject<{
321
+ schemaVersion: z.ZodLiteral<1>;
322
+ productId: z.ZodString;
323
+ purchase: z.ZodEnum<["unavailable", "available"]>;
324
+ plans: z.ZodArray<z.ZodObject<{
325
+ productId: z.ZodString;
326
+ offerId: z.ZodString;
327
+ offerVersion: z.ZodNumber;
328
+ displayName: z.ZodString;
329
+ price: z.ZodObject<{
330
+ currency: z.ZodString;
331
+ amountMinorUnits: z.ZodNumber;
332
+ trial: z.ZodLiteral<"none">;
333
+ taxTreatment: z.ZodLiteral<"inclusive">;
334
+ merchantTotal: z.ZodLiteral<"final">;
335
+ } & {
336
+ interval: z.ZodEnum<["month", "year"]>;
337
+ }, "strict", z.ZodTypeAny, {
338
+ currency: string;
339
+ amountMinorUnits: number;
340
+ interval: "year" | "month";
341
+ trial: "none";
342
+ taxTreatment: "inclusive";
343
+ merchantTotal: "final";
344
+ }, {
345
+ currency: string;
346
+ amountMinorUnits: number;
347
+ interval: "year" | "month";
348
+ trial: "none";
349
+ taxTreatment: "inclusive";
350
+ merchantTotal: "final";
351
+ }>;
352
+ }, "strict", z.ZodTypeAny, {
353
+ displayName: string;
354
+ price: {
355
+ currency: string;
356
+ amountMinorUnits: number;
357
+ interval: "year" | "month";
358
+ trial: "none";
359
+ taxTreatment: "inclusive";
360
+ merchantTotal: "final";
361
+ };
362
+ productId: string;
363
+ offerId: string;
364
+ offerVersion: number;
365
+ }, {
366
+ displayName: string;
367
+ price: {
368
+ currency: string;
369
+ amountMinorUnits: number;
370
+ interval: "year" | "month";
371
+ trial: "none";
372
+ taxTreatment: "inclusive";
373
+ merchantTotal: "final";
374
+ };
375
+ productId: string;
376
+ offerId: string;
377
+ offerVersion: number;
378
+ }>, "many">;
379
+ }, "strict", z.ZodTypeAny, {
380
+ schemaVersion: 1;
381
+ purchase: "unavailable" | "available";
382
+ productId: string;
383
+ plans: {
384
+ displayName: string;
385
+ price: {
386
+ currency: string;
387
+ amountMinorUnits: number;
388
+ interval: "year" | "month";
389
+ trial: "none";
390
+ taxTreatment: "inclusive";
391
+ merchantTotal: "final";
392
+ };
393
+ productId: string;
394
+ offerId: string;
395
+ offerVersion: number;
396
+ }[];
397
+ }, {
398
+ schemaVersion: 1;
399
+ purchase: "unavailable" | "available";
400
+ productId: string;
401
+ plans: {
402
+ displayName: string;
403
+ price: {
404
+ currency: string;
405
+ amountMinorUnits: number;
406
+ interval: "year" | "month";
407
+ trial: "none";
408
+ taxTreatment: "inclusive";
409
+ merchantTotal: "final";
410
+ };
411
+ productId: string;
412
+ offerId: string;
413
+ offerVersion: number;
414
+ }[];
415
+ }>;
416
+ export type ProductPlanCatalogue = z.infer<typeof productPlanCatalogueSchema>;