@distilled.cloud/vercel 1.0.0-rc.7 → 1.0.0-rc.9

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 (198) hide show
  1. package/LICENSE +201 -0
  2. package/lib/services/access_groups.d.ts +1 -1
  3. package/lib/services/access_groups.d.ts.map +1 -1
  4. package/lib/services/access_groups.js +1 -1
  5. package/lib/services/access_groups.js.map +1 -1
  6. package/lib/services/ai_gateway.js +1 -1
  7. package/lib/services/ai_gateway.js.map +1 -1
  8. package/lib/services/aliases.d.ts +3 -3
  9. package/lib/services/aliases.d.ts.map +1 -1
  10. package/lib/services/aliases.js +4 -4
  11. package/lib/services/aliases.js.map +1 -1
  12. package/lib/services/api_ai_gateway.d.ts +275 -0
  13. package/lib/services/api_ai_gateway.d.ts.map +1 -0
  14. package/lib/services/api_ai_gateway.js +229 -0
  15. package/lib/services/api_ai_gateway.js.map +1 -0
  16. package/lib/services/artifacts.d.ts +1 -1
  17. package/lib/services/artifacts.d.ts.map +1 -1
  18. package/lib/services/artifacts.js +12 -12
  19. package/lib/services/artifacts.js.map +1 -1
  20. package/lib/services/authentication.js +1 -1
  21. package/lib/services/authentication.js.map +1 -1
  22. package/lib/services/billing.d.ts +145 -7
  23. package/lib/services/billing.d.ts.map +1 -1
  24. package/lib/services/billing.js +121 -5
  25. package/lib/services/billing.js.map +1 -1
  26. package/lib/services/bulk_redirects.d.ts +4 -4
  27. package/lib/services/bulk_redirects.d.ts.map +1 -1
  28. package/lib/services/bulk_redirects.js +4 -4
  29. package/lib/services/bulk_redirects.js.map +1 -1
  30. package/lib/services/certs.d.ts +9 -9
  31. package/lib/services/certs.d.ts.map +1 -1
  32. package/lib/services/certs.js +10 -12
  33. package/lib/services/certs.js.map +1 -1
  34. package/lib/services/checks_v2.d.ts +5 -0
  35. package/lib/services/checks_v2.d.ts.map +1 -1
  36. package/lib/services/checks_v2.js +6 -1
  37. package/lib/services/checks_v2.js.map +1 -1
  38. package/lib/services/connect.d.ts +1721 -527
  39. package/lib/services/connect.d.ts.map +1 -1
  40. package/lib/services/connect.js +1034 -414
  41. package/lib/services/connect.js.map +1 -1
  42. package/lib/services/deployments.d.ts +338 -30
  43. package/lib/services/deployments.d.ts.map +1 -1
  44. package/lib/services/deployments.js +335 -11
  45. package/lib/services/deployments.js.map +1 -1
  46. package/lib/services/dns.d.ts +13 -13
  47. package/lib/services/dns.d.ts.map +1 -1
  48. package/lib/services/dns.js +13 -14
  49. package/lib/services/dns.js.map +1 -1
  50. package/lib/services/domains.d.ts +55 -27
  51. package/lib/services/domains.d.ts.map +1 -1
  52. package/lib/services/domains.js +38 -25
  53. package/lib/services/domains.js.map +1 -1
  54. package/lib/services/domains_registrar.d.ts.map +1 -1
  55. package/lib/services/domains_registrar.js +1 -1
  56. package/lib/services/domains_registrar.js.map +1 -1
  57. package/lib/services/drains.d.ts +8 -8
  58. package/lib/services/drains.d.ts.map +1 -1
  59. package/lib/services/drains.js +1 -1
  60. package/lib/services/drains.js.map +1 -1
  61. package/lib/services/edge_cache.js +1 -1
  62. package/lib/services/edge_cache.js.map +1 -1
  63. package/lib/services/environment.d.ts +39 -39
  64. package/lib/services/environment.d.ts.map +1 -1
  65. package/lib/services/environment.js +35 -37
  66. package/lib/services/environment.js.map +1 -1
  67. package/lib/services/feature_flags.d.ts +93 -309
  68. package/lib/services/feature_flags.d.ts.map +1 -1
  69. package/lib/services/feature_flags.js +93 -303
  70. package/lib/services/feature_flags.js.map +1 -1
  71. package/lib/services/global_config.d.ts +40 -40
  72. package/lib/services/global_config.d.ts.map +1 -1
  73. package/lib/services/global_config.js +16 -14
  74. package/lib/services/global_config.js.map +1 -1
  75. package/lib/services/index.d.ts +3 -0
  76. package/lib/services/index.d.ts.map +1 -1
  77. package/lib/services/index.js +3 -0
  78. package/lib/services/index.js.map +1 -1
  79. package/lib/services/integrations.d.ts +44 -17
  80. package/lib/services/integrations.d.ts.map +1 -1
  81. package/lib/services/integrations.js +32 -7
  82. package/lib/services/integrations.js.map +1 -1
  83. package/lib/services/kms.d.ts +1095 -0
  84. package/lib/services/kms.d.ts.map +1 -0
  85. package/lib/services/kms.js +982 -0
  86. package/lib/services/kms.js.map +1 -0
  87. package/lib/services/log_drains.d.ts +4 -4
  88. package/lib/services/log_drains.d.ts.map +1 -1
  89. package/lib/services/log_drains.js +1 -1
  90. package/lib/services/log_drains.js.map +1 -1
  91. package/lib/services/logs.js +1 -1
  92. package/lib/services/logs.js.map +1 -1
  93. package/lib/services/marketplace.d.ts +95 -33
  94. package/lib/services/marketplace.d.ts.map +1 -1
  95. package/lib/services/marketplace.js +123 -31
  96. package/lib/services/marketplace.js.map +1 -1
  97. package/lib/services/microfrontends.d.ts +290 -250
  98. package/lib/services/microfrontends.d.ts.map +1 -1
  99. package/lib/services/microfrontends.js +281 -244
  100. package/lib/services/microfrontends.js.map +1 -1
  101. package/lib/services/misc.d.ts +192 -0
  102. package/lib/services/misc.d.ts.map +1 -0
  103. package/lib/services/misc.js +125 -0
  104. package/lib/services/misc.js.map +1 -0
  105. package/lib/services/networking.d.ts +123 -2
  106. package/lib/services/networking.d.ts.map +1 -1
  107. package/lib/services/networking.js +132 -2
  108. package/lib/services/networking.js.map +1 -1
  109. package/lib/services/observability.js +1 -1
  110. package/lib/services/observability.js.map +1 -1
  111. package/lib/services/project_members.js +1 -1
  112. package/lib/services/project_members.js.map +1 -1
  113. package/lib/services/project_routes.d.ts.map +1 -1
  114. package/lib/services/project_routes.js +1 -1
  115. package/lib/services/project_routes.js.map +1 -1
  116. package/lib/services/projects.d.ts +356 -116
  117. package/lib/services/projects.d.ts.map +1 -1
  118. package/lib/services/projects.js +260 -64
  119. package/lib/services/projects.js.map +1 -1
  120. package/lib/services/rolling_release.d.ts +2 -2
  121. package/lib/services/rolling_release.d.ts.map +1 -1
  122. package/lib/services/rolling_release.js +1 -1
  123. package/lib/services/rolling_release.js.map +1 -1
  124. package/lib/services/sandboxes.d.ts +1007 -410
  125. package/lib/services/sandboxes.d.ts.map +1 -1
  126. package/lib/services/sandboxes.js +732 -293
  127. package/lib/services/sandboxes.js.map +1 -1
  128. package/lib/services/security.d.ts +590 -275
  129. package/lib/services/security.d.ts.map +1 -1
  130. package/lib/services/security.js +562 -208
  131. package/lib/services/security.js.map +1 -1
  132. package/lib/services/storage.d.ts +69 -69
  133. package/lib/services/storage.d.ts.map +1 -1
  134. package/lib/services/storage.js +59 -59
  135. package/lib/services/storage.js.map +1 -1
  136. package/lib/services/teams.d.ts +351 -328
  137. package/lib/services/teams.d.ts.map +1 -1
  138. package/lib/services/teams.js +299 -284
  139. package/lib/services/teams.js.map +1 -1
  140. package/lib/services/user.d.ts +4237 -3650
  141. package/lib/services/user.d.ts.map +1 -1
  142. package/lib/services/user.js +3426 -2935
  143. package/lib/services/user.js.map +1 -1
  144. package/lib/services/vcr.d.ts +80 -122
  145. package/lib/services/vcr.d.ts.map +1 -1
  146. package/lib/services/vcr.js +89 -144
  147. package/lib/services/vcr.js.map +1 -1
  148. package/lib/services/web_analytics.d.ts +42 -10
  149. package/lib/services/web_analytics.d.ts.map +1 -1
  150. package/lib/services/web_analytics.js +39 -9
  151. package/lib/services/web_analytics.js.map +1 -1
  152. package/lib/services/webhooks.d.ts +13 -1
  153. package/lib/services/webhooks.d.ts.map +1 -1
  154. package/lib/services/webhooks.js +11 -1
  155. package/lib/services/webhooks.js.map +1 -1
  156. package/package.json +6 -5
  157. package/src/services/access_groups.ts +5 -2
  158. package/src/services/ai_gateway.ts +1 -1
  159. package/src/services/aliases.ts +9 -8
  160. package/src/services/api_ai_gateway.ts +607 -0
  161. package/src/services/artifacts.ts +13 -13
  162. package/src/services/authentication.ts +1 -1
  163. package/src/services/billing.ts +358 -26
  164. package/src/services/bulk_redirects.ts +10 -10
  165. package/src/services/certs.ts +20 -26
  166. package/src/services/checks_v2.ts +11 -1
  167. package/src/services/connect.ts +3330 -1121
  168. package/src/services/deployments.ts +1513 -429
  169. package/src/services/dns.ts +26 -27
  170. package/src/services/domains.ts +119 -63
  171. package/src/services/domains_registrar.ts +37 -37
  172. package/src/services/drains.ts +35 -18
  173. package/src/services/edge_cache.ts +1 -1
  174. package/src/services/environment.ts +99 -95
  175. package/src/services/feature_flags.ts +332 -884
  176. package/src/services/global_config.ts +59 -57
  177. package/src/services/index.ts +3 -0
  178. package/src/services/integrations.ts +870 -668
  179. package/src/services/kms.ts +2631 -0
  180. package/src/services/log_drains.ts +73 -41
  181. package/src/services/logs.ts +1 -1
  182. package/src/services/marketplace.ts +324 -96
  183. package/src/services/microfrontends.ts +1582 -1306
  184. package/src/services/misc.ts +364 -0
  185. package/src/services/networking.ts +339 -4
  186. package/src/services/observability.ts +1 -1
  187. package/src/services/project_members.ts +1 -1
  188. package/src/services/project_routes.ts +25 -16
  189. package/src/services/projects.ts +1987 -691
  190. package/src/services/rolling_release.ts +100 -96
  191. package/src/services/sandboxes.ts +3013 -1268
  192. package/src/services/security.ts +3433 -1845
  193. package/src/services/storage.ts +145 -141
  194. package/src/services/teams.ts +1061 -986
  195. package/src/services/user.ts +8490 -6901
  196. package/src/services/vcr.ts +349 -443
  197. package/src/services/web_analytics.ts +83 -13
  198. package/src/services/webhooks.ts +32 -1
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -21,6 +21,15 @@ export class BadRequest
21
21
  [{ status: 400 }],
22
22
  ) {}
23
23
 
24
+ export class Conflict
25
+ extends /*@__PURE__*/ T.applyErrorMatchers(
26
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
27
+ code: S.Number,
28
+ message: S.String,
29
+ }).pipe(C.withConflictError),
30
+ [{ status: 409 }],
31
+ ) {}
32
+
24
33
  export class Forbidden
25
34
  extends /*@__PURE__*/ T.applyErrorMatchers(
26
35
  /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
@@ -109,11 +118,11 @@ export const BuyCreditsResponseBodyCase0 = /*@__PURE__*/ S.suspend(() =>
109
118
 
110
119
  /** The currency being purchased */
111
120
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency =
112
- | "ai_credits"
113
- | "ai_gateway_credits"
114
- | "copper_test_units"
115
- | "v0_user_credits"
116
- | "vercel_agent_credits";
121
+ | "ai_credits"
122
+ | "ai_gateway_credits"
123
+ | "copper_test_units"
124
+ | "v0_user_credits"
125
+ | "vercel_agent_credits";
117
126
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency =
118
127
  /*@__PURE__*/ S.String;
119
128
 
@@ -164,7 +173,9 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 =
164
173
  }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0>;
165
174
 
166
175
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType =
167
- "purchase" | "renewal" | "transfer";
176
+ | "purchase"
177
+ | "renewal"
178
+ | "transfer";
168
179
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType =
169
180
  /*@__PURE__*/ S.String;
170
181
 
@@ -237,13 +248,14 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 =
237
248
  }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1>;
238
249
 
239
250
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 =
240
- "end_of_subscription_term" | "immediate";
251
+ | "end_of_subscription_term"
252
+ | "immediate";
241
253
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 =
242
254
  /*@__PURE__*/ S.String;
243
255
 
244
256
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate =
245
- | unknown
246
- | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1;
257
+ | unknown
258
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1;
247
259
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate =
248
260
  /*@__PURE__*/ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate>;
249
261
 
@@ -384,8 +396,8 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsA
384
396
  }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0>;
385
397
 
386
398
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem =
387
- | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0
388
- | unknown;
399
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0
400
+ | unknown;
389
401
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem =
390
402
  /*@__PURE__*/ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem>;
391
403
 
@@ -582,14 +594,14 @@ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Opti
582
594
  orbExternalCustomerId: string;
583
595
  /** The external ID of the Orb plan to create */
584
596
  orbExternalPlanId: string;
585
- /** The ID of the pending subscription change */
586
- orbPendingSubscriptionChangeId: string;
587
597
  /** The ID of the Orb plan to create */
588
598
  orbPlanId: string;
589
599
  /** The ID of the Orb subscription to create */
590
600
  orbSubscriptionId: string;
591
601
  /** The line items that make up the Purchase Intent. */
592
602
  lineItems?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList;
603
+ /** The ID of the pending subscription change */
604
+ orbPendingSubscriptionChangeId?: string;
593
605
  }
594
606
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options =
595
607
  /*@__PURE__*/ S.suspend(() =>
@@ -597,22 +609,31 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options
597
609
  orbCustomerId: S.String,
598
610
  orbExternalCustomerId: S.String,
599
611
  orbExternalPlanId: S.String,
600
- orbPendingSubscriptionChangeId: S.String,
601
612
  orbPlanId: S.String,
602
613
  orbSubscriptionId: S.String,
603
614
  lineItems: S.optional(
604
615
  BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList,
605
616
  ),
617
+ orbPendingSubscriptionChangeId: S.optional(S.String),
606
618
  }),
607
619
  ).annotate({
608
620
  identifier:
609
621
  "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options",
610
622
  }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options>;
611
623
 
612
- export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output =
613
- BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
624
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output {
625
+ /** The ID of the pending subscription change */
626
+ pendingSubscriptionChangeId?: string;
627
+ }
614
628
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output =
615
- BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
629
+ /*@__PURE__*/ S.suspend(() =>
630
+ S.Struct({
631
+ pendingSubscriptionChangeId: S.optional(S.String),
632
+ }),
633
+ ).annotate({
634
+ identifier:
635
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output",
636
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output>;
616
637
 
617
638
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type =
618
639
  "orb_subscription_intent";
@@ -622,7 +643,7 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type =
622
643
  /** The configuration for a credit purchase */
623
644
  export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 {
624
645
  options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options;
625
- output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
646
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output;
626
647
  type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type;
627
648
  }
628
649
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 =
@@ -630,20 +651,194 @@ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 =
630
651
  S.Struct({
631
652
  options:
632
653
  BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options,
633
- output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
654
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output,
634
655
  type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type,
635
656
  }),
636
657
  ).annotate({
637
658
  identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5",
638
659
  }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5>;
639
660
 
661
+ /** The resource IDs associated with the current plan item quantity */
662
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItemResourceIdsList =
663
+ Array<string>;
664
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItemResourceIdsList =
665
+ /*@__PURE__*/ S.Array(
666
+ S.String,
667
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItemResourceIdsList>;
668
+
669
+ /** The current plan item quantities */
670
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem {
671
+ /** The ID of the current plan item to set the quantity for */
672
+ planItemId: string;
673
+ /** The nonnegative integer quantity for the current plan item */
674
+ quantity: number;
675
+ /** The resource IDs associated with the current plan item quantity */
676
+ resourceIds?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItemResourceIdsList;
677
+ }
678
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem =
679
+ /*@__PURE__*/ S.suspend(() =>
680
+ S.Struct({
681
+ planItemId: S.String,
682
+ quantity: S.Number,
683
+ resourceIds: S.optional(
684
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItemResourceIdsList,
685
+ ),
686
+ }),
687
+ ).annotate({
688
+ identifier:
689
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem",
690
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem>;
691
+
692
+ /** The current plan item quantities */
693
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesList =
694
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem>;
695
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesList =
696
+ /*@__PURE__*/ S.Array(
697
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesItem,
698
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesList>;
699
+
700
+ /** The current plan being replaced by this purchase */
701
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan {
702
+ /** The end of the current plan billing cycle */
703
+ currentCycleEndDate: string;
704
+ /** The Orb subscription ID currently active for the owner on the source plan */
705
+ orbSubscriptionId: string;
706
+ /** The ID of the plan currently assigned */
707
+ planId: string;
708
+ /** The current plan item quantities */
709
+ planItemQuantities?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesList;
710
+ /** The rate variant currently assigned */
711
+ rateVariantKey?: string;
712
+ }
713
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan =
714
+ /*@__PURE__*/ S.suspend(() =>
715
+ S.Struct({
716
+ currentCycleEndDate: S.String,
717
+ orbSubscriptionId: S.String,
718
+ planId: S.String,
719
+ planItemQuantities: S.optional(
720
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlanPlanItemQuantitiesList,
721
+ ),
722
+ rateVariantKey: S.optional(S.String),
723
+ }),
724
+ ).annotate({
725
+ identifier:
726
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan",
727
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan>;
728
+
729
+ /** The resource IDs to associate with the plan item quantity */
730
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItemResourceIdsList =
731
+ Array<string>;
732
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItemResourceIdsList =
733
+ /*@__PURE__*/ S.Array(
734
+ S.String,
735
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItemResourceIdsList>;
736
+
737
+ /** The plan item quantities to set for the subscription */
738
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem {
739
+ /** The ID of the plan item to set the quantity for */
740
+ planItemId: string;
741
+ /** The nonnegative integer quantity for the plan item */
742
+ quantity: number;
743
+ /** The resource IDs to associate with the plan item quantity */
744
+ resourceIds?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItemResourceIdsList;
745
+ }
746
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem =
747
+ /*@__PURE__*/ S.suspend(() =>
748
+ S.Struct({
749
+ planItemId: S.String,
750
+ quantity: S.Number,
751
+ resourceIds: S.optional(
752
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItemResourceIdsList,
753
+ ),
754
+ }),
755
+ ).annotate({
756
+ identifier:
757
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem",
758
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem>;
759
+
760
+ /** The plan item quantities to set for the subscription */
761
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesList =
762
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem>;
763
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesList =
764
+ /*@__PURE__*/ S.Array(
765
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesItem,
766
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesList>;
767
+
768
+ /** Purchase configuration specific options */
769
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options {
770
+ /** The ID of the plan to subscribe to */
771
+ planId: string;
772
+ /** The current plan being replaced by this purchase */
773
+ fromPlan?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan;
774
+ /** The plan item quantities to set for the subscription */
775
+ planItemQuantities?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesList;
776
+ /** The rate variant key to apply to the subscription */
777
+ rateVariantKey?: string;
778
+ }
779
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options =
780
+ /*@__PURE__*/ S.suspend(() =>
781
+ S.Struct({
782
+ planId: S.String,
783
+ fromPlan: S.optional(
784
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsFromPlan,
785
+ ),
786
+ planItemQuantities: S.optional(
787
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6OptionsPlanItemQuantitiesList,
788
+ ),
789
+ rateVariantKey: S.optional(S.String),
790
+ }),
791
+ ).annotate({
792
+ identifier:
793
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options",
794
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options>;
795
+
796
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output {
797
+ /** The committed Plan revision used to calculate the purchase price */
798
+ planChangeId?: string;
799
+ }
800
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output =
801
+ /*@__PURE__*/ S.suspend(() =>
802
+ S.Struct({
803
+ planChangeId: S.optional(S.String),
804
+ }),
805
+ ).annotate({
806
+ identifier:
807
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output",
808
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output>;
809
+
810
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Type =
811
+ "subscription";
812
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Type =
813
+ /*@__PURE__*/ S.String;
814
+
815
+ /** The configuration for a credit purchase */
816
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6 {
817
+ /** Purchase configuration specific options */
818
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options;
819
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output;
820
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Type;
821
+ }
822
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6 =
823
+ /*@__PURE__*/ S.suspend(() =>
824
+ S.Struct({
825
+ options:
826
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Options,
827
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Output,
828
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6Type,
829
+ }),
830
+ ).annotate({
831
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6",
832
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6>;
833
+
640
834
  export type BuyCreditsResponseBodyCase1PurchaseIntentConfiguration =
641
835
  | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0
642
836
  | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1
643
837
  | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2
644
838
  | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3
645
839
  | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4
646
- | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5;
840
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5
841
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6;
647
842
  export const BuyCreditsResponseBodyCase1PurchaseIntentConfiguration =
648
843
  /*@__PURE__*/ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfiguration>;
649
844
 
@@ -903,10 +1098,18 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0O
903
1098
 
904
1099
  /** When the subscription change should take effect. */
905
1100
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior =
906
- "end_of_term" | "immediate";
1101
+ | "end_of_term"
1102
+ | "immediate";
907
1103
  export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior =
908
1104
  /*@__PURE__*/ S.String;
909
1105
 
1106
+ /** The source used as the authoritative price for this intent. */
1107
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource =
1108
+ | "copper"
1109
+ | "orb";
1110
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource =
1111
+ /*@__PURE__*/ S.String;
1112
+
910
1113
  /** Resource IDs that were added. */
911
1114
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList =
912
1115
  Array<string>;
@@ -993,6 +1196,8 @@ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCa
993
1196
  effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior;
994
1197
  /** The Orb price ID for the subscription item being modified. */
995
1198
  orbPriceId: string;
1199
+ /** The source used as the authoritative price for this intent. */
1200
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource;
996
1201
  /** The product ID associated with this intent. */
997
1202
  productId: string;
998
1203
  /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
@@ -1008,6 +1213,8 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0O
1008
1213
  effectiveBehavior:
1009
1214
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior,
1010
1215
  orbPriceId: S.String,
1216
+ pricingSource:
1217
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource,
1011
1218
  productId: S.String,
1012
1219
  changedResources: S.optional(
1013
1220
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList,
@@ -1078,10 +1285,18 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1O
1078
1285
 
1079
1286
  /** When the subscription change should take effect. */
1080
1287
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior =
1081
- "end_of_term" | "immediate";
1288
+ | "end_of_term"
1289
+ | "immediate";
1082
1290
  export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior =
1083
1291
  /*@__PURE__*/ S.String;
1084
1292
 
1293
+ /** The source used as the authoritative price for this intent. */
1294
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource =
1295
+ | "copper"
1296
+ | "orb";
1297
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource =
1298
+ /*@__PURE__*/ S.String;
1299
+
1085
1300
  /** Resource IDs that were added. */
1086
1301
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList =
1087
1302
  Array<string>;
@@ -1168,6 +1383,8 @@ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCa
1168
1383
  effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior;
1169
1384
  /** The Orb price ID for the subscription item being modified. */
1170
1385
  orbPriceId: string;
1386
+ /** The source used as the authoritative price for this intent. */
1387
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource;
1171
1388
  /** The product ID associated with this intent. */
1172
1389
  productId: string;
1173
1390
  /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
@@ -1183,6 +1400,8 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1O
1183
1400
  effectiveBehavior:
1184
1401
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior,
1185
1402
  orbPriceId: S.String,
1403
+ pricingSource:
1404
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource,
1186
1405
  productId: S.String,
1187
1406
  changedResources: S.optional(
1188
1407
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList,
@@ -1253,10 +1472,18 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2O
1253
1472
 
1254
1473
  /** When the subscription change should take effect. */
1255
1474
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior =
1256
- "end_of_term" | "immediate";
1475
+ | "end_of_term"
1476
+ | "immediate";
1257
1477
  export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior =
1258
1478
  /*@__PURE__*/ S.String;
1259
1479
 
1480
+ /** The source used as the authoritative price for this intent. */
1481
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource =
1482
+ | "copper"
1483
+ | "orb";
1484
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource =
1485
+ /*@__PURE__*/ S.String;
1486
+
1260
1487
  /** Resource IDs that were added. */
1261
1488
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList =
1262
1489
  Array<string>;
@@ -1343,6 +1570,8 @@ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCa
1343
1570
  effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior;
1344
1571
  /** The Orb price ID for the subscription item being modified. */
1345
1572
  orbPriceId: string;
1573
+ /** The source used as the authoritative price for this intent. */
1574
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource;
1346
1575
  /** The product ID associated with this intent. */
1347
1576
  productId: string;
1348
1577
  /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
@@ -1358,6 +1587,8 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2O
1358
1587
  effectiveBehavior:
1359
1588
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior,
1360
1589
  orbPriceId: S.String,
1590
+ pricingSource:
1591
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource,
1361
1592
  productId: S.String,
1362
1593
  changedResources: S.optional(
1363
1594
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList,
@@ -1440,10 +1671,18 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3O
1440
1671
 
1441
1672
  /** When the subscription change should take effect. */
1442
1673
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior =
1443
- "end_of_term" | "immediate";
1674
+ | "end_of_term"
1675
+ | "immediate";
1444
1676
  export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior =
1445
1677
  /*@__PURE__*/ S.String;
1446
1678
 
1679
+ /** The source used as the authoritative price for this intent. */
1680
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource =
1681
+ | "copper"
1682
+ | "orb";
1683
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource =
1684
+ /*@__PURE__*/ S.String;
1685
+
1447
1686
  /** Resource IDs that were added. */
1448
1687
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList =
1449
1688
  Array<string>;
@@ -1530,6 +1769,8 @@ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCa
1530
1769
  effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior;
1531
1770
  /** The Orb price ID for the subscription item being modified. */
1532
1771
  orbPriceId: string;
1772
+ /** The source used as the authoritative price for this intent. */
1773
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource;
1533
1774
  /** The product ID associated with this intent. */
1534
1775
  productId: string;
1535
1776
  /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
@@ -1545,6 +1786,8 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3O
1545
1786
  effectiveBehavior:
1546
1787
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior,
1547
1788
  orbPriceId: S.String,
1789
+ pricingSource:
1790
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource,
1548
1791
  productId: S.String,
1549
1792
  changedResources: S.optional(
1550
1793
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList,
@@ -1594,6 +1837,92 @@ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration =
1594
1837
  export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration =
1595
1838
  /*@__PURE__*/ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration>;
1596
1839
 
1840
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode =
1841
+ "sync";
1842
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode =
1843
+ /*@__PURE__*/ S.String;
1844
+
1845
+ /** How the subscription change is applied to Orb. */
1846
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0 {
1847
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode;
1848
+ }
1849
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0 =
1850
+ /*@__PURE__*/ S.suspend(() =>
1851
+ S.Struct({
1852
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode,
1853
+ }),
1854
+ ).annotate({
1855
+ identifier:
1856
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0",
1857
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0>;
1858
+
1859
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode =
1860
+ "async";
1861
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode =
1862
+ /*@__PURE__*/ S.String;
1863
+
1864
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status =
1865
+ | "canceled"
1866
+ | "failed"
1867
+ | "pending"
1868
+ | "running";
1869
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status =
1870
+ /*@__PURE__*/ S.String;
1871
+
1872
+ /** How the subscription change is applied to Orb. */
1873
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1 {
1874
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode;
1875
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status;
1876
+ }
1877
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1 =
1878
+ /*@__PURE__*/ S.suspend(() =>
1879
+ S.Struct({
1880
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode,
1881
+ status:
1882
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status,
1883
+ }),
1884
+ ).annotate({
1885
+ identifier:
1886
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1",
1887
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1>;
1888
+
1889
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode =
1890
+ "async";
1891
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode =
1892
+ /*@__PURE__*/ S.String;
1893
+
1894
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status =
1895
+ "succeeded";
1896
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status =
1897
+ /*@__PURE__*/ S.String;
1898
+
1899
+ /** How the subscription change is applied to Orb. */
1900
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2 {
1901
+ /** The ISO 8601 date-time that the subscription change was applied to Orb. */
1902
+ appliedAt: string;
1903
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode;
1904
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status;
1905
+ }
1906
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2 =
1907
+ /*@__PURE__*/ S.suspend(() =>
1908
+ S.Struct({
1909
+ appliedAt: S.String,
1910
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode,
1911
+ status:
1912
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status,
1913
+ }),
1914
+ ).annotate({
1915
+ identifier:
1916
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2",
1917
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2>;
1918
+
1919
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate =
1920
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0
1921
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1
1922
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2;
1923
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate =
1924
+ /*@__PURE__*/ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate>;
1925
+
1597
1926
  /** The status of the Orb subscription intent. */
1598
1927
  export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus =
1599
1928
  | "failed"
@@ -1610,6 +1939,7 @@ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntent {
1610
1939
  createdAt: string;
1611
1940
  /** The Orb subscription ID this intent is associated with. */
1612
1941
  orbSubscriptionId: string;
1942
+ orbUpdate: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate;
1613
1943
  /** The owner ID for this intent (e.g., team or user ID). */
1614
1944
  ownerId: string;
1615
1945
  /** The status of the Orb subscription intent. */
@@ -1627,6 +1957,7 @@ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntent =
1627
1957
  BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration,
1628
1958
  createdAt: S.String,
1629
1959
  orbSubscriptionId: S.String,
1960
+ orbUpdate: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate,
1630
1961
  ownerId: S.String,
1631
1962
  status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus,
1632
1963
  updatedAt: S.String,
@@ -1722,6 +2053,7 @@ export type BuyCreditsError =
1722
2053
  | PaymentRequired
1723
2054
  | Forbidden
1724
2055
  | NotFound
2056
+ | Conflict
1725
2057
  | VercelOpError;
1726
2058
  /** Purchase credits Purchases credits for a Vercel team using the default payment method on file. The purchase is charged immediately via Stripe invoice. Supported credit types are `v0`, `gateway`, and `agent`. The `amount` field specifies the number of credits to purchase and must be a positive integer. An optional `source` query parameter can be provided to identify the caller. Defaults to `api` if not specified. This is only available for Owner, Member, Developer, Security, and Billing roles for the supplied team. */
1727
2059
  export const buyCredits: API.OperationMethod<
@@ -1732,7 +2064,7 @@ export const buyCredits: API.OperationMethod<
1732
2064
  > = /*@__PURE__*/ API.make(() => ({
1733
2065
  input: BuyCreditsRequest,
1734
2066
  output: BuyCreditsResponse,
1735
- errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
2067
+ errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
1736
2068
  protocol: VercelProtocol,
1737
2069
  retry: Retry.Retry,
1738
2070
  }));
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -338,13 +338,13 @@ export const GetRedirectsResponseBodyCase1Pagination = /*@__PURE__*/ S.suspend(
338
338
  }) as any as S.Schema<GetRedirectsResponseBodyCase1Pagination>;
339
339
 
340
340
  export interface GetRedirectsResponseBodyCase1 {
341
- version: DeleteRedirectsResponseBodyCase0Version;
341
+ version?: DeleteRedirectsResponseBodyCase0Version;
342
342
  redirects: GetRedirectsResponseBodyCase1RedirectsList;
343
343
  pagination: GetRedirectsResponseBodyCase1Pagination;
344
344
  }
345
345
  export const GetRedirectsResponseBodyCase1 = /*@__PURE__*/ S.suspend(() =>
346
346
  S.Struct({
347
- version: DeleteRedirectsResponseBodyCase0Version,
347
+ version: S.optional(DeleteRedirectsResponseBodyCase0Version),
348
348
  redirects: GetRedirectsResponseBodyCase1RedirectsList,
349
349
  pagination: GetRedirectsResponseBodyCase1Pagination,
350
350
  }),
@@ -352,6 +352,11 @@ export const GetRedirectsResponseBodyCase1 = /*@__PURE__*/ S.suspend(() =>
352
352
  identifier: "GetRedirectsResponseBodyCase1",
353
353
  }) as any as S.Schema<GetRedirectsResponseBodyCase1>;
354
354
 
355
+ export type GetRedirectsResponseBodyCase2Version =
356
+ DeleteRedirectsResponseBodyCase0Version;
357
+ export const GetRedirectsResponseBodyCase2Version =
358
+ DeleteRedirectsResponseBodyCase0Version;
359
+
355
360
  export type GetRedirectsResponseBodyCase2RedirectsItem =
356
361
  GetRedirectsResponseBodyCase1RedirectsItem;
357
362
  export const GetRedirectsResponseBodyCase2RedirectsItem =
@@ -363,25 +368,20 @@ export const GetRedirectsResponseBodyCase2RedirectsList = /*@__PURE__*/ S.Array(
363
368
  GetRedirectsResponseBodyCase1RedirectsItem,
364
369
  ) as any as S.Schema<GetRedirectsResponseBodyCase2RedirectsList>;
365
370
 
366
- export type GetRedirectsResponseBodyCase2Version =
367
- DeleteRedirectsResponseBodyCase0Version;
368
- export const GetRedirectsResponseBodyCase2Version =
369
- DeleteRedirectsResponseBodyCase0Version;
370
-
371
371
  export type GetRedirectsResponseBodyCase2Pagination =
372
372
  GetRedirectsResponseBodyCase1Pagination;
373
373
  export const GetRedirectsResponseBodyCase2Pagination =
374
374
  GetRedirectsResponseBodyCase1Pagination;
375
375
 
376
376
  export interface GetRedirectsResponseBodyCase2 {
377
+ version: DeleteRedirectsResponseBodyCase0Version;
377
378
  redirects: GetRedirectsResponseBodyCase2RedirectsList;
378
- version?: DeleteRedirectsResponseBodyCase0Version;
379
379
  pagination: GetRedirectsResponseBodyCase1Pagination;
380
380
  }
381
381
  export const GetRedirectsResponseBodyCase2 = /*@__PURE__*/ S.suspend(() =>
382
382
  S.Struct({
383
+ version: DeleteRedirectsResponseBodyCase0Version,
383
384
  redirects: GetRedirectsResponseBodyCase2RedirectsList,
384
- version: S.optional(DeleteRedirectsResponseBodyCase0Version),
385
385
  pagination: GetRedirectsResponseBodyCase1Pagination,
386
386
  }),
387
387
  ).annotate({