@metronome/sdk 3.0.0 → 3.4.1

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 (347) hide show
  1. package/CHANGELOG.md +142 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +5 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +5 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +26 -10
  8. package/client.js.map +1 -1
  9. package/client.mjs +26 -10
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/internal/tslib.js +17 -17
  18. package/internal/utils/query.d.mts +2 -0
  19. package/internal/utils/query.d.mts.map +1 -0
  20. package/internal/utils/query.d.ts +2 -0
  21. package/internal/utils/query.d.ts.map +1 -0
  22. package/internal/utils/query.js +10 -0
  23. package/internal/utils/query.js.map +1 -0
  24. package/internal/utils/query.mjs +6 -0
  25. package/internal/utils/query.mjs.map +1 -0
  26. package/internal/utils.d.mts +1 -0
  27. package/internal/utils.d.ts +1 -0
  28. package/internal/utils.js +1 -0
  29. package/internal/utils.js.map +1 -1
  30. package/internal/utils.mjs +1 -0
  31. package/package.json +12 -1
  32. package/resources/shared.d.mts +49 -24
  33. package/resources/shared.d.mts.map +1 -1
  34. package/resources/shared.d.ts +49 -24
  35. package/resources/shared.d.ts.map +1 -1
  36. package/resources/v1/alerts.d.mts +3 -0
  37. package/resources/v1/alerts.d.mts.map +1 -1
  38. package/resources/v1/alerts.d.ts +3 -0
  39. package/resources/v1/alerts.d.ts.map +1 -1
  40. package/resources/v1/alerts.js +3 -0
  41. package/resources/v1/alerts.js.map +1 -1
  42. package/resources/v1/alerts.mjs +3 -0
  43. package/resources/v1/alerts.mjs.map +1 -1
  44. package/resources/v1/audit-logs.d.mts +3 -0
  45. package/resources/v1/audit-logs.d.mts.map +1 -1
  46. package/resources/v1/audit-logs.d.ts +3 -0
  47. package/resources/v1/audit-logs.d.ts.map +1 -1
  48. package/resources/v1/audit-logs.js +3 -0
  49. package/resources/v1/audit-logs.js.map +1 -1
  50. package/resources/v1/audit-logs.mjs +3 -0
  51. package/resources/v1/audit-logs.mjs.map +1 -1
  52. package/resources/v1/billable-metrics.d.mts +3 -0
  53. package/resources/v1/billable-metrics.d.mts.map +1 -1
  54. package/resources/v1/billable-metrics.d.ts +3 -0
  55. package/resources/v1/billable-metrics.d.ts.map +1 -1
  56. package/resources/v1/billable-metrics.js +3 -0
  57. package/resources/v1/billable-metrics.js.map +1 -1
  58. package/resources/v1/billable-metrics.mjs +3 -0
  59. package/resources/v1/billable-metrics.mjs.map +1 -1
  60. package/resources/v1/contracts/contracts.d.mts +134 -14
  61. package/resources/v1/contracts/contracts.d.mts.map +1 -1
  62. package/resources/v1/contracts/contracts.d.ts +134 -14
  63. package/resources/v1/contracts/contracts.d.ts.map +1 -1
  64. package/resources/v1/contracts/contracts.js +69 -0
  65. package/resources/v1/contracts/contracts.js.map +1 -1
  66. package/resources/v1/contracts/contracts.mjs +69 -0
  67. package/resources/v1/contracts/contracts.mjs.map +1 -1
  68. package/resources/v1/contracts/index.d.mts +1 -1
  69. package/resources/v1/contracts/index.d.mts.map +1 -1
  70. package/resources/v1/contracts/index.d.ts +1 -1
  71. package/resources/v1/contracts/index.d.ts.map +1 -1
  72. package/resources/v1/contracts/index.js.map +1 -1
  73. package/resources/v1/contracts/index.mjs.map +1 -1
  74. package/resources/v1/contracts/named-schedules.d.mts +3 -0
  75. package/resources/v1/contracts/named-schedules.d.mts.map +1 -1
  76. package/resources/v1/contracts/named-schedules.d.ts +3 -0
  77. package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
  78. package/resources/v1/contracts/named-schedules.js +3 -0
  79. package/resources/v1/contracts/named-schedules.js.map +1 -1
  80. package/resources/v1/contracts/named-schedules.mjs +3 -0
  81. package/resources/v1/contracts/named-schedules.mjs.map +1 -1
  82. package/resources/v1/contracts/products.d.mts +3 -0
  83. package/resources/v1/contracts/products.d.mts.map +1 -1
  84. package/resources/v1/contracts/products.d.ts +3 -0
  85. package/resources/v1/contracts/products.d.ts.map +1 -1
  86. package/resources/v1/contracts/products.js +3 -0
  87. package/resources/v1/contracts/products.js.map +1 -1
  88. package/resources/v1/contracts/products.mjs +3 -0
  89. package/resources/v1/contracts/products.mjs.map +1 -1
  90. package/resources/v1/contracts/rate-cards/named-schedules.d.mts +3 -0
  91. package/resources/v1/contracts/rate-cards/named-schedules.d.mts.map +1 -1
  92. package/resources/v1/contracts/rate-cards/named-schedules.d.ts +3 -0
  93. package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
  94. package/resources/v1/contracts/rate-cards/named-schedules.js +3 -0
  95. package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
  96. package/resources/v1/contracts/rate-cards/named-schedules.mjs +3 -0
  97. package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
  98. package/resources/v1/contracts/rate-cards/product-orders.d.mts +3 -0
  99. package/resources/v1/contracts/rate-cards/product-orders.d.mts.map +1 -1
  100. package/resources/v1/contracts/rate-cards/product-orders.d.ts +3 -0
  101. package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
  102. package/resources/v1/contracts/rate-cards/product-orders.js +3 -0
  103. package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
  104. package/resources/v1/contracts/rate-cards/product-orders.mjs +3 -0
  105. package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
  106. package/resources/v1/contracts/rate-cards/rate-cards.d.mts +3 -0
  107. package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -1
  108. package/resources/v1/contracts/rate-cards/rate-cards.d.ts +3 -0
  109. package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
  110. package/resources/v1/contracts/rate-cards/rate-cards.js +3 -0
  111. package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
  112. package/resources/v1/contracts/rate-cards/rate-cards.mjs +3 -0
  113. package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
  114. package/resources/v1/contracts/rate-cards/rates.d.mts +6 -3
  115. package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -1
  116. package/resources/v1/contracts/rate-cards/rates.d.ts +6 -3
  117. package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
  118. package/resources/v1/contracts/rate-cards/rates.js +3 -0
  119. package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
  120. package/resources/v1/contracts/rate-cards/rates.mjs +3 -0
  121. package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
  122. package/resources/v1/credit-grants.d.mts +3 -0
  123. package/resources/v1/credit-grants.d.mts.map +1 -1
  124. package/resources/v1/credit-grants.d.ts +3 -0
  125. package/resources/v1/credit-grants.d.ts.map +1 -1
  126. package/resources/v1/credit-grants.js +3 -0
  127. package/resources/v1/credit-grants.js.map +1 -1
  128. package/resources/v1/credit-grants.mjs +3 -0
  129. package/resources/v1/credit-grants.mjs.map +1 -1
  130. package/resources/v1/custom-fields.d.mts +3 -0
  131. package/resources/v1/custom-fields.d.mts.map +1 -1
  132. package/resources/v1/custom-fields.d.ts +3 -0
  133. package/resources/v1/custom-fields.d.ts.map +1 -1
  134. package/resources/v1/custom-fields.js +3 -0
  135. package/resources/v1/custom-fields.js.map +1 -1
  136. package/resources/v1/custom-fields.mjs +3 -0
  137. package/resources/v1/custom-fields.mjs.map +1 -1
  138. package/resources/v1/customers/alerts.d.mts +3 -0
  139. package/resources/v1/customers/alerts.d.mts.map +1 -1
  140. package/resources/v1/customers/alerts.d.ts +3 -0
  141. package/resources/v1/customers/alerts.d.ts.map +1 -1
  142. package/resources/v1/customers/alerts.js +3 -0
  143. package/resources/v1/customers/alerts.js.map +1 -1
  144. package/resources/v1/customers/alerts.mjs +3 -0
  145. package/resources/v1/customers/alerts.mjs.map +1 -1
  146. package/resources/v1/customers/billing-config.d.mts +3 -0
  147. package/resources/v1/customers/billing-config.d.mts.map +1 -1
  148. package/resources/v1/customers/billing-config.d.ts +3 -0
  149. package/resources/v1/customers/billing-config.d.ts.map +1 -1
  150. package/resources/v1/customers/billing-config.js +3 -0
  151. package/resources/v1/customers/billing-config.js.map +1 -1
  152. package/resources/v1/customers/billing-config.mjs +3 -0
  153. package/resources/v1/customers/billing-config.mjs.map +1 -1
  154. package/resources/v1/customers/commits.d.mts +3 -0
  155. package/resources/v1/customers/commits.d.mts.map +1 -1
  156. package/resources/v1/customers/commits.d.ts +3 -0
  157. package/resources/v1/customers/commits.d.ts.map +1 -1
  158. package/resources/v1/customers/commits.js +3 -0
  159. package/resources/v1/customers/commits.js.map +1 -1
  160. package/resources/v1/customers/commits.mjs +3 -0
  161. package/resources/v1/customers/commits.mjs.map +1 -1
  162. package/resources/v1/customers/credits.d.mts +3 -0
  163. package/resources/v1/customers/credits.d.mts.map +1 -1
  164. package/resources/v1/customers/credits.d.ts +3 -0
  165. package/resources/v1/customers/credits.d.ts.map +1 -1
  166. package/resources/v1/customers/credits.js +3 -0
  167. package/resources/v1/customers/credits.js.map +1 -1
  168. package/resources/v1/customers/credits.mjs +3 -0
  169. package/resources/v1/customers/credits.mjs.map +1 -1
  170. package/resources/v1/customers/customers.d.mts +77 -1
  171. package/resources/v1/customers/customers.d.mts.map +1 -1
  172. package/resources/v1/customers/customers.d.ts +77 -1
  173. package/resources/v1/customers/customers.d.ts.map +1 -1
  174. package/resources/v1/customers/customers.js +53 -0
  175. package/resources/v1/customers/customers.js.map +1 -1
  176. package/resources/v1/customers/customers.mjs +53 -0
  177. package/resources/v1/customers/customers.mjs.map +1 -1
  178. package/resources/v1/customers/index.d.mts +1 -1
  179. package/resources/v1/customers/index.d.mts.map +1 -1
  180. package/resources/v1/customers/index.d.ts +1 -1
  181. package/resources/v1/customers/index.d.ts.map +1 -1
  182. package/resources/v1/customers/index.js.map +1 -1
  183. package/resources/v1/customers/index.mjs.map +1 -1
  184. package/resources/v1/customers/invoices.d.mts +20 -12
  185. package/resources/v1/customers/invoices.d.mts.map +1 -1
  186. package/resources/v1/customers/invoices.d.ts +20 -12
  187. package/resources/v1/customers/invoices.d.ts.map +1 -1
  188. package/resources/v1/customers/invoices.js +3 -0
  189. package/resources/v1/customers/invoices.js.map +1 -1
  190. package/resources/v1/customers/invoices.mjs +3 -0
  191. package/resources/v1/customers/invoices.mjs.map +1 -1
  192. package/resources/v1/customers/named-schedules.d.mts +3 -0
  193. package/resources/v1/customers/named-schedules.d.mts.map +1 -1
  194. package/resources/v1/customers/named-schedules.d.ts +3 -0
  195. package/resources/v1/customers/named-schedules.d.ts.map +1 -1
  196. package/resources/v1/customers/named-schedules.js +3 -0
  197. package/resources/v1/customers/named-schedules.js.map +1 -1
  198. package/resources/v1/customers/named-schedules.mjs +3 -0
  199. package/resources/v1/customers/named-schedules.mjs.map +1 -1
  200. package/resources/v1/customers/plans.d.mts +3 -0
  201. package/resources/v1/customers/plans.d.mts.map +1 -1
  202. package/resources/v1/customers/plans.d.ts +3 -0
  203. package/resources/v1/customers/plans.d.ts.map +1 -1
  204. package/resources/v1/customers/plans.js +3 -0
  205. package/resources/v1/customers/plans.js.map +1 -1
  206. package/resources/v1/customers/plans.mjs +3 -0
  207. package/resources/v1/customers/plans.mjs.map +1 -1
  208. package/resources/v1/dashboards.d.mts +3 -0
  209. package/resources/v1/dashboards.d.mts.map +1 -1
  210. package/resources/v1/dashboards.d.ts +3 -0
  211. package/resources/v1/dashboards.d.ts.map +1 -1
  212. package/resources/v1/dashboards.js +3 -0
  213. package/resources/v1/dashboards.js.map +1 -1
  214. package/resources/v1/dashboards.mjs +3 -0
  215. package/resources/v1/dashboards.mjs.map +1 -1
  216. package/resources/v1/index.d.mts +3 -2
  217. package/resources/v1/index.d.mts.map +1 -1
  218. package/resources/v1/index.d.ts +3 -2
  219. package/resources/v1/index.d.ts.map +1 -1
  220. package/resources/v1/index.js +3 -1
  221. package/resources/v1/index.js.map +1 -1
  222. package/resources/v1/index.mjs +1 -0
  223. package/resources/v1/index.mjs.map +1 -1
  224. package/resources/v1/invoices.d.mts +3 -0
  225. package/resources/v1/invoices.d.mts.map +1 -1
  226. package/resources/v1/invoices.d.ts +3 -0
  227. package/resources/v1/invoices.d.ts.map +1 -1
  228. package/resources/v1/invoices.js +3 -0
  229. package/resources/v1/invoices.js.map +1 -1
  230. package/resources/v1/invoices.mjs +3 -0
  231. package/resources/v1/invoices.mjs.map +1 -1
  232. package/resources/v1/packages.d.mts +2352 -0
  233. package/resources/v1/packages.d.mts.map +1 -0
  234. package/resources/v1/packages.d.ts +2352 -0
  235. package/resources/v1/packages.d.ts.map +1 -0
  236. package/resources/v1/packages.js +160 -0
  237. package/resources/v1/packages.js.map +1 -0
  238. package/resources/v1/packages.mjs +156 -0
  239. package/resources/v1/packages.mjs.map +1 -0
  240. package/resources/v1/plans.d.mts +3 -0
  241. package/resources/v1/plans.d.mts.map +1 -1
  242. package/resources/v1/plans.d.ts +3 -0
  243. package/resources/v1/plans.d.ts.map +1 -1
  244. package/resources/v1/plans.js +3 -0
  245. package/resources/v1/plans.js.map +1 -1
  246. package/resources/v1/plans.mjs +3 -0
  247. package/resources/v1/plans.mjs.map +1 -1
  248. package/resources/v1/pricing-units.d.mts +3 -0
  249. package/resources/v1/pricing-units.d.mts.map +1 -1
  250. package/resources/v1/pricing-units.d.ts +3 -0
  251. package/resources/v1/pricing-units.d.ts.map +1 -1
  252. package/resources/v1/pricing-units.js +3 -0
  253. package/resources/v1/pricing-units.js.map +1 -1
  254. package/resources/v1/pricing-units.mjs +3 -0
  255. package/resources/v1/pricing-units.mjs.map +1 -1
  256. package/resources/v1/services.d.mts +3 -0
  257. package/resources/v1/services.d.mts.map +1 -1
  258. package/resources/v1/services.d.ts +3 -0
  259. package/resources/v1/services.d.ts.map +1 -1
  260. package/resources/v1/services.js +3 -0
  261. package/resources/v1/services.js.map +1 -1
  262. package/resources/v1/services.mjs +3 -0
  263. package/resources/v1/services.mjs.map +1 -1
  264. package/resources/v1/settings/billing-providers.d.mts +3 -0
  265. package/resources/v1/settings/billing-providers.d.mts.map +1 -1
  266. package/resources/v1/settings/billing-providers.d.ts +3 -0
  267. package/resources/v1/settings/billing-providers.d.ts.map +1 -1
  268. package/resources/v1/settings/billing-providers.js +3 -0
  269. package/resources/v1/settings/billing-providers.js.map +1 -1
  270. package/resources/v1/settings/billing-providers.mjs +3 -0
  271. package/resources/v1/settings/billing-providers.mjs.map +1 -1
  272. package/resources/v1/settings/settings.d.mts +3 -0
  273. package/resources/v1/settings/settings.d.mts.map +1 -1
  274. package/resources/v1/settings/settings.d.ts +3 -0
  275. package/resources/v1/settings/settings.d.ts.map +1 -1
  276. package/resources/v1/settings/settings.js +3 -0
  277. package/resources/v1/settings/settings.js.map +1 -1
  278. package/resources/v1/settings/settings.mjs +3 -0
  279. package/resources/v1/settings/settings.mjs.map +1 -1
  280. package/resources/v1/usage.d.mts +81 -12
  281. package/resources/v1/usage.d.mts.map +1 -1
  282. package/resources/v1/usage.d.ts +81 -12
  283. package/resources/v1/usage.d.ts.map +1 -1
  284. package/resources/v1/usage.js +37 -11
  285. package/resources/v1/usage.js.map +1 -1
  286. package/resources/v1/usage.mjs +37 -11
  287. package/resources/v1/usage.mjs.map +1 -1
  288. package/resources/v1/v1.d.mts +8 -4
  289. package/resources/v1/v1.d.mts.map +1 -1
  290. package/resources/v1/v1.d.ts +8 -4
  291. package/resources/v1/v1.d.ts.map +1 -1
  292. package/resources/v1/v1.js +4 -0
  293. package/resources/v1/v1.js.map +1 -1
  294. package/resources/v1/v1.mjs +4 -0
  295. package/resources/v1/v1.mjs.map +1 -1
  296. package/resources/v2/contracts.d.mts +45 -7
  297. package/resources/v2/contracts.d.mts.map +1 -1
  298. package/resources/v2/contracts.d.ts +45 -7
  299. package/resources/v2/contracts.d.ts.map +1 -1
  300. package/resources/v2/contracts.js +1 -4
  301. package/resources/v2/contracts.js.map +1 -1
  302. package/resources/v2/contracts.mjs +1 -4
  303. package/resources/v2/contracts.mjs.map +1 -1
  304. package/src/client.ts +37 -15
  305. package/src/internal/parse.ts +6 -0
  306. package/src/internal/utils/query.ts +7 -0
  307. package/src/internal/utils.ts +1 -0
  308. package/src/resources/shared.ts +51 -25
  309. package/src/resources/v1/alerts.ts +3 -0
  310. package/src/resources/v1/audit-logs.ts +3 -0
  311. package/src/resources/v1/billable-metrics.ts +3 -0
  312. package/src/resources/v1/contracts/contracts.ts +151 -13
  313. package/src/resources/v1/contracts/index.ts +2 -0
  314. package/src/resources/v1/contracts/named-schedules.ts +3 -0
  315. package/src/resources/v1/contracts/products.ts +3 -0
  316. package/src/resources/v1/contracts/rate-cards/named-schedules.ts +3 -0
  317. package/src/resources/v1/contracts/rate-cards/product-orders.ts +3 -0
  318. package/src/resources/v1/contracts/rate-cards/rate-cards.ts +3 -0
  319. package/src/resources/v1/contracts/rate-cards/rates.ts +6 -3
  320. package/src/resources/v1/credit-grants.ts +3 -0
  321. package/src/resources/v1/custom-fields.ts +3 -0
  322. package/src/resources/v1/customers/alerts.ts +3 -0
  323. package/src/resources/v1/customers/billing-config.ts +3 -0
  324. package/src/resources/v1/customers/commits.ts +3 -0
  325. package/src/resources/v1/customers/credits.ts +3 -0
  326. package/src/resources/v1/customers/customers.ts +89 -0
  327. package/src/resources/v1/customers/index.ts +2 -0
  328. package/src/resources/v1/customers/invoices.ts +21 -12
  329. package/src/resources/v1/customers/named-schedules.ts +3 -0
  330. package/src/resources/v1/customers/plans.ts +3 -0
  331. package/src/resources/v1/dashboards.ts +3 -0
  332. package/src/resources/v1/index.ts +19 -0
  333. package/src/resources/v1/invoices.ts +3 -0
  334. package/src/resources/v1/packages.ts +3057 -0
  335. package/src/resources/v1/plans.ts +3 -0
  336. package/src/resources/v1/pricing-units.ts +3 -0
  337. package/src/resources/v1/services.ts +3 -0
  338. package/src/resources/v1/settings/billing-providers.ts +3 -0
  339. package/src/resources/v1/settings/settings.ts +3 -0
  340. package/src/resources/v1/usage.ts +80 -12
  341. package/src/resources/v1/v1.ts +42 -0
  342. package/src/resources/v2/contracts.ts +55 -7
  343. package/src/version.ts +1 -1
  344. package/version.d.mts +1 -1
  345. package/version.d.ts +1 -1
  346. package/version.js +1 -1
  347. package/version.mjs +1 -1
@@ -3,6 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Alerts = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * [Alerts](https://docs.metronome.com/connecting-metronome/alerts/) monitor customer spending, balances, and other billing factors. Use these endpoints to create, retrieve, and archive customer alerts. To view sample alert payloads by alert type, navigate [here.](https://docs.metronome.com/manage-product-access/create-manage-alerts/#webhook-notifications)
8
+ */
6
9
  class Alerts extends resource_1.APIResource {
7
10
  /**
8
11
  * Create a new threshold notification to monitor customer spending, balances, and
@@ -1 +1 @@
1
- {"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../src/resources/v1/alerts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,IAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAxGD,wBAwGC"}
1
+ {"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../src/resources/v1/alerts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,IAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAxGD,wBAwGC"}
@@ -1,5 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * [Alerts](https://docs.metronome.com/connecting-metronome/alerts/) monitor customer spending, balances, and other billing factors. Use these endpoints to create, retrieve, and archive customer alerts. To view sample alert payloads by alert type, navigate [here.](https://docs.metronome.com/manage-product-access/create-manage-alerts/#webhook-notifications)
5
+ */
3
6
  export class Alerts extends APIResource {
4
7
  /**
5
8
  * Create a new threshold notification to monitor customer spending, balances, and
@@ -1 +1 @@
1
- {"version":3,"file":"alerts.mjs","sourceRoot":"","sources":["../../src/resources/v1/alerts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,IAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
1
+ {"version":3,"file":"alerts.mjs","sourceRoot":"","sources":["../../src/resources/v1/alerts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,IAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,6 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
3
3
  import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * [Security](https://docs.metronome.com/developer-resources/security/) endpoints allow you to retrieve security-related data.
6
+ */
4
7
  export declare class AuditLogs extends APIResource {
5
8
  /**
6
9
  * Get a comprehensive audit trail of all operations performed in your Metronome
@@ -1 +1 @@
1
- {"version":3,"file":"audit-logs.d.mts","sourceRoot":"","sources":["../../src/resources/v1/audit-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,oBAAoB,CAAC;CAGtE;AAED,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC;IAEtC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC;IAEnC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;CAC5C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,KAAK;QACpB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;QAEb,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kBAAmB,S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,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;CAC5C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,KAAK;QACpB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;QAEb,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,6 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
3
3
  import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * [Security](https://docs.metronome.com/developer-resources/security/) endpoints allow you to retrieve security-related data.
6
+ */
4
7
  export declare class AuditLogs extends APIResource {
5
8
  /**
6
9
  * Get a comprehensive audit trail of all operations performed in your Metronome
@@ -1 +1 @@
1
- {"version":3,"file":"audit-logs.d.ts","sourceRoot":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C;IAEvB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;CAC5C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,KAAK;QACpB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;QAEb,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AuditLogs = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
6
  const pagination_1 = require("../../core/pagination.js");
7
+ /**
8
+ * [Security](https://docs.metronome.com/developer-resources/security/) endpoints allow you to retrieve security-related data.
9
+ */
7
10
  class AuditLogs extends resource_1.APIResource {
8
11
  /**
9
12
  * Get a comprehensive audit trail of all operations performed in your Metronome
@@ -1 +1 @@
1
- {"version":3,"file":"audit-logs.js","sourceRoot":"","sources":["../../src/resources/v1/audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAAuF;AAGvF,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,uBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF;AAxDD,8BAwDC"}
1
+ {"version":3,"file":"audit-logs.js","sourceRoot":"","sources":["../../src/resources/v1/audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAAuF;AAGvF;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,uBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF;AAxDD,8BAwDC"}
@@ -1,6 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import { CursorPage } from "../../core/pagination.mjs";
4
+ /**
5
+ * [Security](https://docs.metronome.com/developer-resources/security/) endpoints allow you to retrieve security-related data.
6
+ */
4
7
  export class AuditLogs extends APIResource {
5
8
  /**
6
9
  * Get a comprehensive audit trail of all operations performed in your Metronome
@@ -1 +1 @@
1
- {"version":3,"file":"audit-logs.mjs","sourceRoot":"","sources":["../../src/resources/v1/audit-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAsC;AAGzD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,UAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF"}
1
+ {"version":3,"file":"audit-logs.mjs","sourceRoot":"","sources":["../../src/resources/v1/audit-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAsC;AAGzD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,UAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF"}
@@ -3,6 +3,9 @@ import * as Shared from "../shared.mjs";
3
3
  import { APIPromise } from "../../core/api-promise.mjs";
4
4
  import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
5
5
  import { RequestOptions } from "../../internal/request-options.mjs";
6
+ /**
7
+ * [Billable metrics](https://docs.metronome.com/understanding-metronome/how-metronome-works#billable-metrics) in Metronome represent the various consumption components that Metronome meters and aggregates.
8
+ */
6
9
  export declare class BillableMetrics extends APIResource {
7
10
  /**
8
11
  * Create billable metrics programmatically with this endpoint—an essential step in
@@ -1 +1 @@
1
- {"version":3,"file":"billable-metrics.d.mts","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE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ACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -3,6 +3,9 @@ import * as Shared from "../shared.js";
3
3
  import { APIPromise } from "../../core/api-promise.js";
4
4
  import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
5
5
  import { RequestOptions } from "../../internal/request-options.js";
6
+ /**
7
+ * [Billable metrics](https://docs.metronome.com/understanding-metronome/how-metronome-works#billable-metrics) in Metronome represent the various consumption components that Metronome meters and aggregates.
8
+ */
6
9
  export declare class BillableMetrics extends APIResource {
7
10
  /**
8
11
  * Create billable metrics programmatically with this endpoint—an essential step in
@@ -1 +1 @@
1
- {"version":3,"file":"billable-metrics.d.ts","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAK7C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,E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AC,CAAC,CAAC;IAElC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAEhD;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -5,6 +5,9 @@ exports.BillableMetrics = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
6
  const pagination_1 = require("../../core/pagination.js");
7
7
  const path_1 = require("../../internal/utils/path.js");
8
+ /**
9
+ * [Billable metrics](https://docs.metronome.com/understanding-metronome/how-metronome-works#billable-metrics) in Metronome represent the various consumption components that Metronome meters and aggregates.
10
+ */
8
11
  class BillableMetrics extends resource_1.APIResource {
9
12
  /**
10
13
  * Create billable metrics programmatically with this endpoint—an essential step in
@@ -1 +1 @@
1
- {"version":3,"file":"billable-metrics.js","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAuF;AAEvF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;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AA/ID,0CA+IC"}
@@ -2,6 +2,9 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import { CursorPage } from "../../core/pagination.mjs";
4
4
  import { path } from "../../internal/utils/path.mjs";
5
+ /**
6
+ * [Billable metrics](https://docs.metronome.com/understanding-metronome/how-metronome-works#billable-metrics) in Metronome represent the various consumption components that Metronome meters and aggregates.
7
+ */
5
8
  export class BillableMetrics extends APIResource {
6
9
  /**
7
10
  * Create billable metrics programmatically with this endpoint—an essential step in
@@ -1 +1 @@
1
- {"version":3,"file":"billable-metrics.mjs","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"AAA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Q,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,UAAsC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -302,6 +302,73 @@ export declare class Contracts extends APIResource {
302
302
  * ```
303
303
  */
304
304
  createHistoricalInvoices(body: ContractCreateHistoricalInvoicesParams, options?: RequestOptions): APIPromise<ContractCreateHistoricalInvoicesResponse>;
305
+ /**
306
+ * Retrieve the combined current balance across any grouping of credits and commits
307
+ * for a customer in a single API call.
308
+ *
309
+ * - Display real-time available balance to customers in billing dashboards
310
+ * - Build finance dashboards showing credit utilization across customer segments
311
+ * - Validate expected vs. actual balance during billing reconciliation
312
+ *
313
+ * ### Key response fields:
314
+ *
315
+ * - `balance`: The combined net balance available to use at this moment across all
316
+ * matching commits and credits
317
+ * - `credit_type_id`: The credit type (fiat or custom pricing unit) the balance is
318
+ * denominated in
319
+ *
320
+ * ### Filtering options:
321
+ *
322
+ * Balance filters allow you to scope the calculation to specific subsets of
323
+ * commits and credits. When using multiple filter objects, they are OR'd together
324
+ * — if a commit or credit matches any filter, it's included in the net balance.
325
+ * Within a single filter object, all specified conditions are AND'd together.
326
+ *
327
+ * - **Balance types**: Include any combination of `PREPAID_COMMIT`,
328
+ * `POSTPAID_COMMIT`, and `CREDIT` (e.g., `["PREPAID_COMMIT", "CREDIT"]` to
329
+ * exclude postpaid commits). If not specified, all balance types are included.
330
+ * - **Specific IDs**: Target exact commit or credit IDs for precise balance
331
+ * queries
332
+ * - **Custom fields**: Filter by custom field key-value pairs; when multiple pairs
333
+ * are provided, commits must match all of them
334
+ *
335
+ * **Example**: To get the balance of all free-trial credits OR all
336
+ * signup-promotion commits, you'd pass two filter objects — one filtering for
337
+ * CREDIT with custom field campaign: free-trial, and another filtering for
338
+ * PREPAID_COMMIT with custom field campaign: signup-promotion.
339
+ *
340
+ * ### Usage guidelines:
341
+ *
342
+ * - **Draft invoice handling**: Use `invoice_inclusion_mode` to control whether
343
+ * pending draft invoice deductions are included (`FINALIZED_AND_DRAFT`, the
344
+ * default) or excluded (`FINALIZED`) from the balance calculation
345
+ * - **Account hierarchies**: When querying a child customer, shared commits from
346
+ * parent contracts are not included — query the parent customer directly to see
347
+ * shared commit balances
348
+ * - **Negative balances**: Manual ledger entries can cause negative segment
349
+ * balances; these are treated as zero when calculating the net balance
350
+ * - **Credit types**: If `credit_type_id` is not specified, the balance defaults
351
+ * to USD (cents)
352
+ *
353
+ * @example
354
+ * ```ts
355
+ * const response = await client.v1.contracts.getNetBalance({
356
+ * customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
357
+ * credit_type_id: '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
358
+ * filters: [
359
+ * {
360
+ * balance_types: ['CREDIT'],
361
+ * custom_fields: { campaign: 'free-trial' },
362
+ * },
363
+ * {
364
+ * balance_types: ['PREPAID_COMMIT', 'POSTPAID_COMMIT'],
365
+ * custom_fields: { campaign: 'signup-promotion' },
366
+ * },
367
+ * ],
368
+ * });
369
+ * ```
370
+ */
371
+ getNetBalance(body: ContractGetNetBalanceParams, options?: RequestOptions): APIPromise<ContractGetNetBalanceResponse>;
305
372
  /**
306
373
  * Retrieve a comprehensive view of all available balances (commits and credits)
307
374
  * for a customer. This endpoint provides real-time visibility into prepaid funds,
@@ -499,6 +566,23 @@ export interface ContractArchiveResponse {
499
566
  export interface ContractCreateHistoricalInvoicesResponse {
500
567
  data: Array<InvoicesAPI.Invoice>;
501
568
  }
569
+ export interface ContractGetNetBalanceResponse {
570
+ data: ContractGetNetBalanceResponse.Data;
571
+ }
572
+ export declare namespace ContractGetNetBalanceResponse {
573
+ interface Data {
574
+ /**
575
+ * The combined net balance that the customer has access to use at this moment
576
+ * across all pertinent commits and credits.
577
+ */
578
+ balance: number;
579
+ /**
580
+ * The ID of the credit type (can be fiat or a custom pricing unit) that the
581
+ * balance is for.
582
+ */
583
+ credit_type_id: string;
584
+ }
585
+ }
502
586
  export type ContractListBalancesResponse = Shared.Commit | Shared.Credit;
503
587
  export interface ContractRetrieveRateScheduleResponse {
504
588
  data: Array<ContractRetrieveRateScheduleResponse.Data>;
@@ -603,11 +687,18 @@ export interface ContractCreateParams {
603
687
  */
604
688
  netsuite_sales_order_id?: string;
605
689
  overrides?: Array<ContractCreateParams.Override>;
606
- prepaid_balance_threshold_configuration?: Shared.PrepaidBalanceThresholdConfiguration;
607
690
  /**
608
- * Priority of the contract.
691
+ * Selects the package linked to the specified alias as of the contract's start
692
+ * date. Mutually exclusive with package_id.
693
+ */
694
+ package_alias?: string;
695
+ /**
696
+ * If provided, provisions a customer on a package instead of creating a
697
+ * traditional contract. When specified, only customer_id, starting_at, package_id,
698
+ * and uniqueness_key are allowed.
609
699
  */
610
- priority?: number;
700
+ package_id?: string;
701
+ prepaid_balance_threshold_configuration?: Shared.PrepaidBalanceThresholdConfiguration;
611
702
  /**
612
703
  * This field's availability is dependent on your client's configuration.
613
704
  */
@@ -903,7 +994,7 @@ export declare namespace ContractCreateParams {
903
994
  * not wish Metronome to calculate tax on your behalf. Leaving this field blank
904
995
  * will default to NONE.
905
996
  */
906
- tax_type?: 'NONE' | 'STRIPE' | 'ANROK' | 'AVALARA' | 'PRECALCULATED';
997
+ tax_type?: 'NONE' | 'STRIPE' | 'ANROK' | 'PRECALCULATED';
907
998
  }
908
999
  namespace PaymentGateConfig {
909
1000
  /**
@@ -994,6 +1085,10 @@ export declare namespace ContractCreateParams {
994
1085
  */
995
1086
  priority?: number;
996
1087
  rate_type?: 'COMMIT_RATE' | 'LIST_RATE';
1088
+ /**
1089
+ * Fraction of unused segments that will be rolled over. Must be between 0 and 1.
1090
+ */
1091
+ rollover_fraction?: number;
997
1092
  /**
998
1093
  * List of filters that determine what kind of customer usage draws down a commit
999
1094
  * or credit. A customer's usage needs to meet the condition of at least one of the
@@ -1139,8 +1234,7 @@ export declare namespace ContractCreateParams {
1139
1234
  parent?: HierarchyConfiguration.Parent;
1140
1235
  parent_behavior?: HierarchyConfiguration.ParentBehavior;
1141
1236
  /**
1142
- * Account hierarchy M3 - Indicates which customer should pay for the child's
1143
- * invoice charges
1237
+ * Indicates which customer should pay for the child's invoice charges
1144
1238
  *
1145
1239
  * **SELF**: The child pays for its own invoice charges
1146
1240
  *
@@ -1148,8 +1242,8 @@ export declare namespace ContractCreateParams {
1148
1242
  */
1149
1243
  payer?: 'SELF' | 'PARENT';
1150
1244
  /**
1151
- * Account hierarchy M3 - Indicates the behavior of the child's invoice statements
1152
- * on the parent's invoices.
1245
+ * Indicates the behavior of the child's invoice statements on the parent's
1246
+ * invoices.
1153
1247
  *
1154
1248
  * **CONSOLIDATE**: Child's invoice statements will be added to parent's
1155
1249
  * consolidated invoices
@@ -1166,8 +1260,8 @@ export declare namespace ContractCreateParams {
1166
1260
  }
1167
1261
  interface ParentBehavior {
1168
1262
  /**
1169
- * Account hierarchy M3 - Indicates the desired behavior of consolidated invoices
1170
- * generated by the parent in a customer hierarchy
1263
+ * Indicates the desired behavior of consolidated invoices generated by the parent
1264
+ * in a customer hierarchy
1171
1265
  *
1172
1266
  * **CONCATENATE**: Statements on the invoices of child customers will be appended
1173
1267
  * to the consolidated invoice
@@ -1291,7 +1385,7 @@ export declare namespace ContractCreateParams {
1291
1385
  * Required for OVERWRITE type.
1292
1386
  */
1293
1387
  interface OverwriteRate {
1294
- rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'CUSTOM';
1388
+ rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'TIERED_PERCENTAGE' | 'CUSTOM';
1295
1389
  credit_type_id?: string;
1296
1390
  /**
1297
1391
  * Only set for CUSTOM rate_type. This field is interpreted by custom rate
@@ -2272,7 +2366,7 @@ export declare namespace ContractAmendParams {
2272
2366
  * not wish Metronome to calculate tax on your behalf. Leaving this field blank
2273
2367
  * will default to NONE.
2274
2368
  */
2275
- tax_type?: 'NONE' | 'STRIPE' | 'ANROK' | 'AVALARA' | 'PRECALCULATED';
2369
+ tax_type?: 'NONE' | 'STRIPE' | 'ANROK' | 'PRECALCULATED';
2276
2370
  }
2277
2371
  namespace PaymentGateConfig {
2278
2372
  /**
@@ -2363,6 +2457,10 @@ export declare namespace ContractAmendParams {
2363
2457
  */
2364
2458
  priority?: number;
2365
2459
  rate_type?: 'COMMIT_RATE' | 'LIST_RATE';
2460
+ /**
2461
+ * Fraction of unused segments that will be rolled over. Must be between 0 and 1.
2462
+ */
2463
+ rollover_fraction?: number;
2366
2464
  /**
2367
2465
  * List of filters that determine what kind of customer usage draws down a commit
2368
2466
  * or credit. A customer's usage needs to meet the condition of at least one of the
@@ -2618,7 +2716,7 @@ export declare namespace ContractAmendParams {
2618
2716
  * Required for OVERWRITE type.
2619
2717
  */
2620
2718
  interface OverwriteRate {
2621
- rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'CUSTOM';
2719
+ rate_type: 'FLAT' | 'PERCENTAGE' | 'SUBSCRIPTION' | 'TIERED' | 'TIERED_PERCENTAGE' | 'CUSTOM';
2622
2720
  credit_type_id?: string;
2623
2721
  /**
2624
2722
  * Only set for CUSTOM rate_type. This field is interpreted by custom rate
@@ -2883,6 +2981,28 @@ export declare namespace ContractCreateHistoricalInvoicesParams {
2883
2981
  }
2884
2982
  }
2885
2983
  }
2984
+ export interface ContractGetNetBalanceParams {
2985
+ /**
2986
+ * The ID of the customer.
2987
+ */
2988
+ customer_id: string;
2989
+ /**
2990
+ * The ID of the credit type (can be fiat or a custom pricing unit) to get the
2991
+ * balance for. Defaults to USD (cents) if not specified.
2992
+ */
2993
+ credit_type_id?: string;
2994
+ /**
2995
+ * Balance filters are OR'd together, so if a given commit or credit matches any of
2996
+ * the filters, it will be included in the net balance.
2997
+ */
2998
+ filters?: Array<Shared.BalanceFilter>;
2999
+ /**
3000
+ * Controls which invoices are considered when calculating the remaining balance.
3001
+ * `FINALIZED` considers only deductions from finalized invoices.
3002
+ * `FINALIZED_AND_DRAFT` also includes deductions from pending draft invoices.
3003
+ */
3004
+ invoice_inclusion_mode?: 'FINALIZED' | 'FINALIZED_AND_DRAFT';
3005
+ }
2886
3006
  export interface ContractListBalancesParams extends BodyCursorPageParams {
2887
3007
  customer_id: string;
2888
3008
  id?: string;
@@ -3075,7 +3195,7 @@ export interface ContractUpdateEndDateParams {
3075
3195
  ending_before?: string;
3076
3196
  }
3077
3197
  export declare namespace Contracts {
3078
- export { type ContractCreateResponse as ContractCreateResponse, type ContractRetrieveResponse as ContractRetrieveResponse, type ContractListResponse as ContractListResponse, type ContractAmendResponse as ContractAmendResponse, type ContractArchiveResponse as ContractArchiveResponse, type ContractCreateHistoricalInvoicesResponse as ContractCreateHistoricalInvoicesResponse, type ContractListBalancesResponse as ContractListBalancesResponse, type ContractRetrieveRateScheduleResponse as ContractRetrieveRateScheduleResponse, type ContractRetrieveSubscriptionQuantityHistoryResponse as ContractRetrieveSubscriptionQuantityHistoryResponse, type ContractScheduleProServicesInvoiceResponse as ContractScheduleProServicesInvoiceResponse, type ContractUpdateEndDateResponse as ContractUpdateEndDateResponse, type ContractListBalancesResponsesBodyCursorPage as ContractListBalancesResponsesBodyCursorPage, type ContractCreateParams as ContractCreateParams, type ContractRetrieveParams as ContractRetrieveParams, type ContractListParams as ContractListParams, type ContractAddManualBalanceEntryParams as ContractAddManualBalanceEntryParams, type ContractAmendParams as ContractAmendParams, type ContractArchiveParams as ContractArchiveParams, type ContractCreateHistoricalInvoicesParams as ContractCreateHistoricalInvoicesParams, type ContractListBalancesParams as ContractListBalancesParams, type ContractRetrieveRateScheduleParams as ContractRetrieveRateScheduleParams, type ContractRetrieveSubscriptionQuantityHistoryParams as ContractRetrieveSubscriptionQuantityHistoryParams, type ContractScheduleProServicesInvoiceParams as ContractScheduleProServicesInvoiceParams, type ContractSetUsageFilterParams as ContractSetUsageFilterParams, type ContractUpdateEndDateParams as ContractUpdateEndDateParams, };
3198
+ export { type ContractCreateResponse as ContractCreateResponse, type ContractRetrieveResponse as ContractRetrieveResponse, type ContractListResponse as ContractListResponse, type ContractAmendResponse as ContractAmendResponse, type ContractArchiveResponse as ContractArchiveResponse, type ContractCreateHistoricalInvoicesResponse as ContractCreateHistoricalInvoicesResponse, type ContractGetNetBalanceResponse as ContractGetNetBalanceResponse, type ContractListBalancesResponse as ContractListBalancesResponse, type ContractRetrieveRateScheduleResponse as ContractRetrieveRateScheduleResponse, type ContractRetrieveSubscriptionQuantityHistoryResponse as ContractRetrieveSubscriptionQuantityHistoryResponse, type ContractScheduleProServicesInvoiceResponse as ContractScheduleProServicesInvoiceResponse, type ContractUpdateEndDateResponse as ContractUpdateEndDateResponse, type ContractListBalancesResponsesBodyCursorPage as ContractListBalancesResponsesBodyCursorPage, type ContractCreateParams as ContractCreateParams, type ContractRetrieveParams as ContractRetrieveParams, type ContractListParams as ContractListParams, type ContractAddManualBalanceEntryParams as ContractAddManualBalanceEntryParams, type ContractAmendParams as ContractAmendParams, type ContractArchiveParams as ContractArchiveParams, type ContractCreateHistoricalInvoicesParams as ContractCreateHistoricalInvoicesParams, type ContractGetNetBalanceParams as ContractGetNetBalanceParams, type ContractListBalancesParams as ContractListBalancesParams, type ContractRetrieveRateScheduleParams as ContractRetrieveRateScheduleParams, type ContractRetrieveSubscriptionQuantityHistoryParams as ContractRetrieveSubscriptionQuantityHistoryParams, type ContractScheduleProServicesInvoiceParams as ContractScheduleProServicesInvoiceParams, type ContractSetUsageFilterParams as ContractSetUsageFilterParams, type ContractUpdateEndDateParams as ContractUpdateEndDateParams, };
3079
3199
  export { Products as Products, type ProductListItemState as ProductListItemState, type QuantityConversion as QuantityConversion, type QuantityRounding as QuantityRounding, type ProductCreateResponse as ProductCreateResponse, type ProductRetrieveResponse as ProductRetrieveResponse, type ProductUpdateResponse as ProductUpdateResponse, type ProductListResponse as ProductListResponse, type ProductArchiveResponse as ProductArchiveResponse, type ProductListResponsesCursorPage as ProductListResponsesCursorPage, type ProductCreateParams as ProductCreateParams, type ProductRetrieveParams as ProductRetrieveParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, type ProductArchiveParams as ProductArchiveParams, };
3080
3200
  export { RateCards as RateCards, type RateCardCreateResponse as RateCardCreateResponse, type RateCardRetrieveResponse as RateCardRetrieveResponse, type RateCardUpdateResponse as RateCardUpdateResponse, type RateCardListResponse as RateCardListResponse, type RateCardArchiveResponse as RateCardArchiveResponse, type RateCardRetrieveRateScheduleResponse as RateCardRetrieveRateScheduleResponse, type RateCardListResponsesCursorPage as RateCardListResponsesCursorPage, type RateCardCreateParams as RateCardCreateParams, type RateCardRetrieveParams as RateCardRetrieveParams, type RateCardUpdateParams as RateCardUpdateParams, type RateCardListParams as RateCardListParams, type RateCardArchiveParams as RateCardArchiveParams, type RateCardRetrieveRateScheduleParams as RateCardRetrieveRateScheduleParams, };
3081
3201
  export { NamedSchedules as NamedSchedules, type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, type NamedScheduleUpdateParams as NamedScheduleUpdateParams, };