lark-billing 0.0.5 → 0.0.7

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 (555) hide show
  1. package/README.md +11 -10
  2. package/dist/cjs/Client.d.ts +12 -10
  3. package/dist/cjs/Client.js +19 -19
  4. package/dist/cjs/api/resources/checkout/client/Client.d.ts +12 -6
  5. package/dist/cjs/api/resources/checkout/client/Client.js +22 -11
  6. package/dist/cjs/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.d.ts → CreateSubscriptionCheckoutSessionRequest.d.ts} +4 -3
  7. package/dist/cjs/api/resources/checkout/client/requests/index.d.ts +1 -1
  8. package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.d.ts +15 -9
  9. package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.js +20 -12
  10. package/dist/cjs/api/resources/customerPortal/client/Client.d.ts +48 -0
  11. package/dist/cjs/api/resources/customerPortal/client/Client.js +130 -0
  12. package/dist/cjs/api/resources/customerPortal/client/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/{rateCards/types → customerPortal/client}/index.js +1 -2
  14. package/dist/cjs/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.ts +12 -0
  15. package/dist/cjs/api/resources/customerPortal/client/requests/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/index.d.ts +7 -5
  17. package/dist/cjs/api/resources/index.js +8 -6
  18. package/dist/cjs/api/resources/pricingMetrics/client/Client.d.ts +64 -0
  19. package/dist/cjs/api/resources/{creditPools → pricingMetrics}/client/Client.js +66 -81
  20. package/dist/cjs/api/resources/pricingMetrics/client/index.d.ts +2 -0
  21. package/dist/cjs/api/resources/pricingMetrics/client/index.js +17 -0
  22. package/dist/cjs/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.ts +22 -0
  23. package/dist/cjs/api/resources/pricingMetrics/client/requests/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/{pricingPlans → pricingMetrics}/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/{pricingPlans → pricingMetrics}/index.js +1 -0
  26. package/dist/cjs/api/resources/pricingMetrics/types/PricingMetricAggregation.d.ts +13 -0
  27. package/dist/cjs/api/resources/pricingMetrics/types/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/pricingMetrics/types/index.js +17 -0
  29. package/dist/cjs/api/resources/rateCards/client/Client.d.ts +11 -106
  30. package/dist/cjs/api/resources/rateCards/client/Client.js +16 -243
  31. package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardRequest.d.ts +2 -36
  32. package/dist/{esm/api/resources/subjects/client/requests/SubjectsListSubjectsRequest.d.mts → cjs/api/resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.d.ts} +2 -4
  33. package/dist/cjs/api/resources/rateCards/client/requests/index.d.ts +1 -2
  34. package/dist/cjs/api/resources/rateCards/index.d.ts +0 -1
  35. package/dist/cjs/api/resources/rateCards/index.js +0 -1
  36. package/dist/cjs/api/resources/subjects/client/Client.d.ts +8 -3
  37. package/dist/cjs/api/resources/subjects/client/Client.js +23 -16
  38. package/dist/cjs/api/resources/subjects/client/requests/CreateSubjectRequest.d.ts +0 -1
  39. package/dist/{esm/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.mts → cjs/api/resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.d.ts} +1 -1
  40. package/dist/cjs/api/resources/subjects/client/requests/UpdateSubjectRequest.d.ts +0 -1
  41. package/dist/cjs/api/resources/subjects/client/requests/index.d.ts +1 -1
  42. package/dist/cjs/api/resources/subscriptions/client/Client.d.ts +11 -24
  43. package/dist/cjs/api/resources/subscriptions/client/Client.js +23 -113
  44. package/dist/cjs/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +1 -4
  45. package/dist/cjs/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.ts +18 -0
  46. package/dist/cjs/api/resources/subscriptions/client/requests/index.d.ts +1 -1
  47. package/dist/cjs/api/resources/usageEvents/client/Client.d.ts +25 -2
  48. package/dist/cjs/api/resources/usageEvents/client/Client.js +78 -4
  49. package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.ts +2 -3
  50. package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.ts +30 -0
  51. package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.js +14 -0
  52. package/dist/cjs/api/resources/usageEvents/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/types/Aggregation.d.ts +5 -5
  54. package/dist/cjs/api/types/Amount.d.ts +2 -1
  55. package/dist/cjs/api/types/BillingStateResponse.d.ts +7 -0
  56. package/dist/cjs/api/types/{CreditGrantScheduleOneTimeResource.d.ts → CountAggregationPricingMetricResource.d.ts} +1 -1
  57. package/dist/{esm/api/types/CreateRateCardCheckoutResponse.d.mts → cjs/api/types/CreateCustomerPortalSessionResponse.d.ts} +2 -1
  58. package/dist/cjs/api/types/CreateFixedRateInterface.d.ts +2 -4
  59. package/dist/cjs/api/types/{CreatePricingMetricInterface.d.ts → CreatePricingMetricResponse.d.ts} +2 -1
  60. package/dist/cjs/api/types/CreateSimpleUsageBasedRateInterface.d.ts +4 -3
  61. package/dist/cjs/api/types/CreateSubjectResponse.d.ts +1 -1
  62. package/dist/cjs/api/types/CreateSubscriptionCheckoutSessionResponse.d.ts +9 -0
  63. package/dist/cjs/api/types/CreateUsageEventSummaryResponse.d.ts +10 -0
  64. package/dist/{esm/api/types/CustomAggregationPricingMetricInterface.d.mts → cjs/api/types/CustomPricingMetricResource.d.ts} +1 -1
  65. package/dist/cjs/api/types/FixedRateInterface.d.ts +2 -3
  66. package/dist/cjs/api/types/{PricingMetricInterface.d.ts → GetPricingMetricResponse.d.ts} +2 -1
  67. package/dist/cjs/api/types/{MaxAggregationPricingMetricInterface.d.ts → LastAggregationPricingMetricResource.d.ts} +1 -1
  68. package/dist/{esm/api/types/MaxAggregationPricingMetricInterface.d.mts → cjs/api/types/MaxAggregationPricingMetricResource.d.ts} +1 -1
  69. package/dist/cjs/api/types/Period.d.ts +9 -0
  70. package/dist/cjs/api/types/Price.d.ts +10 -1
  71. package/dist/cjs/api/types/RateCardResource.d.ts +0 -4
  72. package/dist/cjs/api/types/RateCardResourceUsageBasedRatesItem.d.ts +1 -4
  73. package/dist/cjs/api/types/SimpleUsageBasedRateInterface.d.ts +5 -2
  74. package/dist/cjs/api/types/SubjectResource.d.ts +1 -1
  75. package/dist/cjs/api/types/SubscriptionResource.d.ts +1 -3
  76. package/dist/cjs/api/types/SubscriptionResource.js +0 -1
  77. package/dist/cjs/api/types/SumAggregationPricingMetricInterface.d.ts +1 -0
  78. package/dist/cjs/api/types/{LastAggregationPricingMetricInterface.d.ts → SumAggregationPricingMetricResource.d.ts} +1 -1
  79. package/dist/cjs/api/types/index.d.ts +12 -86
  80. package/dist/cjs/api/types/index.js +12 -86
  81. package/dist/cjs/environments.d.ts +7 -0
  82. package/dist/cjs/environments.js +9 -0
  83. package/dist/cjs/index.d.ts +1 -0
  84. package/dist/cjs/index.js +3 -1
  85. package/dist/cjs/version.d.ts +1 -1
  86. package/dist/cjs/version.js +1 -1
  87. package/dist/esm/Client.d.mts +12 -10
  88. package/dist/esm/Client.mjs +13 -13
  89. package/dist/esm/api/resources/checkout/client/Client.d.mts +12 -6
  90. package/dist/esm/api/resources/checkout/client/Client.mjs +23 -12
  91. package/dist/esm/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.d.mts → CreateSubscriptionCheckoutSessionRequest.d.mts} +4 -3
  92. package/dist/esm/api/resources/checkout/client/requests/index.d.mts +1 -1
  93. package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.d.mts +15 -9
  94. package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.mjs +19 -11
  95. package/dist/esm/api/resources/customerPortal/client/Client.d.mts +48 -0
  96. package/dist/esm/api/resources/customerPortal/client/Client.mjs +93 -0
  97. package/dist/esm/api/resources/customerPortal/client/index.d.mts +2 -0
  98. package/dist/esm/api/resources/customerPortal/client/index.mjs +1 -0
  99. package/dist/esm/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.mts +12 -0
  100. package/dist/esm/api/resources/customerPortal/client/requests/index.d.mts +1 -0
  101. package/dist/esm/api/resources/index.d.mts +7 -5
  102. package/dist/esm/api/resources/index.mjs +7 -5
  103. package/dist/esm/api/resources/pricingMetrics/client/Client.d.mts +64 -0
  104. package/dist/esm/api/resources/pricingMetrics/client/Client.mjs +152 -0
  105. package/dist/esm/api/resources/pricingMetrics/client/index.d.mts +2 -0
  106. package/dist/esm/api/resources/pricingMetrics/client/index.mjs +1 -0
  107. package/dist/esm/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.mts +22 -0
  108. package/dist/esm/api/resources/pricingMetrics/client/requests/index.d.mts +1 -0
  109. package/dist/esm/api/resources/{pricingPlans → pricingMetrics}/index.d.mts +1 -0
  110. package/dist/esm/api/resources/{pricingPlans → pricingMetrics}/index.mjs +1 -0
  111. package/dist/esm/api/resources/pricingMetrics/types/PricingMetricAggregation.d.mts +13 -0
  112. package/dist/esm/api/resources/pricingMetrics/types/index.d.mts +1 -0
  113. package/dist/esm/api/resources/pricingMetrics/types/index.mjs +1 -0
  114. package/dist/esm/api/resources/rateCards/client/Client.d.mts +11 -106
  115. package/dist/esm/api/resources/rateCards/client/Client.mjs +17 -244
  116. package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardRequest.d.mts +2 -36
  117. package/dist/{cjs/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.ts → esm/api/resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.d.mts} +2 -4
  118. package/dist/esm/api/resources/rateCards/client/requests/index.d.mts +1 -2
  119. package/dist/esm/api/resources/rateCards/index.d.mts +0 -1
  120. package/dist/esm/api/resources/rateCards/index.mjs +0 -1
  121. package/dist/esm/api/resources/subjects/client/Client.d.mts +8 -3
  122. package/dist/esm/api/resources/subjects/client/Client.mjs +24 -17
  123. package/dist/esm/api/resources/subjects/client/requests/CreateSubjectRequest.d.mts +0 -1
  124. package/dist/{cjs/api/resources/subjects/client/requests/SubjectsListSubjectsRequest.d.ts → esm/api/resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.d.mts} +1 -1
  125. package/dist/esm/api/resources/subjects/client/requests/UpdateSubjectRequest.d.mts +0 -1
  126. package/dist/esm/api/resources/subjects/client/requests/index.d.mts +1 -1
  127. package/dist/esm/api/resources/subscriptions/client/Client.d.mts +11 -24
  128. package/dist/esm/api/resources/subscriptions/client/Client.mjs +24 -114
  129. package/dist/esm/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.mts +1 -4
  130. package/dist/esm/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.mts +18 -0
  131. package/dist/esm/api/resources/subscriptions/client/requests/index.d.mts +1 -1
  132. package/dist/esm/api/resources/usageEvents/client/Client.d.mts +25 -2
  133. package/dist/esm/api/resources/usageEvents/client/Client.mjs +79 -5
  134. package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.mts +2 -3
  135. package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.mts +30 -0
  136. package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.mjs +11 -0
  137. package/dist/esm/api/resources/usageEvents/client/requests/index.d.mts +1 -0
  138. package/dist/esm/api/types/Aggregation.d.mts +5 -5
  139. package/dist/esm/api/types/Amount.d.mts +2 -1
  140. package/dist/esm/api/types/BillingStateResponse.d.mts +7 -0
  141. package/dist/esm/api/types/{CreditGrantScheduleOneTimeResource.d.mts → CountAggregationPricingMetricResource.d.mts} +1 -1
  142. package/dist/{cjs/api/types/CreateRateCardCheckoutResponse.d.ts → esm/api/types/CreateCustomerPortalSessionResponse.d.mts} +2 -1
  143. package/dist/esm/api/types/CreateFixedRateInterface.d.mts +2 -4
  144. package/dist/esm/api/types/{PricingMetricInterface.d.mts → CreatePricingMetricResponse.d.mts} +2 -1
  145. package/dist/esm/api/types/CreateSimpleUsageBasedRateInterface.d.mts +4 -3
  146. package/dist/esm/api/types/CreateSubjectResponse.d.mts +1 -1
  147. package/dist/esm/api/types/CreateSubscriptionCheckoutSessionResponse.d.mts +9 -0
  148. package/dist/esm/api/types/CreateUsageEventSummaryResponse.d.mts +10 -0
  149. package/dist/{cjs/api/types/CustomAggregationPricingMetricInterface.d.ts → esm/api/types/CustomPricingMetricResource.d.mts} +1 -1
  150. package/dist/esm/api/types/FixedRateInterface.d.mts +2 -3
  151. package/dist/esm/api/types/{CreatePricingMetricInterface.d.mts → GetPricingMetricResponse.d.mts} +2 -1
  152. package/dist/esm/api/types/{LastAggregationPricingMetricInterface.d.mts → LastAggregationPricingMetricResource.d.mts} +1 -1
  153. package/dist/esm/api/types/MaxAggregationPricingMetricResource.d.mts +6 -0
  154. package/dist/esm/api/types/Period.d.mts +9 -0
  155. package/dist/esm/api/types/Price.d.mts +10 -1
  156. package/dist/esm/api/types/RateCardResource.d.mts +0 -4
  157. package/dist/esm/api/types/RateCardResourceUsageBasedRatesItem.d.mts +1 -4
  158. package/dist/esm/api/types/SimpleUsageBasedRateInterface.d.mts +5 -2
  159. package/dist/esm/api/types/SubjectResource.d.mts +1 -1
  160. package/dist/esm/api/types/SubscriptionResource.d.mts +1 -3
  161. package/dist/esm/api/types/SubscriptionResource.mjs +0 -1
  162. package/dist/esm/api/types/SumAggregationPricingMetricInterface.d.mts +1 -0
  163. package/dist/esm/api/types/SumAggregationPricingMetricResource.d.mts +6 -0
  164. package/dist/esm/api/types/index.d.mts +12 -86
  165. package/dist/esm/api/types/index.mjs +12 -86
  166. package/dist/esm/environments.d.mts +7 -0
  167. package/dist/esm/environments.mjs +6 -0
  168. package/dist/esm/index.d.mts +1 -0
  169. package/dist/esm/index.mjs +1 -0
  170. package/dist/esm/version.d.mts +1 -1
  171. package/dist/esm/version.mjs +1 -1
  172. package/package.json +1 -1
  173. package/reference.md +67 -528
  174. package/dist/cjs/api/resources/creditPools/client/Client.d.ts +0 -53
  175. package/dist/cjs/api/resources/featureAccess/client/index.d.ts +0 -1
  176. package/dist/cjs/api/resources/pricingPlans/client/Client.d.ts +0 -72
  177. package/dist/cjs/api/resources/pricingPlans/client/Client.js +0 -305
  178. package/dist/cjs/api/resources/pricingPlans/client/index.d.ts +0 -1
  179. package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.ts +0 -60
  180. package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.js +0 -13
  181. package/dist/cjs/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.ts +0 -13
  182. package/dist/cjs/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.ts +0 -13
  183. package/dist/cjs/api/resources/rateCards/types/index.d.ts +0 -2
  184. package/dist/cjs/api/resources/subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.d.ts +0 -14
  185. package/dist/cjs/api/types/CheckFeatureAccessRequest.d.ts +0 -8
  186. package/dist/cjs/api/types/CheckFeatureAccessResponse.d.ts +0 -8
  187. package/dist/cjs/api/types/CreateCreditGrantInterface.d.ts +0 -12
  188. package/dist/cjs/api/types/CreateCreditGrantInterfaceExpiration.d.ts +0 -10
  189. package/dist/cjs/api/types/CreateCreditPoolRequest.d.ts +0 -4
  190. package/dist/cjs/api/types/CreateDimensionCoordinateInterface.d.ts +0 -7
  191. package/dist/cjs/api/types/CreateDimensionInterface.d.ts +0 -7
  192. package/dist/cjs/api/types/CreateDimensionalUsageBasedRateInterface.d.ts +0 -12
  193. package/dist/cjs/api/types/CreatePricingMatrixCellInterface.d.ts +0 -8
  194. package/dist/cjs/api/types/CreatePricingMatrixInterface.d.ts +0 -7
  195. package/dist/cjs/api/types/CreatePricingPlanRequest.d.ts +0 -4
  196. package/dist/cjs/api/types/CreateRateCardResponse.d.ts +0 -26
  197. package/dist/cjs/api/types/CreateRateCardResponse.js +0 -13
  198. package/dist/cjs/api/types/CreateRateCardResponseUsageBasedRatesItem.d.ts +0 -13
  199. package/dist/cjs/api/types/CreateRateCardResponseUsageBasedRatesItem.js +0 -5
  200. package/dist/cjs/api/types/CreateRateCardVersionResponse.d.ts +0 -26
  201. package/dist/cjs/api/types/CreateRateCardVersionResponse.js +0 -13
  202. package/dist/cjs/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.d.ts +0 -13
  203. package/dist/cjs/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.js +0 -5
  204. package/dist/cjs/api/types/CreditGrant.d.ts +0 -4
  205. package/dist/cjs/api/types/CreditGrant.js +0 -5
  206. package/dist/cjs/api/types/CreditGrantDateTimeExpirationInterface.d.ts +0 -6
  207. package/dist/cjs/api/types/CreditGrantDateTimeExpirationInterface.js +0 -5
  208. package/dist/cjs/api/types/CreditGrantDateTimeExpirationResource.d.ts +0 -6
  209. package/dist/cjs/api/types/CreditGrantDateTimeExpirationResource.js +0 -5
  210. package/dist/cjs/api/types/CreditGrantDurationExpirationInterface.d.ts +0 -17
  211. package/dist/cjs/api/types/CreditGrantDurationExpirationInterface.js +0 -16
  212. package/dist/cjs/api/types/CreditGrantDurationExpirationResource.d.ts +0 -17
  213. package/dist/cjs/api/types/CreditGrantDurationExpirationResource.js +0 -16
  214. package/dist/cjs/api/types/CreditGrantInterface.d.ts +0 -12
  215. package/dist/cjs/api/types/CreditGrantInterface.js +0 -5
  216. package/dist/cjs/api/types/CreditGrantInterfaceInputExpiration.d.ts +0 -10
  217. package/dist/cjs/api/types/CreditGrantInterfaceInputExpiration.js +0 -5
  218. package/dist/cjs/api/types/CreditGrantInterfaceOutputExpiration.d.ts +0 -13
  219. package/dist/cjs/api/types/CreditGrantInterfaceOutputExpiration.js +0 -5
  220. package/dist/cjs/api/types/CreditGrantInterfaceOutputSchedule.d.ts +0 -13
  221. package/dist/cjs/api/types/CreditGrantInterfaceOutputSchedule.js +0 -5
  222. package/dist/cjs/api/types/CreditGrantResource.d.ts +0 -12
  223. package/dist/cjs/api/types/CreditGrantResource.js +0 -5
  224. package/dist/cjs/api/types/CreditGrantResourceInputExpiration.d.ts +0 -10
  225. package/dist/cjs/api/types/CreditGrantResourceInputExpiration.js +0 -5
  226. package/dist/cjs/api/types/CreditGrantResourceInputSchedule.d.ts +0 -13
  227. package/dist/cjs/api/types/CreditGrantResourceInputSchedule.js +0 -5
  228. package/dist/cjs/api/types/CreditGrantResourceOutputExpiration.d.ts +0 -13
  229. package/dist/cjs/api/types/CreditGrantResourceOutputExpiration.js +0 -5
  230. package/dist/cjs/api/types/CreditGrantResourceOutputSchedule.d.ts +0 -13
  231. package/dist/cjs/api/types/CreditGrantResourceOutputSchedule.js +0 -5
  232. package/dist/cjs/api/types/CreditGrantSchedule.d.ts +0 -4
  233. package/dist/cjs/api/types/CreditGrantSchedule.js +0 -5
  234. package/dist/cjs/api/types/CreditGrantScheduleOneTimeInterface.d.ts +0 -6
  235. package/dist/cjs/api/types/CreditGrantScheduleOneTimeInterface.js +0 -5
  236. package/dist/cjs/api/types/CreditGrantScheduleOneTimeResource.js +0 -5
  237. package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartInterface.d.ts +0 -6
  238. package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartInterface.js +0 -5
  239. package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartResource.d.ts +0 -5
  240. package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartResource.js +0 -5
  241. package/dist/cjs/api/types/CreditGrantSubjectGrantingConfigInterface.d.ts +0 -7
  242. package/dist/cjs/api/types/CreditGrantSubjectGrantingConfigInterface.js +0 -5
  243. package/dist/cjs/api/types/CreditPool.d.ts +0 -4
  244. package/dist/cjs/api/types/CreditPool.js +0 -5
  245. package/dist/cjs/api/types/CreditPoolRolloverConfig.d.ts +0 -4
  246. package/dist/cjs/api/types/CreditPoolRolloverConfig.js +0 -5
  247. package/dist/cjs/api/types/CustomAggregationPricingMetricInterface.js +0 -5
  248. package/dist/cjs/api/types/CustomPricingMetric.d.ts +0 -4
  249. package/dist/cjs/api/types/CustomPricingMetric.js +0 -5
  250. package/dist/cjs/api/types/CustomUnit.d.ts +0 -4
  251. package/dist/cjs/api/types/CustomUnit.js +0 -5
  252. package/dist/cjs/api/types/CustomUnitAmount.d.ts +0 -4
  253. package/dist/cjs/api/types/CustomUnitAmount.js +0 -5
  254. package/dist/cjs/api/types/Dimension.d.ts +0 -4
  255. package/dist/cjs/api/types/Dimension.js +0 -5
  256. package/dist/cjs/api/types/DimensionCoordinate.d.ts +0 -4
  257. package/dist/cjs/api/types/DimensionCoordinate.js +0 -5
  258. package/dist/cjs/api/types/DimensionCoordinateInterface.d.ts +0 -7
  259. package/dist/cjs/api/types/DimensionCoordinateInterface.js +0 -5
  260. package/dist/cjs/api/types/DimensionCoordinateSet.d.ts +0 -4
  261. package/dist/cjs/api/types/DimensionCoordinateSet.js +0 -5
  262. package/dist/cjs/api/types/DimensionInterface.d.ts +0 -7
  263. package/dist/cjs/api/types/DimensionInterface.js +0 -5
  264. package/dist/cjs/api/types/DimensionalRateMatrix.d.ts +0 -4
  265. package/dist/cjs/api/types/DimensionalRateMatrix.js +0 -5
  266. package/dist/cjs/api/types/DimensionalRateMatrixCell.d.ts +0 -4
  267. package/dist/cjs/api/types/DimensionalRateMatrixCell.js +0 -5
  268. package/dist/cjs/api/types/DimensionalUsageBasedRate.d.ts +0 -4
  269. package/dist/cjs/api/types/DimensionalUsageBasedRate.js +0 -5
  270. package/dist/cjs/api/types/DimensionalUsageBasedRateInput.d.ts +0 -4
  271. package/dist/cjs/api/types/DimensionalUsageBasedRateInput.js +0 -5
  272. package/dist/cjs/api/types/DimensionalUsageBasedRateInterface.d.ts +0 -12
  273. package/dist/cjs/api/types/DimensionalUsageBasedRateInterface.js +0 -5
  274. package/dist/cjs/api/types/FeatureAccessResource.d.ts +0 -8
  275. package/dist/cjs/api/types/FeatureAccessResource.js +0 -5
  276. package/dist/cjs/api/types/GetRateCardResponse.d.ts +0 -26
  277. package/dist/cjs/api/types/GetRateCardResponse.js +0 -13
  278. package/dist/cjs/api/types/GetRateCardResponseUsageBasedRatesItem.d.ts +0 -13
  279. package/dist/cjs/api/types/GetRateCardResponseUsageBasedRatesItem.js +0 -5
  280. package/dist/cjs/api/types/GrantCreditsRequest.d.ts +0 -4
  281. package/dist/cjs/api/types/GrantCreditsRequest.js +0 -5
  282. package/dist/cjs/api/types/LastAggregationPricingMetricInterface.js +0 -5
  283. package/dist/cjs/api/types/LicenseBasedRate.d.ts +0 -4
  284. package/dist/cjs/api/types/LicenseBasedRate.js +0 -5
  285. package/dist/cjs/api/types/LicenseBasedRateInput.d.ts +0 -4
  286. package/dist/cjs/api/types/LicenseBasedRateInput.js +0 -5
  287. package/dist/cjs/api/types/MaxAggregationPricingMetricInterface.js +0 -5
  288. package/dist/cjs/api/types/MonetaryAmount.d.ts +0 -4
  289. package/dist/cjs/api/types/MonetaryAmount.js +0 -5
  290. package/dist/cjs/api/types/PackagePriceWrapper.d.ts +0 -4
  291. package/dist/cjs/api/types/PackagePriceWrapper.js +0 -5
  292. package/dist/cjs/api/types/PricingMatrixCellInterface.d.ts +0 -8
  293. package/dist/cjs/api/types/PricingMatrixCellInterface.js +0 -5
  294. package/dist/cjs/api/types/PricingMatrixInterface.d.ts +0 -7
  295. package/dist/cjs/api/types/PricingMatrixInterface.js +0 -5
  296. package/dist/cjs/api/types/PricingMetric.d.ts +0 -4
  297. package/dist/cjs/api/types/PricingMetric.js +0 -5
  298. package/dist/cjs/api/types/PricingMetricInterface.js +0 -5
  299. package/dist/cjs/api/types/PricingPlan.d.ts +0 -4
  300. package/dist/cjs/api/types/PricingPlan.js +0 -5
  301. package/dist/cjs/api/types/PricingPlanSubscription.d.ts +0 -4
  302. package/dist/cjs/api/types/PricingPlanSubscription.js +0 -5
  303. package/dist/cjs/api/types/PricingTier.d.ts +0 -4
  304. package/dist/cjs/api/types/PricingTier.js +0 -5
  305. package/dist/cjs/api/types/RateCard.d.ts +0 -4
  306. package/dist/cjs/api/types/RateCard.js +0 -5
  307. package/dist/cjs/api/types/RateCardVersion.d.ts +0 -4
  308. package/dist/cjs/api/types/RateCardVersion.js +0 -5
  309. package/dist/cjs/api/types/RateCardVersionInput.d.ts +0 -4
  310. package/dist/cjs/api/types/RateCardVersionInput.js +0 -5
  311. package/dist/cjs/api/types/SimpleUsageBasedRate.d.ts +0 -4
  312. package/dist/cjs/api/types/SimpleUsageBasedRate.js +0 -5
  313. package/dist/cjs/api/types/SimpleUsageBasedRateInput.d.ts +0 -4
  314. package/dist/cjs/api/types/SimpleUsageBasedRateInput.js +0 -5
  315. package/dist/cjs/api/types/Subject.d.ts +0 -4
  316. package/dist/cjs/api/types/Subject.js +0 -5
  317. package/dist/cjs/api/types/SubjectGrantingConfig.d.ts +0 -4
  318. package/dist/cjs/api/types/SubjectGrantingConfig.js +0 -5
  319. package/dist/cjs/api/types/SubjectGrantingConfigResource.d.ts +0 -7
  320. package/dist/cjs/api/types/SubjectGrantingConfigResource.js +0 -5
  321. package/dist/cjs/api/types/TieredPrice.d.ts +0 -4
  322. package/dist/cjs/api/types/TieredPrice.js +0 -5
  323. package/dist/cjs/api/types/TieredPriceWrapper.d.ts +0 -4
  324. package/dist/cjs/api/types/TieredPriceWrapper.js +0 -5
  325. package/dist/cjs/api/types/UpdatePricingPlanRequest.d.ts +0 -4
  326. package/dist/cjs/api/types/UpdatePricingPlanRequest.js +0 -5
  327. package/dist/cjs/api/types/UpdateRateCardRequest.d.ts +0 -4
  328. package/dist/cjs/api/types/UpdateRateCardRequest.js +0 -5
  329. package/dist/cjs/api/types/UpdateSubscriptionRequest.d.ts +0 -4
  330. package/dist/cjs/api/types/UpdateSubscriptionRequest.js +0 -5
  331. package/dist/cjs/api/types/UsageBasedRate.d.ts +0 -4
  332. package/dist/cjs/api/types/UsageBasedRate.js +0 -5
  333. package/dist/cjs/api/types/UsageBasedRateInput.d.ts +0 -4
  334. package/dist/cjs/api/types/UsageBasedRateInput.js +0 -5
  335. package/dist/cjs/api/types/UsageUnit.d.ts +0 -4
  336. package/dist/cjs/api/types/UsageUnit.js +0 -5
  337. package/dist/esm/api/resources/creditPools/client/Client.d.mts +0 -53
  338. package/dist/esm/api/resources/creditPools/client/Client.mjs +0 -167
  339. package/dist/esm/api/resources/featureAccess/client/index.d.mts +0 -1
  340. package/dist/esm/api/resources/pricingPlans/client/Client.d.mts +0 -72
  341. package/dist/esm/api/resources/pricingPlans/client/Client.mjs +0 -268
  342. package/dist/esm/api/resources/pricingPlans/client/index.d.mts +0 -1
  343. package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.mts +0 -60
  344. package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.mjs +0 -10
  345. package/dist/esm/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.mts +0 -13
  346. package/dist/esm/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.mts +0 -13
  347. package/dist/esm/api/resources/rateCards/types/index.d.mts +0 -2
  348. package/dist/esm/api/resources/rateCards/types/index.mjs +0 -2
  349. package/dist/esm/api/resources/subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.d.mts +0 -14
  350. package/dist/esm/api/types/CheckFeatureAccessRequest.d.mts +0 -8
  351. package/dist/esm/api/types/CheckFeatureAccessResponse.d.mts +0 -8
  352. package/dist/esm/api/types/CreateCreditGrantInterface.d.mts +0 -12
  353. package/dist/esm/api/types/CreateCreditGrantInterfaceExpiration.d.mts +0 -10
  354. package/dist/esm/api/types/CreateCreditPoolRequest.d.mts +0 -4
  355. package/dist/esm/api/types/CreateDimensionCoordinateInterface.d.mts +0 -7
  356. package/dist/esm/api/types/CreateDimensionInterface.d.mts +0 -7
  357. package/dist/esm/api/types/CreateDimensionalUsageBasedRateInterface.d.mts +0 -12
  358. package/dist/esm/api/types/CreatePricingMatrixCellInterface.d.mts +0 -8
  359. package/dist/esm/api/types/CreatePricingMatrixInterface.d.mts +0 -7
  360. package/dist/esm/api/types/CreatePricingPlanRequest.d.mts +0 -4
  361. package/dist/esm/api/types/CreateRateCardResponse.d.mts +0 -26
  362. package/dist/esm/api/types/CreateRateCardResponse.mjs +0 -10
  363. package/dist/esm/api/types/CreateRateCardResponseUsageBasedRatesItem.d.mts +0 -13
  364. package/dist/esm/api/types/CreateRateCardResponseUsageBasedRatesItem.mjs +0 -4
  365. package/dist/esm/api/types/CreateRateCardVersionResponse.d.mts +0 -26
  366. package/dist/esm/api/types/CreateRateCardVersionResponse.mjs +0 -10
  367. package/dist/esm/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.d.mts +0 -13
  368. package/dist/esm/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.mjs +0 -4
  369. package/dist/esm/api/types/CreditGrant.d.mts +0 -4
  370. package/dist/esm/api/types/CreditGrant.mjs +0 -4
  371. package/dist/esm/api/types/CreditGrantDateTimeExpirationInterface.d.mts +0 -6
  372. package/dist/esm/api/types/CreditGrantDateTimeExpirationInterface.mjs +0 -4
  373. package/dist/esm/api/types/CreditGrantDateTimeExpirationResource.d.mts +0 -6
  374. package/dist/esm/api/types/CreditGrantDateTimeExpirationResource.mjs +0 -4
  375. package/dist/esm/api/types/CreditGrantDurationExpirationInterface.d.mts +0 -17
  376. package/dist/esm/api/types/CreditGrantDurationExpirationInterface.mjs +0 -13
  377. package/dist/esm/api/types/CreditGrantDurationExpirationResource.d.mts +0 -17
  378. package/dist/esm/api/types/CreditGrantDurationExpirationResource.mjs +0 -13
  379. package/dist/esm/api/types/CreditGrantInterface.d.mts +0 -12
  380. package/dist/esm/api/types/CreditGrantInterface.mjs +0 -4
  381. package/dist/esm/api/types/CreditGrantInterfaceInputExpiration.d.mts +0 -10
  382. package/dist/esm/api/types/CreditGrantInterfaceInputExpiration.mjs +0 -4
  383. package/dist/esm/api/types/CreditGrantInterfaceOutputExpiration.d.mts +0 -13
  384. package/dist/esm/api/types/CreditGrantInterfaceOutputExpiration.mjs +0 -4
  385. package/dist/esm/api/types/CreditGrantInterfaceOutputSchedule.d.mts +0 -13
  386. package/dist/esm/api/types/CreditGrantInterfaceOutputSchedule.mjs +0 -4
  387. package/dist/esm/api/types/CreditGrantResource.d.mts +0 -12
  388. package/dist/esm/api/types/CreditGrantResource.mjs +0 -4
  389. package/dist/esm/api/types/CreditGrantResourceInputExpiration.d.mts +0 -10
  390. package/dist/esm/api/types/CreditGrantResourceInputExpiration.mjs +0 -4
  391. package/dist/esm/api/types/CreditGrantResourceInputSchedule.d.mts +0 -13
  392. package/dist/esm/api/types/CreditGrantResourceInputSchedule.mjs +0 -4
  393. package/dist/esm/api/types/CreditGrantResourceOutputExpiration.d.mts +0 -13
  394. package/dist/esm/api/types/CreditGrantResourceOutputExpiration.mjs +0 -4
  395. package/dist/esm/api/types/CreditGrantResourceOutputSchedule.d.mts +0 -13
  396. package/dist/esm/api/types/CreditGrantResourceOutputSchedule.mjs +0 -4
  397. package/dist/esm/api/types/CreditGrantSchedule.d.mts +0 -4
  398. package/dist/esm/api/types/CreditGrantSchedule.mjs +0 -4
  399. package/dist/esm/api/types/CreditGrantScheduleOneTimeInterface.d.mts +0 -6
  400. package/dist/esm/api/types/CreditGrantScheduleOneTimeInterface.mjs +0 -4
  401. package/dist/esm/api/types/CreditGrantScheduleOneTimeResource.mjs +0 -4
  402. package/dist/esm/api/types/CreditGrantScheduleRateCycleStartInterface.d.mts +0 -6
  403. package/dist/esm/api/types/CreditGrantScheduleRateCycleStartInterface.mjs +0 -4
  404. package/dist/esm/api/types/CreditGrantScheduleRateCycleStartResource.d.mts +0 -5
  405. package/dist/esm/api/types/CreditGrantScheduleRateCycleStartResource.mjs +0 -4
  406. package/dist/esm/api/types/CreditGrantSubjectGrantingConfigInterface.d.mts +0 -7
  407. package/dist/esm/api/types/CreditGrantSubjectGrantingConfigInterface.mjs +0 -4
  408. package/dist/esm/api/types/CreditPool.d.mts +0 -4
  409. package/dist/esm/api/types/CreditPool.mjs +0 -4
  410. package/dist/esm/api/types/CreditPoolRolloverConfig.d.mts +0 -4
  411. package/dist/esm/api/types/CreditPoolRolloverConfig.mjs +0 -4
  412. package/dist/esm/api/types/CustomAggregationPricingMetricInterface.mjs +0 -4
  413. package/dist/esm/api/types/CustomPricingMetric.d.mts +0 -4
  414. package/dist/esm/api/types/CustomPricingMetric.mjs +0 -4
  415. package/dist/esm/api/types/CustomUnit.d.mts +0 -4
  416. package/dist/esm/api/types/CustomUnit.mjs +0 -4
  417. package/dist/esm/api/types/CustomUnitAmount.d.mts +0 -4
  418. package/dist/esm/api/types/CustomUnitAmount.mjs +0 -4
  419. package/dist/esm/api/types/Dimension.d.mts +0 -4
  420. package/dist/esm/api/types/Dimension.mjs +0 -4
  421. package/dist/esm/api/types/DimensionCoordinate.d.mts +0 -4
  422. package/dist/esm/api/types/DimensionCoordinate.mjs +0 -4
  423. package/dist/esm/api/types/DimensionCoordinateInterface.d.mts +0 -7
  424. package/dist/esm/api/types/DimensionCoordinateInterface.mjs +0 -4
  425. package/dist/esm/api/types/DimensionCoordinateSet.d.mts +0 -4
  426. package/dist/esm/api/types/DimensionCoordinateSet.mjs +0 -4
  427. package/dist/esm/api/types/DimensionInterface.d.mts +0 -7
  428. package/dist/esm/api/types/DimensionInterface.mjs +0 -4
  429. package/dist/esm/api/types/DimensionalRateMatrix.d.mts +0 -4
  430. package/dist/esm/api/types/DimensionalRateMatrix.mjs +0 -4
  431. package/dist/esm/api/types/DimensionalRateMatrixCell.d.mts +0 -4
  432. package/dist/esm/api/types/DimensionalRateMatrixCell.mjs +0 -4
  433. package/dist/esm/api/types/DimensionalUsageBasedRate.d.mts +0 -4
  434. package/dist/esm/api/types/DimensionalUsageBasedRate.mjs +0 -4
  435. package/dist/esm/api/types/DimensionalUsageBasedRateInput.d.mts +0 -4
  436. package/dist/esm/api/types/DimensionalUsageBasedRateInput.mjs +0 -4
  437. package/dist/esm/api/types/DimensionalUsageBasedRateInterface.d.mts +0 -12
  438. package/dist/esm/api/types/DimensionalUsageBasedRateInterface.mjs +0 -4
  439. package/dist/esm/api/types/FeatureAccessResource.d.mts +0 -8
  440. package/dist/esm/api/types/FeatureAccessResource.mjs +0 -4
  441. package/dist/esm/api/types/GetRateCardResponse.d.mts +0 -26
  442. package/dist/esm/api/types/GetRateCardResponse.mjs +0 -10
  443. package/dist/esm/api/types/GetRateCardResponseUsageBasedRatesItem.d.mts +0 -13
  444. package/dist/esm/api/types/GetRateCardResponseUsageBasedRatesItem.mjs +0 -4
  445. package/dist/esm/api/types/GrantCreditsRequest.d.mts +0 -4
  446. package/dist/esm/api/types/GrantCreditsRequest.mjs +0 -4
  447. package/dist/esm/api/types/LastAggregationPricingMetricInterface.mjs +0 -4
  448. package/dist/esm/api/types/LicenseBasedRate.d.mts +0 -4
  449. package/dist/esm/api/types/LicenseBasedRate.mjs +0 -4
  450. package/dist/esm/api/types/LicenseBasedRateInput.d.mts +0 -4
  451. package/dist/esm/api/types/LicenseBasedRateInput.mjs +0 -4
  452. package/dist/esm/api/types/MaxAggregationPricingMetricInterface.mjs +0 -4
  453. package/dist/esm/api/types/MonetaryAmount.d.mts +0 -4
  454. package/dist/esm/api/types/MonetaryAmount.mjs +0 -4
  455. package/dist/esm/api/types/PackagePriceWrapper.d.mts +0 -4
  456. package/dist/esm/api/types/PackagePriceWrapper.mjs +0 -4
  457. package/dist/esm/api/types/PricingMatrixCellInterface.d.mts +0 -8
  458. package/dist/esm/api/types/PricingMatrixCellInterface.mjs +0 -4
  459. package/dist/esm/api/types/PricingMatrixInterface.d.mts +0 -7
  460. package/dist/esm/api/types/PricingMatrixInterface.mjs +0 -4
  461. package/dist/esm/api/types/PricingMetric.d.mts +0 -4
  462. package/dist/esm/api/types/PricingMetric.mjs +0 -4
  463. package/dist/esm/api/types/PricingMetricInterface.mjs +0 -4
  464. package/dist/esm/api/types/PricingPlan.d.mts +0 -4
  465. package/dist/esm/api/types/PricingPlan.mjs +0 -4
  466. package/dist/esm/api/types/PricingPlanSubscription.d.mts +0 -4
  467. package/dist/esm/api/types/PricingPlanSubscription.mjs +0 -4
  468. package/dist/esm/api/types/PricingTier.d.mts +0 -4
  469. package/dist/esm/api/types/PricingTier.mjs +0 -4
  470. package/dist/esm/api/types/RateCard.d.mts +0 -4
  471. package/dist/esm/api/types/RateCard.mjs +0 -4
  472. package/dist/esm/api/types/RateCardVersion.d.mts +0 -4
  473. package/dist/esm/api/types/RateCardVersion.mjs +0 -4
  474. package/dist/esm/api/types/RateCardVersionInput.d.mts +0 -4
  475. package/dist/esm/api/types/RateCardVersionInput.mjs +0 -4
  476. package/dist/esm/api/types/SimpleUsageBasedRate.d.mts +0 -4
  477. package/dist/esm/api/types/SimpleUsageBasedRate.mjs +0 -4
  478. package/dist/esm/api/types/SimpleUsageBasedRateInput.d.mts +0 -4
  479. package/dist/esm/api/types/SimpleUsageBasedRateInput.mjs +0 -4
  480. package/dist/esm/api/types/Subject.d.mts +0 -4
  481. package/dist/esm/api/types/Subject.mjs +0 -4
  482. package/dist/esm/api/types/SubjectGrantingConfig.d.mts +0 -4
  483. package/dist/esm/api/types/SubjectGrantingConfig.mjs +0 -4
  484. package/dist/esm/api/types/SubjectGrantingConfigResource.d.mts +0 -7
  485. package/dist/esm/api/types/SubjectGrantingConfigResource.mjs +0 -4
  486. package/dist/esm/api/types/TieredPrice.d.mts +0 -4
  487. package/dist/esm/api/types/TieredPrice.mjs +0 -4
  488. package/dist/esm/api/types/TieredPriceWrapper.d.mts +0 -4
  489. package/dist/esm/api/types/TieredPriceWrapper.mjs +0 -4
  490. package/dist/esm/api/types/UpdatePricingPlanRequest.d.mts +0 -4
  491. package/dist/esm/api/types/UpdatePricingPlanRequest.mjs +0 -4
  492. package/dist/esm/api/types/UpdateRateCardRequest.d.mts +0 -4
  493. package/dist/esm/api/types/UpdateRateCardRequest.mjs +0 -4
  494. package/dist/esm/api/types/UpdateSubscriptionRequest.d.mts +0 -4
  495. package/dist/esm/api/types/UpdateSubscriptionRequest.mjs +0 -4
  496. package/dist/esm/api/types/UsageBasedRate.d.mts +0 -4
  497. package/dist/esm/api/types/UsageBasedRate.mjs +0 -4
  498. package/dist/esm/api/types/UsageBasedRateInput.d.mts +0 -4
  499. package/dist/esm/api/types/UsageBasedRateInput.mjs +0 -4
  500. package/dist/esm/api/types/UsageUnit.d.mts +0 -4
  501. package/dist/esm/api/types/UsageUnit.mjs +0 -4
  502. /package/dist/cjs/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.js → CreateSubscriptionCheckoutSessionRequest.js} +0 -0
  503. /package/dist/cjs/api/resources/{creditPools → customerAccess}/client/index.d.ts +0 -0
  504. /package/dist/cjs/api/resources/{creditPools → customerAccess}/client/index.js +0 -0
  505. /package/dist/cjs/api/resources/{creditPools → customerAccess}/index.d.ts +0 -0
  506. /package/dist/cjs/api/resources/{creditPools → customerAccess}/index.js +0 -0
  507. /package/dist/cjs/api/resources/{rateCards/client/requests/RateCardsListRateCardsRequest.js → customerPortal/client/requests/CreateCustomerPortalSessionRequest.js} +0 -0
  508. /package/dist/cjs/api/resources/{featureAccess/client → customerPortal/client/requests}/index.js +0 -0
  509. /package/dist/cjs/api/resources/{featureAccess → customerPortal}/index.d.ts +0 -0
  510. /package/dist/cjs/api/resources/{featureAccess → customerPortal}/index.js +0 -0
  511. /package/dist/cjs/api/resources/{rateCards/types/CreateRateCardRequestUsageBasedRatesItem.js → pricingMetrics/client/requests/CreatePricingMetricRequest.js} +0 -0
  512. /package/dist/cjs/api/resources/{pricingPlans/client → pricingMetrics/client/requests}/index.js +0 -0
  513. /package/dist/cjs/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.js → pricingMetrics/types/PricingMetricAggregation.js} +0 -0
  514. /package/dist/cjs/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.js → rateCards/client/requests/ListRateCardsRateCardsGetRequest.js} +0 -0
  515. /package/dist/cjs/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.js → subjects/client/requests/ListSubjectsSubjectsGetRequest.js} +0 -0
  516. /package/dist/cjs/api/{types/CheckFeatureAccessRequest.js → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.js} +0 -0
  517. /package/dist/cjs/api/types/{CheckFeatureAccessResponse.js → BillingStateResponse.js} +0 -0
  518. /package/dist/cjs/api/types/{CreateCreditGrantInterface.js → CountAggregationPricingMetricResource.js} +0 -0
  519. /package/dist/cjs/api/types/{CreateCreditGrantInterfaceExpiration.js → CreateCustomerPortalSessionResponse.js} +0 -0
  520. /package/dist/cjs/api/types/{CreateCreditPoolRequest.js → CreatePricingMetricResponse.js} +0 -0
  521. /package/dist/cjs/api/types/{CreateDimensionCoordinateInterface.js → CreateSubscriptionCheckoutSessionResponse.js} +0 -0
  522. /package/dist/cjs/api/types/{CreateDimensionInterface.js → CreateUsageEventSummaryResponse.js} +0 -0
  523. /package/dist/cjs/api/types/{CreateDimensionalUsageBasedRateInterface.js → CustomPricingMetricResource.js} +0 -0
  524. /package/dist/cjs/api/types/{CreatePricingMatrixCellInterface.js → GetPricingMetricResponse.js} +0 -0
  525. /package/dist/cjs/api/types/{CreatePricingMatrixInterface.js → LastAggregationPricingMetricResource.js} +0 -0
  526. /package/dist/cjs/api/types/{CreatePricingMetricInterface.js → MaxAggregationPricingMetricResource.js} +0 -0
  527. /package/dist/cjs/api/types/{CreatePricingPlanRequest.js → Period.js} +0 -0
  528. /package/dist/cjs/api/types/{CreateRateCardCheckoutResponse.js → SumAggregationPricingMetricResource.js} +0 -0
  529. /package/dist/esm/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.mjs → CreateSubscriptionCheckoutSessionRequest.mjs} +0 -0
  530. /package/dist/esm/api/resources/{creditPools → customerAccess}/client/index.d.mts +0 -0
  531. /package/dist/esm/api/resources/{creditPools → customerAccess}/client/index.mjs +0 -0
  532. /package/dist/esm/api/resources/{creditPools → customerAccess}/index.d.mts +0 -0
  533. /package/dist/esm/api/resources/{creditPools → customerAccess}/index.mjs +0 -0
  534. /package/dist/esm/api/resources/{rateCards/client/requests/RateCardsListRateCardsRequest.mjs → customerPortal/client/requests/CreateCustomerPortalSessionRequest.mjs} +0 -0
  535. /package/dist/esm/api/resources/{featureAccess/client → customerPortal/client/requests}/index.mjs +0 -0
  536. /package/dist/esm/api/resources/{featureAccess → customerPortal}/index.d.mts +0 -0
  537. /package/dist/esm/api/resources/{featureAccess → customerPortal}/index.mjs +0 -0
  538. /package/dist/esm/api/resources/{rateCards/types/CreateRateCardRequestUsageBasedRatesItem.mjs → pricingMetrics/client/requests/CreatePricingMetricRequest.mjs} +0 -0
  539. /package/dist/esm/api/resources/{pricingPlans/client → pricingMetrics/client/requests}/index.mjs +0 -0
  540. /package/dist/esm/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.mjs → pricingMetrics/types/PricingMetricAggregation.mjs} +0 -0
  541. /package/dist/esm/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.mjs → rateCards/client/requests/ListRateCardsRateCardsGetRequest.mjs} +0 -0
  542. /package/dist/esm/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.mjs → subjects/client/requests/ListSubjectsSubjectsGetRequest.mjs} +0 -0
  543. /package/dist/esm/api/{types/CheckFeatureAccessRequest.mjs → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.mjs} +0 -0
  544. /package/dist/esm/api/types/{CheckFeatureAccessResponse.mjs → BillingStateResponse.mjs} +0 -0
  545. /package/dist/esm/api/types/{CreateCreditGrantInterface.mjs → CountAggregationPricingMetricResource.mjs} +0 -0
  546. /package/dist/esm/api/types/{CreateCreditGrantInterfaceExpiration.mjs → CreateCustomerPortalSessionResponse.mjs} +0 -0
  547. /package/dist/esm/api/types/{CreateCreditPoolRequest.mjs → CreatePricingMetricResponse.mjs} +0 -0
  548. /package/dist/esm/api/types/{CreateDimensionCoordinateInterface.mjs → CreateSubscriptionCheckoutSessionResponse.mjs} +0 -0
  549. /package/dist/esm/api/types/{CreateDimensionInterface.mjs → CreateUsageEventSummaryResponse.mjs} +0 -0
  550. /package/dist/esm/api/types/{CreateDimensionalUsageBasedRateInterface.mjs → CustomPricingMetricResource.mjs} +0 -0
  551. /package/dist/esm/api/types/{CreatePricingMatrixCellInterface.mjs → GetPricingMetricResponse.mjs} +0 -0
  552. /package/dist/esm/api/types/{CreatePricingMatrixInterface.mjs → LastAggregationPricingMetricResource.mjs} +0 -0
  553. /package/dist/esm/api/types/{CreatePricingMetricInterface.mjs → MaxAggregationPricingMetricResource.mjs} +0 -0
  554. /package/dist/esm/api/types/{CreatePricingPlanRequest.mjs → Period.mjs} +0 -0
  555. /package/dist/esm/api/types/{CreateRateCardCheckoutResponse.mjs → SumAggregationPricingMetricResource.mjs} +0 -0
@@ -0,0 +1,152 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments.mjs";
14
+ import * as core from "../../../../core/index.mjs";
15
+ import * as Lark from "../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
+ import * as errors from "../../../../errors/index.mjs";
18
+ export class PricingMetrics {
19
+ constructor(_options) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * @param {Lark.CreatePricingMetricRequest} request
24
+ * @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @throws {@link Lark.UnprocessableEntityError}
27
+ *
28
+ * @example
29
+ * await client.pricingMetrics.createPricingMetric({
30
+ * name: "name",
31
+ * event_name: "event_name",
32
+ * aggregation: {
33
+ * aggregation_type: "count"
34
+ * },
35
+ * unit: "unit"
36
+ * })
37
+ */
38
+ createPricingMetric(request, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__createPricingMetric(request, requestOptions));
40
+ }
41
+ __createPricingMetric(request, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c;
44
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
45
+ const _response = yield core.fetcher({
46
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, "pricing-metrics"),
47
+ method: "POST",
48
+ headers: _headers,
49
+ contentType: "application/json",
50
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
51
+ requestType: "json",
52
+ body: request,
53
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ });
57
+ if (_response.ok) {
58
+ return { data: _response.body, rawResponse: _response.rawResponse };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 422:
63
+ throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
64
+ default:
65
+ throw new errors.LarkError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.LarkError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ case "timeout":
80
+ throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /pricing-metrics.");
81
+ case "unknown":
82
+ throw new errors.LarkError({
83
+ message: _response.error.errorMessage,
84
+ rawResponse: _response.rawResponse,
85
+ });
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * @param {string} pricingMetricId
91
+ * @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Lark.UnprocessableEntityError}
94
+ *
95
+ * @example
96
+ * await client.pricingMetrics.getPricingMetric("pricing_metric_id")
97
+ */
98
+ getPricingMetric(pricingMetricId, requestOptions) {
99
+ return core.HttpResponsePromise.fromPromise(this.__getPricingMetric(pricingMetricId, requestOptions));
100
+ }
101
+ __getPricingMetric(pricingMetricId, requestOptions) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ var _a, _b, _c;
104
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
105
+ const _response = yield core.fetcher({
106
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `pricing-metrics/${encodeURIComponent(pricingMetricId)}`),
107
+ method: "GET",
108
+ headers: _headers,
109
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
110
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
111
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
112
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
113
+ });
114
+ if (_response.ok) {
115
+ return { data: _response.body, rawResponse: _response.rawResponse };
116
+ }
117
+ if (_response.error.reason === "status-code") {
118
+ switch (_response.error.statusCode) {
119
+ case 422:
120
+ throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
121
+ default:
122
+ throw new errors.LarkError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.body,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ }
128
+ }
129
+ switch (_response.error.reason) {
130
+ case "non-json":
131
+ throw new errors.LarkError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.rawBody,
134
+ rawResponse: _response.rawResponse,
135
+ });
136
+ case "timeout":
137
+ throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /pricing-metrics/{pricing_metric_id}.");
138
+ case "unknown":
139
+ throw new errors.LarkError({
140
+ message: _response.error.errorMessage,
141
+ rawResponse: _response.rawResponse,
142
+ });
143
+ }
144
+ });
145
+ }
146
+ _getCustomAuthorizationHeaders() {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
149
+ return { "X-API-Key": apiKeyValue };
150
+ });
151
+ }
152
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Lark from "../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * name: "name",
9
+ * event_name: "event_name",
10
+ * aggregation: {
11
+ * aggregation_type: "count"
12
+ * },
13
+ * unit: "unit"
14
+ * }
15
+ */
16
+ export interface CreatePricingMetricRequest {
17
+ name: string;
18
+ event_name: string;
19
+ aggregation: Lark.PricingMetricAggregation;
20
+ /** Unit of measurement for the pricing metric */
21
+ unit: string;
22
+ }
@@ -0,0 +1 @@
1
+ export { type CreatePricingMetricRequest } from "./CreatePricingMetricRequest.mjs";
@@ -1 +1,2 @@
1
+ export * from "./types/index.mjs";
1
2
  export * from "./client/index.mjs";
@@ -1 +1,2 @@
1
+ export * from "./types/index.mjs";
1
2
  export * from "./client/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Lark from "../../../index.mjs";
5
+ export type PricingMetricAggregation = Lark.PricingMetricAggregation.Count | Lark.PricingMetricAggregation.Sum;
6
+ export declare namespace PricingMetricAggregation {
7
+ interface Count extends Lark.CountAggregationPricingMetricInterface {
8
+ aggregation_type: "count";
9
+ }
10
+ interface Sum extends Lark.SumAggregationPricingMetricInterface {
11
+ aggregation_type: "sum";
12
+ }
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./PricingMetricAggregation.mjs";
@@ -0,0 +1 @@
1
+ export * from "./PricingMetricAggregation.mjs";
@@ -1,13 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as environments from "../../../../environments.mjs";
4
5
  import * as core from "../../../../core/index.mjs";
5
6
  import * as Lark from "../../../index.mjs";
6
7
  export declare namespace RateCards {
7
8
  interface Options {
8
- environment: core.Supplier<string>;
9
+ environment?: core.Supplier<environments.LarkEnvironment | string>;
9
10
  /** Specify a custom URL to connect the client to. */
10
11
  baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
11
13
  /** Additional headers to include in requests. */
12
14
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
13
15
  }
@@ -28,18 +30,17 @@ export declare class RateCards {
28
30
  protected readonly _options: RateCards.Options;
29
31
  constructor(_options: RateCards.Options);
30
32
  /**
31
- * @param {Lark.RateCardsListRateCardsRequest} request
33
+ * @param {Lark.ListRateCardsRateCardsGetRequest} request
32
34
  * @param {RateCards.RequestOptions} requestOptions - Request-specific configuration.
33
35
  *
34
36
  * @throws {@link Lark.UnprocessableEntityError}
35
37
  *
36
38
  * @example
37
39
  * await client.rateCards.listRateCards({
38
- * limit: 1,
39
- * offset: 1
40
+ * limit: 1
40
41
  * })
41
42
  */
42
- listRateCards(request?: Lark.RateCardsListRateCardsRequest, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.ListRateCardsResponse>;
43
+ listRateCards(request?: Lark.ListRateCardsRateCardsGetRequest, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.ListRateCardsResponse>;
43
44
  private __listRateCards;
44
45
  /**
45
46
  * @param {Lark.CreateRateCardRequest} request
@@ -50,42 +51,10 @@ export declare class RateCards {
50
51
  * @example
51
52
  * await client.rateCards.createRateCard({
52
53
  * name: "name",
53
- * description: "description",
54
- * usage_based_rates: [{
55
- * usage_based_rate_type: "dimensional",
56
- * name: "name",
57
- * pricing_metric: {
58
- * name: "name",
59
- * event_name: "event_name",
60
- * aggregation: {
61
- * aggregation_type: "count"
62
- * },
63
- * unit: "unit"
64
- * },
65
- * dimensions: [{
66
- * key: "key",
67
- * values: ["values"]
68
- * }],
69
- * pricing_matrix: {
70
- * cells: [{
71
- * dimension_coordinates: [{
72
- * dimension_key: "dimension_key",
73
- * value: "value"
74
- * }],
75
- * price: {
76
- * "amount": {
77
- * "value": 1,
78
- * "currency_code": "currency_code"
79
- * },
80
- * "price_type": "flat"
81
- * }
82
- * }]
83
- * }
84
- * }],
85
54
  * billing_interval: "monthly"
86
55
  * })
87
56
  */
88
- createRateCard(request: Lark.CreateRateCardRequest, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.CreateRateCardResponse>;
57
+ createRateCard(request: Lark.CreateRateCardRequest, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.RateCardResource>;
89
58
  private __createRateCard;
90
59
  /**
91
60
  * @param {string} rateCardId
@@ -96,73 +65,9 @@ export declare class RateCards {
96
65
  * @example
97
66
  * await client.rateCards.getRateCard("rate_card_id")
98
67
  */
99
- getRateCard(rateCardId: string, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.GetRateCardResponse>;
68
+ getRateCard(rateCardId: string, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.RateCardResource>;
100
69
  private __getRateCard;
101
- /**
102
- * @param {string} rateCardId
103
- * @param {RateCards.RequestOptions} requestOptions - Request-specific configuration.
104
- *
105
- * @example
106
- * await client.rateCards.deleteRateCard("rate_card_id")
107
- */
108
- deleteRateCard(rateCardId: string, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<void>;
109
- private __deleteRateCard;
110
- /**
111
- * @param {string} rateCardId
112
- * @param {RateCards.RequestOptions} requestOptions - Request-specific configuration.
113
- *
114
- * @example
115
- * await client.rateCards.updateRateCard("rate_card_id")
116
- */
117
- updateRateCard(rateCardId: string, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<void>;
118
- private __updateRateCard;
119
- /**
120
- * @param {string} rateCardId
121
- * @param {Lark.CreateRateCardVersionRequest} request
122
- * @param {RateCards.RequestOptions} requestOptions - Request-specific configuration.
123
- *
124
- * @throws {@link Lark.UnprocessableEntityError}
125
- *
126
- * @example
127
- * await client.rateCards.createRateCardVersion("rate_card_id", {
128
- * name: "name",
129
- * description: "description",
130
- * usage_based_rates: [{
131
- * usage_based_rate_type: "dimensional",
132
- * name: "name",
133
- * description: "description",
134
- * included_units: 1,
135
- * pricing_metric: {
136
- * name: "name",
137
- * event_name: "event_name",
138
- * aggregation: {
139
- * aggregation_type: "count"
140
- * },
141
- * unit: "unit"
142
- * },
143
- * dimensions: [{
144
- * key: "key",
145
- * values: ["values"]
146
- * }],
147
- * pricing_matrix: {
148
- * cells: [{
149
- * dimension_coordinates: [{
150
- * dimension_key: "dimension_key",
151
- * value: "value"
152
- * }],
153
- * price: {
154
- * "amount": {
155
- * "value": 1,
156
- * "currency_code": "currency_code"
157
- * },
158
- * "price_type": "flat"
159
- * }
160
- * }]
161
- * }
162
- * }],
163
- * version_type: "major"
164
- * })
165
- */
166
- createRateCardVersion(rateCardId: string, request: Lark.CreateRateCardVersionRequest, requestOptions?: RateCards.RequestOptions): core.HttpResponsePromise<Lark.CreateRateCardVersionResponse>;
167
- private __createRateCardVersion;
70
+ protected _getCustomAuthorizationHeaders(): Promise<{
71
+ "X-API-Key": string;
72
+ }>;
168
73
  }