@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.10

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 (246) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +21 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +40 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +80 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +50 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +15 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +15 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/protocol.d.ts +18 -0
  15. package/lib/protocol.d.ts.map +1 -0
  16. package/lib/protocol.js +69 -0
  17. package/lib/protocol.js.map +1 -0
  18. package/lib/retry.d.ts +54 -0
  19. package/lib/retry.d.ts.map +1 -0
  20. package/lib/retry.js +47 -0
  21. package/lib/retry.js.map +1 -0
  22. package/lib/services/access_groups.d.ts +459 -0
  23. package/lib/services/access_groups.d.ts.map +1 -0
  24. package/lib/services/access_groups.js +449 -0
  25. package/lib/services/access_groups.js.map +1 -0
  26. package/lib/services/ai_gateway.d.ts +122 -0
  27. package/lib/services/ai_gateway.d.ts.map +1 -0
  28. package/lib/services/ai_gateway.js +125 -0
  29. package/lib/services/ai_gateway.js.map +1 -0
  30. package/lib/services/aliases.d.ts +591 -0
  31. package/lib/services/aliases.d.ts.map +1 -0
  32. package/lib/services/aliases.js +482 -0
  33. package/lib/services/aliases.js.map +1 -0
  34. package/lib/services/api_ai_gateway.d.ts +275 -0
  35. package/lib/services/api_ai_gateway.d.ts.map +1 -0
  36. package/lib/services/api_ai_gateway.js +227 -0
  37. package/lib/services/api_ai_gateway.js.map +1 -0
  38. package/lib/services/artifacts.d.ts +228 -0
  39. package/lib/services/artifacts.d.ts.map +1 -0
  40. package/lib/services/artifacts.js +214 -0
  41. package/lib/services/artifacts.js.map +1 -0
  42. package/lib/services/authentication.d.ts +373 -0
  43. package/lib/services/authentication.d.ts.map +1 -0
  44. package/lib/services/authentication.js +304 -0
  45. package/lib/services/authentication.js.map +1 -0
  46. package/lib/services/billing.d.ts +930 -0
  47. package/lib/services/billing.d.ts.map +1 -0
  48. package/lib/services/billing.js +695 -0
  49. package/lib/services/billing.js.map +1 -0
  50. package/lib/services/bulk_redirects.d.ts +308 -0
  51. package/lib/services/bulk_redirects.d.ts.map +1 -0
  52. package/lib/services/bulk_redirects.js +302 -0
  53. package/lib/services/bulk_redirects.js.map +1 -0
  54. package/lib/services/certs.d.ts +171 -0
  55. package/lib/services/certs.d.ts.map +1 -0
  56. package/lib/services/certs.js +163 -0
  57. package/lib/services/certs.js.map +1 -0
  58. package/lib/services/checks_v2.d.ts +1167 -0
  59. package/lib/services/checks_v2.d.ts.map +1 -0
  60. package/lib/services/checks_v2.js +1141 -0
  61. package/lib/services/checks_v2.js.map +1 -0
  62. package/lib/services/connect.d.ts +2228 -0
  63. package/lib/services/connect.d.ts.map +1 -0
  64. package/lib/services/connect.js +1575 -0
  65. package/lib/services/connect.js.map +1 -0
  66. package/lib/services/deployments.d.ts +9419 -0
  67. package/lib/services/deployments.d.ts.map +1 -0
  68. package/lib/services/deployments.js +8248 -0
  69. package/lib/services/deployments.js.map +1 -0
  70. package/lib/services/dns.d.ts +279 -0
  71. package/lib/services/dns.d.ts.map +1 -0
  72. package/lib/services/dns.js +277 -0
  73. package/lib/services/dns.js.map +1 -0
  74. package/lib/services/domains.d.ts +564 -0
  75. package/lib/services/domains.d.ts.map +1 -0
  76. package/lib/services/domains.js +469 -0
  77. package/lib/services/domains.js.map +1 -0
  78. package/lib/services/domains_registrar.d.ts +798 -0
  79. package/lib/services/domains_registrar.d.ts.map +1 -0
  80. package/lib/services/domains_registrar.js +916 -0
  81. package/lib/services/domains_registrar.js.map +1 -0
  82. package/lib/services/drains.d.ts +2263 -0
  83. package/lib/services/drains.d.ts.map +1 -0
  84. package/lib/services/drains.js +2121 -0
  85. package/lib/services/drains.js.map +1 -0
  86. package/lib/services/edge_cache.d.ts +125 -0
  87. package/lib/services/edge_cache.d.ts.map +1 -0
  88. package/lib/services/edge_cache.js +138 -0
  89. package/lib/services/edge_cache.js.map +1 -0
  90. package/lib/services/environment.d.ts +1020 -0
  91. package/lib/services/environment.d.ts.map +1 -0
  92. package/lib/services/environment.js +805 -0
  93. package/lib/services/environment.js.map +1 -0
  94. package/lib/services/feature_flags.d.ts +2893 -0
  95. package/lib/services/feature_flags.d.ts.map +1 -0
  96. package/lib/services/feature_flags.js +2707 -0
  97. package/lib/services/feature_flags.js.map +1 -0
  98. package/lib/services/global_config.d.ts +618 -0
  99. package/lib/services/global_config.d.ts.map +1 -0
  100. package/lib/services/global_config.js +709 -0
  101. package/lib/services/global_config.js.map +1 -0
  102. package/lib/services/index.d.ts +42 -0
  103. package/lib/services/index.d.ts.map +1 -0
  104. package/lib/services/index.js +43 -0
  105. package/lib/services/index.js.map +1 -0
  106. package/lib/services/integrations.d.ts +3014 -0
  107. package/lib/services/integrations.d.ts.map +1 -0
  108. package/lib/services/integrations.js +2544 -0
  109. package/lib/services/integrations.js.map +1 -0
  110. package/lib/services/kms.d.ts +1095 -0
  111. package/lib/services/kms.d.ts.map +1 -0
  112. package/lib/services/kms.js +956 -0
  113. package/lib/services/kms.js.map +1 -0
  114. package/lib/services/log_drains.d.ts +848 -0
  115. package/lib/services/log_drains.d.ts.map +1 -0
  116. package/lib/services/log_drains.js +782 -0
  117. package/lib/services/log_drains.js.map +1 -0
  118. package/lib/services/logs.d.ts +40 -0
  119. package/lib/services/logs.d.ts.map +1 -0
  120. package/lib/services/logs.js +43 -0
  121. package/lib/services/logs.js.map +1 -0
  122. package/lib/services/marketplace.d.ts +1053 -0
  123. package/lib/services/marketplace.d.ts.map +1 -0
  124. package/lib/services/marketplace.js +1116 -0
  125. package/lib/services/marketplace.js.map +1 -0
  126. package/lib/services/microfrontends.d.ts +3250 -0
  127. package/lib/services/microfrontends.d.ts.map +1 -0
  128. package/lib/services/microfrontends.js +3154 -0
  129. package/lib/services/microfrontends.js.map +1 -0
  130. package/lib/services/misc.d.ts +192 -0
  131. package/lib/services/misc.d.ts.map +1 -0
  132. package/lib/services/misc.js +124 -0
  133. package/lib/services/misc.js.map +1 -0
  134. package/lib/services/networking.d.ts +360 -0
  135. package/lib/services/networking.d.ts.map +1 -0
  136. package/lib/services/networking.js +353 -0
  137. package/lib/services/networking.js.map +1 -0
  138. package/lib/services/observability.d.ts +168 -0
  139. package/lib/services/observability.d.ts.map +1 -0
  140. package/lib/services/observability.js +190 -0
  141. package/lib/services/observability.js.map +1 -0
  142. package/lib/services/project_members.d.ts +142 -0
  143. package/lib/services/project_members.d.ts.map +1 -0
  144. package/lib/services/project_members.js +135 -0
  145. package/lib/services/project_members.js.map +1 -0
  146. package/lib/services/project_routes.d.ts +1990 -0
  147. package/lib/services/project_routes.d.ts.map +1 -0
  148. package/lib/services/project_routes.js +1883 -0
  149. package/lib/services/project_routes.js.map +1 -0
  150. package/lib/services/projects.d.ts +23677 -0
  151. package/lib/services/projects.d.ts.map +1 -0
  152. package/lib/services/projects.js +22223 -0
  153. package/lib/services/projects.js.map +1 -0
  154. package/lib/services/rolling_release.d.ts +764 -0
  155. package/lib/services/rolling_release.d.ts.map +1 -0
  156. package/lib/services/rolling_release.js +583 -0
  157. package/lib/services/rolling_release.js.map +1 -0
  158. package/lib/services/sandboxes.d.ts +2777 -0
  159. package/lib/services/sandboxes.d.ts.map +1 -0
  160. package/lib/services/sandboxes.js +2142 -0
  161. package/lib/services/sandboxes.js.map +1 -0
  162. package/lib/services/security.d.ts +4247 -0
  163. package/lib/services/security.d.ts.map +1 -0
  164. package/lib/services/security.js +4377 -0
  165. package/lib/services/security.js.map +1 -0
  166. package/lib/services/storage.d.ts +251 -0
  167. package/lib/services/storage.d.ts.map +1 -0
  168. package/lib/services/storage.js +257 -0
  169. package/lib/services/storage.js.map +1 -0
  170. package/lib/services/teams.d.ts +1600 -0
  171. package/lib/services/teams.d.ts.map +1 -0
  172. package/lib/services/teams.js +1314 -0
  173. package/lib/services/teams.js.map +1 -0
  174. package/lib/services/user.d.ts +8559 -0
  175. package/lib/services/user.d.ts.map +1 -0
  176. package/lib/services/user.js +7407 -0
  177. package/lib/services/user.js.map +1 -0
  178. package/lib/services/vcr.d.ts +751 -0
  179. package/lib/services/vcr.d.ts.map +1 -0
  180. package/lib/services/vcr.js +826 -0
  181. package/lib/services/vcr.js.map +1 -0
  182. package/lib/services/web_analytics.d.ts +726 -0
  183. package/lib/services/web_analytics.d.ts.map +1 -0
  184. package/lib/services/web_analytics.js +707 -0
  185. package/lib/services/web_analytics.js.map +1 -0
  186. package/lib/services/webhooks.d.ts +219 -0
  187. package/lib/services/webhooks.d.ts.map +1 -0
  188. package/lib/services/webhooks.js +177 -0
  189. package/lib/services/webhooks.js.map +1 -0
  190. package/lib/traits.d.ts +10 -0
  191. package/lib/traits.d.ts.map +1 -0
  192. package/lib/traits.js +11 -0
  193. package/lib/traits.js.map +1 -0
  194. package/package.json +78 -7
  195. package/src/credentials.ts +70 -0
  196. package/src/errors.ts +93 -0
  197. package/src/index.ts +18 -0
  198. package/src/protocol.ts +98 -0
  199. package/src/retry.ts +78 -0
  200. package/src/services/access_groups.ts +1165 -0
  201. package/src/services/ai_gateway.ts +267 -0
  202. package/src/services/aliases.ts +1315 -0
  203. package/src/services/api_ai_gateway.ts +607 -0
  204. package/src/services/artifacts.ts +542 -0
  205. package/src/services/authentication.ts +827 -0
  206. package/src/services/billing.ts +2104 -0
  207. package/src/services/bulk_redirects.ts +748 -0
  208. package/src/services/certs.ts +371 -0
  209. package/src/services/checks_v2.ts +3084 -0
  210. package/src/services/connect.ts +4805 -0
  211. package/src/services/deployments.ts +24576 -0
  212. package/src/services/dns.ts +715 -0
  213. package/src/services/domains.ts +1257 -0
  214. package/src/services/domains_registrar.ts +2257 -0
  215. package/src/services/drains.ts +5828 -0
  216. package/src/services/edge_cache.ts +303 -0
  217. package/src/services/environment.ts +2379 -0
  218. package/src/services/feature_flags.ts +7722 -0
  219. package/src/services/global_config.ts +1668 -0
  220. package/src/services/index.ts +42 -0
  221. package/src/services/integrations.ts +9022 -0
  222. package/src/services/kms.ts +2614 -0
  223. package/src/services/log_drains.ts +2434 -0
  224. package/src/services/logs.ts +78 -0
  225. package/src/services/marketplace.ts +2849 -0
  226. package/src/services/microfrontends.ts +9921 -0
  227. package/src/services/misc.ts +364 -0
  228. package/src/services/networking.ts +865 -0
  229. package/src/services/observability.ts +435 -0
  230. package/src/services/project_members.ts +326 -0
  231. package/src/services/project_routes.ts +5229 -0
  232. package/src/services/projects.ts +68139 -0
  233. package/src/services/rolling_release.ts +1860 -0
  234. package/src/services/sandboxes.ts +6988 -0
  235. package/src/services/security.ts +13931 -0
  236. package/src/services/storage.ts +850 -0
  237. package/src/services/teams.ts +4055 -0
  238. package/src/services/user.ts +23195 -0
  239. package/src/services/vcr.ts +2070 -0
  240. package/src/services/web_analytics.ts +1638 -0
  241. package/src/services/webhooks.ts +1102 -0
  242. package/src/traits.ts +46 -0
  243. package/README.md +0 -15
  244. package/bun.lock +0 -26
  245. package/index.ts +0 -1
  246. package/tsconfig.json +0 -29
@@ -0,0 +1,2104 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ VercelProtocol,
8
+ type VercelOpError,
9
+ type VercelOpContext,
10
+ } from "../protocol.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { VercelOpError, VercelOpContext };
14
+
15
+ export class BadRequest
16
+ extends /*@__PURE__*/ T.applyErrorMatchers(
17
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
18
+ code: S.Number,
19
+ message: S.String,
20
+ }).pipe(C.withBadRequestError),
21
+ [{ status: 400 }],
22
+ ) {}
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
+
33
+ export class Forbidden
34
+ extends /*@__PURE__*/ T.applyErrorMatchers(
35
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
36
+ code: S.Number,
37
+ message: S.String,
38
+ }).pipe(C.withAuthError),
39
+ [{ status: 403 }],
40
+ ) {}
41
+
42
+ export class NotFound
43
+ extends /*@__PURE__*/ T.applyErrorMatchers(
44
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
45
+ code: S.Number,
46
+ message: S.String,
47
+ }).pipe(C.withBadRequestError),
48
+ [{ status: 404 }],
49
+ ) {}
50
+
51
+ export class PaymentRequired
52
+ extends /*@__PURE__*/ T.applyErrorMatchers(
53
+ /*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
54
+ code: S.Number,
55
+ message: S.String,
56
+ }).pipe(C.withQuotaError),
57
+ [{ status: 402 }],
58
+ ) {}
59
+
60
+ /** The type of item to purchase. */
61
+ export type BuyCreditsRequestItemType = "credits";
62
+ export const BuyCreditsRequestItemType = S.String;
63
+
64
+ /** The type of credits to purchase. */
65
+ export type BuyCreditsRequestItemCreditType = "v0" | "gateway" | "agent";
66
+ export const BuyCreditsRequestItemCreditType = S.String;
67
+
68
+ export interface BuyCreditsRequestItem {
69
+ /** The type of item to purchase. */
70
+ type: BuyCreditsRequestItemType | (string & {});
71
+ /** The type of credits to purchase. */
72
+ creditType: BuyCreditsRequestItemCreditType | (string & {});
73
+ /** The amount of credits to purchase. */
74
+ amount: number;
75
+ }
76
+ export const BuyCreditsRequestItem = /*@__PURE__*/ S.suspend(() =>
77
+ S.Struct({
78
+ type: BuyCreditsRequestItemType,
79
+ creditType: BuyCreditsRequestItemCreditType,
80
+ amount: S.Number,
81
+ }),
82
+ ).annotate({
83
+ identifier: "BuyCreditsRequestItem",
84
+ }) as any as S.Schema<BuyCreditsRequestItem>;
85
+
86
+ export interface BuyCreditsRequest {
87
+ /** The source of the purchase request. Defaults to `api` if not specified. */
88
+ source?: string;
89
+ /** The Team identifier to perform the request on behalf of. */
90
+ teamId?: string;
91
+ /** The Team slug to perform the request on behalf of. */
92
+ slug?: string;
93
+ item: BuyCreditsRequestItem;
94
+ }
95
+ export const BuyCreditsRequest = /*@__PURE__*/ S.suspend(() =>
96
+ S.Struct({
97
+ source: S.optional(S.String.pipe(T.Query())),
98
+ teamId: S.optional(S.String.pipe(T.Query())),
99
+ slug: S.optional(S.String.pipe(T.Query())),
100
+ item: BuyCreditsRequestItem,
101
+ }).pipe(T.Http({ method: "POST", uri: "/v1/billing/buy", code: 200 })),
102
+ ).annotate({
103
+ identifier: "BuyCreditsRequest",
104
+ }) as any as S.Schema<BuyCreditsRequest>;
105
+
106
+ export interface BuyCreditsResponseBodyCase0 {
107
+ checkoutSessionId: string;
108
+ checkoutSessionUrl: string;
109
+ }
110
+ export const BuyCreditsResponseBodyCase0 = /*@__PURE__*/ S.suspend(() =>
111
+ S.Struct({
112
+ checkoutSessionId: S.String,
113
+ checkoutSessionUrl: S.String,
114
+ }),
115
+ ).annotate({
116
+ identifier: "BuyCreditsResponseBodyCase0",
117
+ }) as any as S.Schema<BuyCreditsResponseBodyCase0>;
118
+
119
+ /** The currency being purchased */
120
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency =
121
+ | "ai_credits"
122
+ | "ai_gateway_credits"
123
+ | "copper_test_units"
124
+ | "v0_user_credits"
125
+ | "vercel_agent_credits";
126
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency =
127
+ S.String;
128
+
129
+ /** Purchase configuration specific options */
130
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options {
131
+ /** The amount of currency to buy */
132
+ amount: string;
133
+ /** The currency being purchased */
134
+ currency: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency;
135
+ /** The expiration date of the credits being purchased */
136
+ expirationDate?: string;
137
+ }
138
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options =
139
+ /*@__PURE__*/ S.suspend(() =>
140
+ S.Struct({
141
+ amount: S.String,
142
+ currency:
143
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency,
144
+ expirationDate: S.optional(S.String),
145
+ }),
146
+ ).annotate({
147
+ identifier:
148
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options",
149
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options>;
150
+
151
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type =
152
+ "credit_topup";
153
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type =
154
+ S.String;
155
+
156
+ /** The configuration for a credit purchase */
157
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 {
158
+ /** Purchase configuration specific options */
159
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options;
160
+ output: unknown | null;
161
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type;
162
+ }
163
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 =
164
+ /*@__PURE__*/ S.suspend(() =>
165
+ S.Struct({
166
+ options:
167
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options,
168
+ output: S.NullOr(S.Unknown),
169
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type,
170
+ }),
171
+ ).annotate({
172
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0",
173
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0>;
174
+
175
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType =
176
+ | "purchase"
177
+ | "renewal"
178
+ | "transfer";
179
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType =
180
+ S.String;
181
+
182
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem {
183
+ name: string;
184
+ /** The subtotal of the domain name purchase */
185
+ subtotal: string;
186
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType;
187
+ /** The number of years to purchase */
188
+ years: number;
189
+ }
190
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem =
191
+ /*@__PURE__*/ S.suspend(() =>
192
+ S.Struct({
193
+ name: S.String,
194
+ subtotal: S.String,
195
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType,
196
+ years: S.Number,
197
+ }),
198
+ ).annotate({
199
+ identifier:
200
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem",
201
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem>;
202
+
203
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList =
204
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem>;
205
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList =
206
+ /*@__PURE__*/ S.Array(
207
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem,
208
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList>;
209
+
210
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options {
211
+ items: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList;
212
+ /** The order ID of the domain name purchase */
213
+ orderId: string;
214
+ }
215
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options =
216
+ /*@__PURE__*/ S.suspend(() =>
217
+ S.Struct({
218
+ items:
219
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList,
220
+ orderId: S.String,
221
+ }),
222
+ ).annotate({
223
+ identifier:
224
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options",
225
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options>;
226
+
227
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type =
228
+ "domain_name";
229
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type =
230
+ S.String;
231
+
232
+ /** The configuration for a credit purchase */
233
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 {
234
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options;
235
+ output: unknown | null;
236
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type;
237
+ }
238
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 =
239
+ /*@__PURE__*/ S.suspend(() =>
240
+ S.Struct({
241
+ options:
242
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options,
243
+ output: S.NullOr(S.Unknown),
244
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type,
245
+ }),
246
+ ).annotate({
247
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1",
248
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1>;
249
+
250
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 =
251
+ | "end_of_subscription_term"
252
+ | "immediate";
253
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 =
254
+ S.String;
255
+
256
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate =
257
+ | unknown
258
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1;
259
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate =
260
+ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate>;
261
+
262
+ /** The prices to replace in the subscription */
263
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem {
264
+ /** The quantity for the fixed price */
265
+ fixedPriceQuantity: number;
266
+ /** The ID of the price to replace */
267
+ replacesPriceId: string;
268
+ }
269
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem =
270
+ /*@__PURE__*/ S.suspend(() =>
271
+ S.Struct({
272
+ fixedPriceQuantity: S.Number,
273
+ replacesPriceId: S.String,
274
+ }),
275
+ ).annotate({
276
+ identifier:
277
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem",
278
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
279
+
280
+ /** The prices to replace in the subscription */
281
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList =
282
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
283
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList =
284
+ /*@__PURE__*/ S.Array(
285
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem,
286
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList>;
287
+
288
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options {
289
+ effectiveDate: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate;
290
+ /** The ID of the Orb subscription to change */
291
+ orbSubscriptionId: string;
292
+ /** Whether or not to reset the billing cycle */
293
+ alignBillingWithPlanChangeDate?: boolean;
294
+ /** The coupon redemption code to apply to the plan change */
295
+ couponRedemptionCode?: string;
296
+ /** The ID of the external plan to change to */
297
+ externalPlanId?: string;
298
+ /** The prices to replace in the subscription */
299
+ replacePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList;
300
+ }
301
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options =
302
+ /*@__PURE__*/ S.suspend(() =>
303
+ S.Struct({
304
+ effectiveDate:
305
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate,
306
+ orbSubscriptionId: S.String,
307
+ alignBillingWithPlanChangeDate: S.optional(S.Boolean),
308
+ couponRedemptionCode: S.optional(S.String),
309
+ externalPlanId: S.optional(S.String),
310
+ replacePrices: S.optional(
311
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList,
312
+ ),
313
+ }),
314
+ ).annotate({
315
+ identifier:
316
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options",
317
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options>;
318
+
319
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output {
320
+ /** The ID of the pending subscription change */
321
+ pendingSubscriptionChangeId: string;
322
+ }
323
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output =
324
+ /*@__PURE__*/ S.suspend(() =>
325
+ S.Struct({
326
+ pendingSubscriptionChangeId: S.String,
327
+ }),
328
+ ).annotate({
329
+ identifier:
330
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output",
331
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output>;
332
+
333
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type =
334
+ "orb_plan_change";
335
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type =
336
+ S.String;
337
+
338
+ /** The configuration for a credit purchase */
339
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2 {
340
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options;
341
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
342
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type;
343
+ }
344
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2 =
345
+ /*@__PURE__*/ S.suspend(() =>
346
+ S.Struct({
347
+ options:
348
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options,
349
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
350
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type,
351
+ }),
352
+ ).annotate({
353
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2",
354
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2>;
355
+
356
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Output =
357
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
358
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Output =
359
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
360
+
361
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type =
362
+ "orb_price_interval";
363
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type =
364
+ S.String;
365
+
366
+ /** The configuration for a credit purchase */
367
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3 {
368
+ options: unknown;
369
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
370
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type;
371
+ }
372
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3 =
373
+ /*@__PURE__*/ S.suspend(() =>
374
+ S.Struct({
375
+ options: S.Unknown,
376
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
377
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type,
378
+ }),
379
+ ).annotate({
380
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3",
381
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3>;
382
+
383
+ /** The prices to add to the subscription */
384
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0 {
385
+ /** The ID of the price to add */
386
+ priceId: string;
387
+ }
388
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0 =
389
+ /*@__PURE__*/ S.suspend(() =>
390
+ S.Struct({
391
+ priceId: S.String,
392
+ }),
393
+ ).annotate({
394
+ identifier:
395
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0",
396
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0>;
397
+
398
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem =
399
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0
400
+ | unknown;
401
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem =
402
+ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem>;
403
+
404
+ /** The prices to add to the subscription */
405
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList =
406
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem>;
407
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList =
408
+ /*@__PURE__*/ S.Array(
409
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem,
410
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList>;
411
+
412
+ /** Optional metadata to associate with the subscription */
413
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap =
414
+ { [key: string]: string | null | undefined };
415
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap =
416
+ /*@__PURE__*/ S.Record(
417
+ S.String,
418
+ S.NullOr(S.String),
419
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap>;
420
+
421
+ /** The prices to remove in the subscription */
422
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem {
423
+ /** The ID of the price to remove */
424
+ priceId: string;
425
+ }
426
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem =
427
+ /*@__PURE__*/ S.suspend(() =>
428
+ S.Struct({
429
+ priceId: S.String,
430
+ }),
431
+ ).annotate({
432
+ identifier:
433
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem",
434
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem>;
435
+
436
+ /** The prices to remove in the subscription */
437
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList =
438
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem>;
439
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList =
440
+ /*@__PURE__*/ S.Array(
441
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem,
442
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList>;
443
+
444
+ /** The prices to replace in the subscription */
445
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesItem =
446
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem;
447
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesItem =
448
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem;
449
+
450
+ /** The prices to replace in the subscription */
451
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList =
452
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
453
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList =
454
+ /*@__PURE__*/ S.Array(
455
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem,
456
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList>;
457
+
458
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options {
459
+ /** The external plan ID of the Orb plan to subscribe to */
460
+ externalPlanId: string;
461
+ /** The prices to add to the subscription */
462
+ addPrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList;
463
+ /** Whether to align the subscription start date with the billing subscription start date */
464
+ alignBillingWithSubscriptionStartDate?: boolean;
465
+ /** The coupon redemption code to apply to the subscription */
466
+ couponRedemptionCode?: string;
467
+ /** The initial phase order to use for the subscription */
468
+ initialPhaseOrder?: number;
469
+ /** Optional metadata to associate with the subscription */
470
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap;
471
+ /** The prices to remove in the subscription */
472
+ removePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList;
473
+ /** The prices to replace in the subscription */
474
+ replacePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList;
475
+ /** The start date of the subscription */
476
+ startDate?: string;
477
+ }
478
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options =
479
+ /*@__PURE__*/ S.suspend(() =>
480
+ S.Struct({
481
+ externalPlanId: S.String,
482
+ addPrices: S.optional(
483
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList,
484
+ ),
485
+ alignBillingWithSubscriptionStartDate: S.optional(S.Boolean),
486
+ couponRedemptionCode: S.optional(S.String),
487
+ initialPhaseOrder: S.optional(S.Number),
488
+ metadata: S.optional(
489
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap,
490
+ ),
491
+ removePrices: S.optional(
492
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList,
493
+ ),
494
+ replacePrices: S.optional(
495
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList,
496
+ ),
497
+ startDate: S.optional(S.String),
498
+ }),
499
+ ).annotate({
500
+ identifier:
501
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options",
502
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options>;
503
+
504
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Output =
505
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
506
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Output =
507
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
508
+
509
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type =
510
+ "orb_subscription";
511
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type =
512
+ S.String;
513
+
514
+ /** The configuration for a credit purchase */
515
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4 {
516
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options;
517
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
518
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type;
519
+ }
520
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4 =
521
+ /*@__PURE__*/ S.suspend(() =>
522
+ S.Struct({
523
+ options:
524
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options,
525
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output,
526
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type,
527
+ }),
528
+ ).annotate({
529
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4",
530
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4>;
531
+
532
+ /** Optional metadata for the line item */
533
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap =
534
+ { [key: string]: string | undefined };
535
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap =
536
+ /*@__PURE__*/ S.Record(
537
+ S.String,
538
+ S.String,
539
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap>;
540
+
541
+ /** The line items that make up the Purchase Intent. */
542
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem {
543
+ /** The ID of the line item */
544
+ id: string;
545
+ /** The description of the line item */
546
+ description: string;
547
+ /** The name of the line item */
548
+ name: string;
549
+ /** The ID of the product being purchased */
550
+ productId: string;
551
+ /** The quantity of the line item */
552
+ quantity: string;
553
+ /** The unit amount of the line item */
554
+ unitAmount: string;
555
+ /** Optional metadata for the line item */
556
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap;
557
+ /** The alias of the product being purchased */
558
+ productAlias?: string;
559
+ /** The amount of the line item that has been refunded */
560
+ refund?: string;
561
+ }
562
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem =
563
+ /*@__PURE__*/ S.suspend(() =>
564
+ S.Struct({
565
+ id: S.String,
566
+ description: S.String,
567
+ name: S.String,
568
+ productId: S.String,
569
+ quantity: S.String,
570
+ unitAmount: S.String,
571
+ metadata: S.optional(
572
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap,
573
+ ),
574
+ productAlias: S.optional(S.String),
575
+ refund: S.optional(S.String),
576
+ }),
577
+ ).annotate({
578
+ identifier:
579
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem",
580
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem>;
581
+
582
+ /** The line items that make up the Purchase Intent. */
583
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList =
584
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem>;
585
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList =
586
+ /*@__PURE__*/ S.Array(
587
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem,
588
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList>;
589
+
590
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options {
591
+ /** The ID of the Orb customer to create */
592
+ orbCustomerId: string;
593
+ /** The external ID of the Orb customer to create */
594
+ orbExternalCustomerId: string;
595
+ /** The external ID of the Orb plan to create */
596
+ orbExternalPlanId: string;
597
+ /** The ID of the Orb plan to create */
598
+ orbPlanId: string;
599
+ /** The ID of the Orb subscription to create */
600
+ orbSubscriptionId: string;
601
+ /** The line items that make up the Purchase Intent. */
602
+ lineItems?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList;
603
+ /** The ID of the pending subscription change */
604
+ orbPendingSubscriptionChangeId?: string;
605
+ }
606
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options =
607
+ /*@__PURE__*/ S.suspend(() =>
608
+ S.Struct({
609
+ orbCustomerId: S.String,
610
+ orbExternalCustomerId: S.String,
611
+ orbExternalPlanId: S.String,
612
+ orbPlanId: S.String,
613
+ orbSubscriptionId: S.String,
614
+ lineItems: S.optional(
615
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList,
616
+ ),
617
+ orbPendingSubscriptionChangeId: S.optional(S.String),
618
+ }),
619
+ ).annotate({
620
+ identifier:
621
+ "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options",
622
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options>;
623
+
624
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output {
625
+ /** The ID of the pending subscription change */
626
+ pendingSubscriptionChangeId?: string;
627
+ }
628
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output =
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>;
637
+
638
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type =
639
+ "orb_subscription_intent";
640
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type =
641
+ S.String;
642
+
643
+ /** The configuration for a credit purchase */
644
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 {
645
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options;
646
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output;
647
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type;
648
+ }
649
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 =
650
+ /*@__PURE__*/ S.suspend(() =>
651
+ S.Struct({
652
+ options:
653
+ BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options,
654
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output,
655
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type,
656
+ }),
657
+ ).annotate({
658
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5",
659
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5>;
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
+ 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
+
834
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfiguration =
835
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0
836
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1
837
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2
838
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3
839
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4
840
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5
841
+ | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase6;
842
+ export const BuyCreditsResponseBodyCase1PurchaseIntentConfiguration =
843
+ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfiguration>;
844
+
845
+ /** The currency for the purchase intent */
846
+ export type BuyCreditsResponseBodyCase1PurchaseIntentCurrency = "miu" | "usd";
847
+ export const BuyCreditsResponseBodyCase1PurchaseIntentCurrency = S.String;
848
+
849
+ /** The type of the purchase provider */
850
+ export type BuyCreditsResponseBodyCase1PurchaseIntentProviderType =
851
+ | "apple_in_app_purchase"
852
+ | "orb_ledger"
853
+ | "stripe_elements"
854
+ | "stripe_hosted"
855
+ | "stripe_invoice_deferred"
856
+ | "stripe_invoice_elements"
857
+ | "stripe_invoice_immediate"
858
+ | "tackle_aws_marketplace";
859
+ export const BuyCreditsResponseBodyCase1PurchaseIntentProviderType = S.String;
860
+
861
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentProvider {
862
+ /** Provider resource id */
863
+ resourceId: string;
864
+ /** The type of the purchase provider */
865
+ type: BuyCreditsResponseBodyCase1PurchaseIntentProviderType;
866
+ /** The currency conversion rate used by the provider */
867
+ currencyConversionRate?: string;
868
+ /** Whether a Stripe Shared Payment Token was used for this purchase. Only applicable when type is stripe_invoice_immediate. */
869
+ stripeSharedPaymentTokenUsed?: boolean;
870
+ }
871
+ export const BuyCreditsResponseBodyCase1PurchaseIntentProvider =
872
+ /*@__PURE__*/ S.suspend(() =>
873
+ S.Struct({
874
+ resourceId: S.String,
875
+ type: BuyCreditsResponseBodyCase1PurchaseIntentProviderType,
876
+ currencyConversionRate: S.optional(S.String),
877
+ stripeSharedPaymentTokenUsed: S.optional(S.Boolean),
878
+ }),
879
+ ).annotate({
880
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentProvider",
881
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentProvider>;
882
+
883
+ /** The status of the Purchase Intent. */
884
+ export type BuyCreditsResponseBodyCase1PurchaseIntentStatus =
885
+ | "failed"
886
+ | "pending"
887
+ | "succeeded";
888
+ export const BuyCreditsResponseBodyCase1PurchaseIntentStatus = S.String;
889
+
890
+ /** The dispute details, if any. */
891
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentDispute {
892
+ /** The unique ID of the dispute entity. */
893
+ id: string;
894
+ /** The disputed amount. */
895
+ amount: string;
896
+ /** When the dispute was first recorded. */
897
+ createdAt: string;
898
+ /** The dispute currency. */
899
+ currency: string;
900
+ /** The external provider dispute ID (e.g. Stripe dispute ID). */
901
+ providerId: string;
902
+ /** The dispute reason. */
903
+ reason: string | null;
904
+ /** The dispute status. */
905
+ status: string;
906
+ /** When the dispute was last updated. */
907
+ updatedAt: string;
908
+ }
909
+ export const BuyCreditsResponseBodyCase1PurchaseIntentDispute =
910
+ /*@__PURE__*/ S.suspend(() =>
911
+ S.Struct({
912
+ id: S.String,
913
+ amount: S.String,
914
+ createdAt: S.String,
915
+ currency: S.String,
916
+ providerId: S.String,
917
+ reason: S.NullOr(S.String),
918
+ status: S.String,
919
+ updatedAt: S.String,
920
+ }),
921
+ ).annotate({
922
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentDispute",
923
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentDispute>;
924
+
925
+ /** Optional metadata for the line item */
926
+ export type BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap =
927
+ { [key: string]: string | undefined };
928
+ export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap =
929
+ /*@__PURE__*/ S.Record(
930
+ S.String,
931
+ S.String,
932
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap>;
933
+
934
+ /** The line items that make up the Purchase Intent. */
935
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem {
936
+ /** The ID of the line item */
937
+ id: string;
938
+ /** The description of the line item */
939
+ description: string;
940
+ /** The name of the line item */
941
+ name: string;
942
+ /** The ID of the product being purchased */
943
+ productId: string;
944
+ /** The quantity of the line item */
945
+ quantity: string;
946
+ /** The unit amount of the line item */
947
+ unitAmount: string;
948
+ /** Optional metadata for the line item */
949
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap;
950
+ /** The alias of the product being purchased */
951
+ productAlias?: string;
952
+ /** The amount of the line item that has been refunded */
953
+ refund?: string;
954
+ }
955
+ export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem =
956
+ /*@__PURE__*/ S.suspend(() =>
957
+ S.Struct({
958
+ id: S.String,
959
+ description: S.String,
960
+ name: S.String,
961
+ productId: S.String,
962
+ quantity: S.String,
963
+ unitAmount: S.String,
964
+ metadata: S.optional(
965
+ BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap,
966
+ ),
967
+ productAlias: S.optional(S.String),
968
+ refund: S.optional(S.String),
969
+ }),
970
+ ).annotate({
971
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem",
972
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem>;
973
+
974
+ /** The line items that make up the Purchase Intent. */
975
+ export type BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList =
976
+ Array<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem>;
977
+ export const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList =
978
+ /*@__PURE__*/ S.Array(
979
+ BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem,
980
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList>;
981
+
982
+ /** Optional metadata associated with the purchase intent */
983
+ export type BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap = {
984
+ [key: string]: string | undefined;
985
+ };
986
+ export const BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap =
987
+ /*@__PURE__*/ S.Record(
988
+ S.String,
989
+ S.String,
990
+ ) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap>;
991
+
992
+ /** The created purchase intent */
993
+ export interface BuyCreditsResponseBodyCase1PurchaseIntent {
994
+ /** The unique ID of a Purchase Intent. Uses the format `pur_*` */
995
+ id: string;
996
+ configuration: BuyCreditsResponseBodyCase1PurchaseIntentConfiguration;
997
+ /** The datetime when the Purchase Intent was created. */
998
+ createdAt: string;
999
+ /** The currency for the purchase intent */
1000
+ currency: BuyCreditsResponseBodyCase1PurchaseIntentCurrency;
1001
+ /** The ID of the owner of the Purchase Intent. */
1002
+ ownerId: string;
1003
+ provider: BuyCreditsResponseBodyCase1PurchaseIntentProvider;
1004
+ /** The status of the Purchase Intent. */
1005
+ status: BuyCreditsResponseBodyCase1PurchaseIntentStatus;
1006
+ /** The subtotal of the Purchase Intent. */
1007
+ subtotal: string;
1008
+ /** The tax due on the Purchase Intent. */
1009
+ tax: string;
1010
+ /** The total balance due on the Purchase Intent. */
1011
+ total: string;
1012
+ /** The datetime when the Purchase Intent was last updated. */
1013
+ updatedAt: string;
1014
+ /** The dispute details, if any. */
1015
+ dispute?: BuyCreditsResponseBodyCase1PurchaseIntentDispute;
1016
+ /** The line items that make up the Purchase Intent. */
1017
+ lineItems?: BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList;
1018
+ /** Optional metadata associated with the purchase intent */
1019
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap;
1020
+ /** The amount of the purchase intent that has been refunded */
1021
+ refund?: string;
1022
+ /** The URL to redirect to after the purchase is complete */
1023
+ returnUrl?: string;
1024
+ }
1025
+ export const BuyCreditsResponseBodyCase1PurchaseIntent =
1026
+ /*@__PURE__*/ S.suspend(() =>
1027
+ S.Struct({
1028
+ id: S.String,
1029
+ configuration: BuyCreditsResponseBodyCase1PurchaseIntentConfiguration,
1030
+ createdAt: S.String,
1031
+ currency: BuyCreditsResponseBodyCase1PurchaseIntentCurrency,
1032
+ ownerId: S.String,
1033
+ provider: BuyCreditsResponseBodyCase1PurchaseIntentProvider,
1034
+ status: BuyCreditsResponseBodyCase1PurchaseIntentStatus,
1035
+ subtotal: S.String,
1036
+ tax: S.String,
1037
+ total: S.String,
1038
+ updatedAt: S.String,
1039
+ dispute: S.optional(BuyCreditsResponseBodyCase1PurchaseIntentDispute),
1040
+ lineItems: S.optional(
1041
+ BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList,
1042
+ ),
1043
+ metadata: S.optional(
1044
+ BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap,
1045
+ ),
1046
+ refund: S.optional(S.String),
1047
+ returnUrl: S.optional(S.String),
1048
+ }),
1049
+ ).annotate({
1050
+ identifier: "BuyCreditsResponseBodyCase1PurchaseIntent",
1051
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1PurchaseIntent>;
1052
+
1053
+ export interface BuyCreditsResponseBodyCase1 {
1054
+ /** The created purchase intent */
1055
+ purchaseIntent: BuyCreditsResponseBodyCase1PurchaseIntent;
1056
+ }
1057
+ export const BuyCreditsResponseBodyCase1 = /*@__PURE__*/ S.suspend(() =>
1058
+ S.Struct({
1059
+ purchaseIntent: BuyCreditsResponseBodyCase1PurchaseIntent,
1060
+ }),
1061
+ ).annotate({
1062
+ identifier: "BuyCreditsResponseBodyCase1",
1063
+ }) as any as S.Schema<BuyCreditsResponseBodyCase1>;
1064
+
1065
+ /** The resource IDs for the plan item. Only set if SKU requires resource entitlements. */
1066
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList =
1067
+ Array<string>;
1068
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList =
1069
+ /*@__PURE__*/ S.Array(
1070
+ S.String,
1071
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList>;
1072
+
1073
+ /** Configuration input options for setting plan item quantity. */
1074
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options {
1075
+ /** The alias of the product to set quantity for. */
1076
+ productAlias: string;
1077
+ /** The quantity to set for the plan item. */
1078
+ quantity: number;
1079
+ /** The resource IDs for the plan item. Only set if SKU requires resource entitlements. */
1080
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList;
1081
+ }
1082
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options =
1083
+ /*@__PURE__*/ S.suspend(() =>
1084
+ S.Struct({
1085
+ productAlias: S.String,
1086
+ quantity: S.Number,
1087
+ resourceIds: S.optional(
1088
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList,
1089
+ ),
1090
+ }),
1091
+ ).annotate({
1092
+ identifier:
1093
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options",
1094
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options>;
1095
+
1096
+ /** When the subscription change should take effect. */
1097
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior =
1098
+ | "end_of_term"
1099
+ | "immediate";
1100
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior =
1101
+ S.String;
1102
+
1103
+ /** The source used as the authoritative price for this intent. */
1104
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource =
1105
+ | "copper"
1106
+ | "orb";
1107
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource =
1108
+ S.String;
1109
+
1110
+ /** Resource IDs that were added. */
1111
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList =
1112
+ Array<string>;
1113
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList =
1114
+ /*@__PURE__*/ S.Array(
1115
+ S.String,
1116
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList>;
1117
+
1118
+ /** Resource IDs that were removed. */
1119
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList =
1120
+ Array<string>;
1121
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList =
1122
+ /*@__PURE__*/ S.Array(
1123
+ S.String,
1124
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList>;
1125
+
1126
+ /** The full set of resource IDs after the change. */
1127
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList =
1128
+ Array<string>;
1129
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList =
1130
+ /*@__PURE__*/ S.Array(
1131
+ S.String,
1132
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList>;
1133
+
1134
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1135
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem {
1136
+ /** The alias of the product that was changed. */
1137
+ productAlias: string;
1138
+ /** The ID of the product that was changed. */
1139
+ productId: string;
1140
+ /** The resulting quantity after this change. */
1141
+ quantity: number;
1142
+ /** Resource IDs that were added. */
1143
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList;
1144
+ /** When this resource change should take effect for downstream consumers. */
1145
+ effectiveAt?: string;
1146
+ /** Resource IDs that were removed. */
1147
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList;
1148
+ /** The full set of resource IDs after the change. */
1149
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList;
1150
+ }
1151
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem =
1152
+ /*@__PURE__*/ S.suspend(() =>
1153
+ S.Struct({
1154
+ productAlias: S.String,
1155
+ productId: S.String,
1156
+ quantity: S.Number,
1157
+ addedResourceIds: S.optional(
1158
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList,
1159
+ ),
1160
+ effectiveAt: S.optional(S.String),
1161
+ removedResourceIds: S.optional(
1162
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList,
1163
+ ),
1164
+ resourceIds: S.optional(
1165
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList,
1166
+ ),
1167
+ }),
1168
+ ).annotate({
1169
+ identifier:
1170
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem",
1171
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem>;
1172
+
1173
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1174
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList =
1175
+ Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem>;
1176
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList =
1177
+ /*@__PURE__*/ S.Array(
1178
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem,
1179
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList>;
1180
+
1181
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1182
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap =
1183
+ { [key: string]: string | undefined };
1184
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap =
1185
+ /*@__PURE__*/ S.Record(
1186
+ S.String,
1187
+ S.String,
1188
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap>;
1189
+
1190
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1191
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output {
1192
+ /** When the subscription change should take effect. */
1193
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior;
1194
+ /** The Orb price ID for the subscription item being modified. */
1195
+ orbPriceId: string;
1196
+ /** The source used as the authoritative price for this intent. */
1197
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource;
1198
+ /** The product ID associated with this intent. */
1199
+ productId: string;
1200
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1201
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList;
1202
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1203
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap;
1204
+ /** The ID of the pending subscription change if there is one. */
1205
+ pendingSubscriptionChangeId?: string;
1206
+ }
1207
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output =
1208
+ /*@__PURE__*/ S.suspend(() =>
1209
+ S.Struct({
1210
+ effectiveBehavior:
1211
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior,
1212
+ orbPriceId: S.String,
1213
+ pricingSource:
1214
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputPricingSource,
1215
+ productId: S.String,
1216
+ changedResources: S.optional(
1217
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList,
1218
+ ),
1219
+ metadata: S.optional(
1220
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap,
1221
+ ),
1222
+ pendingSubscriptionChangeId: S.optional(S.String),
1223
+ }),
1224
+ ).annotate({
1225
+ identifier:
1226
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output",
1227
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output>;
1228
+
1229
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type =
1230
+ "set_plan_item_quantity";
1231
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type =
1232
+ S.String;
1233
+
1234
+ /** Configuration for the Orb subscription intent. */
1235
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0 {
1236
+ /** Configuration input options for setting plan item quantity. */
1237
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options;
1238
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1239
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output;
1240
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type;
1241
+ }
1242
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0 =
1243
+ /*@__PURE__*/ S.suspend(() =>
1244
+ S.Struct({
1245
+ options:
1246
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options,
1247
+ output:
1248
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output,
1249
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type,
1250
+ }),
1251
+ ).annotate({
1252
+ identifier:
1253
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0",
1254
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0>;
1255
+
1256
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
1257
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList =
1258
+ Array<string>;
1259
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList =
1260
+ /*@__PURE__*/ S.Array(
1261
+ S.String,
1262
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList>;
1263
+
1264
+ /** Configuration input options for increasing plan item quantity. */
1265
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options {
1266
+ /** The alias of the product to increase quantity for. */
1267
+ productAlias: string;
1268
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
1269
+ resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList;
1270
+ }
1271
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options =
1272
+ /*@__PURE__*/ S.suspend(() =>
1273
+ S.Struct({
1274
+ productAlias: S.String,
1275
+ resourceIds:
1276
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList,
1277
+ }),
1278
+ ).annotate({
1279
+ identifier:
1280
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options",
1281
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options>;
1282
+
1283
+ /** When the subscription change should take effect. */
1284
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior =
1285
+ | "end_of_term"
1286
+ | "immediate";
1287
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior =
1288
+ S.String;
1289
+
1290
+ /** The source used as the authoritative price for this intent. */
1291
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource =
1292
+ | "copper"
1293
+ | "orb";
1294
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource =
1295
+ S.String;
1296
+
1297
+ /** Resource IDs that were added. */
1298
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList =
1299
+ Array<string>;
1300
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList =
1301
+ /*@__PURE__*/ S.Array(
1302
+ S.String,
1303
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList>;
1304
+
1305
+ /** Resource IDs that were removed. */
1306
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList =
1307
+ Array<string>;
1308
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList =
1309
+ /*@__PURE__*/ S.Array(
1310
+ S.String,
1311
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList>;
1312
+
1313
+ /** The full set of resource IDs after the change. */
1314
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList =
1315
+ Array<string>;
1316
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList =
1317
+ /*@__PURE__*/ S.Array(
1318
+ S.String,
1319
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList>;
1320
+
1321
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1322
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem {
1323
+ /** The alias of the product that was changed. */
1324
+ productAlias: string;
1325
+ /** The ID of the product that was changed. */
1326
+ productId: string;
1327
+ /** The resulting quantity after this change. */
1328
+ quantity: number;
1329
+ /** Resource IDs that were added. */
1330
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList;
1331
+ /** When this resource change should take effect for downstream consumers. */
1332
+ effectiveAt?: string;
1333
+ /** Resource IDs that were removed. */
1334
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList;
1335
+ /** The full set of resource IDs after the change. */
1336
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList;
1337
+ }
1338
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem =
1339
+ /*@__PURE__*/ S.suspend(() =>
1340
+ S.Struct({
1341
+ productAlias: S.String,
1342
+ productId: S.String,
1343
+ quantity: S.Number,
1344
+ addedResourceIds: S.optional(
1345
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList,
1346
+ ),
1347
+ effectiveAt: S.optional(S.String),
1348
+ removedResourceIds: S.optional(
1349
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList,
1350
+ ),
1351
+ resourceIds: S.optional(
1352
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList,
1353
+ ),
1354
+ }),
1355
+ ).annotate({
1356
+ identifier:
1357
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem",
1358
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem>;
1359
+
1360
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1361
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList =
1362
+ Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem>;
1363
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList =
1364
+ /*@__PURE__*/ S.Array(
1365
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem,
1366
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList>;
1367
+
1368
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1369
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap =
1370
+ { [key: string]: string | undefined };
1371
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap =
1372
+ /*@__PURE__*/ S.Record(
1373
+ S.String,
1374
+ S.String,
1375
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap>;
1376
+
1377
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1378
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output {
1379
+ /** When the subscription change should take effect. */
1380
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior;
1381
+ /** The Orb price ID for the subscription item being modified. */
1382
+ orbPriceId: string;
1383
+ /** The source used as the authoritative price for this intent. */
1384
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource;
1385
+ /** The product ID associated with this intent. */
1386
+ productId: string;
1387
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1388
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList;
1389
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1390
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap;
1391
+ /** The ID of the pending subscription change if there is one. */
1392
+ pendingSubscriptionChangeId?: string;
1393
+ }
1394
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output =
1395
+ /*@__PURE__*/ S.suspend(() =>
1396
+ S.Struct({
1397
+ effectiveBehavior:
1398
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior,
1399
+ orbPriceId: S.String,
1400
+ pricingSource:
1401
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputPricingSource,
1402
+ productId: S.String,
1403
+ changedResources: S.optional(
1404
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList,
1405
+ ),
1406
+ metadata: S.optional(
1407
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap,
1408
+ ),
1409
+ pendingSubscriptionChangeId: S.optional(S.String),
1410
+ }),
1411
+ ).annotate({
1412
+ identifier:
1413
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output",
1414
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output>;
1415
+
1416
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type =
1417
+ "increase_plan_item_quantity";
1418
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type =
1419
+ S.String;
1420
+
1421
+ /** Configuration for the Orb subscription intent. */
1422
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1 {
1423
+ /** Configuration input options for increasing plan item quantity. */
1424
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options;
1425
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1426
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output;
1427
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type;
1428
+ }
1429
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1 =
1430
+ /*@__PURE__*/ S.suspend(() =>
1431
+ S.Struct({
1432
+ options:
1433
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options,
1434
+ output:
1435
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output,
1436
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type,
1437
+ }),
1438
+ ).annotate({
1439
+ identifier:
1440
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1",
1441
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1>;
1442
+
1443
+ /** The resource IDs to decrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
1444
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList =
1445
+ Array<string>;
1446
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList =
1447
+ /*@__PURE__*/ S.Array(
1448
+ S.String,
1449
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList>;
1450
+
1451
+ /** Configuration input options for decreasing plan item quantity. */
1452
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options {
1453
+ /** The alias of the product to decrease quantity for. */
1454
+ productAlias: string;
1455
+ /** The resource IDs to decrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
1456
+ resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList;
1457
+ }
1458
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options =
1459
+ /*@__PURE__*/ S.suspend(() =>
1460
+ S.Struct({
1461
+ productAlias: S.String,
1462
+ resourceIds:
1463
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList,
1464
+ }),
1465
+ ).annotate({
1466
+ identifier:
1467
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options",
1468
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options>;
1469
+
1470
+ /** When the subscription change should take effect. */
1471
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior =
1472
+ | "end_of_term"
1473
+ | "immediate";
1474
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior =
1475
+ S.String;
1476
+
1477
+ /** The source used as the authoritative price for this intent. */
1478
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource =
1479
+ | "copper"
1480
+ | "orb";
1481
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource =
1482
+ S.String;
1483
+
1484
+ /** Resource IDs that were added. */
1485
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList =
1486
+ Array<string>;
1487
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList =
1488
+ /*@__PURE__*/ S.Array(
1489
+ S.String,
1490
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList>;
1491
+
1492
+ /** Resource IDs that were removed. */
1493
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList =
1494
+ Array<string>;
1495
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList =
1496
+ /*@__PURE__*/ S.Array(
1497
+ S.String,
1498
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList>;
1499
+
1500
+ /** The full set of resource IDs after the change. */
1501
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList =
1502
+ Array<string>;
1503
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList =
1504
+ /*@__PURE__*/ S.Array(
1505
+ S.String,
1506
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList>;
1507
+
1508
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1509
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem {
1510
+ /** The alias of the product that was changed. */
1511
+ productAlias: string;
1512
+ /** The ID of the product that was changed. */
1513
+ productId: string;
1514
+ /** The resulting quantity after this change. */
1515
+ quantity: number;
1516
+ /** Resource IDs that were added. */
1517
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList;
1518
+ /** When this resource change should take effect for downstream consumers. */
1519
+ effectiveAt?: string;
1520
+ /** Resource IDs that were removed. */
1521
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList;
1522
+ /** The full set of resource IDs after the change. */
1523
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList;
1524
+ }
1525
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem =
1526
+ /*@__PURE__*/ S.suspend(() =>
1527
+ S.Struct({
1528
+ productAlias: S.String,
1529
+ productId: S.String,
1530
+ quantity: S.Number,
1531
+ addedResourceIds: S.optional(
1532
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList,
1533
+ ),
1534
+ effectiveAt: S.optional(S.String),
1535
+ removedResourceIds: S.optional(
1536
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList,
1537
+ ),
1538
+ resourceIds: S.optional(
1539
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList,
1540
+ ),
1541
+ }),
1542
+ ).annotate({
1543
+ identifier:
1544
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem",
1545
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem>;
1546
+
1547
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1548
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList =
1549
+ Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem>;
1550
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList =
1551
+ /*@__PURE__*/ S.Array(
1552
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem,
1553
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList>;
1554
+
1555
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1556
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap =
1557
+ { [key: string]: string | undefined };
1558
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap =
1559
+ /*@__PURE__*/ S.Record(
1560
+ S.String,
1561
+ S.String,
1562
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap>;
1563
+
1564
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1565
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output {
1566
+ /** When the subscription change should take effect. */
1567
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior;
1568
+ /** The Orb price ID for the subscription item being modified. */
1569
+ orbPriceId: string;
1570
+ /** The source used as the authoritative price for this intent. */
1571
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource;
1572
+ /** The product ID associated with this intent. */
1573
+ productId: string;
1574
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1575
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList;
1576
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1577
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap;
1578
+ /** The ID of the pending subscription change if there is one. */
1579
+ pendingSubscriptionChangeId?: string;
1580
+ }
1581
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output =
1582
+ /*@__PURE__*/ S.suspend(() =>
1583
+ S.Struct({
1584
+ effectiveBehavior:
1585
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior,
1586
+ orbPriceId: S.String,
1587
+ pricingSource:
1588
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputPricingSource,
1589
+ productId: S.String,
1590
+ changedResources: S.optional(
1591
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList,
1592
+ ),
1593
+ metadata: S.optional(
1594
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap,
1595
+ ),
1596
+ pendingSubscriptionChangeId: S.optional(S.String),
1597
+ }),
1598
+ ).annotate({
1599
+ identifier:
1600
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output",
1601
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output>;
1602
+
1603
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type =
1604
+ "decrease_plan_item_quantity";
1605
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type =
1606
+ S.String;
1607
+
1608
+ /** Configuration for the Orb subscription intent. */
1609
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2 {
1610
+ /** Configuration input options for decreasing plan item quantity. */
1611
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options;
1612
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1613
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output;
1614
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type;
1615
+ }
1616
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2 =
1617
+ /*@__PURE__*/ S.suspend(() =>
1618
+ S.Struct({
1619
+ options:
1620
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options,
1621
+ output:
1622
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output,
1623
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type,
1624
+ }),
1625
+ ).annotate({
1626
+ identifier:
1627
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2",
1628
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2>;
1629
+
1630
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
1631
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList =
1632
+ Array<string>;
1633
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList =
1634
+ /*@__PURE__*/ S.Array(
1635
+ S.String,
1636
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList>;
1637
+
1638
+ /** The resource IDs to incrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
1639
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList =
1640
+ Array<string>;
1641
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList =
1642
+ /*@__PURE__*/ S.Array(
1643
+ S.String,
1644
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList>;
1645
+
1646
+ /** Configuration input options for adjusting plan item quantity. */
1647
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options {
1648
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
1649
+ addedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList;
1650
+ /** The alias of the product to adjust quantity for. */
1651
+ productAlias: string;
1652
+ /** The resource IDs to incrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
1653
+ removedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList;
1654
+ }
1655
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options =
1656
+ /*@__PURE__*/ S.suspend(() =>
1657
+ S.Struct({
1658
+ addedResourceIds:
1659
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList,
1660
+ productAlias: S.String,
1661
+ removedResourceIds:
1662
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList,
1663
+ }),
1664
+ ).annotate({
1665
+ identifier:
1666
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options",
1667
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options>;
1668
+
1669
+ /** When the subscription change should take effect. */
1670
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior =
1671
+ | "end_of_term"
1672
+ | "immediate";
1673
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior =
1674
+ S.String;
1675
+
1676
+ /** The source used as the authoritative price for this intent. */
1677
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource =
1678
+ | "copper"
1679
+ | "orb";
1680
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource =
1681
+ S.String;
1682
+
1683
+ /** Resource IDs that were added. */
1684
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList =
1685
+ Array<string>;
1686
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList =
1687
+ /*@__PURE__*/ S.Array(
1688
+ S.String,
1689
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList>;
1690
+
1691
+ /** Resource IDs that were removed. */
1692
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList =
1693
+ Array<string>;
1694
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList =
1695
+ /*@__PURE__*/ S.Array(
1696
+ S.String,
1697
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList>;
1698
+
1699
+ /** The full set of resource IDs after the change. */
1700
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList =
1701
+ Array<string>;
1702
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList =
1703
+ /*@__PURE__*/ S.Array(
1704
+ S.String,
1705
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList>;
1706
+
1707
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1708
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem {
1709
+ /** The alias of the product that was changed. */
1710
+ productAlias: string;
1711
+ /** The ID of the product that was changed. */
1712
+ productId: string;
1713
+ /** The resulting quantity after this change. */
1714
+ quantity: number;
1715
+ /** Resource IDs that were added. */
1716
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList;
1717
+ /** When this resource change should take effect for downstream consumers. */
1718
+ effectiveAt?: string;
1719
+ /** Resource IDs that were removed. */
1720
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList;
1721
+ /** The full set of resource IDs after the change. */
1722
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList;
1723
+ }
1724
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem =
1725
+ /*@__PURE__*/ S.suspend(() =>
1726
+ S.Struct({
1727
+ productAlias: S.String,
1728
+ productId: S.String,
1729
+ quantity: S.Number,
1730
+ addedResourceIds: S.optional(
1731
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList,
1732
+ ),
1733
+ effectiveAt: S.optional(S.String),
1734
+ removedResourceIds: S.optional(
1735
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList,
1736
+ ),
1737
+ resourceIds: S.optional(
1738
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList,
1739
+ ),
1740
+ }),
1741
+ ).annotate({
1742
+ identifier:
1743
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem",
1744
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem>;
1745
+
1746
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1747
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList =
1748
+ Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem>;
1749
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList =
1750
+ /*@__PURE__*/ S.Array(
1751
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem,
1752
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList>;
1753
+
1754
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1755
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap =
1756
+ { [key: string]: string | undefined };
1757
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap =
1758
+ /*@__PURE__*/ S.Record(
1759
+ S.String,
1760
+ S.String,
1761
+ ) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap>;
1762
+
1763
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1764
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output {
1765
+ /** When the subscription change should take effect. */
1766
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior;
1767
+ /** The Orb price ID for the subscription item being modified. */
1768
+ orbPriceId: string;
1769
+ /** The source used as the authoritative price for this intent. */
1770
+ pricingSource: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource;
1771
+ /** The product ID associated with this intent. */
1772
+ productId: string;
1773
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
1774
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList;
1775
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
1776
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap;
1777
+ /** The ID of the pending subscription change if there is one. */
1778
+ pendingSubscriptionChangeId?: string;
1779
+ }
1780
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output =
1781
+ /*@__PURE__*/ S.suspend(() =>
1782
+ S.Struct({
1783
+ effectiveBehavior:
1784
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior,
1785
+ orbPriceId: S.String,
1786
+ pricingSource:
1787
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputPricingSource,
1788
+ productId: S.String,
1789
+ changedResources: S.optional(
1790
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList,
1791
+ ),
1792
+ metadata: S.optional(
1793
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap,
1794
+ ),
1795
+ pendingSubscriptionChangeId: S.optional(S.String),
1796
+ }),
1797
+ ).annotate({
1798
+ identifier:
1799
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output",
1800
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output>;
1801
+
1802
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type =
1803
+ "adjust_plan_item_quantity";
1804
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type =
1805
+ S.String;
1806
+
1807
+ /** Configuration for the Orb subscription intent. */
1808
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3 {
1809
+ /** Configuration input options for adjusting plan item quantity. */
1810
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options;
1811
+ /** Output returned after configuring an OrbSubscriptionIntent. */
1812
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output;
1813
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type;
1814
+ }
1815
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3 =
1816
+ /*@__PURE__*/ S.suspend(() =>
1817
+ S.Struct({
1818
+ options:
1819
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options,
1820
+ output:
1821
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output,
1822
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type,
1823
+ }),
1824
+ ).annotate({
1825
+ identifier:
1826
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3",
1827
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3>;
1828
+
1829
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration =
1830
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0
1831
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1
1832
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2
1833
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3;
1834
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration =
1835
+ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration>;
1836
+
1837
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode =
1838
+ "sync";
1839
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode =
1840
+ S.String;
1841
+
1842
+ /** How the subscription change is applied to Orb. */
1843
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0 {
1844
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode;
1845
+ }
1846
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0 =
1847
+ /*@__PURE__*/ S.suspend(() =>
1848
+ S.Struct({
1849
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0Mode,
1850
+ }),
1851
+ ).annotate({
1852
+ identifier:
1853
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0",
1854
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0>;
1855
+
1856
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode =
1857
+ "async";
1858
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode =
1859
+ S.String;
1860
+
1861
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status =
1862
+ | "canceled"
1863
+ | "failed"
1864
+ | "pending"
1865
+ | "running";
1866
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status =
1867
+ S.String;
1868
+
1869
+ /** How the subscription change is applied to Orb. */
1870
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1 {
1871
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode;
1872
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status;
1873
+ }
1874
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1 =
1875
+ /*@__PURE__*/ S.suspend(() =>
1876
+ S.Struct({
1877
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Mode,
1878
+ status:
1879
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1Status,
1880
+ }),
1881
+ ).annotate({
1882
+ identifier:
1883
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1",
1884
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1>;
1885
+
1886
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode =
1887
+ "async";
1888
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode =
1889
+ S.String;
1890
+
1891
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status =
1892
+ "succeeded";
1893
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status =
1894
+ S.String;
1895
+
1896
+ /** How the subscription change is applied to Orb. */
1897
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2 {
1898
+ /** The ISO 8601 date-time that the subscription change was applied to Orb. */
1899
+ appliedAt: string;
1900
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode;
1901
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status;
1902
+ }
1903
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2 =
1904
+ /*@__PURE__*/ S.suspend(() =>
1905
+ S.Struct({
1906
+ appliedAt: S.String,
1907
+ mode: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Mode,
1908
+ status:
1909
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2Status,
1910
+ }),
1911
+ ).annotate({
1912
+ identifier:
1913
+ "BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2",
1914
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2>;
1915
+
1916
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate =
1917
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase0
1918
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase1
1919
+ | BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdateCase2;
1920
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate =
1921
+ S.Unknown as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate>;
1922
+
1923
+ /** The status of the Orb subscription intent. */
1924
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus =
1925
+ | "failed"
1926
+ | "pending"
1927
+ | "succeeded";
1928
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus = S.String;
1929
+
1930
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntent {
1931
+ /** The ID of the Orb subscription intent with the format `orbsubint_`. */
1932
+ id: string;
1933
+ configuration: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration;
1934
+ /** The ISO 8601 date-time that the intent was created. */
1935
+ createdAt: string;
1936
+ /** The Orb subscription ID this intent is associated with. */
1937
+ orbSubscriptionId: string;
1938
+ orbUpdate: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate;
1939
+ /** The owner ID for this intent (e.g., team or user ID). */
1940
+ ownerId: string;
1941
+ /** The status of the Orb subscription intent. */
1942
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus;
1943
+ /** The ISO 8601 date-time that the intent was last updated. */
1944
+ updatedAt: string;
1945
+ /** Optional purchase intent ID if this is associated with a purchase. */
1946
+ purchaseIntentId?: string;
1947
+ }
1948
+ export const BuyCreditsResponseBodyCase2OrbSubscriptionIntent =
1949
+ /*@__PURE__*/ S.suspend(() =>
1950
+ S.Struct({
1951
+ id: S.String,
1952
+ configuration:
1953
+ BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration,
1954
+ createdAt: S.String,
1955
+ orbSubscriptionId: S.String,
1956
+ orbUpdate: BuyCreditsResponseBodyCase2OrbSubscriptionIntentOrbUpdate,
1957
+ ownerId: S.String,
1958
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus,
1959
+ updatedAt: S.String,
1960
+ purchaseIntentId: S.optional(S.String),
1961
+ }),
1962
+ ).annotate({
1963
+ identifier: "BuyCreditsResponseBodyCase2OrbSubscriptionIntent",
1964
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntent>;
1965
+
1966
+ export interface BuyCreditsResponseBodyCase2 {
1967
+ orbSubscriptionIntent: BuyCreditsResponseBodyCase2OrbSubscriptionIntent;
1968
+ }
1969
+ export const BuyCreditsResponseBodyCase2 = /*@__PURE__*/ S.suspend(() =>
1970
+ S.Struct({
1971
+ orbSubscriptionIntent: BuyCreditsResponseBodyCase2OrbSubscriptionIntent,
1972
+ }),
1973
+ ).annotate({
1974
+ identifier: "BuyCreditsResponseBodyCase2",
1975
+ }) as any as S.Schema<BuyCreditsResponseBodyCase2>;
1976
+
1977
+ export type BuyCreditsResponseBody =
1978
+ | BuyCreditsResponseBodyCase0
1979
+ | BuyCreditsResponseBodyCase1
1980
+ | BuyCreditsResponseBodyCase2;
1981
+ export const BuyCreditsResponseBody =
1982
+ S.Unknown as any as S.Schema<BuyCreditsResponseBody>;
1983
+
1984
+ export type BuyCreditsResponse = BuyCreditsResponseBody;
1985
+ export const BuyCreditsResponse = /*@__PURE__*/ S.suspend(() =>
1986
+ BuyCreditsResponseBody.pipe(T.RawResponseRoot()),
1987
+ ).annotate({
1988
+ identifier: "BuyCreditsResponse",
1989
+ }) as any as S.Schema<BuyCreditsResponse>;
1990
+
1991
+ export interface ListBillingChargesRequest {
1992
+ /** Inclusive start of the date range as an ISO 8601 date-time string in UTC. */
1993
+ from: string;
1994
+ /** Exclusive end of the date range as an ISO 8601 date-time string in UTC. */
1995
+ to: string;
1996
+ /** The Team identifier to perform the request on behalf of. */
1997
+ teamId?: string;
1998
+ /** The Team slug to perform the request on behalf of. */
1999
+ slug?: string;
2000
+ }
2001
+ export const ListBillingChargesRequest = /*@__PURE__*/ S.suspend(() =>
2002
+ S.Struct({
2003
+ from: S.String.pipe(T.Query()),
2004
+ to: S.String.pipe(T.Query()),
2005
+ teamId: S.optional(S.String.pipe(T.Query())),
2006
+ slug: S.optional(S.String.pipe(T.Query())),
2007
+ }).pipe(T.Http({ method: "GET", uri: "/v1/billing/charges", code: 200 })),
2008
+ ).annotate({
2009
+ identifier: "ListBillingChargesRequest",
2010
+ }) as any as S.Schema<ListBillingChargesRequest>;
2011
+
2012
+ export interface ListBillingChargesResponse {}
2013
+ export const ListBillingChargesResponse = /*@__PURE__*/ S.suspend(() =>
2014
+ S.Struct({}),
2015
+ ).annotate({
2016
+ identifier: "ListBillingChargesResponse",
2017
+ }) as any as S.Schema<ListBillingChargesResponse>;
2018
+
2019
+ export interface ListContractCommitmentsRequest {
2020
+ /** The Team identifier to perform the request on behalf of. */
2021
+ teamId?: string;
2022
+ /** The Team slug to perform the request on behalf of. */
2023
+ slug?: string;
2024
+ }
2025
+ export const ListContractCommitmentsRequest = /*@__PURE__*/ S.suspend(() =>
2026
+ S.Struct({
2027
+ teamId: S.optional(S.String.pipe(T.Query())),
2028
+ slug: S.optional(S.String.pipe(T.Query())),
2029
+ }).pipe(
2030
+ T.Http({
2031
+ method: "GET",
2032
+ uri: "/v1/billing/contract-commitments",
2033
+ code: 200,
2034
+ }),
2035
+ ),
2036
+ ).annotate({
2037
+ identifier: "ListContractCommitmentsRequest",
2038
+ }) as any as S.Schema<ListContractCommitmentsRequest>;
2039
+
2040
+ export interface ListContractCommitmentsResponse {}
2041
+ export const ListContractCommitmentsResponse = /*@__PURE__*/ S.suspend(() =>
2042
+ S.Struct({}),
2043
+ ).annotate({
2044
+ identifier: "ListContractCommitmentsResponse",
2045
+ }) as any as S.Schema<ListContractCommitmentsResponse>;
2046
+
2047
+ export type BuyCreditsError =
2048
+ | BadRequest
2049
+ | PaymentRequired
2050
+ | Forbidden
2051
+ | NotFound
2052
+ | Conflict
2053
+ | VercelOpError;
2054
+ /** 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. */
2055
+ export const buyCredits: API.OperationMethod<
2056
+ BuyCreditsRequest,
2057
+ BuyCreditsResponse,
2058
+ BuyCreditsError,
2059
+ VercelOpContext
2060
+ > = /*@__PURE__*/ API.make(() => ({
2061
+ input: BuyCreditsRequest,
2062
+ output: BuyCreditsResponse,
2063
+ errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
2064
+ protocol: VercelProtocol,
2065
+ retry: Retry.Retry,
2066
+ }));
2067
+
2068
+ export type ListBillingChargesError =
2069
+ | BadRequest
2070
+ | Forbidden
2071
+ | NotFound
2072
+ | VercelOpError;
2073
+ /** List FOCUS billing charges Returns the billing charge data in FOCUS v1.3 JSONL format for a specified Vercel team, within a date range specified by `from` and `to` query parameters. Supports 1-day granularity with a maximum date range of 1 year. The response is streamed as newline-delimited JSON (JSONL) and can be optionally compressed with gzip if the `Accept-Encoding: gzip` header is provided. This is only available for Owner, Member, Developer, Security, Billing, and Enterprise Viewer roles for the supplied team. */
2074
+ export const listBillingCharges: API.OperationMethod<
2075
+ ListBillingChargesRequest,
2076
+ ListBillingChargesResponse,
2077
+ ListBillingChargesError,
2078
+ VercelOpContext
2079
+ > = /*@__PURE__*/ API.make(() => ({
2080
+ input: ListBillingChargesRequest,
2081
+ output: ListBillingChargesResponse,
2082
+ errors: [BadRequest, Forbidden, NotFound],
2083
+ protocol: VercelProtocol,
2084
+ retry: Retry.Retry,
2085
+ }));
2086
+
2087
+ export type ListContractCommitmentsError =
2088
+ | BadRequest
2089
+ | Forbidden
2090
+ | NotFound
2091
+ | VercelOpError;
2092
+ /** List FOCUS contract commitments Returns commitment allocations per contract period in FOCUS v1.3 JSONL format for a specified Vercel team. The response is streamed as newline-delimited JSON (JSONL). This endpoint is only applicable to Enterprise Vercel customers. An empty response is returned for non-Enterprise (Pro/Flex) customers. */
2093
+ export const listContractCommitments: API.OperationMethod<
2094
+ ListContractCommitmentsRequest,
2095
+ ListContractCommitmentsResponse,
2096
+ ListContractCommitmentsError,
2097
+ VercelOpContext
2098
+ > = /*@__PURE__*/ API.make(() => ({
2099
+ input: ListContractCommitmentsRequest,
2100
+ output: ListContractCommitmentsResponse,
2101
+ errors: [BadRequest, Forbidden, NotFound],
2102
+ protocol: VercelProtocol,
2103
+ retry: Retry.Retry,
2104
+ }));