@flexprice/sdk 2.1.11 → 2.1.18

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 (546) hide show
  1. package/docs/sdk/models/attributed-to-customer-result.md +17 -0
  2. package/docs/sdk/models/bucket-summary.md +26 -0
  3. package/docs/sdk/models/bucket.md +16 -0
  4. package/docs/sdk/models/cancel-subscription-request.md +7 -7
  5. package/docs/sdk/models/changed-subscription.md +7 -5
  6. package/docs/sdk/models/commitment-bucket-request.md +22 -0
  7. package/docs/sdk/models/coupon-response.md +1 -0
  8. package/docs/sdk/models/coupon.md +1 -0
  9. package/docs/sdk/models/create-coupon-request.md +1 -0
  10. package/docs/sdk/models/create-invoice-line-item-request.md +25 -22
  11. package/docs/sdk/models/create-subscription-line-item-request.md +1 -0
  12. package/docs/sdk/models/create-subscription-request.md +3 -2
  13. package/docs/sdk/models/create-tax-association-request.md +12 -10
  14. package/docs/sdk/models/create-user-request.md +1 -0
  15. package/docs/sdk/models/create-user-response.md +2 -0
  16. package/docs/sdk/models/debug-tracker-status.md +2 -2
  17. package/docs/sdk/models/debug-tracker.md +1 -0
  18. package/docs/sdk/models/delete-service-account-request.md +17 -0
  19. package/docs/sdk/models/delink-integration-mapping-request.md +21 -0
  20. package/docs/sdk/models/entity-integration-mapping-response.md +1 -0
  21. package/docs/sdk/models/entity-sync-config.md +16 -0
  22. package/docs/sdk/models/execute-subscription-modify-request-request.md +1 -1
  23. package/docs/sdk/models/execute-subscription-modify-request.md +4 -1
  24. package/docs/sdk/models/failure-point-type.md +1 -1
  25. package/docs/sdk/models/get-coupon-association-request.md +17 -0
  26. package/docs/sdk/models/get-entity-integration-mappings-request.md +19 -0
  27. package/docs/sdk/models/get-usage-analytics-request.md +13 -12
  28. package/docs/sdk/models/inheritance-action.md +15 -0
  29. package/docs/sdk/models/integration-config-entry.md +17 -0
  30. package/docs/sdk/models/integration-config-response.md +15 -0
  31. package/docs/sdk/models/invoice-billing-reason.md +1 -1
  32. package/docs/sdk/models/invoice-filter.md +2 -0
  33. package/docs/sdk/models/invoice-line-item-response.md +38 -36
  34. package/docs/sdk/models/invoice-sync-settings.md +15 -0
  35. package/docs/sdk/models/line-item-commitment-config.md +10 -9
  36. package/docs/sdk/models/list-coupon-associations-request.md +19 -0
  37. package/docs/sdk/models/list-coupon-associations-response.md +16 -0
  38. package/docs/sdk/models/list-entity-integration-mappings-response.md +16 -0
  39. package/docs/sdk/models/meter-usage-attribution.md +17 -0
  40. package/docs/sdk/models/payment-gateway-type.md +1 -1
  41. package/docs/sdk/models/preview-subscription-modify-request.md +1 -1
  42. package/docs/sdk/models/price-filter.md +1 -0
  43. package/docs/sdk/models/price-price.md +43 -42
  44. package/docs/sdk/models/price-response.md +48 -47
  45. package/docs/sdk/models/s3-export-config.md +20 -0
  46. package/docs/sdk/models/secret-provider.md +1 -1
  47. package/docs/sdk/models/sub-modify-coupon-action.md +15 -0
  48. package/docs/sdk/models/sub-modify-coupon-params.md +24 -0
  49. package/docs/sdk/models/sub-modify-inheritance-request.md +5 -3
  50. package/docs/sdk/models/sub-modify-tax-action.md +15 -0
  51. package/docs/sdk/models/sub-modify-tax-params.md +20 -0
  52. package/docs/sdk/models/sub-modify-trial-end-request.md +18 -0
  53. package/docs/sdk/models/subscription-coupon-input.md +20 -0
  54. package/docs/sdk/models/subscription-line-item-response.md +1 -0
  55. package/docs/sdk/models/subscription-modify-type.md +2 -2
  56. package/docs/sdk/models/subscription-phase-create-request.md +4 -3
  57. package/docs/sdk/models/subscription-response-v2.md +2 -0
  58. package/docs/sdk/models/subscription-response.md +1 -0
  59. package/docs/sdk/models/subscription-subscription-line-item.md +1 -0
  60. package/docs/sdk/models/sync-config.md +23 -0
  61. package/docs/sdk/models/tax-association-response.md +2 -0
  62. package/docs/sdk/models/time-of-day-bucket.md +22 -0
  63. package/docs/sdk/models/trial-end-action.md +15 -0
  64. package/docs/sdk/models/update-service-account-request-request.md +21 -0
  65. package/docs/sdk/models/update-service-account-request.md +17 -0
  66. package/docs/sdk/models/update-service-account-response.md +21 -0
  67. package/docs/sdk/models/update-subscription-line-item-request.md +17 -16
  68. package/docs/sdk/models/update-user-request.md +16 -0
  69. package/docs/sdk/models/update-user-response.md +21 -0
  70. package/docs/sdk/models/usage-analytic-item.md +34 -33
  71. package/docs/sdk/models/usage-analytic-point.md +11 -9
  72. package/docs/sdk/models/user-response.md +2 -0
  73. package/docs/sdk/models/window-size.md +2 -2
  74. package/docs/sdks/couponassociations/README.md +150 -0
  75. package/docs/sdks/integrations/README.md +223 -0
  76. package/docs/sdks/subscriptions/README.md +4 -4
  77. package/docs/sdks/users/README.md +221 -0
  78. package/esm/funcs/coupon-associations-get-coupon-association.d.ts +17 -0
  79. package/esm/funcs/coupon-associations-get-coupon-association.d.ts.map +1 -0
  80. package/esm/funcs/coupon-associations-get-coupon-association.js +91 -0
  81. package/esm/funcs/coupon-associations-get-coupon-association.js.map +1 -0
  82. package/esm/funcs/coupon-associations-list-coupon-associations.d.ts +17 -0
  83. package/esm/funcs/coupon-associations-list-coupon-associations.d.ts.map +1 -0
  84. package/esm/funcs/coupon-associations-list-coupon-associations.js +91 -0
  85. package/esm/funcs/coupon-associations-list-coupon-associations.js.map +1 -0
  86. package/esm/funcs/integrations-delink-integration-mapping.d.ts +17 -0
  87. package/esm/funcs/integrations-delink-integration-mapping.d.ts.map +1 -0
  88. package/esm/funcs/integrations-delink-integration-mapping.js +83 -0
  89. package/esm/funcs/integrations-delink-integration-mapping.js.map +1 -0
  90. package/esm/funcs/integrations-get-entity-integration-mappings.d.ts +17 -0
  91. package/esm/funcs/integrations-get-entity-integration-mappings.d.ts.map +1 -0
  92. package/esm/funcs/integrations-get-entity-integration-mappings.js +91 -0
  93. package/esm/funcs/integrations-get-entity-integration-mappings.js.map +1 -0
  94. package/esm/funcs/integrations-get-integration-config.d.ts +17 -0
  95. package/esm/funcs/integrations-get-integration-config.d.ts.map +1 -0
  96. package/esm/funcs/integrations-get-integration-config.js +72 -0
  97. package/esm/funcs/integrations-get-integration-config.js.map +1 -0
  98. package/esm/funcs/subscriptions-execute-subscription-modify.d.ts +1 -1
  99. package/esm/funcs/subscriptions-execute-subscription-modify.js +1 -1
  100. package/esm/funcs/subscriptions-preview-subscription-modify.d.ts +1 -1
  101. package/esm/funcs/subscriptions-preview-subscription-modify.js +1 -1
  102. package/esm/funcs/users-delete-service-account.d.ts +17 -0
  103. package/esm/funcs/users-delete-service-account.d.ts.map +1 -0
  104. package/esm/funcs/users-delete-service-account.js +91 -0
  105. package/esm/funcs/users-delete-service-account.js.map +1 -0
  106. package/esm/funcs/users-update-service-account.d.ts +17 -0
  107. package/esm/funcs/users-update-service-account.d.ts.map +1 -0
  108. package/esm/funcs/users-update-service-account.js +93 -0
  109. package/esm/funcs/users-update-service-account.js.map +1 -0
  110. package/esm/funcs/users-update-user.d.ts +17 -0
  111. package/esm/funcs/users-update-user.d.ts.map +1 -0
  112. package/esm/funcs/users-update-user.js +83 -0
  113. package/esm/funcs/users-update-user.js.map +1 -0
  114. package/esm/hooks/types.d.ts +1 -0
  115. package/esm/hooks/types.d.ts.map +1 -1
  116. package/esm/lib/config.d.ts +3 -3
  117. package/esm/lib/config.js +3 -3
  118. package/esm/lib/encodings.js +1 -1
  119. package/esm/lib/encodings.js.map +1 -1
  120. package/esm/lib/matchers.js +1 -1
  121. package/esm/lib/matchers.js.map +1 -1
  122. package/esm/lib/primitives.d.ts +1 -0
  123. package/esm/lib/primitives.d.ts.map +1 -1
  124. package/esm/lib/primitives.js +17 -0
  125. package/esm/lib/primitives.js.map +1 -1
  126. package/esm/lib/sdks.d.ts.map +1 -1
  127. package/esm/lib/sdks.js +50 -16
  128. package/esm/lib/sdks.js.map +1 -1
  129. package/esm/sdk/coupon-associations.d.ts +19 -0
  130. package/esm/sdk/coupon-associations.d.ts.map +1 -0
  131. package/esm/sdk/coupon-associations.js +28 -0
  132. package/esm/sdk/coupon-associations.js.map +1 -0
  133. package/esm/sdk/integrations.d.ts +21 -0
  134. package/esm/sdk/integrations.d.ts.map +1 -1
  135. package/esm/sdk/integrations.js +30 -0
  136. package/esm/sdk/integrations.js.map +1 -1
  137. package/esm/sdk/models/attributed-to-customer-result.d.ts +15 -0
  138. package/esm/sdk/models/attributed-to-customer-result.d.ts.map +1 -0
  139. package/esm/sdk/models/attributed-to-customer-result.js +24 -0
  140. package/esm/sdk/models/attributed-to-customer-result.js.map +1 -0
  141. package/esm/sdk/models/bucket-summary.d.ts +31 -0
  142. package/esm/sdk/models/bucket-summary.d.ts.map +1 -0
  143. package/esm/sdk/models/bucket-summary.js +40 -0
  144. package/esm/sdk/models/bucket-summary.js.map +1 -0
  145. package/esm/sdk/models/bucket.d.ts +19 -0
  146. package/esm/sdk/models/bucket.d.ts.map +1 -0
  147. package/esm/sdk/models/bucket.js +24 -0
  148. package/esm/sdk/models/bucket.js.map +1 -0
  149. package/esm/sdk/models/cancel-subscription-request.d.ts +8 -0
  150. package/esm/sdk/models/cancel-subscription-request.d.ts.map +1 -1
  151. package/esm/sdk/models/cancel-subscription-request.js.map +1 -1
  152. package/esm/sdk/models/changed-subscription.d.ts +2 -0
  153. package/esm/sdk/models/changed-subscription.d.ts.map +1 -1
  154. package/esm/sdk/models/changed-subscription.js +10 -2
  155. package/esm/sdk/models/changed-subscription.js.map +1 -1
  156. package/esm/sdk/models/commitment-bucket-request.d.ts +29 -0
  157. package/esm/sdk/models/commitment-bucket-request.d.ts.map +1 -0
  158. package/esm/sdk/models/commitment-bucket-request.js +30 -0
  159. package/esm/sdk/models/commitment-bucket-request.js.map +1 -0
  160. package/esm/sdk/models/coupon-response.d.ts +1 -0
  161. package/esm/sdk/models/coupon-response.d.ts.map +1 -1
  162. package/esm/sdk/models/coupon-response.js +2 -0
  163. package/esm/sdk/models/coupon-response.js.map +1 -1
  164. package/esm/sdk/models/coupon.d.ts +1 -0
  165. package/esm/sdk/models/coupon.d.ts.map +1 -1
  166. package/esm/sdk/models/coupon.js +2 -0
  167. package/esm/sdk/models/coupon.js.map +1 -1
  168. package/esm/sdk/models/create-coupon-request.d.ts +2 -0
  169. package/esm/sdk/models/create-coupon-request.d.ts.map +1 -1
  170. package/esm/sdk/models/create-coupon-request.js +2 -0
  171. package/esm/sdk/models/create-coupon-request.js.map +1 -1
  172. package/esm/sdk/models/create-invoice-line-item-request.d.ts +18 -0
  173. package/esm/sdk/models/create-invoice-line-item-request.d.ts.map +1 -1
  174. package/esm/sdk/models/create-invoice-line-item-request.js +6 -0
  175. package/esm/sdk/models/create-invoice-line-item-request.js.map +1 -1
  176. package/esm/sdk/models/create-subscription-line-item-request.d.ts +3 -0
  177. package/esm/sdk/models/create-subscription-line-item-request.d.ts.map +1 -1
  178. package/esm/sdk/models/create-subscription-line-item-request.js +3 -0
  179. package/esm/sdk/models/create-subscription-line-item-request.js.map +1 -1
  180. package/esm/sdk/models/create-subscription-request.d.ts +15 -0
  181. package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
  182. package/esm/sdk/models/create-subscription-request.js +3 -0
  183. package/esm/sdk/models/create-subscription-request.js.map +1 -1
  184. package/esm/sdk/models/create-tax-association-request.d.ts +10 -0
  185. package/esm/sdk/models/create-tax-association-request.d.ts.map +1 -1
  186. package/esm/sdk/models/create-tax-association-request.js +4 -0
  187. package/esm/sdk/models/create-tax-association-request.js.map +1 -1
  188. package/esm/sdk/models/create-user-request.d.ts +5 -0
  189. package/esm/sdk/models/create-user-request.d.ts.map +1 -1
  190. package/esm/sdk/models/create-user-request.js +1 -0
  191. package/esm/sdk/models/create-user-request.js.map +1 -1
  192. package/esm/sdk/models/create-user-response.d.ts +4 -0
  193. package/esm/sdk/models/create-user-response.d.ts.map +1 -1
  194. package/esm/sdk/models/create-user-response.js +2 -0
  195. package/esm/sdk/models/create-user-response.js.map +1 -1
  196. package/esm/sdk/models/debug-tracker-status.d.ts +2 -0
  197. package/esm/sdk/models/debug-tracker-status.d.ts.map +1 -1
  198. package/esm/sdk/models/debug-tracker-status.js +2 -0
  199. package/esm/sdk/models/debug-tracker-status.js.map +1 -1
  200. package/esm/sdk/models/debug-tracker.d.ts +2 -0
  201. package/esm/sdk/models/debug-tracker.d.ts.map +1 -1
  202. package/esm/sdk/models/debug-tracker.js +3 -0
  203. package/esm/sdk/models/debug-tracker.js.map +1 -1
  204. package/esm/sdk/models/delete-service-account-op.d.ts +15 -0
  205. package/esm/sdk/models/delete-service-account-op.d.ts.map +1 -0
  206. package/esm/sdk/models/delete-service-account-op.js +12 -0
  207. package/esm/sdk/models/delete-service-account-op.js.map +1 -0
  208. package/esm/sdk/models/delink-integration-mapping-request.d.ts +17 -0
  209. package/esm/sdk/models/delink-integration-mapping-request.d.ts.map +1 -0
  210. package/esm/sdk/models/delink-integration-mapping-request.js +22 -0
  211. package/esm/sdk/models/delink-integration-mapping-request.js.map +1 -0
  212. package/esm/sdk/models/entity-integration-mapping-response.d.ts +3 -0
  213. package/esm/sdk/models/entity-integration-mapping-response.d.ts.map +1 -1
  214. package/esm/sdk/models/entity-integration-mapping-response.js +1 -0
  215. package/esm/sdk/models/entity-integration-mapping-response.js.map +1 -1
  216. package/esm/sdk/models/entity-sync-config.d.ts +17 -0
  217. package/esm/sdk/models/entity-sync-config.d.ts.map +1 -0
  218. package/esm/sdk/models/entity-sync-config.js +15 -0
  219. package/esm/sdk/models/entity-sync-config.js.map +1 -0
  220. package/esm/sdk/models/execute-subscription-modify-request.d.ts +9 -0
  221. package/esm/sdk/models/execute-subscription-modify-request.d.ts.map +1 -1
  222. package/esm/sdk/models/execute-subscription-modify-request.js +9 -0
  223. package/esm/sdk/models/execute-subscription-modify-request.js.map +1 -1
  224. package/esm/sdk/models/failure-point-type.d.ts +1 -0
  225. package/esm/sdk/models/failure-point-type.d.ts.map +1 -1
  226. package/esm/sdk/models/failure-point-type.js +1 -0
  227. package/esm/sdk/models/failure-point-type.js.map +1 -1
  228. package/esm/sdk/models/get-coupon-association-op.d.ts +15 -0
  229. package/esm/sdk/models/get-coupon-association-op.d.ts.map +1 -0
  230. package/esm/sdk/models/get-coupon-association-op.js +12 -0
  231. package/esm/sdk/models/get-coupon-association-op.js.map +1 -0
  232. package/esm/sdk/models/get-entity-integration-mappings-op.d.ts +20 -0
  233. package/esm/sdk/models/get-entity-integration-mappings-op.d.ts.map +1 -0
  234. package/esm/sdk/models/get-entity-integration-mappings-op.js +19 -0
  235. package/esm/sdk/models/get-entity-integration-mappings-op.js.map +1 -0
  236. package/esm/sdk/models/get-usage-analytics-request.d.ts +10 -0
  237. package/esm/sdk/models/get-usage-analytics-request.d.ts.map +1 -1
  238. package/esm/sdk/models/get-usage-analytics-request.js +2 -0
  239. package/esm/sdk/models/get-usage-analytics-request.js.map +1 -1
  240. package/esm/sdk/models/index.d.ts +32 -0
  241. package/esm/sdk/models/index.d.ts.map +1 -1
  242. package/esm/sdk/models/index.js +32 -0
  243. package/esm/sdk/models/index.js.map +1 -1
  244. package/esm/sdk/models/inheritance-action.d.ts +10 -0
  245. package/esm/sdk/models/inheritance-action.d.ts.map +1 -0
  246. package/esm/sdk/models/inheritance-action.js +11 -0
  247. package/esm/sdk/models/inheritance-action.js.map +1 -0
  248. package/esm/sdk/models/integration-config-entry.d.ts +14 -0
  249. package/esm/sdk/models/integration-config-entry.d.ts.map +1 -0
  250. package/esm/sdk/models/integration-config-entry.js +24 -0
  251. package/esm/sdk/models/integration-config-entry.js.map +1 -0
  252. package/esm/sdk/models/integration-config-response.d.ts +11 -0
  253. package/esm/sdk/models/integration-config-response.d.ts.map +1 -0
  254. package/esm/sdk/models/integration-config-response.js +15 -0
  255. package/esm/sdk/models/integration-config-response.js.map +1 -0
  256. package/esm/sdk/models/invoice-billing-reason.d.ts +1 -0
  257. package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
  258. package/esm/sdk/models/invoice-billing-reason.js +1 -0
  259. package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
  260. package/esm/sdk/models/invoice-filter.d.ts +11 -0
  261. package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
  262. package/esm/sdk/models/invoice-filter.js +4 -0
  263. package/esm/sdk/models/invoice-filter.js.map +1 -1
  264. package/esm/sdk/models/invoice-line-item-response.d.ts +11 -0
  265. package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
  266. package/esm/sdk/models/invoice-line-item-response.js +4 -0
  267. package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
  268. package/esm/sdk/models/invoice-sync-settings.d.ts +11 -0
  269. package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -0
  270. package/esm/sdk/models/invoice-sync-settings.js +20 -0
  271. package/esm/sdk/models/invoice-sync-settings.js.map +1 -0
  272. package/esm/sdk/models/line-item-commitment-config.d.ts +11 -0
  273. package/esm/sdk/models/line-item-commitment-config.d.ts.map +1 -1
  274. package/esm/sdk/models/line-item-commitment-config.js +3 -0
  275. package/esm/sdk/models/line-item-commitment-config.js.map +1 -1
  276. package/esm/sdk/models/list-coupon-associations-op.d.ts +35 -0
  277. package/esm/sdk/models/list-coupon-associations-op.d.ts.map +1 -0
  278. package/esm/sdk/models/list-coupon-associations-op.js +23 -0
  279. package/esm/sdk/models/list-coupon-associations-op.js.map +1 -0
  280. package/esm/sdk/models/list-coupon-associations-response.d.ts +13 -0
  281. package/esm/sdk/models/list-coupon-associations-response.d.ts.map +1 -0
  282. package/esm/sdk/models/list-coupon-associations-response.js +17 -0
  283. package/esm/sdk/models/list-coupon-associations-response.js.map +1 -0
  284. package/esm/sdk/models/list-entity-integration-mappings-response.d.ts +13 -0
  285. package/esm/sdk/models/list-entity-integration-mappings-response.d.ts.map +1 -0
  286. package/esm/sdk/models/list-entity-integration-mappings-response.js +17 -0
  287. package/esm/sdk/models/list-entity-integration-mappings-response.js.map +1 -0
  288. package/esm/sdk/models/meter-usage-attribution.d.ts +12 -0
  289. package/esm/sdk/models/meter-usage-attribution.d.ts.map +1 -0
  290. package/esm/sdk/models/meter-usage-attribution.js +23 -0
  291. package/esm/sdk/models/meter-usage-attribution.js.map +1 -0
  292. package/esm/sdk/models/payment-gateway-type.d.ts +1 -0
  293. package/esm/sdk/models/payment-gateway-type.d.ts.map +1 -1
  294. package/esm/sdk/models/payment-gateway-type.js +1 -0
  295. package/esm/sdk/models/payment-gateway-type.js.map +1 -1
  296. package/esm/sdk/models/price-filter.d.ts +3 -0
  297. package/esm/sdk/models/price-filter.d.ts.map +1 -1
  298. package/esm/sdk/models/price-filter.js +3 -0
  299. package/esm/sdk/models/price-filter.js.map +1 -1
  300. package/esm/sdk/models/price-price.d.ts +9 -0
  301. package/esm/sdk/models/price-price.d.ts.map +1 -1
  302. package/esm/sdk/models/price-price.js +1 -0
  303. package/esm/sdk/models/price-price.js.map +1 -1
  304. package/esm/sdk/models/price-response.d.ts +9 -0
  305. package/esm/sdk/models/price-response.d.ts.map +1 -1
  306. package/esm/sdk/models/price-response.js +1 -0
  307. package/esm/sdk/models/price-response.js.map +1 -1
  308. package/esm/sdk/models/s3-export-config.d.ts +29 -0
  309. package/esm/sdk/models/s3-export-config.d.ts.map +1 -0
  310. package/esm/sdk/models/s3-export-config.js +27 -0
  311. package/esm/sdk/models/s3-export-config.js.map +1 -0
  312. package/esm/sdk/models/secret-provider.d.ts +1 -0
  313. package/esm/sdk/models/secret-provider.d.ts.map +1 -1
  314. package/esm/sdk/models/secret-provider.js +1 -0
  315. package/esm/sdk/models/secret-provider.js.map +1 -1
  316. package/esm/sdk/models/sub-modify-coupon-action.d.ts +10 -0
  317. package/esm/sdk/models/sub-modify-coupon-action.d.ts.map +1 -0
  318. package/esm/sdk/models/sub-modify-coupon-action.js +11 -0
  319. package/esm/sdk/models/sub-modify-coupon-action.js.map +1 -0
  320. package/esm/sdk/models/sub-modify-coupon-params.d.ts +48 -0
  321. package/esm/sdk/models/sub-modify-coupon-params.d.ts.map +1 -0
  322. package/esm/sdk/models/sub-modify-coupon-params.js +31 -0
  323. package/esm/sdk/models/sub-modify-coupon-params.js.map +1 -0
  324. package/esm/sdk/models/sub-modify-inheritance-request.d.ts +11 -0
  325. package/esm/sdk/models/sub-modify-inheritance-request.d.ts.map +1 -1
  326. package/esm/sdk/models/sub-modify-inheritance-request.js +4 -0
  327. package/esm/sdk/models/sub-modify-inheritance-request.js.map +1 -1
  328. package/esm/sdk/models/sub-modify-tax-action.d.ts +10 -0
  329. package/esm/sdk/models/sub-modify-tax-action.d.ts.map +1 -0
  330. package/esm/sdk/models/sub-modify-tax-action.js +11 -0
  331. package/esm/sdk/models/sub-modify-tax-action.js.map +1 -0
  332. package/esm/sdk/models/sub-modify-tax-params.d.ts +28 -0
  333. package/esm/sdk/models/sub-modify-tax-params.d.ts.map +1 -0
  334. package/esm/sdk/models/sub-modify-tax-params.js +23 -0
  335. package/esm/sdk/models/sub-modify-tax-params.js.map +1 -0
  336. package/esm/sdk/models/sub-modify-trial-end-request.d.ts +18 -0
  337. package/esm/sdk/models/sub-modify-trial-end-request.d.ts.map +1 -0
  338. package/esm/sdk/models/sub-modify-trial-end-request.js +19 -0
  339. package/esm/sdk/models/sub-modify-trial-end-request.js.map +1 -0
  340. package/esm/sdk/models/subscription-coupon-input.d.ts +30 -0
  341. package/esm/sdk/models/subscription-coupon-input.d.ts.map +1 -0
  342. package/esm/sdk/models/subscription-coupon-input.js +23 -0
  343. package/esm/sdk/models/subscription-coupon-input.js.map +1 -0
  344. package/esm/sdk/models/subscription-line-item-response.d.ts +2 -0
  345. package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
  346. package/esm/sdk/models/subscription-line-item-response.js +3 -0
  347. package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
  348. package/esm/sdk/models/subscription-modify-type.d.ts +3 -0
  349. package/esm/sdk/models/subscription-modify-type.d.ts.map +1 -1
  350. package/esm/sdk/models/subscription-modify-type.js +3 -0
  351. package/esm/sdk/models/subscription-modify-type.js.map +1 -1
  352. package/esm/sdk/models/subscription-phase-create-request.d.ts +8 -2
  353. package/esm/sdk/models/subscription-phase-create-request.d.ts.map +1 -1
  354. package/esm/sdk/models/subscription-phase-create-request.js +3 -0
  355. package/esm/sdk/models/subscription-phase-create-request.js.map +1 -1
  356. package/esm/sdk/models/subscription-response-v2.d.ts +16 -0
  357. package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
  358. package/esm/sdk/models/subscription-response-v2.js +4 -0
  359. package/esm/sdk/models/subscription-response-v2.js.map +1 -1
  360. package/esm/sdk/models/subscription-response.d.ts +8 -0
  361. package/esm/sdk/models/subscription-response.d.ts.map +1 -1
  362. package/esm/sdk/models/subscription-response.js +2 -0
  363. package/esm/sdk/models/subscription-response.js.map +1 -1
  364. package/esm/sdk/models/subscription-subscription-line-item.d.ts +2 -0
  365. package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
  366. package/esm/sdk/models/subscription-subscription-line-item.js +3 -0
  367. package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
  368. package/esm/sdk/models/sync-config.d.ts +21 -0
  369. package/esm/sdk/models/sync-config.d.ts.map +1 -0
  370. package/esm/sdk/models/sync-config.js +31 -0
  371. package/esm/sdk/models/sync-config.js.map +1 -0
  372. package/esm/sdk/models/tax-association-response.d.ts +8 -0
  373. package/esm/sdk/models/tax-association-response.d.ts.map +1 -1
  374. package/esm/sdk/models/tax-association-response.js +4 -0
  375. package/esm/sdk/models/tax-association-response.js.map +1 -1
  376. package/esm/sdk/models/time-of-day-bucket.d.ts +31 -0
  377. package/esm/sdk/models/time-of-day-bucket.d.ts.map +1 -0
  378. package/esm/sdk/models/time-of-day-bucket.js +32 -0
  379. package/esm/sdk/models/time-of-day-bucket.js.map +1 -0
  380. package/esm/sdk/models/trial-end-action.d.ts +10 -0
  381. package/esm/sdk/models/trial-end-action.d.ts.map +1 -0
  382. package/esm/sdk/models/trial-end-action.js +11 -0
  383. package/esm/sdk/models/trial-end-action.js.map +1 -0
  384. package/esm/sdk/models/update-service-account-op.d.ts +21 -0
  385. package/esm/sdk/models/update-service-account-op.d.ts.map +1 -0
  386. package/esm/sdk/models/update-service-account-op.js +14 -0
  387. package/esm/sdk/models/update-service-account-op.js.map +1 -0
  388. package/esm/sdk/models/update-service-account-request.d.ts +12 -0
  389. package/esm/sdk/models/update-service-account-request.d.ts.map +1 -0
  390. package/esm/sdk/models/update-service-account-request.js +12 -0
  391. package/esm/sdk/models/update-service-account-request.js.map +1 -0
  392. package/esm/sdk/models/update-service-account-response.d.ts +23 -0
  393. package/esm/sdk/models/update-service-account-response.d.ts.map +1 -0
  394. package/esm/sdk/models/update-service-account-response.js +22 -0
  395. package/esm/sdk/models/update-service-account-response.js.map +1 -0
  396. package/esm/sdk/models/update-subscription-line-item-request.d.ts +6 -0
  397. package/esm/sdk/models/update-subscription-line-item-request.d.ts.map +1 -1
  398. package/esm/sdk/models/update-subscription-line-item-request.js +3 -0
  399. package/esm/sdk/models/update-subscription-line-item-request.js.map +1 -1
  400. package/esm/sdk/models/update-user-request.d.ts +18 -0
  401. package/esm/sdk/models/update-user-request.d.ts.map +1 -0
  402. package/esm/sdk/models/update-user-request.js +13 -0
  403. package/esm/sdk/models/update-user-request.js.map +1 -0
  404. package/esm/sdk/models/update-user-response.d.ts +23 -0
  405. package/esm/sdk/models/update-user-response.d.ts.map +1 -0
  406. package/esm/sdk/models/update-user-response.js +22 -0
  407. package/esm/sdk/models/update-user-response.js.map +1 -0
  408. package/esm/sdk/models/usage-analytic-item.d.ts +8 -0
  409. package/esm/sdk/models/usage-analytic-item.d.ts.map +1 -1
  410. package/esm/sdk/models/usage-analytic-item.js +3 -0
  411. package/esm/sdk/models/usage-analytic-item.js.map +1 -1
  412. package/esm/sdk/models/usage-analytic-point.d.ts +8 -0
  413. package/esm/sdk/models/usage-analytic-point.d.ts.map +1 -1
  414. package/esm/sdk/models/usage-analytic-point.js +4 -0
  415. package/esm/sdk/models/usage-analytic-point.js.map +1 -1
  416. package/esm/sdk/models/user-response.d.ts +4 -0
  417. package/esm/sdk/models/user-response.d.ts.map +1 -1
  418. package/esm/sdk/models/user-response.js +2 -0
  419. package/esm/sdk/models/user-response.js.map +1 -1
  420. package/esm/sdk/models/window-size.d.ts +1 -1
  421. package/esm/sdk/models/window-size.js +1 -1
  422. package/esm/sdk/models/window-size.js.map +1 -1
  423. package/esm/sdk/sdk.d.ts +3 -0
  424. package/esm/sdk/sdk.d.ts.map +1 -1
  425. package/esm/sdk/sdk.js +5 -0
  426. package/esm/sdk/sdk.js.map +1 -1
  427. package/esm/sdk/subscriptions.d.ts +2 -2
  428. package/esm/sdk/subscriptions.js +2 -2
  429. package/esm/sdk/users.d.ts +21 -0
  430. package/esm/sdk/users.d.ts.map +1 -1
  431. package/esm/sdk/users.js +30 -0
  432. package/esm/sdk/users.js.map +1 -1
  433. package/esm/types/async.d.ts.map +1 -1
  434. package/esm/types/async.js +6 -6
  435. package/esm/types/async.js.map +1 -1
  436. package/esm/types/primitives.d.ts +0 -2
  437. package/esm/types/primitives.d.ts.map +1 -1
  438. package/esm/types/primitives.js +0 -22
  439. package/esm/types/primitives.js.map +1 -1
  440. package/jsr.json +1 -1
  441. package/package.json +1 -1
  442. package/src/funcs/coupon-associations-get-coupon-association.ts +182 -0
  443. package/src/funcs/coupon-associations-list-coupon-associations.ts +188 -0
  444. package/src/funcs/integrations-delink-integration-mapping.ts +173 -0
  445. package/src/funcs/integrations-get-entity-integration-mappings.ts +186 -0
  446. package/src/funcs/integrations-get-integration-config.ts +152 -0
  447. package/src/funcs/subscriptions-execute-subscription-modify.ts +1 -1
  448. package/src/funcs/subscriptions-preview-subscription-modify.ts +1 -1
  449. package/src/funcs/users-delete-service-account.ts +182 -0
  450. package/src/funcs/users-update-service-account.ts +187 -0
  451. package/src/funcs/users-update-user.ts +172 -0
  452. package/src/hooks/types.ts +1 -0
  453. package/src/lib/config.ts +3 -3
  454. package/src/lib/encodings.ts +1 -1
  455. package/src/lib/matchers.ts +1 -1
  456. package/src/lib/primitives.ts +16 -0
  457. package/src/lib/sdks.ts +54 -17
  458. package/src/sdk/coupon-associations.ts +45 -0
  459. package/src/sdk/integrations.ts +54 -0
  460. package/src/sdk/models/attributed-to-customer-result.ts +55 -0
  461. package/src/sdk/models/bucket-summary.ts +80 -0
  462. package/src/sdk/models/bucket.ts +45 -0
  463. package/src/sdk/models/cancel-subscription-request.ts +8 -0
  464. package/src/sdk/models/changed-subscription.ts +18 -5
  465. package/src/sdk/models/commitment-bucket-request.ts +72 -0
  466. package/src/sdk/models/coupon-response.ts +3 -0
  467. package/src/sdk/models/coupon.ts +3 -0
  468. package/src/sdk/models/create-coupon-request.ts +4 -0
  469. package/src/sdk/models/create-invoice-line-item-request.ts +24 -0
  470. package/src/sdk/models/create-subscription-line-item-request.ts +11 -0
  471. package/src/sdk/models/create-subscription-request.ts +23 -0
  472. package/src/sdk/models/create-tax-association-request.ts +14 -0
  473. package/src/sdk/models/create-user-request.ts +6 -0
  474. package/src/sdk/models/create-user-response.ts +4 -0
  475. package/src/sdk/models/debug-tracker-status.ts +2 -0
  476. package/src/sdk/models/debug-tracker.ts +9 -0
  477. package/src/sdk/models/delete-service-account-op.ts +35 -0
  478. package/src/sdk/models/delink-integration-mapping-request.ts +52 -0
  479. package/src/sdk/models/entity-integration-mapping-response.ts +2 -0
  480. package/src/sdk/models/entity-sync-config.ts +39 -0
  481. package/src/sdk/models/execute-subscription-modify-request.ts +27 -0
  482. package/src/sdk/models/failure-point-type.ts +1 -0
  483. package/src/sdk/models/get-coupon-association-op.ts +35 -0
  484. package/src/sdk/models/get-entity-integration-mappings-op.ts +50 -0
  485. package/src/sdk/models/get-usage-analytics-request.ts +12 -0
  486. package/src/sdk/models/index.ts +32 -0
  487. package/src/sdk/models/inheritance-action.ts +17 -0
  488. package/src/sdk/models/integration-config-entry.ts +49 -0
  489. package/src/sdk/models/integration-config-response.ts +35 -0
  490. package/src/sdk/models/invoice-billing-reason.ts +1 -0
  491. package/src/sdk/models/invoice-filter.ts +17 -0
  492. package/src/sdk/models/invoice-line-item-response.ts +15 -0
  493. package/src/sdk/models/invoice-sync-settings.ts +43 -0
  494. package/src/sdk/models/line-item-commitment-config.ts +19 -0
  495. package/src/sdk/models/list-coupon-associations-op.ts +69 -0
  496. package/src/sdk/models/list-coupon-associations-response.ts +41 -0
  497. package/src/sdk/models/list-entity-integration-mappings-response.ts +44 -0
  498. package/src/sdk/models/meter-usage-attribution.ts +45 -0
  499. package/src/sdk/models/payment-gateway-type.ts +1 -0
  500. package/src/sdk/models/price-filter.ts +8 -0
  501. package/src/sdk/models/price-price.ts +10 -0
  502. package/src/sdk/models/price-response.ts +10 -0
  503. package/src/sdk/models/s3-export-config.ts +70 -0
  504. package/src/sdk/models/secret-provider.ts +1 -0
  505. package/src/sdk/models/sub-modify-coupon-action.ts +17 -0
  506. package/src/sdk/models/sub-modify-coupon-params.ts +92 -0
  507. package/src/sdk/models/sub-modify-inheritance-request.ts +17 -0
  508. package/src/sdk/models/sub-modify-tax-action.ts +17 -0
  509. package/src/sdk/models/sub-modify-tax-params.ts +64 -0
  510. package/src/sdk/models/sub-modify-trial-end-request.ts +50 -0
  511. package/src/sdk/models/subscription-coupon-input.ts +62 -0
  512. package/src/sdk/models/subscription-line-item-response.ts +9 -0
  513. package/src/sdk/models/subscription-modify-type.ts +3 -0
  514. package/src/sdk/models/subscription-phase-create-request.ts +16 -2
  515. package/src/sdk/models/subscription-response-v2.ts +20 -0
  516. package/src/sdk/models/subscription-response.ts +10 -0
  517. package/src/sdk/models/subscription-subscription-line-item.ts +9 -0
  518. package/src/sdk/models/sync-config.ts +65 -0
  519. package/src/sdk/models/tax-association-response.ts +12 -0
  520. package/src/sdk/models/time-of-day-bucket.ts +74 -0
  521. package/src/sdk/models/trial-end-action.ts +17 -0
  522. package/src/sdk/models/update-service-account-op.ts +46 -0
  523. package/src/sdk/models/update-service-account-request.ts +32 -0
  524. package/src/sdk/models/update-service-account-response.ts +51 -0
  525. package/src/sdk/models/update-subscription-line-item-request.ts +14 -0
  526. package/src/sdk/models/update-user-request.ts +33 -0
  527. package/src/sdk/models/update-user-response.ts +51 -0
  528. package/src/sdk/models/usage-analytic-item.ts +13 -0
  529. package/src/sdk/models/usage-analytic-point.ts +12 -0
  530. package/src/sdk/models/user-response.ts +4 -0
  531. package/src/sdk/models/window-size.ts +1 -1
  532. package/src/sdk/sdk.ts +6 -0
  533. package/src/sdk/subscriptions.ts +2 -2
  534. package/src/sdk/users.ts +56 -0
  535. package/src/types/async.ts +8 -7
  536. package/src/types/primitives.ts +0 -26
  537. package/esm/lib/dlv.d.ts +0 -14
  538. package/esm/lib/dlv.d.ts.map +0 -1
  539. package/esm/lib/dlv.js +0 -46
  540. package/esm/lib/dlv.js.map +0 -1
  541. package/esm/lib/is-plain-object.d.ts +0 -2
  542. package/esm/lib/is-plain-object.d.ts.map +0 -1
  543. package/esm/lib/is-plain-object.js +0 -38
  544. package/esm/lib/is-plain-object.js.map +0 -1
  545. package/src/lib/dlv.ts +0 -53
  546. package/src/lib/is-plain-object.ts +0 -43
@@ -40,36 +40,37 @@ let value: UsageAnalyticItem = {
40
40
 
41
41
  ## Fields
42
42
 
43
- | Field | Type | Required | Description |
44
- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
45
- | `addOnId` | *string* | :heavy_minus_sign: | N/A |
46
- | `addon` | [models.Addon](../../sdk/models/addon.md) | :heavy_minus_sign: | N/A |
47
- | `aggregationType` | [models.AggregationType](../../sdk/models/aggregation-type.md) | :heavy_minus_sign: | N/A |
48
- | `commitmentInfo` | [models.CommitmentInfo](../../sdk/models/commitment-info.md) | :heavy_minus_sign: | N/A |
49
- | `currency` | *string* | :heavy_minus_sign: | N/A |
50
- | `eventCount` | *number* | :heavy_minus_sign: | Number of events that contributed to this aggregation |
51
- | `eventName` | *string* | :heavy_minus_sign: | N/A |
52
- | `feature` | [models.Feature](../../sdk/models/feature.md) | :heavy_minus_sign: | N/A |
53
- | `featureId` | *string* | :heavy_minus_sign: | N/A |
54
- | `group` | [models.GroupGroup](../../sdk/models/group-group.md) | :heavy_minus_sign: | N/A |
55
- | `meter` | [models.MeterMeter](../../sdk/models/meter-meter.md) | :heavy_minus_sign: | N/A |
56
- | `meterId` | *string* | :heavy_minus_sign: | Meter ID |
57
- | `name` | *string* | :heavy_minus_sign: | N/A |
58
- | `plan` | [models.Plan](../../sdk/models/plan.md) | :heavy_minus_sign: | N/A |
59
- | `planId` | *string* | :heavy_minus_sign: | N/A |
60
- | `points` | [models.UsageAnalyticPoint](../../sdk/models/usage-analytic-point.md)[] | :heavy_minus_sign: | N/A |
61
- | `price` | [models.PriceResponse](../../sdk/models/price-response.md) | :heavy_minus_sign: | N/A |
62
- | `priceId` | *string* | :heavy_minus_sign: | Price ID used for this usage |
63
- | `properties` | Record<string, *string*> | :heavy_minus_sign: | Stores property values for flexible grouping (e.g., org_id -> "org123") |
64
- | `reportingUnit` | [models.ReportingUnit](../../sdk/models/reporting-unit.md) | :heavy_minus_sign: | N/A |
65
- | `source` | *string* | :heavy_minus_sign: | N/A |
66
- | `sources` | *string*[] | :heavy_minus_sign: | List of sources when not grouping by source |
67
- | `subLineItemId` | *string* | :heavy_minus_sign: | Subscription line item ID |
68
- | `subscriptionId` | *string* | :heavy_minus_sign: | Subscription ID |
69
- | `subscriptionLineItem` | [models.SubscriptionSubscriptionLineItem](../../sdk/models/subscription-subscription-line-item.md) | :heavy_minus_sign: | N/A |
70
- | `totalCost` | *string* | :heavy_minus_sign: | N/A |
71
- | `totalUsage` | *string* | :heavy_minus_sign: | N/A |
72
- | `totalUsageDisplay` | *string* | :heavy_minus_sign: | Empty string when feature has no reporting unit; otherwise the value in reporting units |
73
- | `unit` | *string* | :heavy_minus_sign: | N/A |
74
- | `unitPlural` | *string* | :heavy_minus_sign: | N/A |
75
- | `windowSize` | [models.WindowSize](../../sdk/models/window-size.md) | :heavy_minus_sign: | N/A |
43
+ | Field | Type | Required | Description |
44
+ | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | `addOnId` | *string* | :heavy_minus_sign: | N/A |
46
+ | `addon` | [models.Addon](../../sdk/models/addon.md) | :heavy_minus_sign: | N/A |
47
+ | `aggregationType` | [models.AggregationType](../../sdk/models/aggregation-type.md) | :heavy_minus_sign: | N/A |
48
+ | `bucketSummaries` | [models.BucketSummary](../../sdk/models/bucket-summary.md)[] | :heavy_minus_sign: | BucketSummaries is populated only when BreakdownBucket=true. Contains one<br/>entry per defined CommitmentTimeBucket plus one for out-of-bucket usage. |
49
+ | `commitmentInfo` | [models.CommitmentInfo](../../sdk/models/commitment-info.md) | :heavy_minus_sign: | N/A |
50
+ | `currency` | *string* | :heavy_minus_sign: | N/A |
51
+ | `eventCount` | *number* | :heavy_minus_sign: | Number of events that contributed to this aggregation |
52
+ | `eventName` | *string* | :heavy_minus_sign: | N/A |
53
+ | `feature` | [models.Feature](../../sdk/models/feature.md) | :heavy_minus_sign: | N/A |
54
+ | `featureId` | *string* | :heavy_minus_sign: | N/A |
55
+ | `group` | [models.GroupGroup](../../sdk/models/group-group.md) | :heavy_minus_sign: | N/A |
56
+ | `meter` | [models.MeterMeter](../../sdk/models/meter-meter.md) | :heavy_minus_sign: | N/A |
57
+ | `meterId` | *string* | :heavy_minus_sign: | Meter ID |
58
+ | `name` | *string* | :heavy_minus_sign: | N/A |
59
+ | `plan` | [models.Plan](../../sdk/models/plan.md) | :heavy_minus_sign: | N/A |
60
+ | `planId` | *string* | :heavy_minus_sign: | N/A |
61
+ | `points` | [models.UsageAnalyticPoint](../../sdk/models/usage-analytic-point.md)[] | :heavy_minus_sign: | N/A |
62
+ | `price` | [models.PriceResponse](../../sdk/models/price-response.md) | :heavy_minus_sign: | N/A |
63
+ | `priceId` | *string* | :heavy_minus_sign: | Price ID used for this usage |
64
+ | `properties` | Record<string, *string*> | :heavy_minus_sign: | Stores property values for flexible grouping (e.g., org_id -> "org123") |
65
+ | `reportingUnit` | [models.ReportingUnit](../../sdk/models/reporting-unit.md) | :heavy_minus_sign: | N/A |
66
+ | `source` | *string* | :heavy_minus_sign: | N/A |
67
+ | `sources` | *string*[] | :heavy_minus_sign: | List of sources when not grouping by source |
68
+ | `subLineItemId` | *string* | :heavy_minus_sign: | Subscription line item ID |
69
+ | `subscriptionId` | *string* | :heavy_minus_sign: | Subscription ID |
70
+ | `subscriptionLineItem` | [models.SubscriptionSubscriptionLineItem](../../sdk/models/subscription-subscription-line-item.md) | :heavy_minus_sign: | N/A |
71
+ | `totalCost` | *string* | :heavy_minus_sign: | N/A |
72
+ | `totalUsage` | *string* | :heavy_minus_sign: | N/A |
73
+ | `totalUsageDisplay` | *string* | :heavy_minus_sign: | Empty string when feature has no reporting unit; otherwise the value in reporting units |
74
+ | `unit` | *string* | :heavy_minus_sign: | N/A |
75
+ | `unitPlural` | *string* | :heavy_minus_sign: | N/A |
76
+ | `windowSize` | [models.WindowSize](../../sdk/models/window-size.md) | :heavy_minus_sign: | N/A |
@@ -10,12 +10,14 @@ let value: UsageAnalyticPoint = {};
10
10
 
11
11
  ## Fields
12
12
 
13
- | Field | Type | Required | Description |
14
- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
15
- | `computedCommitmentUtilizedAmount` | *string* | :heavy_minus_sign: | Commitment breakdown (only populated for windowed commitments) |
16
- | `computedOverageAmount` | *string* | :heavy_minus_sign: | N/A |
17
- | `computedTrueUpAmount` | *string* | :heavy_minus_sign: | N/A |
18
- | `cost` | *string* | :heavy_minus_sign: | N/A |
19
- | `eventCount` | *number* | :heavy_minus_sign: | Number of events in this time window |
20
- | `timestamp` | *string* | :heavy_minus_sign: | N/A |
21
- | `usage` | *string* | :heavy_minus_sign: | N/A |
13
+ | Field | Type | Required | Description |
14
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
15
+ | `bucketId` | *string* | :heavy_minus_sign: | Bucket identity (only populated when BreakdownBucket=true and the line item<br/>has CommitmentTimeBuckets). Empty strings indicate out-of-bucket windows. |
16
+ | `bucketPriceId` | *string* | :heavy_minus_sign: | N/A |
17
+ | `computedCommitmentUtilizedAmount` | *string* | :heavy_minus_sign: | Commitment breakdown (only populated for windowed commitments) |
18
+ | `computedOverageAmount` | *string* | :heavy_minus_sign: | N/A |
19
+ | `computedTrueUpAmount` | *string* | :heavy_minus_sign: | N/A |
20
+ | `cost` | *string* | :heavy_minus_sign: | N/A |
21
+ | `eventCount` | *number* | :heavy_minus_sign: | Number of events in this time window |
22
+ | `timestamp` | *string* | :heavy_minus_sign: | N/A |
23
+ | `usage` | *string* | :heavy_minus_sign: | N/A |
@@ -14,6 +14,8 @@ let value: UserResponse = {};
14
14
  | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
15
15
  | `email` | *string* | :heavy_minus_sign: | Empty for service accounts |
16
16
  | `id` | *string* | :heavy_minus_sign: | N/A |
17
+ | `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
18
+ | `name` | *string* | :heavy_minus_sign: | N/A |
17
19
  | `roles` | *string*[] | :heavy_minus_sign: | N/A |
18
20
  | `tenant` | [models.TenantResponse](../../sdk/models/tenant-response.md) | :heavy_minus_sign: | N/A |
19
21
  | `type` | [models.UserType](../../sdk/models/user-type.md) | :heavy_minus_sign: | N/A |
@@ -5,7 +5,7 @@
5
5
  ```typescript
6
6
  import { WindowSize } from "@flexprice/sdk/sdk/models";
7
7
 
8
- let value: WindowSize = "6HOUR";
8
+ let value: WindowSize = "12HOUR";
9
9
 
10
10
  // Open enum: unrecognized values are captured as Unrecognized<string>
11
11
  ```
@@ -13,5 +13,5 @@ let value: WindowSize = "6HOUR";
13
13
  ## Values
14
14
 
15
15
  ```typescript
16
- "MONTH" | "MINUTE" | "15MIN" | "30MIN" | "HOUR" | "3HOUR" | "6HOUR" | "12HOUR" | "DAY" | "WEEK" | Unrecognized<string>
16
+ "MINUTE" | "15MIN" | "30MIN" | "HOUR" | "3HOUR" | "6HOUR" | "12HOUR" | "DAY" | "WEEK" | "MONTH" | Unrecognized<string>
17
17
  ```
@@ -0,0 +1,150 @@
1
+ # CouponAssociations
2
+
3
+ ## Overview
4
+
5
+ ### Available Operations
6
+
7
+ * [listCouponAssociations](#listcouponassociations) - List coupon associations
8
+ * [getCouponAssociation](#getcouponassociation) - Get coupon association
9
+
10
+ ## listCouponAssociations
11
+
12
+ List coupon associations with optional filters. Coupon associations are created and removed via the subscription modify API.
13
+
14
+ ### Example Usage
15
+
16
+ <!-- UsageSnippet language="typescript" operationID="listCouponAssociations" method="get" path="/coupons/associations" -->
17
+ ```typescript
18
+ import { Flexprice } from "@flexprice/sdk";
19
+
20
+ const flexprice = new Flexprice({
21
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
22
+ });
23
+
24
+ async function run() {
25
+ const result = await flexprice.couponAssociations.listCouponAssociations();
26
+
27
+ console.log(result);
28
+ }
29
+
30
+ run();
31
+ ```
32
+
33
+ ### Standalone function
34
+
35
+ The standalone function version of this method:
36
+
37
+ ```typescript
38
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
39
+ import { couponAssociationsListCouponAssociations } from "@flexprice/sdk/funcs/coupon-associations-list-coupon-associations.js";
40
+
41
+ // Use `FlexpriceCore` for best tree-shaking performance.
42
+ // You can create one instance of it to use across an application.
43
+ const flexprice = new FlexpriceCore({
44
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
45
+ });
46
+
47
+ async function run() {
48
+ const res = await couponAssociationsListCouponAssociations(flexprice);
49
+ if (res.ok) {
50
+ const { value: result } = res;
51
+ console.log(result);
52
+ } else {
53
+ console.log("couponAssociationsListCouponAssociations failed:", res.error);
54
+ }
55
+ }
56
+
57
+ run();
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Parameter | Type | Required | Description |
63
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
64
+ | `request` | [models.ListCouponAssociationsRequest](../../sdk/models/list-coupon-associations-request.md) | :heavy_check_mark: | The request object to use for the request. |
65
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
66
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
67
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
68
+
69
+ ### Response
70
+
71
+ **Promise\<[models.ListCouponAssociationsResponse](../../sdk/models/list-coupon-associations-response.md)\>**
72
+
73
+ ### Errors
74
+
75
+ | Error Type | Status Code | Content Type |
76
+ | -------------------------- | -------------------------- | -------------------------- |
77
+ | models.ErrorsErrorResponse | 400 | application/json |
78
+ | models.ErrorsErrorResponse | 500 | application/json |
79
+ | models.SDKError | 4XX, 5XX | \*/\* |
80
+
81
+ ## getCouponAssociation
82
+
83
+ Get a single coupon association by ID. Coupon associations are created and removed via the subscription modify API.
84
+
85
+ ### Example Usage
86
+
87
+ <!-- UsageSnippet language="typescript" operationID="getCouponAssociation" method="get" path="/coupons/associations/{id}" -->
88
+ ```typescript
89
+ import { Flexprice } from "@flexprice/sdk";
90
+
91
+ const flexprice = new Flexprice({
92
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
93
+ });
94
+
95
+ async function run() {
96
+ const result = await flexprice.couponAssociations.getCouponAssociation("<id>");
97
+
98
+ console.log(result);
99
+ }
100
+
101
+ run();
102
+ ```
103
+
104
+ ### Standalone function
105
+
106
+ The standalone function version of this method:
107
+
108
+ ```typescript
109
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
110
+ import { couponAssociationsGetCouponAssociation } from "@flexprice/sdk/funcs/coupon-associations-get-coupon-association.js";
111
+
112
+ // Use `FlexpriceCore` for best tree-shaking performance.
113
+ // You can create one instance of it to use across an application.
114
+ const flexprice = new FlexpriceCore({
115
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
116
+ });
117
+
118
+ async function run() {
119
+ const res = await couponAssociationsGetCouponAssociation(flexprice, "<id>");
120
+ if (res.ok) {
121
+ const { value: result } = res;
122
+ console.log(result);
123
+ } else {
124
+ console.log("couponAssociationsGetCouponAssociation failed:", res.error);
125
+ }
126
+ }
127
+
128
+ run();
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ | Parameter | Type | Required | Description |
134
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
135
+ | `id` | *string* | :heavy_check_mark: | Coupon Association ID |
136
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
137
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
138
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
139
+
140
+ ### Response
141
+
142
+ **Promise\<[models.CouponAssociationResponse](../../sdk/models/coupon-association-response.md)\>**
143
+
144
+ ### Errors
145
+
146
+ | Error Type | Status Code | Content Type |
147
+ | -------------------------- | -------------------------- | -------------------------- |
148
+ | models.ErrorsErrorResponse | 404 | application/json |
149
+ | models.ErrorsErrorResponse | 500 | application/json |
150
+ | models.SDKError | 4XX, 5XX | \*/\* |
@@ -4,7 +4,79 @@
4
4
 
5
5
  ### Available Operations
6
6
 
7
+ * [getIntegrationConfig](#getintegrationconfig) - Get integration configurations
7
8
  * [linkIntegrationMapping](#linkintegrationmapping) - Link integration mapping
9
+ * [delinkIntegrationMapping](#delinkintegrationmapping) - Delink integration mapping
10
+ * [getEntityIntegrationMappings](#getentityintegrationmappings) - Get entity integration mappings
11
+
12
+ ## getIntegrationConfig
13
+
14
+ Returns the base capabilities and current sync configuration for all connected providers.
15
+
16
+ ### Example Usage
17
+
18
+ <!-- UsageSnippet language="typescript" operationID="getIntegrationConfig" method="get" path="/integrations/config" -->
19
+ ```typescript
20
+ import { Flexprice } from "@flexprice/sdk";
21
+
22
+ const flexprice = new Flexprice({
23
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
24
+ });
25
+
26
+ async function run() {
27
+ const result = await flexprice.integrations.getIntegrationConfig();
28
+
29
+ console.log(result);
30
+ }
31
+
32
+ run();
33
+ ```
34
+
35
+ ### Standalone function
36
+
37
+ The standalone function version of this method:
38
+
39
+ ```typescript
40
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
41
+ import { integrationsGetIntegrationConfig } from "@flexprice/sdk/funcs/integrations-get-integration-config.js";
42
+
43
+ // Use `FlexpriceCore` for best tree-shaking performance.
44
+ // You can create one instance of it to use across an application.
45
+ const flexprice = new FlexpriceCore({
46
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
47
+ });
48
+
49
+ async function run() {
50
+ const res = await integrationsGetIntegrationConfig(flexprice);
51
+ if (res.ok) {
52
+ const { value: result } = res;
53
+ console.log(result);
54
+ } else {
55
+ console.log("integrationsGetIntegrationConfig failed:", res.error);
56
+ }
57
+ }
58
+
59
+ run();
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Parameter | Type | Required | Description |
65
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
66
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
67
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
68
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
69
+
70
+ ### Response
71
+
72
+ **Promise\<[models.IntegrationConfigResponse](../../sdk/models/integration-config-response.md)\>**
73
+
74
+ ### Errors
75
+
76
+ | Error Type | Status Code | Content Type |
77
+ | -------------------------- | -------------------------- | -------------------------- |
78
+ | models.ErrorsErrorResponse | 500 | application/json |
79
+ | models.SDKError | 4XX, 5XX | \*/\* |
8
80
 
9
81
  ## linkIntegrationMapping
10
82
 
@@ -81,6 +153,157 @@ run();
81
153
 
82
154
  ### Errors
83
155
 
156
+ | Error Type | Status Code | Content Type |
157
+ | -------------------------- | -------------------------- | -------------------------- |
158
+ | models.ErrorsErrorResponse | 400 | application/json |
159
+ | models.ErrorsErrorResponse | 500 | application/json |
160
+ | models.SDKError | 4XX, 5XX | \*/\* |
161
+
162
+ ## delinkIntegrationMapping
163
+
164
+ Soft-delete (archive) the mapping between a FlexPrice entity and a provider entity.
165
+
166
+ ### Example Usage
167
+
168
+ <!-- UsageSnippet language="typescript" operationID="delinkIntegrationMapping" method="delete" path="/integrations/link" -->
169
+ ```typescript
170
+ import { Flexprice } from "@flexprice/sdk";
171
+
172
+ const flexprice = new Flexprice({
173
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
174
+ });
175
+
176
+ async function run() {
177
+ const result = await flexprice.integrations.delinkIntegrationMapping({
178
+ entityId: "<id>",
179
+ entityType: "item_price",
180
+ providerType: "<value>",
181
+ });
182
+
183
+ console.log(result);
184
+ }
185
+
186
+ run();
187
+ ```
188
+
189
+ ### Standalone function
190
+
191
+ The standalone function version of this method:
192
+
193
+ ```typescript
194
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
195
+ import { integrationsDelinkIntegrationMapping } from "@flexprice/sdk/funcs/integrations-delink-integration-mapping.js";
196
+
197
+ // Use `FlexpriceCore` for best tree-shaking performance.
198
+ // You can create one instance of it to use across an application.
199
+ const flexprice = new FlexpriceCore({
200
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
201
+ });
202
+
203
+ async function run() {
204
+ const res = await integrationsDelinkIntegrationMapping(flexprice, {
205
+ entityId: "<id>",
206
+ entityType: "item_price",
207
+ providerType: "<value>",
208
+ });
209
+ if (res.ok) {
210
+ const { value: result } = res;
211
+ console.log(result);
212
+ } else {
213
+ console.log("integrationsDelinkIntegrationMapping failed:", res.error);
214
+ }
215
+ }
216
+
217
+ run();
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+ | Parameter | Type | Required | Description |
223
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
224
+ | `request` | [models.DelinkIntegrationMappingRequest](../../sdk/models/delink-integration-mapping-request.md) | :heavy_check_mark: | The request object to use for the request. |
225
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
226
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
227
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
228
+
229
+ ### Response
230
+
231
+ **Promise\<[models.SuccessResponse](../../sdk/models/success-response.md)\>**
232
+
233
+ ### Errors
234
+
235
+ | Error Type | Status Code | Content Type |
236
+ | -------------------------- | -------------------------- | -------------------------- |
237
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
238
+ | models.ErrorsErrorResponse | 500 | application/json |
239
+ | models.SDKError | 4XX, 5XX | \*/\* |
240
+
241
+ ## getEntityIntegrationMappings
242
+
243
+ Get integration mappings for a specific entity by entity type and entity ID.
244
+
245
+ ### Example Usage
246
+
247
+ <!-- UsageSnippet language="typescript" operationID="getEntityIntegrationMappings" method="get" path="/integrations/mappings" -->
248
+ ```typescript
249
+ import { Flexprice } from "@flexprice/sdk";
250
+
251
+ const flexprice = new Flexprice({
252
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
253
+ });
254
+
255
+ async function run() {
256
+ const result = await flexprice.integrations.getEntityIntegrationMappings("<value>", "<id>");
257
+
258
+ console.log(result);
259
+ }
260
+
261
+ run();
262
+ ```
263
+
264
+ ### Standalone function
265
+
266
+ The standalone function version of this method:
267
+
268
+ ```typescript
269
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
270
+ import { integrationsGetEntityIntegrationMappings } from "@flexprice/sdk/funcs/integrations-get-entity-integration-mappings.js";
271
+
272
+ // Use `FlexpriceCore` for best tree-shaking performance.
273
+ // You can create one instance of it to use across an application.
274
+ const flexprice = new FlexpriceCore({
275
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
276
+ });
277
+
278
+ async function run() {
279
+ const res = await integrationsGetEntityIntegrationMappings(flexprice, "<value>", "<id>");
280
+ if (res.ok) {
281
+ const { value: result } = res;
282
+ console.log(result);
283
+ } else {
284
+ console.log("integrationsGetEntityIntegrationMappings failed:", res.error);
285
+ }
286
+ }
287
+
288
+ run();
289
+ ```
290
+
291
+ ### Parameters
292
+
293
+ | Parameter | Type | Required | Description |
294
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
295
+ | `entityType` | *string* | :heavy_check_mark: | Entity type (customer, plan, invoice, subscription, payment, credit_note, addon, item, item_price, price) |
296
+ | `entityId` | *string* | :heavy_check_mark: | Entity ID |
297
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
298
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
299
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
300
+
301
+ ### Response
302
+
303
+ **Promise\<[models.ListEntityIntegrationMappingsResponse](../../sdk/models/list-entity-integration-mappings-response.md)\>**
304
+
305
+ ### Errors
306
+
84
307
  | Error Type | Status Code | Content Type |
85
308
  | -------------------------- | -------------------------- | -------------------------- |
86
309
  | models.ErrorsErrorResponse | 400 | application/json |