@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.21

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 (274) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v1/addons/addons.d.mts +143 -33
  4. package/resources/v1/addons/addons.d.mts.map +1 -1
  5. package/resources/v1/addons/addons.d.ts +143 -33
  6. package/resources/v1/addons/addons.d.ts.map +1 -1
  7. package/resources/v1/addons/addons.js +110 -17
  8. package/resources/v1/addons/addons.js.map +1 -1
  9. package/resources/v1/addons/addons.mjs +110 -17
  10. package/resources/v1/addons/addons.mjs.map +1 -1
  11. package/resources/v1/addons/entitlements.d.mts +62 -5
  12. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  13. package/resources/v1/addons/entitlements.d.ts +62 -5
  14. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  15. package/resources/v1/addons/entitlements.js +49 -8
  16. package/resources/v1/addons/entitlements.js.map +1 -1
  17. package/resources/v1/addons/entitlements.mjs +49 -8
  18. package/resources/v1/addons/entitlements.mjs.map +1 -1
  19. package/resources/v1/addons/index.d.mts +2 -2
  20. package/resources/v1/addons/index.d.mts.map +1 -1
  21. package/resources/v1/addons/index.d.ts +2 -2
  22. package/resources/v1/addons/index.d.ts.map +1 -1
  23. package/resources/v1/addons/index.js.map +1 -1
  24. package/resources/v1/addons/index.mjs.map +1 -1
  25. package/resources/v1/coupons.d.mts +80 -20
  26. package/resources/v1/coupons.d.mts.map +1 -1
  27. package/resources/v1/coupons.d.ts +80 -20
  28. package/resources/v1/coupons.d.ts.map +1 -1
  29. package/resources/v1/coupons.js +60 -9
  30. package/resources/v1/coupons.js.map +1 -1
  31. package/resources/v1/coupons.mjs +60 -9
  32. package/resources/v1/coupons.mjs.map +1 -1
  33. package/resources/v1/credits/credits.d.mts +59 -26
  34. package/resources/v1/credits/credits.d.mts.map +1 -1
  35. package/resources/v1/credits/credits.d.ts +59 -26
  36. package/resources/v1/credits/credits.d.ts.map +1 -1
  37. package/resources/v1/credits/credits.js +36 -5
  38. package/resources/v1/credits/credits.js.map +1 -1
  39. package/resources/v1/credits/credits.mjs +36 -5
  40. package/resources/v1/credits/credits.mjs.map +1 -1
  41. package/resources/v1/credits/custom-currencies.d.mts +96 -23
  42. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  43. package/resources/v1/credits/custom-currencies.d.ts +96 -23
  44. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  45. package/resources/v1/credits/custom-currencies.js +76 -12
  46. package/resources/v1/credits/custom-currencies.js.map +1 -1
  47. package/resources/v1/credits/custom-currencies.mjs +76 -12
  48. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  49. package/resources/v1/credits/grants.d.mts +60 -23
  50. package/resources/v1/credits/grants.d.mts.map +1 -1
  51. package/resources/v1/credits/grants.d.ts +60 -23
  52. package/resources/v1/credits/grants.d.ts.map +1 -1
  53. package/resources/v1/credits/grants.js +35 -5
  54. package/resources/v1/credits/grants.js.map +1 -1
  55. package/resources/v1/credits/grants.mjs +35 -5
  56. package/resources/v1/credits/grants.mjs.map +1 -1
  57. package/resources/v1/credits/index.d.mts +2 -2
  58. package/resources/v1/credits/index.d.mts.map +1 -1
  59. package/resources/v1/credits/index.d.ts +2 -2
  60. package/resources/v1/credits/index.d.ts.map +1 -1
  61. package/resources/v1/credits/index.js.map +1 -1
  62. package/resources/v1/credits/index.mjs.map +1 -1
  63. package/resources/v1/customers/customers.d.mts +165 -48
  64. package/resources/v1/customers/customers.d.mts.map +1 -1
  65. package/resources/v1/customers/customers.d.ts +165 -48
  66. package/resources/v1/customers/customers.d.ts.map +1 -1
  67. package/resources/v1/customers/customers.js +124 -19
  68. package/resources/v1/customers/customers.js.map +1 -1
  69. package/resources/v1/customers/customers.mjs +124 -19
  70. package/resources/v1/customers/customers.mjs.map +1 -1
  71. package/resources/v1/customers/index.d.mts +2 -2
  72. package/resources/v1/customers/index.d.mts.map +1 -1
  73. package/resources/v1/customers/index.d.ts +2 -2
  74. package/resources/v1/customers/index.d.ts.map +1 -1
  75. package/resources/v1/customers/index.js.map +1 -1
  76. package/resources/v1/customers/index.mjs +1 -1
  77. package/resources/v1/customers/index.mjs.map +1 -1
  78. package/resources/v1/customers/integrations.d.mts +64 -9
  79. package/resources/v1/customers/integrations.d.mts.map +1 -1
  80. package/resources/v1/customers/integrations.d.ts +64 -9
  81. package/resources/v1/customers/integrations.d.ts.map +1 -1
  82. package/resources/v1/customers/integrations.js +57 -9
  83. package/resources/v1/customers/integrations.js.map +1 -1
  84. package/resources/v1/customers/integrations.mjs +57 -9
  85. package/resources/v1/customers/integrations.mjs.map +1 -1
  86. package/resources/v1/customers/payment-method.d.mts +31 -7
  87. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  88. package/resources/v1/customers/payment-method.d.ts +31 -7
  89. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  90. package/resources/v1/customers/payment-method.js +26 -4
  91. package/resources/v1/customers/payment-method.js.map +1 -1
  92. package/resources/v1/customers/payment-method.mjs +26 -4
  93. package/resources/v1/customers/payment-method.mjs.map +1 -1
  94. package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
  95. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  96. package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
  97. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  98. package/resources/v1/customers/promotional-entitlements.js +38 -6
  99. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  100. package/resources/v1/customers/promotional-entitlements.mjs +38 -6
  101. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  102. package/resources/v1/events/beta/customers/assignments.d.mts +27 -5
  103. package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -1
  104. package/resources/v1/events/beta/customers/assignments.d.ts +27 -5
  105. package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -1
  106. package/resources/v1/events/beta/customers/assignments.js +27 -4
  107. package/resources/v1/events/beta/customers/assignments.js.map +1 -1
  108. package/resources/v1/events/beta/customers/assignments.mjs +27 -4
  109. package/resources/v1/events/beta/customers/assignments.mjs.map +1 -1
  110. package/resources/v1/events/beta/customers/entities.d.mts +66 -10
  111. package/resources/v1/events/beta/customers/entities.d.mts.map +1 -1
  112. package/resources/v1/events/beta/customers/entities.d.ts +66 -10
  113. package/resources/v1/events/beta/customers/entities.d.ts.map +1 -1
  114. package/resources/v1/events/beta/customers/entities.js +64 -10
  115. package/resources/v1/events/beta/customers/entities.js.map +1 -1
  116. package/resources/v1/events/beta/customers/entities.mjs +64 -10
  117. package/resources/v1/events/beta/customers/entities.mjs.map +1 -1
  118. package/resources/v1/events/beta/customers/entitlements.d.mts +23 -10
  119. package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -1
  120. package/resources/v1/events/beta/customers/entitlements.d.ts +23 -10
  121. package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -1
  122. package/resources/v1/events/beta/customers/entitlements.js +14 -2
  123. package/resources/v1/events/beta/customers/entitlements.js.map +1 -1
  124. package/resources/v1/events/beta/customers/entitlements.mjs +14 -2
  125. package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -1
  126. package/resources/v1/events/beta/entity-types.d.mts +25 -3
  127. package/resources/v1/events/beta/entity-types.d.mts.map +1 -1
  128. package/resources/v1/events/beta/entity-types.d.ts +25 -3
  129. package/resources/v1/events/beta/entity-types.d.ts.map +1 -1
  130. package/resources/v1/events/beta/entity-types.js +23 -3
  131. package/resources/v1/events/beta/entity-types.js.map +1 -1
  132. package/resources/v1/events/beta/entity-types.mjs +23 -3
  133. package/resources/v1/events/beta/entity-types.mjs.map +1 -1
  134. package/resources/v1/events/events.d.mts +13 -2
  135. package/resources/v1/events/events.d.mts.map +1 -1
  136. package/resources/v1/events/events.d.ts +13 -2
  137. package/resources/v1/events/events.d.ts.map +1 -1
  138. package/resources/v1/events/events.js +14 -2
  139. package/resources/v1/events/events.js.map +1 -1
  140. package/resources/v1/events/events.mjs +14 -2
  141. package/resources/v1/events/events.mjs.map +1 -1
  142. package/resources/v1/features.d.mts +108 -30
  143. package/resources/v1/features.d.mts.map +1 -1
  144. package/resources/v1/features.d.ts +108 -30
  145. package/resources/v1/features.d.ts.map +1 -1
  146. package/resources/v1/features.js +72 -11
  147. package/resources/v1/features.js.map +1 -1
  148. package/resources/v1/features.mjs +72 -11
  149. package/resources/v1/features.mjs.map +1 -1
  150. package/resources/v1/index.d.mts +7 -7
  151. package/resources/v1/index.d.mts.map +1 -1
  152. package/resources/v1/index.d.ts +7 -7
  153. package/resources/v1/index.d.ts.map +1 -1
  154. package/resources/v1/index.js.map +1 -1
  155. package/resources/v1/index.mjs.map +1 -1
  156. package/resources/v1/plans/entitlements.d.mts +62 -5
  157. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  158. package/resources/v1/plans/entitlements.d.ts +62 -5
  159. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  160. package/resources/v1/plans/entitlements.js +49 -8
  161. package/resources/v1/plans/entitlements.js.map +1 -1
  162. package/resources/v1/plans/entitlements.mjs +49 -8
  163. package/resources/v1/plans/entitlements.mjs.map +1 -1
  164. package/resources/v1/plans/index.d.mts +2 -2
  165. package/resources/v1/plans/index.d.mts.map +1 -1
  166. package/resources/v1/plans/index.d.ts +2 -2
  167. package/resources/v1/plans/index.d.ts.map +1 -1
  168. package/resources/v1/plans/index.js.map +1 -1
  169. package/resources/v1/plans/index.mjs.map +1 -1
  170. package/resources/v1/plans/plans.d.mts +156 -34
  171. package/resources/v1/plans/plans.d.mts.map +1 -1
  172. package/resources/v1/plans/plans.d.ts +156 -34
  173. package/resources/v1/plans/plans.d.ts.map +1 -1
  174. package/resources/v1/plans/plans.js +127 -20
  175. package/resources/v1/plans/plans.js.map +1 -1
  176. package/resources/v1/plans/plans.mjs +127 -20
  177. package/resources/v1/plans/plans.mjs.map +1 -1
  178. package/resources/v1/products.d.mts +97 -23
  179. package/resources/v1/products.d.mts.map +1 -1
  180. package/resources/v1/products.d.ts +97 -23
  181. package/resources/v1/products.d.ts.map +1 -1
  182. package/resources/v1/products.js +73 -11
  183. package/resources/v1/products.js.map +1 -1
  184. package/resources/v1/products.mjs +73 -11
  185. package/resources/v1/products.mjs.map +1 -1
  186. package/resources/v1/subscriptions/future-update.d.mts +29 -3
  187. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  188. package/resources/v1/subscriptions/future-update.d.ts +29 -3
  189. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  190. package/resources/v1/subscriptions/future-update.js +25 -4
  191. package/resources/v1/subscriptions/future-update.js.map +1 -1
  192. package/resources/v1/subscriptions/future-update.mjs +25 -4
  193. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  194. package/resources/v1/subscriptions/index.d.mts +4 -4
  195. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  196. package/resources/v1/subscriptions/index.d.ts +4 -4
  197. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  198. package/resources/v1/subscriptions/index.js.map +1 -1
  199. package/resources/v1/subscriptions/index.mjs +1 -1
  200. package/resources/v1/subscriptions/index.mjs.map +1 -1
  201. package/resources/v1/subscriptions/invoice.d.mts +15 -2
  202. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  203. package/resources/v1/subscriptions/invoice.d.ts +15 -2
  204. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  205. package/resources/v1/subscriptions/invoice.js +13 -2
  206. package/resources/v1/subscriptions/invoice.js.map +1 -1
  207. package/resources/v1/subscriptions/invoice.mjs +13 -2
  208. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  209. package/resources/v1/subscriptions/subscriptions.d.mts +242 -78
  210. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  211. package/resources/v1/subscriptions/subscriptions.d.ts +242 -78
  212. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  213. package/resources/v1/subscriptions/subscriptions.js +126 -19
  214. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  215. package/resources/v1/subscriptions/subscriptions.mjs +128 -21
  216. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  217. package/resources/v1/subscriptions/usage.d.mts +29 -4
  218. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  219. package/resources/v1/subscriptions/usage.d.ts +29 -4
  220. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  221. package/resources/v1/subscriptions/usage.js +26 -4
  222. package/resources/v1/subscriptions/usage.js.map +1 -1
  223. package/resources/v1/subscriptions/usage.mjs +26 -4
  224. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  225. package/resources/v1/usage.d.mts +24 -2
  226. package/resources/v1/usage.d.mts.map +1 -1
  227. package/resources/v1/usage.d.ts +24 -2
  228. package/resources/v1/usage.d.ts.map +1 -1
  229. package/resources/v1/usage.js +26 -4
  230. package/resources/v1/usage.js.map +1 -1
  231. package/resources/v1/usage.mjs +26 -4
  232. package/resources/v1/usage.mjs.map +1 -1
  233. package/resources/v1/v1.d.mts +14 -14
  234. package/resources/v1/v1.d.mts.map +1 -1
  235. package/resources/v1/v1.d.ts +14 -14
  236. package/resources/v1/v1.d.ts.map +1 -1
  237. package/resources/v1/v1.js.map +1 -1
  238. package/resources/v1/v1.mjs.map +1 -1
  239. package/src/resources/v1/addons/addons.ts +286 -39
  240. package/src/resources/v1/addons/entitlements.ts +123 -10
  241. package/src/resources/v1/addons/index.ts +5 -0
  242. package/src/resources/v1/coupons.ts +154 -23
  243. package/src/resources/v1/credits/credits.ts +102 -24
  244. package/src/resources/v1/credits/custom-currencies.ts +188 -30
  245. package/src/resources/v1/credits/grants.ts +102 -24
  246. package/src/resources/v1/credits/index.ts +4 -0
  247. package/src/resources/v1/customers/customers.ts +318 -57
  248. package/src/resources/v1/customers/index.ts +8 -1
  249. package/src/resources/v1/customers/integrations.ts +129 -16
  250. package/src/resources/v1/customers/payment-method.ts +66 -9
  251. package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
  252. package/src/resources/v1/events/beta/customers/assignments.ts +56 -7
  253. package/src/resources/v1/events/beta/customers/entities.ts +136 -16
  254. package/src/resources/v1/events/beta/customers/entitlements.ts +38 -11
  255. package/src/resources/v1/events/beta/entity-types.ts +51 -5
  256. package/src/resources/v1/events/events.ts +28 -3
  257. package/src/resources/v1/features.ts +204 -34
  258. package/src/resources/v1/index.ts +19 -0
  259. package/src/resources/v1/plans/entitlements.ts +123 -10
  260. package/src/resources/v1/plans/index.ts +5 -0
  261. package/src/resources/v1/plans/plans.ts +314 -43
  262. package/src/resources/v1/products.ts +189 -27
  263. package/src/resources/v1/subscriptions/future-update.ts +68 -5
  264. package/src/resources/v1/subscriptions/index.ts +9 -2
  265. package/src/resources/v1/subscriptions/invoice.ts +36 -3
  266. package/src/resources/v1/subscriptions/subscriptions.ts +410 -85
  267. package/src/resources/v1/subscriptions/usage.ts +61 -5
  268. package/src/resources/v1/usage.ts +53 -5
  269. package/src/resources/v1/v1.ts +38 -0
  270. package/src/version.ts +1 -1
  271. package/version.d.mts +1 -1
  272. package/version.d.ts +1 -1
  273. package/version.js +1 -1
  274. package/version.mjs +1 -1
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
3
4
  import { path } from "../../../internal/utils/path.mjs";
4
5
  export class Entitlements extends APIResource {
5
6
  /**
@@ -13,8 +14,19 @@ export class Entitlements extends APIResource {
13
14
  * });
14
15
  * ```
15
16
  */
16
- create(planID, body, options) {
17
- return this._client.post(path `/api/v1/plans/${planID}/entitlements`, { body, ...options });
17
+ create(planID, params, options) {
18
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
19
+ return this._client.post(path `/api/v1/plans/${planID}/entitlements`, {
20
+ body,
21
+ ...options,
22
+ headers: buildHeaders([
23
+ {
24
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
25
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
26
+ },
27
+ options?.headers,
28
+ ]),
29
+ });
18
30
  }
19
31
  /**
20
32
  * Updates an existing entitlement on a draft plan.
@@ -29,8 +41,18 @@ export class Entitlements extends APIResource {
29
41
  * ```
30
42
  */
31
43
  update(id, params, options) {
32
- const { planId, ...body } = params;
33
- return this._client.patch(path `/api/v1/plans/${planId}/entitlements/${id}`, { body, ...options });
44
+ const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
45
+ return this._client.patch(path `/api/v1/plans/${planId}/entitlements/${id}`, {
46
+ body,
47
+ ...options,
48
+ headers: buildHeaders([
49
+ {
50
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
51
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
52
+ },
53
+ options?.headers,
54
+ ]),
55
+ });
34
56
  }
35
57
  /**
36
58
  * Retrieves a list of entitlements for a plan.
@@ -41,8 +63,18 @@ export class Entitlements extends APIResource {
41
63
  * await client.v1.plans.entitlements.list('planId');
42
64
  * ```
43
65
  */
44
- list(planID, options) {
45
- return this._client.get(path `/api/v1/plans/${planID}/entitlements`, options);
66
+ list(planID, params = {}, options) {
67
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
68
+ return this._client.get(path `/api/v1/plans/${planID}/entitlements`, {
69
+ ...options,
70
+ headers: buildHeaders([
71
+ {
72
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
73
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
74
+ },
75
+ options?.headers,
76
+ ]),
77
+ });
46
78
  }
47
79
  /**
48
80
  * Deletes an entitlement from a draft plan.
@@ -56,8 +88,17 @@ export class Entitlements extends APIResource {
56
88
  * ```
57
89
  */
58
90
  delete(id, params, options) {
59
- const { planId } = params;
60
- return this._client.delete(path `/api/v1/plans/${planId}/entitlements/${id}`, options);
91
+ const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
92
+ return this._client.delete(path `/api/v1/plans/${planId}/entitlements/${id}`, {
93
+ ...options,
94
+ headers: buildHeaders([
95
+ {
96
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
97
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
98
+ },
99
+ options?.headers,
100
+ ]),
101
+ });
61
102
  }
62
103
  }
63
104
  //# sourceMappingURL=entitlements.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,MAA+B,EAAE,OAAwB;QAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,MAAM,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,MAAM,eAAe,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,MAA+B,EAAE,OAAwB;QAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,MAAM,iBAAiB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CACF"}
1
+ {"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":"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"}
@@ -1,3 +1,3 @@
1
- export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
2
- export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.mjs";
1
+ export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
2
+ export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanRetrieveParams, type PlanUpdateParams, type PlanListParams, type PlanArchiveParams, type PlanCreateDraftParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanRemoveDraftParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,oBAAgB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,oBAAgB"}
@@ -1,3 +1,3 @@
1
- export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.js";
2
- export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.js";
1
+ export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.js";
2
+ export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanRetrieveParams, type PlanUpdateParams, type PlanListParams, type PlanArchiveParams, type PlanCreateDraftParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanRemoveDraftParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,mBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,mBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAQwB;AAPtB,4GAAA,YAAY,OAAA;AAQd,oCAiBiB;AAhBf,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,oCAqBiB;AApBf,8FAAA,KAAK,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,YAAY,GAOb,2BAAuB;AACxB,OAAO,EACL,KAAK,GAgBN,oBAAgB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,KAAK,GAoBN,oBAAgB"}
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as EntitlementsAPI from "./entitlements.mjs";
3
- import { EntitlementCreateParams, EntitlementCreateResponse, EntitlementDeleteParams, EntitlementListResponse, EntitlementUpdateParams, Entitlements, PlanEntitlement } from "./entitlements.mjs";
3
+ import { EntitlementCreateParams, EntitlementCreateResponse, EntitlementDeleteParams, EntitlementListParams, EntitlementListResponse, EntitlementUpdateParams, Entitlements, PlanEntitlement } from "./entitlements.mjs";
4
4
  import { APIPromise } from "../../../core/api-promise.mjs";
5
5
  import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
6
6
  import { RequestOptions } from "../../../internal/request-options.mjs";
@@ -21,7 +21,7 @@ export declare class Plans extends APIResource {
21
21
  * });
22
22
  * ```
23
23
  */
24
- create(body: PlanCreateParams, options?: RequestOptions): APIPromise<Plan>;
24
+ create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan>;
25
25
  /**
26
26
  * Retrieves a plan by its unique identifier, including entitlements and pricing
27
27
  * details.
@@ -31,7 +31,7 @@ export declare class Plans extends APIResource {
31
31
  * const plan = await client.v1.plans.retrieve('x');
32
32
  * ```
33
33
  */
34
- retrieve(id: string, options?: RequestOptions): APIPromise<Plan>;
34
+ retrieve(id: string, params?: PlanRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
35
35
  /**
36
36
  * Updates an existing plan's properties such as display name, description, and
37
37
  * metadata.
@@ -41,7 +41,7 @@ export declare class Plans extends APIResource {
41
41
  * const plan = await client.v1.plans.update('x');
42
42
  * ```
43
43
  */
44
- update(id: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
44
+ update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
45
45
  /**
46
46
  * Retrieves a paginated list of plans in the environment.
47
47
  *
@@ -53,7 +53,7 @@ export declare class Plans extends APIResource {
53
53
  * }
54
54
  * ```
55
55
  */
56
- list(query?: PlanListParams | null | undefined, options?: RequestOptions): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse>;
56
+ list(params?: PlanListParams | null | undefined, options?: RequestOptions): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse>;
57
57
  /**
58
58
  * Archives a plan, preventing it from being used in new subscriptions.
59
59
  *
@@ -62,7 +62,7 @@ export declare class Plans extends APIResource {
62
62
  * const plan = await client.v1.plans.archive('x');
63
63
  * ```
64
64
  */
65
- archive(id: string, options?: RequestOptions): APIPromise<Plan>;
65
+ archive(id: string, params?: PlanArchiveParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
66
66
  /**
67
67
  * Creates a draft version of an existing plan for modification before publishing.
68
68
  *
@@ -71,7 +71,7 @@ export declare class Plans extends APIResource {
71
71
  * const plan = await client.v1.plans.createDraft('x');
72
72
  * ```
73
73
  */
74
- createDraft(id: string, options?: RequestOptions): APIPromise<Plan>;
74
+ createDraft(id: string, params?: PlanCreateDraftParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
75
75
  /**
76
76
  * Retrieves the list of charges configured on a plan.
77
77
  *
@@ -85,7 +85,7 @@ export declare class Plans extends APIResource {
85
85
  * }
86
86
  * ```
87
87
  */
88
- listCharges(id: string, query?: PlanListChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse>;
88
+ listCharges(id: string, params?: PlanListChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse>;
89
89
  /**
90
90
  * Retrieves the list of overage charges configured on a plan.
91
91
  *
@@ -99,7 +99,7 @@ export declare class Plans extends APIResource {
99
99
  * }
100
100
  * ```
101
101
  */
102
- listOverageCharges(id: string, query?: PlanListOverageChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse>;
102
+ listOverageCharges(id: string, params?: PlanListOverageChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse>;
103
103
  /**
104
104
  * Publishes a draft plan, making it available for use in subscriptions.
105
105
  *
@@ -110,7 +110,7 @@ export declare class Plans extends APIResource {
110
110
  * });
111
111
  * ```
112
112
  */
113
- publish(id: string, body: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse>;
113
+ publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse>;
114
114
  /**
115
115
  * Removes a draft version of a plan.
116
116
  *
@@ -119,7 +119,7 @@ export declare class Plans extends APIResource {
119
119
  * const response = await client.v1.plans.removeDraft('x');
120
120
  * ```
121
121
  */
122
- removeDraft(id: string, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse>;
122
+ removeDraft(id: string, params?: PlanRemoveDraftParams | null | undefined, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse>;
123
123
  }
124
124
  export type PlanListResponsesMyCursorIDPage = MyCursorIDPage<PlanListResponse>;
125
125
  export type PlanListChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListChargesResponse>;
@@ -725,47 +725,58 @@ export declare namespace PlanRemoveDraftResponse {
725
725
  }
726
726
  export interface PlanCreateParams {
727
727
  /**
728
- * The unique identifier for the entity
728
+ * Body param: The unique identifier for the entity
729
729
  */
730
730
  id: string;
731
731
  /**
732
- * The display name of the package
732
+ * Body param: The display name of the package
733
733
  */
734
734
  displayName: string;
735
735
  /**
736
- * The product ID to associate the plan with
736
+ * Body param: The product ID to associate the plan with
737
737
  */
738
738
  productId: string;
739
739
  /**
740
- * The unique identifier for the entity in the billing provider
740
+ * Body param: The unique identifier for the entity in the billing provider
741
741
  */
742
742
  billingId?: string | null;
743
743
  /**
744
- * Default trial configuration for the plan
744
+ * Body param: Default trial configuration for the plan
745
745
  */
746
746
  defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
747
747
  /**
748
- * The description of the package
748
+ * Body param: The description of the package
749
749
  */
750
750
  description?: string | null;
751
751
  /**
752
- * Metadata associated with the entity
752
+ * Body param: Metadata associated with the entity
753
753
  */
754
754
  metadata?: {
755
755
  [key: string]: string;
756
756
  };
757
757
  /**
758
- * The ID of the parent plan, if applicable
758
+ * Body param: The ID of the parent plan, if applicable
759
759
  */
760
760
  parentPlanId?: string | null;
761
761
  /**
762
- * The pricing type of the package
762
+ * Body param: The pricing type of the package
763
763
  */
764
764
  pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
765
765
  /**
766
- * The status of the package
766
+ * Body param: The status of the package
767
767
  */
768
768
  status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
769
+ /**
770
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
771
+ * token); falls back to the user's first membership. Ignored for API-key auth.
772
+ */
773
+ 'X-ACCOUNT-ID'?: string;
774
+ /**
775
+ * Header param: Environment ID — required when authenticating with a user JWT
776
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
777
+ * intrinsic to the key).
778
+ */
779
+ 'X-ENVIRONMENT-ID'?: string;
769
780
  }
770
781
  export declare namespace PlanCreateParams {
771
782
  /**
@@ -805,38 +816,65 @@ export declare namespace PlanCreateParams {
805
816
  }
806
817
  }
807
818
  }
819
+ export interface PlanRetrieveParams {
820
+ /**
821
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
822
+ * back to the user's first membership. Ignored for API-key auth.
823
+ */
824
+ 'X-ACCOUNT-ID'?: string;
825
+ /**
826
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
827
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
828
+ * key).
829
+ */
830
+ 'X-ENVIRONMENT-ID'?: string;
831
+ }
808
832
  export interface PlanUpdateParams {
809
833
  /**
810
- * The unique identifier for the entity in the billing provider
834
+ * Body param: The unique identifier for the entity in the billing provider
811
835
  */
812
836
  billingId?: string | null;
813
837
  /**
814
- * Pricing configuration to set on the plan draft
838
+ * Body param: Pricing configuration to set on the plan draft
815
839
  */
816
840
  charges?: PlanUpdateParams.Charges;
841
+ /**
842
+ * Body param
843
+ */
817
844
  compatibleAddonIds?: Array<string> | null;
818
845
  /**
819
- * Default trial configuration for the plan
846
+ * Body param: Default trial configuration for the plan
820
847
  */
821
848
  defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
822
849
  /**
823
- * The description of the package
850
+ * Body param: The description of the package
824
851
  */
825
852
  description?: string | null;
826
853
  /**
827
- * The display name of the package
854
+ * Body param: The display name of the package
828
855
  */
829
856
  displayName?: string;
830
857
  /**
831
- * Metadata associated with the entity
858
+ * Body param: Metadata associated with the entity
832
859
  */
833
860
  metadata?: {
834
861
  [key: string]: string;
835
862
  };
836
863
  /**
837
- * The ID of the parent plan, if applicable
864
+ * Body param: The ID of the parent plan, if applicable
838
865
  */
839
866
  parentPlanId?: string | null;
867
+ /**
868
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
869
+ * token); falls back to the user's first membership. Ignored for API-key auth.
870
+ */
871
+ 'X-ACCOUNT-ID'?: string;
872
+ /**
873
+ * Header param: Environment ID — required when authenticating with a user JWT
874
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
875
+ * intrinsic to the key).
876
+ */
877
+ 'X-ENVIRONMENT-ID'?: string;
840
878
  }
841
879
  export declare namespace PlanUpdateParams {
842
880
  /**
@@ -1336,17 +1374,29 @@ export declare namespace PlanUpdateParams {
1336
1374
  }
1337
1375
  export interface PlanListParams extends MyCursorIDPageParams {
1338
1376
  /**
1339
- * Filter by creation date using range operators: gt, gte, lt, lte
1377
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
1340
1378
  */
1341
1379
  createdAt?: PlanListParams.CreatedAt;
1342
1380
  /**
1343
- * Filter by product ID
1381
+ * Query param: Filter by product ID
1344
1382
  */
1345
1383
  productId?: string;
1346
1384
  /**
1347
- * Filter by status. Supports comma-separated values for multiple statuses
1385
+ * Query param: Filter by status. Supports comma-separated values for multiple
1386
+ * statuses
1348
1387
  */
1349
1388
  status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
1389
+ /**
1390
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1391
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1392
+ */
1393
+ 'X-ACCOUNT-ID'?: string;
1394
+ /**
1395
+ * Header param: Environment ID — required when authenticating with a user JWT
1396
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1397
+ * intrinsic to the key).
1398
+ */
1399
+ 'X-ENVIRONMENT-ID'?: string;
1350
1400
  }
1351
1401
  export declare namespace PlanListParams {
1352
1402
  /**
@@ -1371,18 +1421,90 @@ export declare namespace PlanListParams {
1371
1421
  lte?: string;
1372
1422
  }
1373
1423
  }
1424
+ export interface PlanArchiveParams {
1425
+ /**
1426
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1427
+ * back to the user's first membership. Ignored for API-key auth.
1428
+ */
1429
+ 'X-ACCOUNT-ID'?: string;
1430
+ /**
1431
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1432
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1433
+ * key).
1434
+ */
1435
+ 'X-ENVIRONMENT-ID'?: string;
1436
+ }
1437
+ export interface PlanCreateDraftParams {
1438
+ /**
1439
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1440
+ * back to the user's first membership. Ignored for API-key auth.
1441
+ */
1442
+ 'X-ACCOUNT-ID'?: string;
1443
+ /**
1444
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1445
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1446
+ * key).
1447
+ */
1448
+ 'X-ENVIRONMENT-ID'?: string;
1449
+ }
1374
1450
  export interface PlanListChargesParams extends MyCursorIDPageParams {
1451
+ /**
1452
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1453
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1454
+ */
1455
+ 'X-ACCOUNT-ID'?: string;
1456
+ /**
1457
+ * Header param: Environment ID — required when authenticating with a user JWT
1458
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1459
+ * intrinsic to the key).
1460
+ */
1461
+ 'X-ENVIRONMENT-ID'?: string;
1375
1462
  }
1376
1463
  export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
1464
+ /**
1465
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1466
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1467
+ */
1468
+ 'X-ACCOUNT-ID'?: string;
1469
+ /**
1470
+ * Header param: Environment ID — required when authenticating with a user JWT
1471
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1472
+ * intrinsic to the key).
1473
+ */
1474
+ 'X-ENVIRONMENT-ID'?: string;
1377
1475
  }
1378
1476
  export interface PlanPublishParams {
1379
1477
  /**
1380
- * The migration type of the package
1478
+ * Body param: The migration type of the package
1381
1479
  */
1382
1480
  migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
1481
+ /**
1482
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1483
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1484
+ */
1485
+ 'X-ACCOUNT-ID'?: string;
1486
+ /**
1487
+ * Header param: Environment ID — required when authenticating with a user JWT
1488
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1489
+ * intrinsic to the key).
1490
+ */
1491
+ 'X-ENVIRONMENT-ID'?: string;
1492
+ }
1493
+ export interface PlanRemoveDraftParams {
1494
+ /**
1495
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1496
+ * back to the user's first membership. Ignored for API-key auth.
1497
+ */
1498
+ 'X-ACCOUNT-ID'?: string;
1499
+ /**
1500
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1501
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1502
+ * key).
1503
+ */
1504
+ 'X-ENVIRONMENT-ID'?: string;
1383
1505
  }
1384
1506
  export declare namespace Plans {
1385
- export { type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, };
1386
- export { Entitlements as Entitlements, type PlanEntitlement as PlanEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
1507
+ export { type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanRetrieveParams as PlanRetrieveParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanArchiveParams as PlanArchiveParams, type PlanCreateDraftParams as PlanCreateDraftParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, type PlanRemoveDraftParams as PlanRemoveDraftParams, };
1508
+ export { Entitlements as Entitlements, type PlanEntitlement as PlanEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementListParams as EntitlementListParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
1387
1509
  }
1388
1510
  //# sourceMappingURL=plans.d.mts.map