@stigg/typescript 0.1.0-alpha.3 → 0.1.0-alpha.30

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 (456) hide show
  1. package/CHANGELOG.md +398 -0
  2. package/README.md +9 -0
  3. package/client.d.mts +10 -9
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +10 -9
  6. package/client.d.ts.map +1 -1
  7. package/client.js +32 -26
  8. package/client.js.map +1 -1
  9. package/client.mjs +33 -27
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/internal/qs/formats.d.mts +7 -0
  18. package/internal/qs/formats.d.mts.map +1 -0
  19. package/internal/qs/formats.d.ts +7 -0
  20. package/internal/qs/formats.d.ts.map +1 -0
  21. package/internal/qs/formats.js +13 -0
  22. package/internal/qs/formats.js.map +1 -0
  23. package/internal/qs/formats.mjs +9 -0
  24. package/internal/qs/formats.mjs.map +1 -0
  25. package/internal/qs/index.d.mts +10 -0
  26. package/internal/qs/index.d.mts.map +1 -0
  27. package/internal/qs/index.d.ts +10 -0
  28. package/internal/qs/index.d.ts.map +1 -0
  29. package/internal/qs/index.js +14 -0
  30. package/internal/qs/index.js.map +1 -0
  31. package/internal/qs/index.mjs +10 -0
  32. package/internal/qs/index.mjs.map +1 -0
  33. package/internal/qs/stringify.d.mts +3 -0
  34. package/internal/qs/stringify.d.mts.map +1 -0
  35. package/internal/qs/stringify.d.ts +3 -0
  36. package/internal/qs/stringify.d.ts.map +1 -0
  37. package/internal/qs/stringify.js +277 -0
  38. package/internal/qs/stringify.js.map +1 -0
  39. package/internal/qs/stringify.mjs +274 -0
  40. package/internal/qs/stringify.mjs.map +1 -0
  41. package/internal/qs/types.d.mts +57 -0
  42. package/internal/qs/types.d.mts.map +1 -0
  43. package/internal/qs/types.d.ts +57 -0
  44. package/internal/qs/types.d.ts.map +1 -0
  45. package/internal/qs/types.js +3 -0
  46. package/internal/qs/types.js.map +1 -0
  47. package/internal/qs/types.mjs +2 -0
  48. package/internal/qs/types.mjs.map +1 -0
  49. package/internal/qs/utils.d.mts +15 -0
  50. package/internal/qs/utils.d.mts.map +1 -0
  51. package/internal/qs/utils.d.ts +15 -0
  52. package/internal/qs/utils.d.ts.map +1 -0
  53. package/internal/qs/utils.js +230 -0
  54. package/internal/qs/utils.js.map +1 -0
  55. package/internal/qs/utils.mjs +217 -0
  56. package/internal/qs/utils.mjs.map +1 -0
  57. package/internal/tslib.js +17 -17
  58. package/internal/utils/env.js +2 -2
  59. package/internal/utils/env.js.map +1 -1
  60. package/internal/utils/env.mjs +2 -2
  61. package/internal/utils/env.mjs.map +1 -1
  62. package/internal/utils/query.d.mts +2 -0
  63. package/internal/utils/query.d.mts.map +1 -0
  64. package/internal/utils/query.d.ts +2 -0
  65. package/internal/utils/query.d.ts.map +1 -0
  66. package/internal/utils/query.js +10 -0
  67. package/internal/utils/query.js.map +1 -0
  68. package/internal/utils/query.mjs +6 -0
  69. package/internal/utils/query.mjs.map +1 -0
  70. package/internal/utils.d.mts +1 -0
  71. package/internal/utils.d.ts +1 -0
  72. package/internal/utils.js +1 -0
  73. package/internal/utils.js.map +1 -1
  74. package/internal/utils.mjs +1 -0
  75. package/package.json +12 -1
  76. package/resources/index.d.mts +2 -1
  77. package/resources/index.d.mts.map +1 -1
  78. package/resources/index.d.ts +2 -1
  79. package/resources/index.d.ts.map +1 -1
  80. package/resources/index.js +3 -1
  81. package/resources/index.js.map +1 -1
  82. package/resources/index.mjs +2 -1
  83. package/resources/index.mjs.map +1 -1
  84. package/resources/internal/beta/beta.d.mts +10 -0
  85. package/resources/internal/beta/beta.d.mts.map +1 -0
  86. package/resources/internal/beta/beta.d.ts +10 -0
  87. package/resources/internal/beta/beta.d.ts.map +1 -0
  88. package/resources/internal/beta/beta.js +17 -0
  89. package/resources/internal/beta/beta.js.map +1 -0
  90. package/resources/internal/beta/beta.mjs +12 -0
  91. package/resources/internal/beta/beta.mjs.map +1 -0
  92. package/resources/internal/beta/event-queues.d.mts +171 -0
  93. package/resources/internal/beta/event-queues.d.mts.map +1 -0
  94. package/resources/internal/beta/event-queues.d.ts +171 -0
  95. package/resources/internal/beta/event-queues.d.ts.map +1 -0
  96. package/resources/internal/beta/event-queues.js +40 -0
  97. package/resources/internal/beta/event-queues.js.map +1 -0
  98. package/resources/internal/beta/event-queues.mjs +36 -0
  99. package/resources/internal/beta/event-queues.mjs.map +1 -0
  100. package/resources/internal/beta/index.d.mts +3 -0
  101. package/resources/internal/beta/index.d.mts.map +1 -0
  102. package/resources/internal/beta/index.d.ts +3 -0
  103. package/resources/internal/beta/index.d.ts.map +1 -0
  104. package/resources/internal/beta/index.js +9 -0
  105. package/resources/internal/beta/index.js.map +1 -0
  106. package/resources/internal/beta/index.mjs +4 -0
  107. package/resources/internal/beta/index.mjs.map +1 -0
  108. package/resources/internal/beta.d.mts +2 -0
  109. package/resources/internal/beta.d.mts.map +1 -0
  110. package/resources/internal/beta.d.ts +2 -0
  111. package/resources/internal/beta.d.ts.map +1 -0
  112. package/resources/internal/beta.js +6 -0
  113. package/resources/internal/beta.js.map +1 -0
  114. package/resources/internal/beta.mjs +3 -0
  115. package/resources/internal/beta.mjs.map +1 -0
  116. package/resources/internal/index.d.mts +3 -0
  117. package/resources/internal/index.d.mts.map +1 -0
  118. package/resources/internal/index.d.ts +3 -0
  119. package/resources/internal/index.d.ts.map +1 -0
  120. package/resources/internal/index.js +9 -0
  121. package/resources/internal/index.js.map +1 -0
  122. package/resources/internal/index.mjs +4 -0
  123. package/resources/internal/index.mjs.map +1 -0
  124. package/resources/internal/internal.d.mts +10 -0
  125. package/resources/internal/internal.d.mts.map +1 -0
  126. package/resources/internal/internal.d.ts +10 -0
  127. package/resources/internal/internal.d.ts.map +1 -0
  128. package/resources/internal/internal.js +17 -0
  129. package/resources/internal/internal.js.map +1 -0
  130. package/resources/internal/internal.mjs +12 -0
  131. package/resources/internal/internal.mjs.map +1 -0
  132. package/resources/internal.d.mts +2 -0
  133. package/resources/internal.d.mts.map +1 -0
  134. package/resources/internal.d.ts +2 -0
  135. package/resources/internal.d.ts.map +1 -0
  136. package/resources/internal.js +6 -0
  137. package/resources/internal.js.map +1 -0
  138. package/resources/internal.mjs +3 -0
  139. package/resources/internal.mjs.map +1 -0
  140. package/resources/v1/addons/addons.d.mts +828 -0
  141. package/resources/v1/addons/addons.d.mts.map +1 -0
  142. package/resources/v1/addons/addons.d.ts +828 -0
  143. package/resources/v1/addons/addons.d.ts.map +1 -0
  144. package/resources/v1/addons/addons.js +75 -0
  145. package/resources/v1/addons/addons.js.map +1 -0
  146. package/resources/v1/addons/addons.mjs +70 -0
  147. package/resources/v1/addons/addons.mjs.map +1 -0
  148. package/resources/v1/addons/entitlements.d.mts +888 -0
  149. package/resources/v1/addons/entitlements.d.mts.map +1 -0
  150. package/resources/v1/addons/entitlements.d.ts +888 -0
  151. package/resources/v1/addons/entitlements.d.ts.map +1 -0
  152. package/resources/v1/addons/entitlements.js +36 -0
  153. package/resources/v1/addons/entitlements.js.map +1 -0
  154. package/resources/v1/addons/entitlements.mjs +32 -0
  155. package/resources/v1/addons/entitlements.mjs.map +1 -0
  156. package/resources/v1/addons/index.d.mts +3 -0
  157. package/resources/v1/addons/index.d.mts.map +1 -0
  158. package/resources/v1/addons/index.d.ts +3 -0
  159. package/resources/v1/addons/index.d.ts.map +1 -0
  160. package/resources/v1/addons/index.js +9 -0
  161. package/resources/v1/addons/index.js.map +1 -0
  162. package/resources/v1/addons/index.mjs +4 -0
  163. package/resources/v1/addons/index.mjs.map +1 -0
  164. package/resources/v1/addons.d.mts +2 -0
  165. package/resources/v1/addons.d.mts.map +1 -0
  166. package/resources/v1/addons.d.ts +2 -0
  167. package/resources/v1/addons.d.ts.map +1 -0
  168. package/resources/v1/addons.js +6 -0
  169. package/resources/v1/addons.js.map +1 -0
  170. package/resources/v1/addons.mjs +3 -0
  171. package/resources/v1/addons.mjs.map +1 -0
  172. package/resources/v1/coupons.d.mts +94 -96
  173. package/resources/v1/coupons.d.mts.map +1 -1
  174. package/resources/v1/coupons.d.ts +94 -96
  175. package/resources/v1/coupons.d.ts.map +1 -1
  176. package/resources/v1/coupons.js +19 -3
  177. package/resources/v1/coupons.js.map +1 -1
  178. package/resources/v1/coupons.mjs +19 -3
  179. package/resources/v1/coupons.mjs.map +1 -1
  180. package/resources/v1/customers/customers.d.mts +1214 -48
  181. package/resources/v1/customers/customers.d.mts.map +1 -1
  182. package/resources/v1/customers/customers.d.ts +1214 -48
  183. package/resources/v1/customers/customers.d.ts.map +1 -1
  184. package/resources/v1/customers/customers.js +48 -15
  185. package/resources/v1/customers/customers.js.map +1 -1
  186. package/resources/v1/customers/customers.mjs +48 -15
  187. package/resources/v1/customers/customers.mjs.map +1 -1
  188. package/resources/v1/customers/index.d.mts +3 -2
  189. package/resources/v1/customers/index.d.mts.map +1 -1
  190. package/resources/v1/customers/index.d.ts +3 -2
  191. package/resources/v1/customers/index.d.ts.map +1 -1
  192. package/resources/v1/customers/index.js +5 -3
  193. package/resources/v1/customers/index.js.map +1 -1
  194. package/resources/v1/customers/index.mjs +2 -1
  195. package/resources/v1/customers/index.mjs.map +1 -1
  196. package/resources/v1/customers/integrations.d.mts +142 -0
  197. package/resources/v1/customers/integrations.d.mts.map +1 -0
  198. package/resources/v1/customers/integrations.d.ts +142 -0
  199. package/resources/v1/customers/integrations.d.ts.map +1 -0
  200. package/resources/v1/customers/integrations.js +50 -0
  201. package/resources/v1/customers/integrations.js.map +1 -0
  202. package/resources/v1/customers/integrations.mjs +46 -0
  203. package/resources/v1/customers/integrations.mjs.map +1 -0
  204. package/resources/v1/customers/payment-method.d.mts +7 -2
  205. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  206. package/resources/v1/customers/payment-method.d.ts +7 -2
  207. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  208. package/resources/v1/customers/payment-method.js +7 -2
  209. package/resources/v1/customers/payment-method.js.map +1 -1
  210. package/resources/v1/customers/payment-method.mjs +7 -2
  211. package/resources/v1/customers/payment-method.mjs.map +1 -1
  212. package/resources/v1/customers/promotional-entitlements.d.mts +501 -0
  213. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
  214. package/resources/v1/customers/promotional-entitlements.d.ts +501 -0
  215. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
  216. package/resources/v1/customers/promotional-entitlements.js +35 -0
  217. package/resources/v1/customers/promotional-entitlements.js.map +1 -0
  218. package/resources/v1/customers/promotional-entitlements.mjs +31 -0
  219. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
  220. package/resources/v1/events/credits/credits.d.mts +260 -0
  221. package/resources/v1/events/credits/credits.d.mts.map +1 -0
  222. package/resources/v1/events/credits/credits.d.ts +260 -0
  223. package/resources/v1/events/credits/credits.d.ts.map +1 -0
  224. package/resources/v1/events/credits/credits.js +41 -0
  225. package/resources/v1/events/credits/credits.js.map +1 -0
  226. package/resources/v1/events/credits/credits.mjs +36 -0
  227. package/resources/v1/events/credits/credits.mjs.map +1 -0
  228. package/resources/v1/events/credits/grants.d.mts +549 -0
  229. package/resources/v1/events/credits/grants.d.mts.map +1 -0
  230. package/resources/v1/events/credits/grants.d.ts +549 -0
  231. package/resources/v1/events/credits/grants.d.ts.map +1 -0
  232. package/resources/v1/events/credits/grants.js +37 -0
  233. package/resources/v1/events/credits/grants.js.map +1 -0
  234. package/resources/v1/events/credits/grants.mjs +33 -0
  235. package/resources/v1/events/credits/grants.mjs.map +1 -0
  236. package/resources/v1/events/credits/index.d.mts +3 -0
  237. package/resources/v1/events/credits/index.d.mts.map +1 -0
  238. package/resources/v1/events/credits/index.d.ts +3 -0
  239. package/resources/v1/events/credits/index.d.ts.map +1 -0
  240. package/resources/v1/events/credits/index.js +9 -0
  241. package/resources/v1/events/credits/index.js.map +1 -0
  242. package/resources/v1/events/credits/index.mjs +4 -0
  243. package/resources/v1/events/credits/index.mjs.map +1 -0
  244. package/resources/v1/events/credits.d.mts +2 -0
  245. package/resources/v1/events/credits.d.mts.map +1 -0
  246. package/resources/v1/events/credits.d.ts +2 -0
  247. package/resources/v1/events/credits.d.ts.map +1 -0
  248. package/resources/v1/events/credits.js +6 -0
  249. package/resources/v1/events/credits.js.map +1 -0
  250. package/resources/v1/events/credits.mjs +3 -0
  251. package/resources/v1/events/credits.mjs.map +1 -0
  252. package/resources/v1/events/events.d.mts +70 -0
  253. package/resources/v1/events/events.d.mts.map +1 -0
  254. package/resources/v1/events/events.d.ts +70 -0
  255. package/resources/v1/events/events.d.ts.map +1 -0
  256. package/resources/v1/events/events.js +27 -0
  257. package/resources/v1/events/events.js.map +1 -0
  258. package/resources/v1/events/events.mjs +22 -0
  259. package/resources/v1/events/events.mjs.map +1 -0
  260. package/resources/v1/events/index.d.mts +3 -0
  261. package/resources/v1/events/index.d.mts.map +1 -0
  262. package/resources/v1/events/index.d.ts +3 -0
  263. package/resources/v1/events/index.d.ts.map +1 -0
  264. package/resources/v1/events/index.js +9 -0
  265. package/resources/v1/events/index.js.map +1 -0
  266. package/resources/v1/events/index.mjs +4 -0
  267. package/resources/v1/events/index.mjs.map +1 -0
  268. package/resources/v1/events.d.mts +2 -0
  269. package/resources/v1/events.d.mts.map +1 -0
  270. package/resources/v1/events.d.ts +2 -0
  271. package/resources/v1/events.d.ts.map +1 -0
  272. package/resources/v1/events.js +6 -0
  273. package/resources/v1/events.js.map +1 -0
  274. package/resources/v1/events.mjs +3 -0
  275. package/resources/v1/events.mjs.map +1 -0
  276. package/resources/v1/features.d.mts +456 -0
  277. package/resources/v1/features.d.mts.map +1 -0
  278. package/resources/v1/features.d.ts +456 -0
  279. package/resources/v1/features.d.ts.map +1 -0
  280. package/resources/v1/features.js +54 -0
  281. package/resources/v1/features.js.map +1 -0
  282. package/resources/v1/features.mjs +50 -0
  283. package/resources/v1/features.mjs.map +1 -0
  284. package/resources/v1/index.d.mts +10 -4
  285. package/resources/v1/index.d.mts.map +1 -1
  286. package/resources/v1/index.d.ts +10 -4
  287. package/resources/v1/index.d.ts.map +1 -1
  288. package/resources/v1/index.js +17 -5
  289. package/resources/v1/index.js.map +1 -1
  290. package/resources/v1/index.mjs +7 -1
  291. package/resources/v1/index.mjs.map +1 -1
  292. package/resources/v1/plans/entitlements.d.mts +888 -0
  293. package/resources/v1/plans/entitlements.d.mts.map +1 -0
  294. package/resources/v1/plans/entitlements.d.ts +888 -0
  295. package/resources/v1/plans/entitlements.d.ts.map +1 -0
  296. package/resources/v1/plans/entitlements.js +36 -0
  297. package/resources/v1/plans/entitlements.js.map +1 -0
  298. package/resources/v1/plans/entitlements.mjs +32 -0
  299. package/resources/v1/plans/entitlements.mjs.map +1 -0
  300. package/resources/v1/plans/index.d.mts +3 -0
  301. package/resources/v1/plans/index.d.mts.map +1 -0
  302. package/resources/v1/plans/index.d.ts +3 -0
  303. package/resources/v1/plans/index.d.ts.map +1 -0
  304. package/resources/v1/plans/index.js +9 -0
  305. package/resources/v1/plans/index.js.map +1 -0
  306. package/resources/v1/plans/index.mjs +4 -0
  307. package/resources/v1/plans/index.mjs.map +1 -0
  308. package/resources/v1/plans/plans.d.mts +977 -0
  309. package/resources/v1/plans/plans.d.mts.map +1 -0
  310. package/resources/v1/plans/plans.d.ts +977 -0
  311. package/resources/v1/plans/plans.d.ts.map +1 -0
  312. package/resources/v1/plans/plans.js +72 -0
  313. package/resources/v1/plans/plans.js.map +1 -0
  314. package/resources/v1/plans/plans.mjs +67 -0
  315. package/resources/v1/plans/plans.mjs.map +1 -0
  316. package/resources/v1/plans.d.mts +2 -0
  317. package/resources/v1/plans.d.mts.map +1 -0
  318. package/resources/v1/plans.d.ts +2 -0
  319. package/resources/v1/plans.d.ts.map +1 -0
  320. package/resources/v1/plans.js +6 -0
  321. package/resources/v1/plans.js.map +1 -0
  322. package/resources/v1/plans.mjs +3 -0
  323. package/resources/v1/plans.mjs.map +1 -0
  324. package/resources/v1/products.d.mts +339 -0
  325. package/resources/v1/products.d.mts.map +1 -0
  326. package/resources/v1/products.d.ts +339 -0
  327. package/resources/v1/products.d.ts.map +1 -0
  328. package/resources/v1/products.js +55 -0
  329. package/resources/v1/products.js.map +1 -0
  330. package/resources/v1/products.mjs +51 -0
  331. package/resources/v1/products.mjs.map +1 -0
  332. package/resources/v1/subscriptions/future-update.d.mts +12 -22
  333. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  334. package/resources/v1/subscriptions/future-update.d.ts +12 -22
  335. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  336. package/resources/v1/subscriptions/future-update.js +6 -2
  337. package/resources/v1/subscriptions/future-update.js.map +1 -1
  338. package/resources/v1/subscriptions/future-update.mjs +6 -2
  339. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  340. package/resources/v1/subscriptions/index.d.mts +4 -2
  341. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  342. package/resources/v1/subscriptions/index.d.ts +4 -2
  343. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  344. package/resources/v1/subscriptions/index.js +5 -1
  345. package/resources/v1/subscriptions/index.js.map +1 -1
  346. package/resources/v1/subscriptions/index.mjs +3 -1
  347. package/resources/v1/subscriptions/index.mjs.map +1 -1
  348. package/resources/v1/subscriptions/invoice.d.mts +37 -0
  349. package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
  350. package/resources/v1/subscriptions/invoice.d.ts +37 -0
  351. package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
  352. package/resources/v1/subscriptions/invoice.js +20 -0
  353. package/resources/v1/subscriptions/invoice.js.map +1 -0
  354. package/resources/v1/subscriptions/invoice.mjs +16 -0
  355. package/resources/v1/subscriptions/invoice.mjs.map +1 -0
  356. package/resources/v1/subscriptions/subscriptions.d.mts +1926 -915
  357. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  358. package/resources/v1/subscriptions/subscriptions.d.ts +1926 -915
  359. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  360. package/resources/v1/subscriptions/subscriptions.js +47 -11
  361. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  362. package/resources/v1/subscriptions/subscriptions.mjs +49 -13
  363. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  364. package/resources/v1/subscriptions/usage.d.mts +101 -0
  365. package/resources/v1/subscriptions/usage.d.mts.map +1 -0
  366. package/resources/v1/subscriptions/usage.d.ts +101 -0
  367. package/resources/v1/subscriptions/usage.d.ts.map +1 -0
  368. package/resources/v1/subscriptions/usage.js +27 -0
  369. package/resources/v1/subscriptions/usage.js.map +1 -0
  370. package/resources/v1/subscriptions/usage.mjs +23 -0
  371. package/resources/v1/subscriptions/usage.mjs.map +1 -0
  372. package/resources/v1/usage.d.mts +233 -0
  373. package/resources/v1/usage.d.mts.map +1 -0
  374. package/resources/v1/usage.d.ts +233 -0
  375. package/resources/v1/usage.d.ts.map +1 -0
  376. package/resources/v1/usage.js +27 -0
  377. package/resources/v1/usage.js.map +1 -0
  378. package/resources/v1/usage.mjs +23 -0
  379. package/resources/v1/usage.mjs.map +1 -0
  380. package/resources/v1/v1.d.mts +30 -172
  381. package/resources/v1/v1.d.mts.map +1 -1
  382. package/resources/v1/v1.d.ts +30 -172
  383. package/resources/v1/v1.d.ts.map +1 -1
  384. package/resources/v1/v1.js +24 -12
  385. package/resources/v1/v1.js.map +1 -1
  386. package/resources/v1/v1.mjs +24 -12
  387. package/resources/v1/v1.mjs.map +1 -1
  388. package/src/client.ts +46 -47
  389. package/src/internal/parse.ts +6 -0
  390. package/src/internal/qs/LICENSE.md +13 -0
  391. package/src/internal/qs/README.md +3 -0
  392. package/src/internal/qs/formats.ts +10 -0
  393. package/src/internal/qs/index.ts +13 -0
  394. package/src/internal/qs/stringify.ts +385 -0
  395. package/src/internal/qs/types.ts +71 -0
  396. package/src/internal/qs/utils.ts +265 -0
  397. package/src/internal/utils/env.ts +2 -2
  398. package/src/internal/utils/query.ts +7 -0
  399. package/src/internal/utils.ts +1 -0
  400. package/src/resources/index.ts +2 -7
  401. package/src/resources/internal/beta/beta.ts +27 -0
  402. package/src/resources/internal/beta/event-queues.ts +554 -0
  403. package/src/resources/internal/beta/index.ts +10 -0
  404. package/src/resources/internal/beta.ts +3 -0
  405. package/src/resources/internal/index.ts +4 -0
  406. package/src/resources/internal/internal.ts +15 -0
  407. package/src/resources/internal.ts +3 -0
  408. package/src/resources/v1/addons/addons.ts +1856 -0
  409. package/src/resources/v1/addons/entitlements.ts +1153 -0
  410. package/src/resources/v1/addons/index.ts +23 -0
  411. package/src/resources/v1/addons.ts +3 -0
  412. package/src/resources/v1/coupons.ts +106 -229
  413. package/src/resources/v1/customers/customers.ts +2465 -60
  414. package/src/resources/v1/customers/index.ts +29 -2
  415. package/src/resources/v1/customers/integrations.ts +241 -0
  416. package/src/resources/v1/customers/payment-method.ts +7 -2
  417. package/src/resources/v1/customers/promotional-entitlements.ts +672 -0
  418. package/src/resources/v1/events/credits/credits.ts +358 -0
  419. package/src/resources/v1/events/credits/grants.ts +795 -0
  420. package/src/resources/v1/events/credits/index.ts +20 -0
  421. package/src/resources/v1/events/credits.ts +3 -0
  422. package/src/resources/v1/events/events.ts +103 -0
  423. package/src/resources/v1/events/index.ts +13 -0
  424. package/src/resources/v1/events.ts +3 -0
  425. package/src/resources/v1/features.ts +583 -0
  426. package/src/resources/v1/index.ts +69 -15
  427. package/src/resources/v1/plans/entitlements.ts +1145 -0
  428. package/src/resources/v1/plans/index.ts +23 -0
  429. package/src/resources/v1/plans/plans.ts +2029 -0
  430. package/src/resources/v1/plans.ts +3 -0
  431. package/src/resources/v1/products.ts +430 -0
  432. package/src/resources/v1/subscriptions/future-update.ts +12 -30
  433. package/src/resources/v1/subscriptions/index.ts +15 -11
  434. package/src/resources/v1/subscriptions/invoice.ts +45 -0
  435. package/src/resources/v1/subscriptions/subscriptions.ts +5302 -2289
  436. package/src/resources/v1/subscriptions/usage.ts +129 -0
  437. package/src/resources/v1/usage.ts +287 -0
  438. package/src/resources/v1/v1.ts +166 -220
  439. package/src/version.ts +1 -1
  440. package/version.d.mts +1 -1
  441. package/version.d.mts.map +1 -1
  442. package/version.d.ts +1 -1
  443. package/version.d.ts.map +1 -1
  444. package/version.js +1 -1
  445. package/version.js.map +1 -1
  446. package/version.mjs +1 -1
  447. package/version.mjs.map +1 -1
  448. package/resources/v1/customers/usage.d.mts +0 -4
  449. package/resources/v1/customers/usage.d.mts.map +0 -1
  450. package/resources/v1/customers/usage.d.ts +0 -4
  451. package/resources/v1/customers/usage.d.ts.map +0 -1
  452. package/resources/v1/customers/usage.js +0 -9
  453. package/resources/v1/customers/usage.js.map +0 -1
  454. package/resources/v1/customers/usage.mjs +0 -5
  455. package/resources/v1/customers/usage.mjs.map +0 -1
  456. package/src/resources/v1/customers/usage.ts +0 -5
@@ -0,0 +1,1856 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as EntitlementsAPI from './entitlements';
5
+ import {
6
+ AddonPackageEntitlement,
7
+ EntitlementCreateParams,
8
+ EntitlementCreateResponse,
9
+ EntitlementDeleteParams,
10
+ EntitlementListResponse,
11
+ EntitlementUpdateParams,
12
+ Entitlements,
13
+ } from './entitlements';
14
+ import { APIPromise } from '../../../core/api-promise';
15
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
16
+ import { RequestOptions } from '../../../internal/request-options';
17
+ import { path } from '../../../internal/utils/path';
18
+
19
+ /**
20
+ * Operations related to addons
21
+ */
22
+ export class Addons extends APIResource {
23
+ entitlements: EntitlementsAPI.Entitlements = new EntitlementsAPI.Entitlements(this._client);
24
+
25
+ /**
26
+ * Creates a new addon in draft status, associated with a specific product.
27
+ */
28
+ create(body: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
29
+ return this._client.post('/api/v1/addons', { body, ...options });
30
+ }
31
+
32
+ /**
33
+ * Retrieves an addon by its unique identifier, including entitlements and pricing
34
+ * details.
35
+ */
36
+ retrieve(id: string, options?: RequestOptions): APIPromise<Addon> {
37
+ return this._client.get(path`/api/v1/addons/${id}`, options);
38
+ }
39
+
40
+ /**
41
+ * Updates an existing addon's properties such as display name, description, and
42
+ * metadata.
43
+ */
44
+ update(id: string, body: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
45
+ return this._client.patch(path`/api/v1/addons/${id}`, { body, ...options });
46
+ }
47
+
48
+ /**
49
+ * Retrieves a paginated list of addons in the environment.
50
+ */
51
+ list(
52
+ query: AddonListParams | null | undefined = {},
53
+ options?: RequestOptions,
54
+ ): PagePromise<AddonListResponsesMyCursorIDPage, AddonListResponse> {
55
+ return this._client.getAPIList('/api/v1/addons', MyCursorIDPage<AddonListResponse>, {
56
+ query,
57
+ ...options,
58
+ });
59
+ }
60
+
61
+ /**
62
+ * Archives an addon, preventing it from being used in new subscriptions.
63
+ */
64
+ archive(id: string, options?: RequestOptions): APIPromise<Addon> {
65
+ return this._client.post(path`/api/v1/addons/${id}/archive`, options);
66
+ }
67
+
68
+ /**
69
+ * Creates a draft version of an existing addon for modification before publishing.
70
+ */
71
+ createDraft(id: string, options?: RequestOptions): APIPromise<Addon> {
72
+ return this._client.post(path`/api/v1/addons/${id}/draft`, options);
73
+ }
74
+
75
+ /**
76
+ * Publishes a draft addon, making it available for use in subscriptions.
77
+ */
78
+ publish(id: string, body: AddonPublishParams, options?: RequestOptions): APIPromise<AddonPublishResponse> {
79
+ return this._client.post(path`/api/v1/addons/${id}/publish`, { body, ...options });
80
+ }
81
+
82
+ /**
83
+ * Removes a draft version of an addon.
84
+ */
85
+ removeDraft(id: string, options?: RequestOptions): APIPromise<AddonRemoveDraftResponse> {
86
+ return this._client.delete(path`/api/v1/addons/${id}/draft`, options);
87
+ }
88
+ }
89
+
90
+ export type AddonListResponsesMyCursorIDPage = MyCursorIDPage<AddonListResponse>;
91
+
92
+ /**
93
+ * Response object
94
+ */
95
+ export interface Addon {
96
+ /**
97
+ * Addon configuration object
98
+ */
99
+ data: Addon.Data;
100
+ }
101
+
102
+ export namespace Addon {
103
+ /**
104
+ * Addon configuration object
105
+ */
106
+ export interface Data {
107
+ /**
108
+ * The unique identifier for the entity
109
+ */
110
+ id: string;
111
+
112
+ /**
113
+ * The unique identifier for the entity in the billing provider
114
+ */
115
+ billingId: string | null;
116
+
117
+ /**
118
+ * Timestamp of when the record was created
119
+ */
120
+ createdAt: string;
121
+
122
+ /**
123
+ * List of addons the addon is dependant on
124
+ */
125
+ dependencies: Array<string> | null;
126
+
127
+ /**
128
+ * The description of the package
129
+ */
130
+ description: string | null;
131
+
132
+ /**
133
+ * The display name of the package
134
+ */
135
+ displayName: string;
136
+
137
+ /**
138
+ * List of entitlements of the package
139
+ */
140
+ entitlements: Array<Data.Entitlement>;
141
+
142
+ /**
143
+ * Indicates if the package is the latest version
144
+ */
145
+ isLatest: boolean | null;
146
+
147
+ /**
148
+ * The maximum quantity of this addon that can be added to a subscription
149
+ */
150
+ maxQuantity: number | null;
151
+
152
+ /**
153
+ * Metadata associated with the entity
154
+ */
155
+ metadata: { [key: string]: string };
156
+
157
+ /**
158
+ * The pricing type of the package
159
+ */
160
+ pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
161
+
162
+ /**
163
+ * The product id of the package
164
+ */
165
+ productId: string;
166
+
167
+ /**
168
+ * The status of the package
169
+ */
170
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
171
+
172
+ /**
173
+ * Timestamp of when the record was last updated
174
+ */
175
+ updatedAt: string;
176
+
177
+ /**
178
+ * The version number of the package
179
+ */
180
+ versionNumber: number;
181
+ }
182
+
183
+ export namespace Data {
184
+ /**
185
+ * Entitlement reference with type and identifier
186
+ */
187
+ export interface Entitlement {
188
+ /**
189
+ * The unique identifier for the entity
190
+ */
191
+ id: string;
192
+
193
+ type: 'FEATURE' | 'CREDIT';
194
+ }
195
+ }
196
+ }
197
+
198
+ /**
199
+ * Addon configuration object
200
+ */
201
+ export interface AddonListResponse {
202
+ /**
203
+ * The unique identifier for the entity
204
+ */
205
+ id: string;
206
+
207
+ /**
208
+ * The unique identifier for the entity in the billing provider
209
+ */
210
+ billingId: string | null;
211
+
212
+ /**
213
+ * Timestamp of when the record was created
214
+ */
215
+ createdAt: string;
216
+
217
+ /**
218
+ * List of addons the addon is dependant on
219
+ */
220
+ dependencies: Array<string> | null;
221
+
222
+ /**
223
+ * The description of the package
224
+ */
225
+ description: string | null;
226
+
227
+ /**
228
+ * The display name of the package
229
+ */
230
+ displayName: string;
231
+
232
+ /**
233
+ * List of entitlements of the package
234
+ */
235
+ entitlements: Array<AddonListResponse.Entitlement>;
236
+
237
+ /**
238
+ * Indicates if the package is the latest version
239
+ */
240
+ isLatest: boolean | null;
241
+
242
+ /**
243
+ * The maximum quantity of this addon that can be added to a subscription
244
+ */
245
+ maxQuantity: number | null;
246
+
247
+ /**
248
+ * Metadata associated with the entity
249
+ */
250
+ metadata: { [key: string]: string };
251
+
252
+ /**
253
+ * The pricing type of the package
254
+ */
255
+ pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
256
+
257
+ /**
258
+ * The product id of the package
259
+ */
260
+ productId: string;
261
+
262
+ /**
263
+ * The status of the package
264
+ */
265
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
266
+
267
+ /**
268
+ * Timestamp of when the record was last updated
269
+ */
270
+ updatedAt: string;
271
+
272
+ /**
273
+ * The version number of the package
274
+ */
275
+ versionNumber: number;
276
+ }
277
+
278
+ export namespace AddonListResponse {
279
+ /**
280
+ * Entitlement reference with type and identifier
281
+ */
282
+ export interface Entitlement {
283
+ /**
284
+ * The unique identifier for the entity
285
+ */
286
+ id: string;
287
+
288
+ type: 'FEATURE' | 'CREDIT';
289
+ }
290
+ }
291
+
292
+ /**
293
+ * Response containing task ID for publish operation
294
+ */
295
+ export interface AddonPublishResponse {
296
+ data: AddonPublishResponse.Data;
297
+ }
298
+
299
+ export namespace AddonPublishResponse {
300
+ export interface Data {
301
+ /**
302
+ * Task ID for tracking the async publish operation
303
+ */
304
+ taskId: string | null;
305
+ }
306
+ }
307
+
308
+ /**
309
+ * Response confirming the addon draft was removed.
310
+ */
311
+ export interface AddonRemoveDraftResponse {
312
+ data: AddonRemoveDraftResponse.Data;
313
+ }
314
+
315
+ export namespace AddonRemoveDraftResponse {
316
+ export interface Data {
317
+ /**
318
+ * The unique identifier for the entity
319
+ */
320
+ id: string;
321
+ }
322
+ }
323
+
324
+ export interface AddonCreateParams {
325
+ /**
326
+ * The unique identifier for the entity
327
+ */
328
+ id: string;
329
+
330
+ /**
331
+ * The display name of the package
332
+ */
333
+ displayName: string;
334
+
335
+ /**
336
+ * The product id of the package
337
+ */
338
+ productId: string;
339
+
340
+ /**
341
+ * The unique identifier for the entity in the billing provider
342
+ */
343
+ billingId?: string | null;
344
+
345
+ /**
346
+ * The description of the package
347
+ */
348
+ description?: string | null;
349
+
350
+ /**
351
+ * The maximum quantity of this addon that can be added to a subscription
352
+ */
353
+ maxQuantity?: number | null;
354
+
355
+ /**
356
+ * Metadata associated with the entity
357
+ */
358
+ metadata?: { [key: string]: string };
359
+
360
+ /**
361
+ * The pricing type of the package
362
+ */
363
+ pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
364
+
365
+ /**
366
+ * The status of the package
367
+ */
368
+ status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
369
+ }
370
+
371
+ export interface AddonUpdateParams {
372
+ /**
373
+ * The unique identifier for the entity in the billing provider
374
+ */
375
+ billingId?: string | null;
376
+
377
+ /**
378
+ * Pricing configuration to set on the addon draft
379
+ */
380
+ charges?: AddonUpdateParams.Charges;
381
+
382
+ /**
383
+ * List of addons the addon is dependant on
384
+ */
385
+ dependencies?: Array<string> | null;
386
+
387
+ /**
388
+ * The description of the package
389
+ */
390
+ description?: string | null;
391
+
392
+ /**
393
+ * The display name of the package
394
+ */
395
+ displayName?: string;
396
+
397
+ /**
398
+ * The maximum quantity of this addon that can be added to a subscription
399
+ */
400
+ maxQuantity?: number | null;
401
+
402
+ /**
403
+ * Metadata associated with the entity
404
+ */
405
+ metadata?: { [key: string]: string };
406
+
407
+ /**
408
+ * The status of the package
409
+ */
410
+ status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
411
+ }
412
+
413
+ export namespace AddonUpdateParams {
414
+ /**
415
+ * Pricing configuration to set on the addon draft
416
+ */
417
+ export interface Charges {
418
+ /**
419
+ * The pricing type (FREE, PAID, or CUSTOM)
420
+ */
421
+ pricingType: 'FREE' | 'PAID' | 'CUSTOM';
422
+
423
+ /**
424
+ * Deprecated: billing integration ID
425
+ */
426
+ billingId?: string;
427
+
428
+ /**
429
+ * Minimum spend configuration per billing period
430
+ */
431
+ minimumSpend?: Array<Charges.MinimumSpend> | null;
432
+
433
+ /**
434
+ * When overage charges are billed
435
+ */
436
+ overageBillingPeriod?: 'ON_SUBSCRIPTION_RENEWAL' | 'MONTHLY';
437
+
438
+ /**
439
+ * Array of overage pricing model configurations
440
+ */
441
+ overagePricingModels?: Array<Charges.OveragePricingModel>;
442
+
443
+ /**
444
+ * Array of pricing model configurations
445
+ */
446
+ pricingModels?: Array<Charges.PricingModel>;
447
+ }
448
+
449
+ export namespace Charges {
450
+ /**
451
+ * Minimum spend configuration for a billing period.
452
+ */
453
+ export interface MinimumSpend {
454
+ /**
455
+ * The billing period
456
+ */
457
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
458
+
459
+ /**
460
+ * The minimum spend amount
461
+ */
462
+ minimum: MinimumSpend.Minimum;
463
+ }
464
+
465
+ export namespace MinimumSpend {
466
+ /**
467
+ * The minimum spend amount
468
+ */
469
+ export interface Minimum {
470
+ /**
471
+ * The price amount
472
+ */
473
+ amount: number;
474
+
475
+ /**
476
+ * The price currency
477
+ */
478
+ currency?:
479
+ | 'usd'
480
+ | 'aed'
481
+ | 'all'
482
+ | 'amd'
483
+ | 'ang'
484
+ | 'aud'
485
+ | 'awg'
486
+ | 'azn'
487
+ | 'bam'
488
+ | 'bbd'
489
+ | 'bdt'
490
+ | 'bgn'
491
+ | 'bif'
492
+ | 'bmd'
493
+ | 'bnd'
494
+ | 'bsd'
495
+ | 'bwp'
496
+ | 'byn'
497
+ | 'bzd'
498
+ | 'brl'
499
+ | 'cad'
500
+ | 'cdf'
501
+ | 'chf'
502
+ | 'cny'
503
+ | 'czk'
504
+ | 'dkk'
505
+ | 'dop'
506
+ | 'dzd'
507
+ | 'egp'
508
+ | 'etb'
509
+ | 'eur'
510
+ | 'fjd'
511
+ | 'gbp'
512
+ | 'gel'
513
+ | 'gip'
514
+ | 'gmd'
515
+ | 'gyd'
516
+ | 'hkd'
517
+ | 'hrk'
518
+ | 'htg'
519
+ | 'idr'
520
+ | 'ils'
521
+ | 'inr'
522
+ | 'isk'
523
+ | 'jmd'
524
+ | 'jpy'
525
+ | 'kes'
526
+ | 'kgs'
527
+ | 'khr'
528
+ | 'kmf'
529
+ | 'krw'
530
+ | 'kyd'
531
+ | 'kzt'
532
+ | 'lbp'
533
+ | 'lkr'
534
+ | 'lrd'
535
+ | 'lsl'
536
+ | 'mad'
537
+ | 'mdl'
538
+ | 'mga'
539
+ | 'mkd'
540
+ | 'mmk'
541
+ | 'mnt'
542
+ | 'mop'
543
+ | 'mro'
544
+ | 'mvr'
545
+ | 'mwk'
546
+ | 'mxn'
547
+ | 'myr'
548
+ | 'mzn'
549
+ | 'nad'
550
+ | 'ngn'
551
+ | 'nok'
552
+ | 'npr'
553
+ | 'nzd'
554
+ | 'pgk'
555
+ | 'php'
556
+ | 'pkr'
557
+ | 'pln'
558
+ | 'qar'
559
+ | 'ron'
560
+ | 'rsd'
561
+ | 'rub'
562
+ | 'rwf'
563
+ | 'sar'
564
+ | 'sbd'
565
+ | 'scr'
566
+ | 'sek'
567
+ | 'sgd'
568
+ | 'sle'
569
+ | 'sll'
570
+ | 'sos'
571
+ | 'szl'
572
+ | 'thb'
573
+ | 'tjs'
574
+ | 'top'
575
+ | 'try'
576
+ | 'ttd'
577
+ | 'tzs'
578
+ | 'uah'
579
+ | 'uzs'
580
+ | 'vnd'
581
+ | 'vuv'
582
+ | 'wst'
583
+ | 'xaf'
584
+ | 'xcd'
585
+ | 'yer'
586
+ | 'zar'
587
+ | 'zmw'
588
+ | 'clp'
589
+ | 'djf'
590
+ | 'gnf'
591
+ | 'ugx'
592
+ | 'pyg'
593
+ | 'xof'
594
+ | 'xpf';
595
+ }
596
+ }
597
+
598
+ /**
599
+ * Overage pricing model configuration.
600
+ */
601
+ export interface OveragePricingModel {
602
+ /**
603
+ * The billing model for overages
604
+ */
605
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
606
+
607
+ /**
608
+ * Price periods for overage pricing
609
+ */
610
+ pricePeriods: Array<OveragePricingModel.PricePeriod>;
611
+
612
+ /**
613
+ * The billing cadence for overages
614
+ */
615
+ billingCadence?: 'RECURRING' | 'ONE_OFF';
616
+
617
+ /**
618
+ * Entitlement configuration for the overage feature
619
+ */
620
+ entitlement?: OveragePricingModel.Entitlement;
621
+
622
+ /**
623
+ * The feature ID for overage pricing
624
+ */
625
+ featureId?: string;
626
+
627
+ /**
628
+ * Custom currency ID for overage top-up
629
+ */
630
+ topUpCustomCurrencyId?: string;
631
+ }
632
+
633
+ export namespace OveragePricingModel {
634
+ /**
635
+ * Price configuration for a specific billing period.
636
+ */
637
+ export interface PricePeriod {
638
+ /**
639
+ * The billing period (MONTHLY or ANNUALLY)
640
+ */
641
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
642
+
643
+ /**
644
+ * ISO country code for localized pricing
645
+ */
646
+ billingCountryCode?: string;
647
+
648
+ /**
649
+ * Block size for usage-based pricing
650
+ */
651
+ blockSize?: number;
652
+
653
+ /**
654
+ * When credits are granted
655
+ */
656
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY';
657
+
658
+ /**
659
+ * Credit rate configuration for credit-based pricing
660
+ */
661
+ creditRate?: PricePeriod.CreditRate;
662
+
663
+ /**
664
+ * The price amount and currency
665
+ */
666
+ price?: PricePeriod.Price;
667
+
668
+ /**
669
+ * Tiered pricing configuration
670
+ */
671
+ tiers?: Array<PricePeriod.Tier>;
672
+ }
673
+
674
+ export namespace PricePeriod {
675
+ /**
676
+ * Credit rate configuration for credit-based pricing
677
+ */
678
+ export interface CreditRate {
679
+ /**
680
+ * The credit rate amount
681
+ */
682
+ amount: number;
683
+
684
+ /**
685
+ * The custom currency ID
686
+ */
687
+ currencyId: string;
688
+
689
+ /**
690
+ * Optional cost formula expression
691
+ */
692
+ costFormula?: string;
693
+ }
694
+
695
+ /**
696
+ * The price amount and currency
697
+ */
698
+ export interface Price {
699
+ /**
700
+ * The price amount
701
+ */
702
+ amount: number;
703
+
704
+ /**
705
+ * The price currency
706
+ */
707
+ currency?:
708
+ | 'usd'
709
+ | 'aed'
710
+ | 'all'
711
+ | 'amd'
712
+ | 'ang'
713
+ | 'aud'
714
+ | 'awg'
715
+ | 'azn'
716
+ | 'bam'
717
+ | 'bbd'
718
+ | 'bdt'
719
+ | 'bgn'
720
+ | 'bif'
721
+ | 'bmd'
722
+ | 'bnd'
723
+ | 'bsd'
724
+ | 'bwp'
725
+ | 'byn'
726
+ | 'bzd'
727
+ | 'brl'
728
+ | 'cad'
729
+ | 'cdf'
730
+ | 'chf'
731
+ | 'cny'
732
+ | 'czk'
733
+ | 'dkk'
734
+ | 'dop'
735
+ | 'dzd'
736
+ | 'egp'
737
+ | 'etb'
738
+ | 'eur'
739
+ | 'fjd'
740
+ | 'gbp'
741
+ | 'gel'
742
+ | 'gip'
743
+ | 'gmd'
744
+ | 'gyd'
745
+ | 'hkd'
746
+ | 'hrk'
747
+ | 'htg'
748
+ | 'idr'
749
+ | 'ils'
750
+ | 'inr'
751
+ | 'isk'
752
+ | 'jmd'
753
+ | 'jpy'
754
+ | 'kes'
755
+ | 'kgs'
756
+ | 'khr'
757
+ | 'kmf'
758
+ | 'krw'
759
+ | 'kyd'
760
+ | 'kzt'
761
+ | 'lbp'
762
+ | 'lkr'
763
+ | 'lrd'
764
+ | 'lsl'
765
+ | 'mad'
766
+ | 'mdl'
767
+ | 'mga'
768
+ | 'mkd'
769
+ | 'mmk'
770
+ | 'mnt'
771
+ | 'mop'
772
+ | 'mro'
773
+ | 'mvr'
774
+ | 'mwk'
775
+ | 'mxn'
776
+ | 'myr'
777
+ | 'mzn'
778
+ | 'nad'
779
+ | 'ngn'
780
+ | 'nok'
781
+ | 'npr'
782
+ | 'nzd'
783
+ | 'pgk'
784
+ | 'php'
785
+ | 'pkr'
786
+ | 'pln'
787
+ | 'qar'
788
+ | 'ron'
789
+ | 'rsd'
790
+ | 'rub'
791
+ | 'rwf'
792
+ | 'sar'
793
+ | 'sbd'
794
+ | 'scr'
795
+ | 'sek'
796
+ | 'sgd'
797
+ | 'sle'
798
+ | 'sll'
799
+ | 'sos'
800
+ | 'szl'
801
+ | 'thb'
802
+ | 'tjs'
803
+ | 'top'
804
+ | 'try'
805
+ | 'ttd'
806
+ | 'tzs'
807
+ | 'uah'
808
+ | 'uzs'
809
+ | 'vnd'
810
+ | 'vuv'
811
+ | 'wst'
812
+ | 'xaf'
813
+ | 'xcd'
814
+ | 'yer'
815
+ | 'zar'
816
+ | 'zmw'
817
+ | 'clp'
818
+ | 'djf'
819
+ | 'gnf'
820
+ | 'ugx'
821
+ | 'pyg'
822
+ | 'xof'
823
+ | 'xpf';
824
+ }
825
+
826
+ /**
827
+ * A tier in tiered pricing.
828
+ */
829
+ export interface Tier {
830
+ /**
831
+ * Flat price for this tier
832
+ */
833
+ flatPrice?: Tier.FlatPrice;
834
+
835
+ /**
836
+ * Per-unit price in this tier
837
+ */
838
+ unitPrice?: Tier.UnitPrice;
839
+
840
+ /**
841
+ * Upper bound of this tier (null for unlimited)
842
+ */
843
+ upTo?: number;
844
+ }
845
+
846
+ export namespace Tier {
847
+ /**
848
+ * Flat price for this tier
849
+ */
850
+ export interface FlatPrice {
851
+ /**
852
+ * The price amount
853
+ */
854
+ amount: number;
855
+
856
+ /**
857
+ * The price currency
858
+ */
859
+ currency?:
860
+ | 'usd'
861
+ | 'aed'
862
+ | 'all'
863
+ | 'amd'
864
+ | 'ang'
865
+ | 'aud'
866
+ | 'awg'
867
+ | 'azn'
868
+ | 'bam'
869
+ | 'bbd'
870
+ | 'bdt'
871
+ | 'bgn'
872
+ | 'bif'
873
+ | 'bmd'
874
+ | 'bnd'
875
+ | 'bsd'
876
+ | 'bwp'
877
+ | 'byn'
878
+ | 'bzd'
879
+ | 'brl'
880
+ | 'cad'
881
+ | 'cdf'
882
+ | 'chf'
883
+ | 'cny'
884
+ | 'czk'
885
+ | 'dkk'
886
+ | 'dop'
887
+ | 'dzd'
888
+ | 'egp'
889
+ | 'etb'
890
+ | 'eur'
891
+ | 'fjd'
892
+ | 'gbp'
893
+ | 'gel'
894
+ | 'gip'
895
+ | 'gmd'
896
+ | 'gyd'
897
+ | 'hkd'
898
+ | 'hrk'
899
+ | 'htg'
900
+ | 'idr'
901
+ | 'ils'
902
+ | 'inr'
903
+ | 'isk'
904
+ | 'jmd'
905
+ | 'jpy'
906
+ | 'kes'
907
+ | 'kgs'
908
+ | 'khr'
909
+ | 'kmf'
910
+ | 'krw'
911
+ | 'kyd'
912
+ | 'kzt'
913
+ | 'lbp'
914
+ | 'lkr'
915
+ | 'lrd'
916
+ | 'lsl'
917
+ | 'mad'
918
+ | 'mdl'
919
+ | 'mga'
920
+ | 'mkd'
921
+ | 'mmk'
922
+ | 'mnt'
923
+ | 'mop'
924
+ | 'mro'
925
+ | 'mvr'
926
+ | 'mwk'
927
+ | 'mxn'
928
+ | 'myr'
929
+ | 'mzn'
930
+ | 'nad'
931
+ | 'ngn'
932
+ | 'nok'
933
+ | 'npr'
934
+ | 'nzd'
935
+ | 'pgk'
936
+ | 'php'
937
+ | 'pkr'
938
+ | 'pln'
939
+ | 'qar'
940
+ | 'ron'
941
+ | 'rsd'
942
+ | 'rub'
943
+ | 'rwf'
944
+ | 'sar'
945
+ | 'sbd'
946
+ | 'scr'
947
+ | 'sek'
948
+ | 'sgd'
949
+ | 'sle'
950
+ | 'sll'
951
+ | 'sos'
952
+ | 'szl'
953
+ | 'thb'
954
+ | 'tjs'
955
+ | 'top'
956
+ | 'try'
957
+ | 'ttd'
958
+ | 'tzs'
959
+ | 'uah'
960
+ | 'uzs'
961
+ | 'vnd'
962
+ | 'vuv'
963
+ | 'wst'
964
+ | 'xaf'
965
+ | 'xcd'
966
+ | 'yer'
967
+ | 'zar'
968
+ | 'zmw'
969
+ | 'clp'
970
+ | 'djf'
971
+ | 'gnf'
972
+ | 'ugx'
973
+ | 'pyg'
974
+ | 'xof'
975
+ | 'xpf';
976
+ }
977
+
978
+ /**
979
+ * Per-unit price in this tier
980
+ */
981
+ export interface UnitPrice {
982
+ /**
983
+ * The price amount
984
+ */
985
+ amount: number;
986
+
987
+ /**
988
+ * The price currency
989
+ */
990
+ currency?:
991
+ | 'usd'
992
+ | 'aed'
993
+ | 'all'
994
+ | 'amd'
995
+ | 'ang'
996
+ | 'aud'
997
+ | 'awg'
998
+ | 'azn'
999
+ | 'bam'
1000
+ | 'bbd'
1001
+ | 'bdt'
1002
+ | 'bgn'
1003
+ | 'bif'
1004
+ | 'bmd'
1005
+ | 'bnd'
1006
+ | 'bsd'
1007
+ | 'bwp'
1008
+ | 'byn'
1009
+ | 'bzd'
1010
+ | 'brl'
1011
+ | 'cad'
1012
+ | 'cdf'
1013
+ | 'chf'
1014
+ | 'cny'
1015
+ | 'czk'
1016
+ | 'dkk'
1017
+ | 'dop'
1018
+ | 'dzd'
1019
+ | 'egp'
1020
+ | 'etb'
1021
+ | 'eur'
1022
+ | 'fjd'
1023
+ | 'gbp'
1024
+ | 'gel'
1025
+ | 'gip'
1026
+ | 'gmd'
1027
+ | 'gyd'
1028
+ | 'hkd'
1029
+ | 'hrk'
1030
+ | 'htg'
1031
+ | 'idr'
1032
+ | 'ils'
1033
+ | 'inr'
1034
+ | 'isk'
1035
+ | 'jmd'
1036
+ | 'jpy'
1037
+ | 'kes'
1038
+ | 'kgs'
1039
+ | 'khr'
1040
+ | 'kmf'
1041
+ | 'krw'
1042
+ | 'kyd'
1043
+ | 'kzt'
1044
+ | 'lbp'
1045
+ | 'lkr'
1046
+ | 'lrd'
1047
+ | 'lsl'
1048
+ | 'mad'
1049
+ | 'mdl'
1050
+ | 'mga'
1051
+ | 'mkd'
1052
+ | 'mmk'
1053
+ | 'mnt'
1054
+ | 'mop'
1055
+ | 'mro'
1056
+ | 'mvr'
1057
+ | 'mwk'
1058
+ | 'mxn'
1059
+ | 'myr'
1060
+ | 'mzn'
1061
+ | 'nad'
1062
+ | 'ngn'
1063
+ | 'nok'
1064
+ | 'npr'
1065
+ | 'nzd'
1066
+ | 'pgk'
1067
+ | 'php'
1068
+ | 'pkr'
1069
+ | 'pln'
1070
+ | 'qar'
1071
+ | 'ron'
1072
+ | 'rsd'
1073
+ | 'rub'
1074
+ | 'rwf'
1075
+ | 'sar'
1076
+ | 'sbd'
1077
+ | 'scr'
1078
+ | 'sek'
1079
+ | 'sgd'
1080
+ | 'sle'
1081
+ | 'sll'
1082
+ | 'sos'
1083
+ | 'szl'
1084
+ | 'thb'
1085
+ | 'tjs'
1086
+ | 'top'
1087
+ | 'try'
1088
+ | 'ttd'
1089
+ | 'tzs'
1090
+ | 'uah'
1091
+ | 'uzs'
1092
+ | 'vnd'
1093
+ | 'vuv'
1094
+ | 'wst'
1095
+ | 'xaf'
1096
+ | 'xcd'
1097
+ | 'yer'
1098
+ | 'zar'
1099
+ | 'zmw'
1100
+ | 'clp'
1101
+ | 'djf'
1102
+ | 'gnf'
1103
+ | 'ugx'
1104
+ | 'pyg'
1105
+ | 'xof'
1106
+ | 'xpf';
1107
+ }
1108
+ }
1109
+ }
1110
+
1111
+ /**
1112
+ * Entitlement configuration for the overage feature
1113
+ */
1114
+ export interface Entitlement {
1115
+ /**
1116
+ * The feature ID for the entitlement
1117
+ */
1118
+ featureId: string;
1119
+
1120
+ /**
1121
+ * Whether the limit is soft (allows overage)
1122
+ */
1123
+ hasSoftLimit?: boolean;
1124
+
1125
+ /**
1126
+ * Whether usage is unlimited
1127
+ */
1128
+ hasUnlimitedUsage?: boolean;
1129
+
1130
+ /**
1131
+ * Monthly reset configuration
1132
+ */
1133
+ monthlyResetPeriodConfiguration?: Entitlement.MonthlyResetPeriodConfiguration;
1134
+
1135
+ /**
1136
+ * The usage reset period
1137
+ */
1138
+ resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR';
1139
+
1140
+ /**
1141
+ * The usage limit before overage kicks in
1142
+ */
1143
+ usageLimit?: number;
1144
+
1145
+ /**
1146
+ * Weekly reset configuration
1147
+ */
1148
+ weeklyResetPeriodConfiguration?: Entitlement.WeeklyResetPeriodConfiguration;
1149
+
1150
+ /**
1151
+ * Yearly reset configuration
1152
+ */
1153
+ yearlyResetPeriodConfiguration?: Entitlement.YearlyResetPeriodConfiguration;
1154
+ }
1155
+
1156
+ export namespace Entitlement {
1157
+ /**
1158
+ * Monthly reset configuration
1159
+ */
1160
+ export interface MonthlyResetPeriodConfiguration {
1161
+ /**
1162
+ * Reset anchor (SubscriptionStart or StartOfTheMonth)
1163
+ */
1164
+ accordingTo: 'SubscriptionStart' | 'StartOfTheMonth';
1165
+ }
1166
+
1167
+ /**
1168
+ * Weekly reset configuration
1169
+ */
1170
+ export interface WeeklyResetPeriodConfiguration {
1171
+ /**
1172
+ * Reset anchor (SubscriptionStart or specific day)
1173
+ */
1174
+ accordingTo:
1175
+ | 'SubscriptionStart'
1176
+ | 'EverySunday'
1177
+ | 'EveryMonday'
1178
+ | 'EveryTuesday'
1179
+ | 'EveryWednesday'
1180
+ | 'EveryThursday'
1181
+ | 'EveryFriday'
1182
+ | 'EverySaturday';
1183
+ }
1184
+
1185
+ /**
1186
+ * Yearly reset configuration
1187
+ */
1188
+ export interface YearlyResetPeriodConfiguration {
1189
+ /**
1190
+ * Reset anchor (SubscriptionStart)
1191
+ */
1192
+ accordingTo: 'SubscriptionStart';
1193
+ }
1194
+ }
1195
+ }
1196
+
1197
+ /**
1198
+ * A pricing model configuration with billing details and price periods.
1199
+ */
1200
+ export interface PricingModel {
1201
+ /**
1202
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED)
1203
+ */
1204
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
1205
+
1206
+ /**
1207
+ * Array of price period configurations (at least one required)
1208
+ */
1209
+ pricePeriods: Array<PricingModel.PricePeriod>;
1210
+
1211
+ /**
1212
+ * The billing cadence (RECURRING or ONE_OFF)
1213
+ */
1214
+ billingCadence?: 'RECURRING' | 'ONE_OFF';
1215
+
1216
+ /**
1217
+ * The feature ID this pricing model is associated with
1218
+ */
1219
+ featureId?: string;
1220
+
1221
+ /**
1222
+ * Maximum number of units (max 999999)
1223
+ */
1224
+ maxUnitQuantity?: number;
1225
+
1226
+ /**
1227
+ * Minimum number of units
1228
+ */
1229
+ minUnitQuantity?: number;
1230
+
1231
+ /**
1232
+ * Monthly reset period configuration
1233
+ */
1234
+ monthlyResetPeriodConfiguration?: PricingModel.MonthlyResetPeriodConfiguration;
1235
+
1236
+ /**
1237
+ * The usage reset period
1238
+ */
1239
+ resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR';
1240
+
1241
+ /**
1242
+ * The tiered pricing mode (VOLUME or GRADUATED)
1243
+ */
1244
+ tiersMode?: 'VOLUME' | 'GRADUATED';
1245
+
1246
+ /**
1247
+ * The custom currency ID for top-up pricing
1248
+ */
1249
+ topUpCustomCurrencyId?: string;
1250
+
1251
+ /**
1252
+ * Weekly reset period configuration
1253
+ */
1254
+ weeklyResetPeriodConfiguration?: PricingModel.WeeklyResetPeriodConfiguration;
1255
+
1256
+ /**
1257
+ * Yearly reset period configuration
1258
+ */
1259
+ yearlyResetPeriodConfiguration?: PricingModel.YearlyResetPeriodConfiguration;
1260
+ }
1261
+
1262
+ export namespace PricingModel {
1263
+ /**
1264
+ * Price configuration for a specific billing period.
1265
+ */
1266
+ export interface PricePeriod {
1267
+ /**
1268
+ * The billing period (MONTHLY or ANNUALLY)
1269
+ */
1270
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
1271
+
1272
+ /**
1273
+ * ISO country code for localized pricing
1274
+ */
1275
+ billingCountryCode?: string;
1276
+
1277
+ /**
1278
+ * Block size for usage-based pricing
1279
+ */
1280
+ blockSize?: number;
1281
+
1282
+ /**
1283
+ * When credits are granted
1284
+ */
1285
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY';
1286
+
1287
+ /**
1288
+ * Credit rate configuration for credit-based pricing
1289
+ */
1290
+ creditRate?: PricePeriod.CreditRate;
1291
+
1292
+ /**
1293
+ * The price amount and currency
1294
+ */
1295
+ price?: PricePeriod.Price;
1296
+
1297
+ /**
1298
+ * Tiered pricing configuration
1299
+ */
1300
+ tiers?: Array<PricePeriod.Tier>;
1301
+ }
1302
+
1303
+ export namespace PricePeriod {
1304
+ /**
1305
+ * Credit rate configuration for credit-based pricing
1306
+ */
1307
+ export interface CreditRate {
1308
+ /**
1309
+ * The credit rate amount
1310
+ */
1311
+ amount: number;
1312
+
1313
+ /**
1314
+ * The custom currency ID
1315
+ */
1316
+ currencyId: string;
1317
+
1318
+ /**
1319
+ * Optional cost formula expression
1320
+ */
1321
+ costFormula?: string;
1322
+ }
1323
+
1324
+ /**
1325
+ * The price amount and currency
1326
+ */
1327
+ export interface Price {
1328
+ /**
1329
+ * The price amount
1330
+ */
1331
+ amount: number;
1332
+
1333
+ /**
1334
+ * The price currency
1335
+ */
1336
+ currency?:
1337
+ | 'usd'
1338
+ | 'aed'
1339
+ | 'all'
1340
+ | 'amd'
1341
+ | 'ang'
1342
+ | 'aud'
1343
+ | 'awg'
1344
+ | 'azn'
1345
+ | 'bam'
1346
+ | 'bbd'
1347
+ | 'bdt'
1348
+ | 'bgn'
1349
+ | 'bif'
1350
+ | 'bmd'
1351
+ | 'bnd'
1352
+ | 'bsd'
1353
+ | 'bwp'
1354
+ | 'byn'
1355
+ | 'bzd'
1356
+ | 'brl'
1357
+ | 'cad'
1358
+ | 'cdf'
1359
+ | 'chf'
1360
+ | 'cny'
1361
+ | 'czk'
1362
+ | 'dkk'
1363
+ | 'dop'
1364
+ | 'dzd'
1365
+ | 'egp'
1366
+ | 'etb'
1367
+ | 'eur'
1368
+ | 'fjd'
1369
+ | 'gbp'
1370
+ | 'gel'
1371
+ | 'gip'
1372
+ | 'gmd'
1373
+ | 'gyd'
1374
+ | 'hkd'
1375
+ | 'hrk'
1376
+ | 'htg'
1377
+ | 'idr'
1378
+ | 'ils'
1379
+ | 'inr'
1380
+ | 'isk'
1381
+ | 'jmd'
1382
+ | 'jpy'
1383
+ | 'kes'
1384
+ | 'kgs'
1385
+ | 'khr'
1386
+ | 'kmf'
1387
+ | 'krw'
1388
+ | 'kyd'
1389
+ | 'kzt'
1390
+ | 'lbp'
1391
+ | 'lkr'
1392
+ | 'lrd'
1393
+ | 'lsl'
1394
+ | 'mad'
1395
+ | 'mdl'
1396
+ | 'mga'
1397
+ | 'mkd'
1398
+ | 'mmk'
1399
+ | 'mnt'
1400
+ | 'mop'
1401
+ | 'mro'
1402
+ | 'mvr'
1403
+ | 'mwk'
1404
+ | 'mxn'
1405
+ | 'myr'
1406
+ | 'mzn'
1407
+ | 'nad'
1408
+ | 'ngn'
1409
+ | 'nok'
1410
+ | 'npr'
1411
+ | 'nzd'
1412
+ | 'pgk'
1413
+ | 'php'
1414
+ | 'pkr'
1415
+ | 'pln'
1416
+ | 'qar'
1417
+ | 'ron'
1418
+ | 'rsd'
1419
+ | 'rub'
1420
+ | 'rwf'
1421
+ | 'sar'
1422
+ | 'sbd'
1423
+ | 'scr'
1424
+ | 'sek'
1425
+ | 'sgd'
1426
+ | 'sle'
1427
+ | 'sll'
1428
+ | 'sos'
1429
+ | 'szl'
1430
+ | 'thb'
1431
+ | 'tjs'
1432
+ | 'top'
1433
+ | 'try'
1434
+ | 'ttd'
1435
+ | 'tzs'
1436
+ | 'uah'
1437
+ | 'uzs'
1438
+ | 'vnd'
1439
+ | 'vuv'
1440
+ | 'wst'
1441
+ | 'xaf'
1442
+ | 'xcd'
1443
+ | 'yer'
1444
+ | 'zar'
1445
+ | 'zmw'
1446
+ | 'clp'
1447
+ | 'djf'
1448
+ | 'gnf'
1449
+ | 'ugx'
1450
+ | 'pyg'
1451
+ | 'xof'
1452
+ | 'xpf';
1453
+ }
1454
+
1455
+ /**
1456
+ * A tier in tiered pricing.
1457
+ */
1458
+ export interface Tier {
1459
+ /**
1460
+ * Flat price for this tier
1461
+ */
1462
+ flatPrice?: Tier.FlatPrice;
1463
+
1464
+ /**
1465
+ * Per-unit price in this tier
1466
+ */
1467
+ unitPrice?: Tier.UnitPrice;
1468
+
1469
+ /**
1470
+ * Upper bound of this tier (null for unlimited)
1471
+ */
1472
+ upTo?: number;
1473
+ }
1474
+
1475
+ export namespace Tier {
1476
+ /**
1477
+ * Flat price for this tier
1478
+ */
1479
+ export interface FlatPrice {
1480
+ /**
1481
+ * The price amount
1482
+ */
1483
+ amount: number;
1484
+
1485
+ /**
1486
+ * The price currency
1487
+ */
1488
+ currency?:
1489
+ | 'usd'
1490
+ | 'aed'
1491
+ | 'all'
1492
+ | 'amd'
1493
+ | 'ang'
1494
+ | 'aud'
1495
+ | 'awg'
1496
+ | 'azn'
1497
+ | 'bam'
1498
+ | 'bbd'
1499
+ | 'bdt'
1500
+ | 'bgn'
1501
+ | 'bif'
1502
+ | 'bmd'
1503
+ | 'bnd'
1504
+ | 'bsd'
1505
+ | 'bwp'
1506
+ | 'byn'
1507
+ | 'bzd'
1508
+ | 'brl'
1509
+ | 'cad'
1510
+ | 'cdf'
1511
+ | 'chf'
1512
+ | 'cny'
1513
+ | 'czk'
1514
+ | 'dkk'
1515
+ | 'dop'
1516
+ | 'dzd'
1517
+ | 'egp'
1518
+ | 'etb'
1519
+ | 'eur'
1520
+ | 'fjd'
1521
+ | 'gbp'
1522
+ | 'gel'
1523
+ | 'gip'
1524
+ | 'gmd'
1525
+ | 'gyd'
1526
+ | 'hkd'
1527
+ | 'hrk'
1528
+ | 'htg'
1529
+ | 'idr'
1530
+ | 'ils'
1531
+ | 'inr'
1532
+ | 'isk'
1533
+ | 'jmd'
1534
+ | 'jpy'
1535
+ | 'kes'
1536
+ | 'kgs'
1537
+ | 'khr'
1538
+ | 'kmf'
1539
+ | 'krw'
1540
+ | 'kyd'
1541
+ | 'kzt'
1542
+ | 'lbp'
1543
+ | 'lkr'
1544
+ | 'lrd'
1545
+ | 'lsl'
1546
+ | 'mad'
1547
+ | 'mdl'
1548
+ | 'mga'
1549
+ | 'mkd'
1550
+ | 'mmk'
1551
+ | 'mnt'
1552
+ | 'mop'
1553
+ | 'mro'
1554
+ | 'mvr'
1555
+ | 'mwk'
1556
+ | 'mxn'
1557
+ | 'myr'
1558
+ | 'mzn'
1559
+ | 'nad'
1560
+ | 'ngn'
1561
+ | 'nok'
1562
+ | 'npr'
1563
+ | 'nzd'
1564
+ | 'pgk'
1565
+ | 'php'
1566
+ | 'pkr'
1567
+ | 'pln'
1568
+ | 'qar'
1569
+ | 'ron'
1570
+ | 'rsd'
1571
+ | 'rub'
1572
+ | 'rwf'
1573
+ | 'sar'
1574
+ | 'sbd'
1575
+ | 'scr'
1576
+ | 'sek'
1577
+ | 'sgd'
1578
+ | 'sle'
1579
+ | 'sll'
1580
+ | 'sos'
1581
+ | 'szl'
1582
+ | 'thb'
1583
+ | 'tjs'
1584
+ | 'top'
1585
+ | 'try'
1586
+ | 'ttd'
1587
+ | 'tzs'
1588
+ | 'uah'
1589
+ | 'uzs'
1590
+ | 'vnd'
1591
+ | 'vuv'
1592
+ | 'wst'
1593
+ | 'xaf'
1594
+ | 'xcd'
1595
+ | 'yer'
1596
+ | 'zar'
1597
+ | 'zmw'
1598
+ | 'clp'
1599
+ | 'djf'
1600
+ | 'gnf'
1601
+ | 'ugx'
1602
+ | 'pyg'
1603
+ | 'xof'
1604
+ | 'xpf';
1605
+ }
1606
+
1607
+ /**
1608
+ * Per-unit price in this tier
1609
+ */
1610
+ export interface UnitPrice {
1611
+ /**
1612
+ * The price amount
1613
+ */
1614
+ amount: number;
1615
+
1616
+ /**
1617
+ * The price currency
1618
+ */
1619
+ currency?:
1620
+ | 'usd'
1621
+ | 'aed'
1622
+ | 'all'
1623
+ | 'amd'
1624
+ | 'ang'
1625
+ | 'aud'
1626
+ | 'awg'
1627
+ | 'azn'
1628
+ | 'bam'
1629
+ | 'bbd'
1630
+ | 'bdt'
1631
+ | 'bgn'
1632
+ | 'bif'
1633
+ | 'bmd'
1634
+ | 'bnd'
1635
+ | 'bsd'
1636
+ | 'bwp'
1637
+ | 'byn'
1638
+ | 'bzd'
1639
+ | 'brl'
1640
+ | 'cad'
1641
+ | 'cdf'
1642
+ | 'chf'
1643
+ | 'cny'
1644
+ | 'czk'
1645
+ | 'dkk'
1646
+ | 'dop'
1647
+ | 'dzd'
1648
+ | 'egp'
1649
+ | 'etb'
1650
+ | 'eur'
1651
+ | 'fjd'
1652
+ | 'gbp'
1653
+ | 'gel'
1654
+ | 'gip'
1655
+ | 'gmd'
1656
+ | 'gyd'
1657
+ | 'hkd'
1658
+ | 'hrk'
1659
+ | 'htg'
1660
+ | 'idr'
1661
+ | 'ils'
1662
+ | 'inr'
1663
+ | 'isk'
1664
+ | 'jmd'
1665
+ | 'jpy'
1666
+ | 'kes'
1667
+ | 'kgs'
1668
+ | 'khr'
1669
+ | 'kmf'
1670
+ | 'krw'
1671
+ | 'kyd'
1672
+ | 'kzt'
1673
+ | 'lbp'
1674
+ | 'lkr'
1675
+ | 'lrd'
1676
+ | 'lsl'
1677
+ | 'mad'
1678
+ | 'mdl'
1679
+ | 'mga'
1680
+ | 'mkd'
1681
+ | 'mmk'
1682
+ | 'mnt'
1683
+ | 'mop'
1684
+ | 'mro'
1685
+ | 'mvr'
1686
+ | 'mwk'
1687
+ | 'mxn'
1688
+ | 'myr'
1689
+ | 'mzn'
1690
+ | 'nad'
1691
+ | 'ngn'
1692
+ | 'nok'
1693
+ | 'npr'
1694
+ | 'nzd'
1695
+ | 'pgk'
1696
+ | 'php'
1697
+ | 'pkr'
1698
+ | 'pln'
1699
+ | 'qar'
1700
+ | 'ron'
1701
+ | 'rsd'
1702
+ | 'rub'
1703
+ | 'rwf'
1704
+ | 'sar'
1705
+ | 'sbd'
1706
+ | 'scr'
1707
+ | 'sek'
1708
+ | 'sgd'
1709
+ | 'sle'
1710
+ | 'sll'
1711
+ | 'sos'
1712
+ | 'szl'
1713
+ | 'thb'
1714
+ | 'tjs'
1715
+ | 'top'
1716
+ | 'try'
1717
+ | 'ttd'
1718
+ | 'tzs'
1719
+ | 'uah'
1720
+ | 'uzs'
1721
+ | 'vnd'
1722
+ | 'vuv'
1723
+ | 'wst'
1724
+ | 'xaf'
1725
+ | 'xcd'
1726
+ | 'yer'
1727
+ | 'zar'
1728
+ | 'zmw'
1729
+ | 'clp'
1730
+ | 'djf'
1731
+ | 'gnf'
1732
+ | 'ugx'
1733
+ | 'pyg'
1734
+ | 'xof'
1735
+ | 'xpf';
1736
+ }
1737
+ }
1738
+ }
1739
+
1740
+ /**
1741
+ * Monthly reset period configuration
1742
+ */
1743
+ export interface MonthlyResetPeriodConfiguration {
1744
+ /**
1745
+ * Reset anchor (SubscriptionStart or StartOfTheMonth)
1746
+ */
1747
+ accordingTo: 'SubscriptionStart' | 'StartOfTheMonth';
1748
+ }
1749
+
1750
+ /**
1751
+ * Weekly reset period configuration
1752
+ */
1753
+ export interface WeeklyResetPeriodConfiguration {
1754
+ /**
1755
+ * Reset anchor (SubscriptionStart or specific day)
1756
+ */
1757
+ accordingTo:
1758
+ | 'SubscriptionStart'
1759
+ | 'EverySunday'
1760
+ | 'EveryMonday'
1761
+ | 'EveryTuesday'
1762
+ | 'EveryWednesday'
1763
+ | 'EveryThursday'
1764
+ | 'EveryFriday'
1765
+ | 'EverySaturday';
1766
+ }
1767
+
1768
+ /**
1769
+ * Yearly reset period configuration
1770
+ */
1771
+ export interface YearlyResetPeriodConfiguration {
1772
+ /**
1773
+ * Reset anchor (SubscriptionStart)
1774
+ */
1775
+ accordingTo: 'SubscriptionStart';
1776
+ }
1777
+ }
1778
+ }
1779
+ }
1780
+
1781
+ export interface AddonListParams extends MyCursorIDPageParams {
1782
+ /**
1783
+ * Filter by creation date using range operators: gt, gte, lt, lte
1784
+ */
1785
+ createdAt?: AddonListParams.CreatedAt;
1786
+
1787
+ /**
1788
+ * Filter by product ID
1789
+ */
1790
+ productId?: string;
1791
+
1792
+ /**
1793
+ * Filter by status. Supports comma-separated values for multiple statuses
1794
+ */
1795
+ status?: string;
1796
+ }
1797
+
1798
+ export namespace AddonListParams {
1799
+ /**
1800
+ * Filter by creation date using range operators: gt, gte, lt, lte
1801
+ */
1802
+ export interface CreatedAt {
1803
+ /**
1804
+ * Greater than the specified createdAt value
1805
+ */
1806
+ gt?: string;
1807
+
1808
+ /**
1809
+ * Greater than or equal to the specified createdAt value
1810
+ */
1811
+ gte?: string;
1812
+
1813
+ /**
1814
+ * Less than the specified createdAt value
1815
+ */
1816
+ lt?: string;
1817
+
1818
+ /**
1819
+ * Less than or equal to the specified createdAt value
1820
+ */
1821
+ lte?: string;
1822
+ }
1823
+ }
1824
+
1825
+ export interface AddonPublishParams {
1826
+ /**
1827
+ * The migration type of the package
1828
+ */
1829
+ migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
1830
+ }
1831
+
1832
+ Addons.Entitlements = Entitlements;
1833
+
1834
+ export declare namespace Addons {
1835
+ export {
1836
+ type Addon as Addon,
1837
+ type AddonListResponse as AddonListResponse,
1838
+ type AddonPublishResponse as AddonPublishResponse,
1839
+ type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
1840
+ type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
1841
+ type AddonCreateParams as AddonCreateParams,
1842
+ type AddonUpdateParams as AddonUpdateParams,
1843
+ type AddonListParams as AddonListParams,
1844
+ type AddonPublishParams as AddonPublishParams,
1845
+ };
1846
+
1847
+ export {
1848
+ Entitlements as Entitlements,
1849
+ type AddonPackageEntitlement as AddonPackageEntitlement,
1850
+ type EntitlementCreateResponse as EntitlementCreateResponse,
1851
+ type EntitlementListResponse as EntitlementListResponse,
1852
+ type EntitlementCreateParams as EntitlementCreateParams,
1853
+ type EntitlementUpdateParams as EntitlementUpdateParams,
1854
+ type EntitlementDeleteParams as EntitlementDeleteParams,
1855
+ };
1856
+ }