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