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

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 (230) hide show
  1. package/lib/credentials.d.ts +21 -0
  2. package/lib/credentials.d.ts.map +1 -0
  3. package/lib/credentials.js +40 -0
  4. package/lib/credentials.js.map +1 -0
  5. package/lib/errors.d.ts +80 -0
  6. package/lib/errors.d.ts.map +1 -0
  7. package/lib/errors.js +50 -0
  8. package/lib/errors.js.map +1 -0
  9. package/lib/index.d.ts +15 -0
  10. package/lib/index.d.ts.map +1 -0
  11. package/lib/index.js +15 -0
  12. package/lib/index.js.map +1 -0
  13. package/lib/protocol.d.ts +18 -0
  14. package/lib/protocol.d.ts.map +1 -0
  15. package/lib/protocol.js +69 -0
  16. package/lib/protocol.js.map +1 -0
  17. package/lib/retry.d.ts +54 -0
  18. package/lib/retry.d.ts.map +1 -0
  19. package/lib/retry.js +47 -0
  20. package/lib/retry.js.map +1 -0
  21. package/lib/services/access_groups.d.ts +459 -0
  22. package/lib/services/access_groups.d.ts.map +1 -0
  23. package/lib/services/access_groups.js +453 -0
  24. package/lib/services/access_groups.js.map +1 -0
  25. package/lib/services/ai_gateway.d.ts +124 -0
  26. package/lib/services/ai_gateway.d.ts.map +1 -0
  27. package/lib/services/ai_gateway.js +126 -0
  28. package/lib/services/ai_gateway.js.map +1 -0
  29. package/lib/services/aliases.d.ts +591 -0
  30. package/lib/services/aliases.d.ts.map +1 -0
  31. package/lib/services/aliases.js +508 -0
  32. package/lib/services/aliases.js.map +1 -0
  33. package/lib/services/artifacts.d.ts +228 -0
  34. package/lib/services/artifacts.d.ts.map +1 -0
  35. package/lib/services/artifacts.js +216 -0
  36. package/lib/services/artifacts.js.map +1 -0
  37. package/lib/services/authentication.d.ts +373 -0
  38. package/lib/services/authentication.d.ts.map +1 -0
  39. package/lib/services/authentication.js +310 -0
  40. package/lib/services/authentication.js.map +1 -0
  41. package/lib/services/billing.d.ts +792 -0
  42. package/lib/services/billing.d.ts.map +1 -0
  43. package/lib/services/billing.js +616 -0
  44. package/lib/services/billing.js.map +1 -0
  45. package/lib/services/bulk_redirects.d.ts +308 -0
  46. package/lib/services/bulk_redirects.d.ts.map +1 -0
  47. package/lib/services/bulk_redirects.js +306 -0
  48. package/lib/services/bulk_redirects.js.map +1 -0
  49. package/lib/services/certs.d.ts +171 -0
  50. package/lib/services/certs.d.ts.map +1 -0
  51. package/lib/services/certs.js +165 -0
  52. package/lib/services/certs.js.map +1 -0
  53. package/lib/services/checks_v2.d.ts +1162 -0
  54. package/lib/services/checks_v2.d.ts.map +1 -0
  55. package/lib/services/checks_v2.js +1252 -0
  56. package/lib/services/checks_v2.js.map +1 -0
  57. package/lib/services/connect.d.ts +1034 -0
  58. package/lib/services/connect.d.ts.map +1 -0
  59. package/lib/services/connect.js +993 -0
  60. package/lib/services/connect.js.map +1 -0
  61. package/lib/services/deployments.d.ts +9111 -0
  62. package/lib/services/deployments.d.ts.map +1 -0
  63. package/lib/services/deployments.js +8664 -0
  64. package/lib/services/deployments.js.map +1 -0
  65. package/lib/services/dns.d.ts +279 -0
  66. package/lib/services/dns.d.ts.map +1 -0
  67. package/lib/services/dns.js +282 -0
  68. package/lib/services/dns.js.map +1 -0
  69. package/lib/services/domains.d.ts +539 -0
  70. package/lib/services/domains.d.ts.map +1 -0
  71. package/lib/services/domains.js +464 -0
  72. package/lib/services/domains.js.map +1 -0
  73. package/lib/services/domains_registrar.d.ts +798 -0
  74. package/lib/services/domains_registrar.d.ts.map +1 -0
  75. package/lib/services/domains_registrar.js +968 -0
  76. package/lib/services/domains_registrar.js.map +1 -0
  77. package/lib/services/drains.d.ts +2263 -0
  78. package/lib/services/drains.d.ts.map +1 -0
  79. package/lib/services/drains.js +2406 -0
  80. package/lib/services/drains.js.map +1 -0
  81. package/lib/services/edge_cache.d.ts +125 -0
  82. package/lib/services/edge_cache.d.ts.map +1 -0
  83. package/lib/services/edge_cache.js +140 -0
  84. package/lib/services/edge_cache.js.map +1 -0
  85. package/lib/services/environment.d.ts +1020 -0
  86. package/lib/services/environment.d.ts.map +1 -0
  87. package/lib/services/environment.js +842 -0
  88. package/lib/services/environment.js.map +1 -0
  89. package/lib/services/feature_flags.d.ts +3109 -0
  90. package/lib/services/feature_flags.d.ts.map +1 -0
  91. package/lib/services/feature_flags.js +3074 -0
  92. package/lib/services/feature_flags.js.map +1 -0
  93. package/lib/services/global_config.d.ts +618 -0
  94. package/lib/services/global_config.d.ts.map +1 -0
  95. package/lib/services/global_config.js +716 -0
  96. package/lib/services/global_config.js.map +1 -0
  97. package/lib/services/index.d.ts +39 -0
  98. package/lib/services/index.d.ts.map +1 -0
  99. package/lib/services/index.js +40 -0
  100. package/lib/services/index.js.map +1 -0
  101. package/lib/services/integrations.d.ts +2987 -0
  102. package/lib/services/integrations.d.ts.map +1 -0
  103. package/lib/services/integrations.js +2903 -0
  104. package/lib/services/integrations.js.map +1 -0
  105. package/lib/services/log_drains.d.ts +848 -0
  106. package/lib/services/log_drains.d.ts.map +1 -0
  107. package/lib/services/log_drains.js +866 -0
  108. package/lib/services/log_drains.js.map +1 -0
  109. package/lib/services/logs.d.ts +40 -0
  110. package/lib/services/logs.d.ts.map +1 -0
  111. package/lib/services/logs.js +43 -0
  112. package/lib/services/logs.js.map +1 -0
  113. package/lib/services/marketplace.d.ts +991 -0
  114. package/lib/services/marketplace.d.ts.map +1 -0
  115. package/lib/services/marketplace.js +1044 -0
  116. package/lib/services/marketplace.js.map +1 -0
  117. package/lib/services/microfrontends.d.ts +3210 -0
  118. package/lib/services/microfrontends.d.ts.map +1 -0
  119. package/lib/services/microfrontends.js +3300 -0
  120. package/lib/services/microfrontends.js.map +1 -0
  121. package/lib/services/networking.d.ts +239 -0
  122. package/lib/services/networking.d.ts.map +1 -0
  123. package/lib/services/networking.js +224 -0
  124. package/lib/services/networking.js.map +1 -0
  125. package/lib/services/observability.d.ts +168 -0
  126. package/lib/services/observability.d.ts.map +1 -0
  127. package/lib/services/observability.js +191 -0
  128. package/lib/services/observability.js.map +1 -0
  129. package/lib/services/project_members.d.ts +142 -0
  130. package/lib/services/project_members.d.ts.map +1 -0
  131. package/lib/services/project_members.js +139 -0
  132. package/lib/services/project_members.js.map +1 -0
  133. package/lib/services/project_routes.d.ts +1990 -0
  134. package/lib/services/project_routes.d.ts.map +1 -0
  135. package/lib/services/project_routes.js +2026 -0
  136. package/lib/services/project_routes.js.map +1 -0
  137. package/lib/services/projects.d.ts +23449 -0
  138. package/lib/services/projects.d.ts.map +1 -0
  139. package/lib/services/projects.js +23570 -0
  140. package/lib/services/projects.js.map +1 -0
  141. package/lib/services/rolling_release.d.ts +764 -0
  142. package/lib/services/rolling_release.d.ts.map +1 -0
  143. package/lib/services/rolling_release.js +630 -0
  144. package/lib/services/rolling_release.js.map +1 -0
  145. package/lib/services/sandboxes.d.ts +2183 -0
  146. package/lib/services/sandboxes.d.ts.map +1 -0
  147. package/lib/services/sandboxes.js +1756 -0
  148. package/lib/services/sandboxes.js.map +1 -0
  149. package/lib/services/security.d.ts +3932 -0
  150. package/lib/services/security.d.ts.map +1 -0
  151. package/lib/services/security.js +4411 -0
  152. package/lib/services/security.js.map +1 -0
  153. package/lib/services/storage.d.ts +251 -0
  154. package/lib/services/storage.d.ts.map +1 -0
  155. package/lib/services/storage.js +270 -0
  156. package/lib/services/storage.js.map +1 -0
  157. package/lib/services/teams.d.ts +1577 -0
  158. package/lib/services/teams.d.ts.map +1 -0
  159. package/lib/services/teams.js +1359 -0
  160. package/lib/services/teams.js.map +1 -0
  161. package/lib/services/user.d.ts +7972 -0
  162. package/lib/services/user.d.ts.map +1 -0
  163. package/lib/services/user.js +7093 -0
  164. package/lib/services/user.js.map +1 -0
  165. package/lib/services/vcr.d.ts +793 -0
  166. package/lib/services/vcr.d.ts.map +1 -0
  167. package/lib/services/vcr.js +882 -0
  168. package/lib/services/vcr.js.map +1 -0
  169. package/lib/services/web_analytics.d.ts +694 -0
  170. package/lib/services/web_analytics.d.ts.map +1 -0
  171. package/lib/services/web_analytics.js +695 -0
  172. package/lib/services/web_analytics.js.map +1 -0
  173. package/lib/services/webhooks.d.ts +207 -0
  174. package/lib/services/webhooks.d.ts.map +1 -0
  175. package/lib/services/webhooks.js +171 -0
  176. package/lib/services/webhooks.js.map +1 -0
  177. package/lib/traits.d.ts +10 -0
  178. package/lib/traits.d.ts.map +1 -0
  179. package/lib/traits.js +11 -0
  180. package/lib/traits.js.map +1 -0
  181. package/package.json +77 -7
  182. package/src/credentials.ts +70 -0
  183. package/src/errors.ts +93 -0
  184. package/src/index.ts +18 -0
  185. package/src/protocol.ts +98 -0
  186. package/src/retry.ts +78 -0
  187. package/src/services/access_groups.ts +1165 -0
  188. package/src/services/ai_gateway.ts +272 -0
  189. package/src/services/aliases.ts +1323 -0
  190. package/src/services/artifacts.ts +542 -0
  191. package/src/services/authentication.ts +829 -0
  192. package/src/services/billing.ts +1776 -0
  193. package/src/services/bulk_redirects.ts +748 -0
  194. package/src/services/certs.ts +377 -0
  195. package/src/services/checks_v2.ts +3136 -0
  196. package/src/services/connect.ts +2607 -0
  197. package/src/services/deployments.ts +23682 -0
  198. package/src/services/dns.ts +718 -0
  199. package/src/services/domains.ts +1209 -0
  200. package/src/services/domains_registrar.ts +2290 -0
  201. package/src/services/drains.ts +5989 -0
  202. package/src/services/edge_cache.ts +303 -0
  203. package/src/services/environment.ts +2388 -0
  204. package/src/services/feature_flags.ts +8302 -0
  205. package/src/services/global_config.ts +1668 -0
  206. package/src/services/index.ts +39 -0
  207. package/src/services/integrations.ts +8846 -0
  208. package/src/services/log_drains.ts +2413 -0
  209. package/src/services/logs.ts +78 -0
  210. package/src/services/marketplace.ts +2626 -0
  211. package/src/services/microfrontends.ts +9650 -0
  212. package/src/services/networking.ts +530 -0
  213. package/src/services/observability.ts +436 -0
  214. package/src/services/project_members.ts +328 -0
  215. package/src/services/project_routes.ts +5259 -0
  216. package/src/services/projects.ts +67377 -0
  217. package/src/services/rolling_release.ts +1869 -0
  218. package/src/services/sandboxes.ts +5259 -0
  219. package/src/services/security.ts +12408 -0
  220. package/src/services/storage.ts +849 -0
  221. package/src/services/teams.ts +3995 -0
  222. package/src/services/user.ts +21687 -0
  223. package/src/services/vcr.ts +2165 -0
  224. package/src/services/web_analytics.ts +1570 -0
  225. package/src/services/webhooks.ts +1073 -0
  226. package/src/traits.ts +44 -0
  227. package/README.md +0 -15
  228. package/bun.lock +0 -26
  229. package/index.ts +0 -1
  230. package/tsconfig.json +0 -29
@@ -0,0 +1,792 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type VercelOpError, type VercelOpContext } from "../protocol.ts";
4
+ export type { VercelOpError, VercelOpContext };
5
+ declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
+ }
15
+ declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
16
+ readonly code: any;
17
+ readonly message: any;
18
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
19
+ "@distilled.cloud/error/categories": {
20
+ AuthError: true;
21
+ };
22
+ });
23
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
24
+ }
25
+ declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
26
+ readonly code: any;
27
+ readonly message: any;
28
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
29
+ "@distilled.cloud/error/categories": {
30
+ BadRequestError: true;
31
+ };
32
+ });
33
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
34
+ }
35
+ declare const PaymentRequired_base: S.Class<PaymentRequired, S.TaggedStruct<"PaymentRequired", {
36
+ readonly code: any;
37
+ readonly message: any;
38
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
39
+ "@distilled.cloud/error/categories": {
40
+ QuotaError: true;
41
+ };
42
+ });
43
+ export declare class PaymentRequired extends /*@__PURE__*/ PaymentRequired_base {
44
+ }
45
+ /** The type of item to purchase. */
46
+ export type BuyCreditsRequestItemType = "credits";
47
+ export declare const BuyCreditsRequestItemType: any;
48
+ /** The type of credits to purchase. */
49
+ export type BuyCreditsRequestItemCreditType = "v0" | "gateway" | "agent";
50
+ export declare const BuyCreditsRequestItemCreditType: any;
51
+ export interface BuyCreditsRequestItem {
52
+ /** The type of item to purchase. */
53
+ type: BuyCreditsRequestItemType | (string & {});
54
+ /** The type of credits to purchase. */
55
+ creditType: BuyCreditsRequestItemCreditType | (string & {});
56
+ /** The amount of credits to purchase. */
57
+ amount: number;
58
+ }
59
+ export declare const BuyCreditsRequestItem: S.Schema<BuyCreditsRequestItem>;
60
+ export interface BuyCreditsRequest {
61
+ /** The source of the purchase request. Defaults to `api` if not specified. */
62
+ source?: string;
63
+ /** The Team identifier to perform the request on behalf of. */
64
+ teamId?: string;
65
+ /** The Team slug to perform the request on behalf of. */
66
+ slug?: string;
67
+ item: BuyCreditsRequestItem;
68
+ }
69
+ export declare const BuyCreditsRequest: S.Schema<BuyCreditsRequest>;
70
+ export interface BuyCreditsResponseBodyCase0 {
71
+ checkoutSessionId: string;
72
+ checkoutSessionUrl: string;
73
+ }
74
+ export declare const BuyCreditsResponseBodyCase0: S.Schema<BuyCreditsResponseBodyCase0>;
75
+ /** The currency being purchased */
76
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency = "ai_credits" | "ai_gateway_credits" | "copper_test_units" | "v0_user_credits" | "vercel_agent_credits";
77
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency: any;
78
+ /** Purchase configuration specific options */
79
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options {
80
+ /** The amount of currency to buy */
81
+ amount: string;
82
+ /** The currency being purchased */
83
+ currency: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0OptionsCurrency;
84
+ /** The expiration date of the credits being purchased */
85
+ expirationDate?: string;
86
+ }
87
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options>;
88
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type = "credit_topup";
89
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type: any;
90
+ /** The configuration for a credit purchase */
91
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 {
92
+ /** Purchase configuration specific options */
93
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Options;
94
+ output: unknown | null;
95
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0Type;
96
+ }
97
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0>;
98
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType = "purchase" | "renewal" | "transfer";
99
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType: any;
100
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem {
101
+ name: string;
102
+ /** The subtotal of the domain name purchase */
103
+ subtotal: string;
104
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItemType;
105
+ /** The number of years to purchase */
106
+ years: number;
107
+ }
108
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem>;
109
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsItem>;
110
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList>;
111
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options {
112
+ items: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1OptionsItemsList;
113
+ /** The order ID of the domain name purchase */
114
+ orderId: string;
115
+ }
116
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options>;
117
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type = "domain_name";
118
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type: any;
119
+ /** The configuration for a credit purchase */
120
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 {
121
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Options;
122
+ output: unknown | null;
123
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1Type;
124
+ }
125
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1>;
126
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1 = "end_of_subscription_term" | "immediate";
127
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1: any;
128
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate = unknown | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDateCase1;
129
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate>;
130
+ /** The prices to replace in the subscription */
131
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem {
132
+ /** The quantity for the fixed price */
133
+ fixedPriceQuantity: number;
134
+ /** The ID of the price to replace */
135
+ replacesPriceId: string;
136
+ }
137
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
138
+ /** The prices to replace in the subscription */
139
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
140
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList>;
141
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options {
142
+ effectiveDate: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsEffectiveDate;
143
+ /** The ID of the Orb subscription to change */
144
+ orbSubscriptionId: string;
145
+ /** Whether or not to reset the billing cycle */
146
+ alignBillingWithPlanChangeDate?: boolean;
147
+ /** The coupon redemption code to apply to the plan change */
148
+ couponRedemptionCode?: string;
149
+ /** The ID of the external plan to change to */
150
+ externalPlanId?: string;
151
+ /** The prices to replace in the subscription */
152
+ replacePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesList;
153
+ }
154
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options>;
155
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output {
156
+ /** The ID of the pending subscription change */
157
+ pendingSubscriptionChangeId: string;
158
+ }
159
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output>;
160
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type = "orb_plan_change";
161
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type: any;
162
+ /** The configuration for a credit purchase */
163
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2 {
164
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Options;
165
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
166
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Type;
167
+ }
168
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2>;
169
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
170
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Output: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output>;
171
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type = "orb_price_interval";
172
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type: any;
173
+ /** The configuration for a credit purchase */
174
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3 {
175
+ options: unknown;
176
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
177
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3Type;
178
+ }
179
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3>;
180
+ /** The prices to add to the subscription */
181
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0 {
182
+ /** The ID of the price to add */
183
+ priceId: string;
184
+ }
185
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0>;
186
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItemCase0 | unknown;
187
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem>;
188
+ /** The prices to add to the subscription */
189
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesItem>;
190
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList>;
191
+ /** Optional metadata to associate with the subscription */
192
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap = {
193
+ [key: string]: string | undefined;
194
+ };
195
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap>;
196
+ /** The prices to remove in the subscription */
197
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem {
198
+ /** The ID of the price to remove */
199
+ priceId: string;
200
+ }
201
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem>;
202
+ /** The prices to remove in the subscription */
203
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesItem>;
204
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList>;
205
+ /** The prices to replace in the subscription */
206
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesItem = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem;
207
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
208
+ /** The prices to replace in the subscription */
209
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2OptionsReplacePricesItem>;
210
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList>;
211
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options {
212
+ /** The external plan ID of the Orb plan to subscribe to */
213
+ externalPlanId: string;
214
+ /** The prices to add to the subscription */
215
+ addPrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsAddPricesList;
216
+ /** Whether to align the subscription start date with the billing subscription start date */
217
+ alignBillingWithSubscriptionStartDate?: boolean;
218
+ /** The coupon redemption code to apply to the subscription */
219
+ couponRedemptionCode?: string;
220
+ /** The initial phase order to use for the subscription */
221
+ initialPhaseOrder?: number;
222
+ /** Optional metadata to associate with the subscription */
223
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsMetadataMap;
224
+ /** The prices to remove in the subscription */
225
+ removePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsRemovePricesList;
226
+ /** The prices to replace in the subscription */
227
+ replacePrices?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4OptionsReplacePricesList;
228
+ /** The start date of the subscription */
229
+ startDate?: string;
230
+ }
231
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options>;
232
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
233
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Output: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output>;
234
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type = "orb_subscription";
235
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type: any;
236
+ /** The configuration for a credit purchase */
237
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4 {
238
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Options;
239
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
240
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4Type;
241
+ }
242
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4>;
243
+ /** Optional metadata for the line item */
244
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap = {
245
+ [key: string]: string | undefined;
246
+ };
247
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap>;
248
+ /** The line items that make up the Purchase Intent. */
249
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem {
250
+ /** The ID of the line item */
251
+ id: string;
252
+ /** The description of the line item */
253
+ description: string;
254
+ /** The name of the line item */
255
+ name: string;
256
+ /** The ID of the product being purchased */
257
+ productId: string;
258
+ /** The quantity of the line item */
259
+ quantity: string;
260
+ /** The unit amount of the line item */
261
+ unitAmount: string;
262
+ /** Optional metadata for the line item */
263
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItemMetadataMap;
264
+ /** The alias of the product being purchased */
265
+ productAlias?: string;
266
+ /** The amount of the line item that has been refunded */
267
+ refund?: string;
268
+ }
269
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem>;
270
+ /** The line items that make up the Purchase Intent. */
271
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList = Array<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsItem>;
272
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList>;
273
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options {
274
+ /** The ID of the Orb customer to create */
275
+ orbCustomerId: string;
276
+ /** The external ID of the Orb customer to create */
277
+ orbExternalCustomerId: string;
278
+ /** The external ID of the Orb plan to create */
279
+ orbExternalPlanId: string;
280
+ /** The ID of the pending subscription change */
281
+ orbPendingSubscriptionChangeId: string;
282
+ /** The ID of the Orb plan to create */
283
+ orbPlanId: string;
284
+ /** The ID of the Orb subscription to create */
285
+ orbSubscriptionId: string;
286
+ /** The line items that make up the Purchase Intent. */
287
+ lineItems?: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5OptionsLineItemsList;
288
+ }
289
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options>;
290
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
291
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Output: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output>;
292
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type = "orb_subscription_intent";
293
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type: any;
294
+ /** The configuration for a credit purchase */
295
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5 {
296
+ options: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Options;
297
+ output: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2Output;
298
+ type: BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5Type;
299
+ }
300
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5>;
301
+ export type BuyCreditsResponseBodyCase1PurchaseIntentConfiguration = BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase0 | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase1 | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase2 | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase3 | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase4 | BuyCreditsResponseBodyCase1PurchaseIntentConfigurationCase5;
302
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentConfiguration: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentConfiguration>;
303
+ /** The currency for the purchase intent */
304
+ export type BuyCreditsResponseBodyCase1PurchaseIntentCurrency = "miu" | "usd";
305
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentCurrency: any;
306
+ /** The type of the purchase provider */
307
+ export type BuyCreditsResponseBodyCase1PurchaseIntentProviderType = "apple_in_app_purchase" | "orb_ledger" | "stripe_elements" | "stripe_hosted" | "stripe_invoice_deferred" | "stripe_invoice_elements" | "stripe_invoice_immediate" | "tackle_aws_marketplace";
308
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentProviderType: any;
309
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentProvider {
310
+ /** Provider resource id */
311
+ resourceId: string;
312
+ /** The type of the purchase provider */
313
+ type: BuyCreditsResponseBodyCase1PurchaseIntentProviderType;
314
+ /** The currency conversion rate used by the provider */
315
+ currencyConversionRate?: string;
316
+ /** Whether a Stripe Shared Payment Token was used for this purchase. Only applicable when type is stripe_invoice_immediate. */
317
+ stripeSharedPaymentTokenUsed?: boolean;
318
+ }
319
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentProvider: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentProvider>;
320
+ /** The status of the Purchase Intent. */
321
+ export type BuyCreditsResponseBodyCase1PurchaseIntentStatus = "failed" | "pending" | "succeeded";
322
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentStatus: any;
323
+ /** The dispute details, if any. */
324
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentDispute {
325
+ /** The unique ID of the dispute entity. */
326
+ id: string;
327
+ /** The disputed amount. */
328
+ amount: string;
329
+ /** When the dispute was first recorded. */
330
+ createdAt: string;
331
+ /** The dispute currency. */
332
+ currency: string;
333
+ /** The external provider dispute ID (e.g. Stripe dispute ID). */
334
+ providerId: string;
335
+ /** The dispute reason. */
336
+ reason: string | null;
337
+ /** The dispute status. */
338
+ status: string;
339
+ /** When the dispute was last updated. */
340
+ updatedAt: string;
341
+ }
342
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentDispute: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentDispute>;
343
+ /** Optional metadata for the line item */
344
+ export type BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap = {
345
+ [key: string]: string | undefined;
346
+ };
347
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap>;
348
+ /** The line items that make up the Purchase Intent. */
349
+ export interface BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem {
350
+ /** The ID of the line item */
351
+ id: string;
352
+ /** The description of the line item */
353
+ description: string;
354
+ /** The name of the line item */
355
+ name: string;
356
+ /** The ID of the product being purchased */
357
+ productId: string;
358
+ /** The quantity of the line item */
359
+ quantity: string;
360
+ /** The unit amount of the line item */
361
+ unitAmount: string;
362
+ /** Optional metadata for the line item */
363
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItemMetadataMap;
364
+ /** The alias of the product being purchased */
365
+ productAlias?: string;
366
+ /** The amount of the line item that has been refunded */
367
+ refund?: string;
368
+ }
369
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem>;
370
+ /** The line items that make up the Purchase Intent. */
371
+ export type BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList = Array<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsItem>;
372
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList>;
373
+ /** Optional metadata associated with the purchase intent */
374
+ export type BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap = {
375
+ [key: string]: string | undefined;
376
+ };
377
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap>;
378
+ /** The created purchase intent */
379
+ export interface BuyCreditsResponseBodyCase1PurchaseIntent {
380
+ /** The unique ID of a Purchase Intent. Uses the format `pur_*` */
381
+ id: string;
382
+ configuration: BuyCreditsResponseBodyCase1PurchaseIntentConfiguration;
383
+ /** The datetime when the Purchase Intent was created. */
384
+ createdAt: string;
385
+ /** The currency for the purchase intent */
386
+ currency: BuyCreditsResponseBodyCase1PurchaseIntentCurrency;
387
+ /** The ID of the owner of the Purchase Intent. */
388
+ ownerId: string;
389
+ provider: BuyCreditsResponseBodyCase1PurchaseIntentProvider;
390
+ /** The status of the Purchase Intent. */
391
+ status: BuyCreditsResponseBodyCase1PurchaseIntentStatus;
392
+ /** The subtotal of the Purchase Intent. */
393
+ subtotal: string;
394
+ /** The tax due on the Purchase Intent. */
395
+ tax: string;
396
+ /** The total balance due on the Purchase Intent. */
397
+ total: string;
398
+ /** The datetime when the Purchase Intent was last updated. */
399
+ updatedAt: string;
400
+ /** The dispute details, if any. */
401
+ dispute?: BuyCreditsResponseBodyCase1PurchaseIntentDispute;
402
+ /** The line items that make up the Purchase Intent. */
403
+ lineItems?: BuyCreditsResponseBodyCase1PurchaseIntentLineItemsList;
404
+ /** Optional metadata associated with the purchase intent */
405
+ metadata?: BuyCreditsResponseBodyCase1PurchaseIntentMetadataMap;
406
+ /** The amount of the purchase intent that has been refunded */
407
+ refund?: string;
408
+ /** The URL to redirect to after the purchase is complete */
409
+ returnUrl?: string;
410
+ }
411
+ export declare const BuyCreditsResponseBodyCase1PurchaseIntent: S.Schema<BuyCreditsResponseBodyCase1PurchaseIntent>;
412
+ export interface BuyCreditsResponseBodyCase1 {
413
+ /** The created purchase intent */
414
+ purchaseIntent: BuyCreditsResponseBodyCase1PurchaseIntent;
415
+ }
416
+ export declare const BuyCreditsResponseBodyCase1: S.Schema<BuyCreditsResponseBodyCase1>;
417
+ /** The resource IDs for the plan item. Only set if SKU requires resource entitlements. */
418
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList = Array<string>;
419
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList>;
420
+ /** Configuration input options for setting plan item quantity. */
421
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options {
422
+ /** The alias of the product to set quantity for. */
423
+ productAlias: string;
424
+ /** The quantity to set for the plan item. */
425
+ quantity: number;
426
+ /** The resource IDs for the plan item. Only set if SKU requires resource entitlements. */
427
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OptionsResourceIdsList;
428
+ }
429
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options>;
430
+ /** When the subscription change should take effect. */
431
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior = "end_of_term" | "immediate";
432
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior: any;
433
+ /** Resource IDs that were added. */
434
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList = Array<string>;
435
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList>;
436
+ /** Resource IDs that were removed. */
437
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList = Array<string>;
438
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList>;
439
+ /** The full set of resource IDs after the change. */
440
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList = Array<string>;
441
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList>;
442
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
443
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem {
444
+ /** The alias of the product that was changed. */
445
+ productAlias: string;
446
+ /** The ID of the product that was changed. */
447
+ productId: string;
448
+ /** The resulting quantity after this change. */
449
+ quantity: number;
450
+ /** Resource IDs that were added. */
451
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemAddedResourceIdsList;
452
+ /** When this resource change should take effect for downstream consumers. */
453
+ effectiveAt?: string;
454
+ /** Resource IDs that were removed. */
455
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemRemovedResourceIdsList;
456
+ /** The full set of resource IDs after the change. */
457
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItemResourceIdsList;
458
+ }
459
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem>;
460
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
461
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList = Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesItem>;
462
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList>;
463
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
464
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap = {
465
+ [key: string]: string | undefined;
466
+ };
467
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap>;
468
+ /** Output returned after configuring an OrbSubscriptionIntent. */
469
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output {
470
+ /** When the subscription change should take effect. */
471
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputEffectiveBehavior;
472
+ /** The Orb price ID for the subscription item being modified. */
473
+ orbPriceId: string;
474
+ /** The product ID associated with this intent. */
475
+ productId: string;
476
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
477
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputChangedResourcesList;
478
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
479
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0OutputMetadataMap;
480
+ /** The ID of the pending subscription change if there is one. */
481
+ pendingSubscriptionChangeId?: string;
482
+ }
483
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output>;
484
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type = "set_plan_item_quantity";
485
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type: any;
486
+ /** Configuration for the Orb subscription intent. */
487
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0 {
488
+ /** Configuration input options for setting plan item quantity. */
489
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Options;
490
+ /** Output returned after configuring an OrbSubscriptionIntent. */
491
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Output;
492
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0Type;
493
+ }
494
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0>;
495
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
496
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList = Array<string>;
497
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList>;
498
+ /** Configuration input options for increasing plan item quantity. */
499
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options {
500
+ /** The alias of the product to increase quantity for. */
501
+ productAlias: string;
502
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
503
+ resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OptionsResourceIdsList;
504
+ }
505
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options>;
506
+ /** When the subscription change should take effect. */
507
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior = "end_of_term" | "immediate";
508
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior: any;
509
+ /** Resource IDs that were added. */
510
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList = Array<string>;
511
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList>;
512
+ /** Resource IDs that were removed. */
513
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList = Array<string>;
514
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList>;
515
+ /** The full set of resource IDs after the change. */
516
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList = Array<string>;
517
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList>;
518
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
519
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem {
520
+ /** The alias of the product that was changed. */
521
+ productAlias: string;
522
+ /** The ID of the product that was changed. */
523
+ productId: string;
524
+ /** The resulting quantity after this change. */
525
+ quantity: number;
526
+ /** Resource IDs that were added. */
527
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemAddedResourceIdsList;
528
+ /** When this resource change should take effect for downstream consumers. */
529
+ effectiveAt?: string;
530
+ /** Resource IDs that were removed. */
531
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemRemovedResourceIdsList;
532
+ /** The full set of resource IDs after the change. */
533
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItemResourceIdsList;
534
+ }
535
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem>;
536
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
537
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList = Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesItem>;
538
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList>;
539
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
540
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap = {
541
+ [key: string]: string | undefined;
542
+ };
543
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap>;
544
+ /** Output returned after configuring an OrbSubscriptionIntent. */
545
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output {
546
+ /** When the subscription change should take effect. */
547
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputEffectiveBehavior;
548
+ /** The Orb price ID for the subscription item being modified. */
549
+ orbPriceId: string;
550
+ /** The product ID associated with this intent. */
551
+ productId: string;
552
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
553
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputChangedResourcesList;
554
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
555
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1OutputMetadataMap;
556
+ /** The ID of the pending subscription change if there is one. */
557
+ pendingSubscriptionChangeId?: string;
558
+ }
559
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output>;
560
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type = "increase_plan_item_quantity";
561
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type: any;
562
+ /** Configuration for the Orb subscription intent. */
563
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1 {
564
+ /** Configuration input options for increasing plan item quantity. */
565
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Options;
566
+ /** Output returned after configuring an OrbSubscriptionIntent. */
567
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Output;
568
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1Type;
569
+ }
570
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1>;
571
+ /** The resource IDs to decrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
572
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList = Array<string>;
573
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList>;
574
+ /** Configuration input options for decreasing plan item quantity. */
575
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options {
576
+ /** The alias of the product to decrease quantity for. */
577
+ productAlias: string;
578
+ /** The resource IDs to decrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
579
+ resourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OptionsResourceIdsList;
580
+ }
581
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options>;
582
+ /** When the subscription change should take effect. */
583
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior = "end_of_term" | "immediate";
584
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior: any;
585
+ /** Resource IDs that were added. */
586
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList = Array<string>;
587
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList>;
588
+ /** Resource IDs that were removed. */
589
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList = Array<string>;
590
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList>;
591
+ /** The full set of resource IDs after the change. */
592
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList = Array<string>;
593
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList>;
594
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
595
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem {
596
+ /** The alias of the product that was changed. */
597
+ productAlias: string;
598
+ /** The ID of the product that was changed. */
599
+ productId: string;
600
+ /** The resulting quantity after this change. */
601
+ quantity: number;
602
+ /** Resource IDs that were added. */
603
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemAddedResourceIdsList;
604
+ /** When this resource change should take effect for downstream consumers. */
605
+ effectiveAt?: string;
606
+ /** Resource IDs that were removed. */
607
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemRemovedResourceIdsList;
608
+ /** The full set of resource IDs after the change. */
609
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItemResourceIdsList;
610
+ }
611
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem>;
612
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
613
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList = Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesItem>;
614
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList>;
615
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
616
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap = {
617
+ [key: string]: string | undefined;
618
+ };
619
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap>;
620
+ /** Output returned after configuring an OrbSubscriptionIntent. */
621
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output {
622
+ /** When the subscription change should take effect. */
623
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputEffectiveBehavior;
624
+ /** The Orb price ID for the subscription item being modified. */
625
+ orbPriceId: string;
626
+ /** The product ID associated with this intent. */
627
+ productId: string;
628
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
629
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputChangedResourcesList;
630
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
631
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2OutputMetadataMap;
632
+ /** The ID of the pending subscription change if there is one. */
633
+ pendingSubscriptionChangeId?: string;
634
+ }
635
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output>;
636
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type = "decrease_plan_item_quantity";
637
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type: any;
638
+ /** Configuration for the Orb subscription intent. */
639
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2 {
640
+ /** Configuration input options for decreasing plan item quantity. */
641
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Options;
642
+ /** Output returned after configuring an OrbSubscriptionIntent. */
643
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Output;
644
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2Type;
645
+ }
646
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2>;
647
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
648
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList = Array<string>;
649
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList>;
650
+ /** The resource IDs to incrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
651
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList = Array<string>;
652
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList>;
653
+ /** Configuration input options for adjusting plan item quantity. */
654
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options {
655
+ /** The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs. */
656
+ addedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsAddedResourceIdsList;
657
+ /** The alias of the product to adjust quantity for. */
658
+ productAlias: string;
659
+ /** The resource IDs to incrementally remove. The quantity of the plan item will be decreased by the number of resource IDs. */
660
+ removedResourceIds: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OptionsRemovedResourceIdsList;
661
+ }
662
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options>;
663
+ /** When the subscription change should take effect. */
664
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior = "end_of_term" | "immediate";
665
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior: any;
666
+ /** Resource IDs that were added. */
667
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList = Array<string>;
668
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList>;
669
+ /** Resource IDs that were removed. */
670
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList = Array<string>;
671
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList>;
672
+ /** The full set of resource IDs after the change. */
673
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList = Array<string>;
674
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList>;
675
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
676
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem {
677
+ /** The alias of the product that was changed. */
678
+ productAlias: string;
679
+ /** The ID of the product that was changed. */
680
+ productId: string;
681
+ /** The resulting quantity after this change. */
682
+ quantity: number;
683
+ /** Resource IDs that were added. */
684
+ addedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemAddedResourceIdsList;
685
+ /** When this resource change should take effect for downstream consumers. */
686
+ effectiveAt?: string;
687
+ /** Resource IDs that were removed. */
688
+ removedResourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemRemovedResourceIdsList;
689
+ /** The full set of resource IDs after the change. */
690
+ resourceIds?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItemResourceIdsList;
691
+ }
692
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem>;
693
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
694
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList = Array<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesItem>;
695
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList>;
696
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
697
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap = {
698
+ [key: string]: string | undefined;
699
+ };
700
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap>;
701
+ /** Output returned after configuring an OrbSubscriptionIntent. */
702
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output {
703
+ /** When the subscription change should take effect. */
704
+ effectiveBehavior: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputEffectiveBehavior;
705
+ /** The Orb price ID for the subscription item being modified. */
706
+ orbPriceId: string;
707
+ /** The product ID associated with this intent. */
708
+ productId: string;
709
+ /** Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects. */
710
+ changedResources?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputChangedResourcesList;
711
+ /** Optional metadata associated with the intent to update the Orb subscription with. */
712
+ metadata?: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3OutputMetadataMap;
713
+ /** The ID of the pending subscription change if there is one. */
714
+ pendingSubscriptionChangeId?: string;
715
+ }
716
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output>;
717
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type = "adjust_plan_item_quantity";
718
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type: any;
719
+ /** Configuration for the Orb subscription intent. */
720
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3 {
721
+ /** Configuration input options for adjusting plan item quantity. */
722
+ options: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Options;
723
+ /** Output returned after configuring an OrbSubscriptionIntent. */
724
+ output: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Output;
725
+ type: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3Type;
726
+ }
727
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3>;
728
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration = BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase0 | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase1 | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase2 | BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfigurationCase3;
729
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration>;
730
+ /** The status of the Orb subscription intent. */
731
+ export type BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus = "failed" | "pending" | "succeeded";
732
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus: any;
733
+ export interface BuyCreditsResponseBodyCase2OrbSubscriptionIntent {
734
+ /** The ID of the Orb subscription intent with the format `orbsubint_`. */
735
+ id: string;
736
+ configuration: BuyCreditsResponseBodyCase2OrbSubscriptionIntentConfiguration;
737
+ /** The ISO 8601 date-time that the intent was created. */
738
+ createdAt: string;
739
+ /** The Orb subscription ID this intent is associated with. */
740
+ orbSubscriptionId: string;
741
+ /** The owner ID for this intent (e.g., team or user ID). */
742
+ ownerId: string;
743
+ /** The status of the Orb subscription intent. */
744
+ status: BuyCreditsResponseBodyCase2OrbSubscriptionIntentStatus;
745
+ /** The ISO 8601 date-time that the intent was last updated. */
746
+ updatedAt: string;
747
+ /** Optional purchase intent ID if this is associated with a purchase. */
748
+ purchaseIntentId?: string;
749
+ }
750
+ export declare const BuyCreditsResponseBodyCase2OrbSubscriptionIntent: S.Schema<BuyCreditsResponseBodyCase2OrbSubscriptionIntent>;
751
+ export interface BuyCreditsResponseBodyCase2 {
752
+ orbSubscriptionIntent: BuyCreditsResponseBodyCase2OrbSubscriptionIntent;
753
+ }
754
+ export declare const BuyCreditsResponseBodyCase2: S.Schema<BuyCreditsResponseBodyCase2>;
755
+ export type BuyCreditsResponseBody = BuyCreditsResponseBodyCase0 | BuyCreditsResponseBodyCase1 | BuyCreditsResponseBodyCase2;
756
+ export declare const BuyCreditsResponseBody: S.Schema<BuyCreditsResponseBody>;
757
+ export type BuyCreditsResponse = BuyCreditsResponseBody;
758
+ export declare const BuyCreditsResponse: S.Schema<BuyCreditsResponse>;
759
+ export interface ListBillingChargesRequest {
760
+ /** Inclusive start of the date range as an ISO 8601 date-time string in UTC. */
761
+ from: string;
762
+ /** Exclusive end of the date range as an ISO 8601 date-time string in UTC. */
763
+ to: string;
764
+ /** The Team identifier to perform the request on behalf of. */
765
+ teamId?: string;
766
+ /** The Team slug to perform the request on behalf of. */
767
+ slug?: string;
768
+ }
769
+ export declare const ListBillingChargesRequest: S.Schema<ListBillingChargesRequest>;
770
+ export interface ListBillingChargesResponse {
771
+ }
772
+ export declare const ListBillingChargesResponse: S.Schema<ListBillingChargesResponse>;
773
+ export interface ListContractCommitmentsRequest {
774
+ /** The Team identifier to perform the request on behalf of. */
775
+ teamId?: string;
776
+ /** The Team slug to perform the request on behalf of. */
777
+ slug?: string;
778
+ }
779
+ export declare const ListContractCommitmentsRequest: S.Schema<ListContractCommitmentsRequest>;
780
+ export interface ListContractCommitmentsResponse {
781
+ }
782
+ export declare const ListContractCommitmentsResponse: S.Schema<ListContractCommitmentsResponse>;
783
+ export type BuyCreditsError = BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
784
+ /** 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. */
785
+ export declare const buyCredits: API.OperationMethod<BuyCreditsRequest, BuyCreditsResponse, BuyCreditsError, VercelOpContext>;
786
+ export type ListBillingChargesError = BadRequest | Forbidden | NotFound | VercelOpError;
787
+ /** 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. */
788
+ export declare const listBillingCharges: API.OperationMethod<ListBillingChargesRequest, ListBillingChargesResponse, ListBillingChargesError, VercelOpContext>;
789
+ export type ListContractCommitmentsError = BadRequest | Forbidden | NotFound | VercelOpError;
790
+ /** 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. */
791
+ export declare const listContractCommitments: API.OperationMethod<ListContractCommitmentsRequest, ListContractCommitmentsResponse, ListContractCommitmentsError, VercelOpContext>;
792
+ //# sourceMappingURL=billing.d.ts.map