@metronome/sdk 0.1.0-beta.8 → 0.1.0
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.
- package/CHANGELOG.md +227 -0
- package/README.md +37 -52
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +25 -15
- package/core.js.map +1 -1
- package/core.mjs +26 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +10 -42
- package/index.d.ts +10 -42
- package/index.d.ts.map +1 -1
- package/index.js +14 -55
- package/index.js.map +1 -1
- package/index.mjs +14 -55
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -0
- package/pagination.js.map +1 -1
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/index.d.ts +2 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -38
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -13
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.ts +512 -24
- package/resources/shared.d.ts.map +1 -1
- package/resources/{alerts.d.ts → v1/alerts.d.ts} +29 -5
- package/resources/v1/alerts.d.ts.map +1 -0
- package/resources/v1/alerts.js +40 -0
- package/resources/v1/alerts.js.map +1 -0
- package/resources/v1/alerts.mjs +36 -0
- package/resources/v1/alerts.mjs.map +1 -0
- package/resources/{audit-logs.d.ts → v1/audit-logs.d.ts} +11 -3
- package/resources/v1/audit-logs.d.ts.map +1 -0
- package/resources/{audit-logs.js → v1/audit-logs.js} +4 -4
- package/resources/v1/audit-logs.js.map +1 -0
- package/resources/{audit-logs.mjs → v1/audit-logs.mjs} +4 -4
- package/resources/v1/audit-logs.mjs.map +1 -0
- package/resources/{billable-metrics.d.ts → v1/billable-metrics.d.ts} +62 -7
- package/resources/v1/billable-metrics.d.ts.map +1 -0
- package/resources/v1/billable-metrics.js +84 -0
- package/resources/v1/billable-metrics.js.map +1 -0
- package/resources/v1/billable-metrics.mjs +79 -0
- package/resources/v1/billable-metrics.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/contracts.d.ts +1618 -62
- package/resources/v1/contracts/contracts.d.ts.map +1 -0
- package/resources/v1/contracts/contracts.js +312 -0
- package/resources/v1/contracts/contracts.js.map +1 -0
- package/resources/v1/contracts/contracts.mjs +285 -0
- package/resources/v1/contracts/contracts.mjs.map +1 -0
- package/resources/v1/contracts/index.d.ts +5 -0
- package/resources/v1/contracts/index.d.ts.map +1 -0
- package/resources/v1/contracts/index.js.map +1 -0
- package/resources/v1/contracts/index.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/named-schedules.d.ts +23 -2
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -0
- package/resources/v1/contracts/named-schedules.js +48 -0
- package/resources/v1/contracts/named-schedules.js.map +1 -0
- package/resources/v1/contracts/named-schedules.mjs +44 -0
- package/resources/v1/contracts/named-schedules.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/products.d.ts +55 -7
- package/resources/v1/contracts/products.d.ts.map +1 -0
- package/resources/v1/contracts/products.js +84 -0
- package/resources/v1/contracts/products.js.map +1 -0
- package/resources/v1/contracts/products.mjs +79 -0
- package/resources/v1/contracts/products.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/index.d.ts +1 -1
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/index.js.map +1 -0
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/named-schedules.d.ts +27 -2
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.js +52 -0
- package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.mjs +48 -0
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/product-orders.d.ts +33 -3
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.js +54 -0
- package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.mjs +50 -0
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rate-cards.d.ts +118 -14
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rate-cards.js +83 -12
- package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -0
- package/resources/v1/contracts/rate-cards/rate-cards.mjs +140 -0
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -0
- package/resources/{contracts → v1/contracts}/rate-cards/rates.d.ts +118 -14
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.js +106 -0
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.mjs +101 -0
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -0
- package/resources/v1/contracts/rate-cards.d.ts +2 -0
- package/resources/v1/contracts/rate-cards.d.ts.map +1 -0
- package/resources/v1/contracts/rate-cards.js +19 -0
- package/resources/v1/contracts/rate-cards.js.map +1 -0
- package/resources/v1/contracts/rate-cards.mjs +3 -0
- package/resources/v1/contracts/rate-cards.mjs.map +1 -0
- package/resources/v1/contracts.d.ts +2 -0
- package/resources/v1/contracts.d.ts.map +1 -0
- package/resources/v1/contracts.js +19 -0
- package/resources/v1/contracts.js.map +1 -0
- package/resources/v1/contracts.mjs +3 -0
- package/resources/v1/contracts.mjs.map +1 -0
- package/resources/{credit-grants.d.ts → v1/credit-grants.d.ts} +81 -6
- package/resources/v1/credit-grants.d.ts.map +1 -0
- package/resources/v1/credit-grants.js +89 -0
- package/resources/v1/credit-grants.js.map +1 -0
- package/resources/v1/credit-grants.mjs +84 -0
- package/resources/v1/credit-grants.mjs.map +1 -0
- package/resources/{custom-fields.d.ts → v1/custom-fields.d.ts} +53 -9
- package/resources/v1/custom-fields.d.ts.map +1 -0
- package/resources/{custom-fields.js → v1/custom-fields.js} +42 -7
- package/resources/v1/custom-fields.js.map +1 -0
- package/resources/{custom-fields.mjs → v1/custom-fields.mjs} +42 -7
- package/resources/v1/custom-fields.mjs.map +1 -0
- package/resources/{customers → v1/customers}/alerts.d.ts +31 -3
- package/resources/v1/customers/alerts.d.ts.map +1 -0
- package/resources/v1/customers/alerts.js +56 -0
- package/resources/v1/customers/alerts.js.map +1 -0
- package/resources/v1/customers/alerts.mjs +52 -0
- package/resources/v1/customers/alerts.mjs.map +1 -0
- package/resources/{customers → v1/customers}/billing-config.d.ts +33 -2
- package/resources/v1/customers/billing-config.d.ts.map +1 -0
- package/resources/v1/customers/billing-config.js +65 -0
- package/resources/v1/customers/billing-config.js.map +1 -0
- package/resources/v1/customers/billing-config.mjs +61 -0
- package/resources/v1/customers/billing-config.mjs.map +1 -0
- package/resources/{customers → v1/customers}/commits.d.ts +97 -10
- package/resources/v1/customers/commits.d.ts.map +1 -0
- package/resources/v1/customers/commits.js +82 -0
- package/resources/v1/customers/commits.js.map +1 -0
- package/resources/v1/customers/commits.mjs +78 -0
- package/resources/v1/customers/commits.mjs.map +1 -0
- package/resources/{customers → v1/customers}/credits.d.ts +76 -6
- package/resources/v1/customers/credits.d.ts.map +1 -0
- package/resources/v1/customers/credits.js +67 -0
- package/resources/v1/customers/credits.js.map +1 -0
- package/resources/v1/customers/credits.mjs +63 -0
- package/resources/v1/customers/credits.mjs.map +1 -0
- package/resources/{customers → v1/customers}/customers.d.ts +197 -14
- package/resources/v1/customers/customers.d.ts.map +1 -0
- package/resources/{customers → v1/customers}/customers.js +118 -16
- package/resources/v1/customers/customers.js.map +1 -0
- package/resources/v1/customers/customers.mjs +228 -0
- package/resources/v1/customers/customers.mjs.map +1 -0
- package/resources/{customers → v1/customers}/index.d.ts +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -0
- package/resources/v1/customers/index.js.map +1 -0
- package/resources/v1/customers/index.mjs.map +1 -0
- package/resources/{customers → v1/customers}/invoices.d.ts +152 -57
- package/resources/v1/customers/invoices.d.ts.map +1 -0
- package/resources/v1/customers/invoices.js +103 -0
- package/resources/v1/customers/invoices.js.map +1 -0
- package/resources/v1/customers/invoices.mjs +97 -0
- package/resources/v1/customers/invoices.mjs.map +1 -0
- package/resources/{customers → v1/customers}/named-schedules.d.ts +23 -2
- package/resources/v1/customers/named-schedules.d.ts.map +1 -0
- package/resources/v1/customers/named-schedules.js +48 -0
- package/resources/v1/customers/named-schedules.js.map +1 -0
- package/resources/v1/customers/named-schedules.mjs +44 -0
- package/resources/v1/customers/named-schedules.mjs.map +1 -0
- package/resources/{customers → v1/customers}/plans.d.ts +50 -5
- package/resources/v1/customers/plans.d.ts.map +1 -0
- package/resources/v1/customers/plans.js +99 -0
- package/resources/v1/customers/plans.js.map +1 -0
- package/resources/v1/customers/plans.mjs +93 -0
- package/resources/v1/customers/plans.mjs.map +1 -0
- package/resources/v1/customers.d.ts +2 -0
- package/resources/v1/customers.d.ts.map +1 -0
- package/resources/v1/customers.js +19 -0
- package/resources/v1/customers.js.map +1 -0
- package/resources/v1/customers.mjs +3 -0
- package/resources/v1/customers.mjs.map +1 -0
- package/resources/{dashboards.d.ts → v1/dashboards.d.ts} +32 -4
- package/resources/v1/dashboards.d.ts.map +1 -0
- package/resources/v1/dashboards.js +43 -0
- package/resources/v1/dashboards.js.map +1 -0
- package/resources/v1/dashboards.mjs +39 -0
- package/resources/v1/dashboards.mjs.map +1 -0
- package/resources/v1/index.d.ts +15 -0
- package/resources/v1/index.d.ts.map +1 -0
- package/resources/v1/index.js +44 -0
- package/resources/v1/index.js.map +1 -0
- package/resources/v1/index.mjs +16 -0
- package/resources/v1/index.mjs.map +1 -0
- package/resources/{invoices.d.ts → v1/invoices.d.ts} +16 -2
- package/resources/v1/invoices.d.ts.map +1 -0
- package/resources/v1/invoices.js +35 -0
- package/resources/v1/invoices.js.map +1 -0
- package/resources/v1/invoices.mjs +31 -0
- package/resources/v1/invoices.mjs.map +1 -0
- package/resources/{plans.d.ts → v1/plans.d.ts} +51 -8
- package/resources/v1/plans.d.ts.map +1 -0
- package/resources/{plans.js → v1/plans.js} +34 -7
- package/resources/v1/plans.js.map +1 -0
- package/resources/v1/plans.mjs +74 -0
- package/resources/v1/plans.mjs.map +1 -0
- package/resources/{pricing-units.d.ts → v1/pricing-units.d.ts} +11 -3
- package/resources/v1/pricing-units.d.ts.map +1 -0
- package/resources/{pricing-units.js → v1/pricing-units.js} +4 -4
- package/resources/v1/pricing-units.js.map +1 -0
- package/resources/{pricing-units.mjs → v1/pricing-units.mjs} +4 -4
- package/resources/v1/pricing-units.mjs.map +1 -0
- package/resources/{services.d.ts → v1/services.d.ts} +7 -2
- package/resources/v1/services.d.ts.map +1 -0
- package/resources/{services.js → v1/services.js} +7 -2
- package/resources/v1/services.js.map +1 -0
- package/resources/{services.mjs → v1/services.mjs} +7 -2
- package/resources/v1/services.mjs.map +1 -0
- package/resources/v1/usage.d.ts +325 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +92 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +87 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.ts +58 -0
- package/resources/v1/v1.d.ts.map +1 -0
- package/resources/v1/v1.js +98 -0
- package/resources/v1/v1.js.map +1 -0
- package/resources/v1/v1.mjs +71 -0
- package/resources/v1/v1.mjs.map +1 -0
- package/resources/v1.d.ts +2 -0
- package/resources/v1.d.ts.map +1 -0
- package/resources/v1.js +19 -0
- package/resources/v1.js.map +1 -0
- package/resources/v1.mjs +3 -0
- package/resources/v1.mjs.map +1 -0
- package/resources/v2/contracts.d.ts +5955 -0
- package/resources/v2/contracts.d.ts.map +1 -0
- package/resources/v2/contracts.js +136 -0
- package/resources/v2/contracts.js.map +1 -0
- package/resources/v2/contracts.mjs +132 -0
- package/resources/v2/contracts.mjs.map +1 -0
- package/resources/v2/index.d.ts +3 -0
- package/resources/v2/index.d.ts.map +1 -0
- package/resources/v2/index.js +9 -0
- package/resources/v2/index.js.map +1 -0
- package/resources/v2/index.mjs +4 -0
- package/resources/v2/index.mjs.map +1 -0
- package/resources/v2/v2.d.ts +10 -0
- package/resources/v2/v2.d.ts.map +1 -0
- package/resources/v2/v2.js +39 -0
- package/resources/v2/v2.js.map +1 -0
- package/resources/v2/v2.mjs +12 -0
- package/resources/v2/v2.mjs.map +1 -0
- package/resources/v2.d.ts +2 -0
- package/resources/v2.d.ts.map +1 -0
- package/resources/v2.js +19 -0
- package/resources/v2.js.map +1 -0
- package/resources/v2.mjs +3 -0
- package/resources/v2.mjs.map +1 -0
- package/resources/webhooks.js +5 -5
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +5 -5
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +5 -3
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +6 -2
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +49 -21
- package/src/error.ts +1 -1
- package/src/index.ts +31 -349
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/pagination.ts +5 -1
- package/src/resource.ts +2 -2
- package/src/resources/index.ts +4 -144
- package/src/resources/shared.ts +587 -26
- package/src/resources/{alerts.ts → v1/alerts.ts} +31 -7
- package/src/resources/{audit-logs.ts → v1/audit-logs.ts} +13 -5
- package/src/resources/{billable-metrics.ts → v1/billable-metrics.ts} +61 -12
- package/src/resources/{contracts → v1/contracts}/contracts.ts +1848 -83
- package/src/resources/{contracts → v1/contracts}/index.ts +8 -4
- package/src/resources/{contracts → v1/contracts}/named-schedules.ts +25 -4
- package/src/resources/{contracts → v1/contracts}/products.ts +58 -14
- package/src/resources/{contracts → v1/contracts}/rate-cards/index.ts +6 -4
- package/src/resources/{contracts → v1/contracts}/rate-cards/named-schedules.ts +29 -4
- package/src/resources/{contracts → v1/contracts}/rate-cards/product-orders.ts +38 -5
- package/src/resources/{contracts → v1/contracts}/rate-cards/rate-cards.ts +137 -25
- package/src/resources/{contracts → v1/contracts}/rate-cards/rates.ts +105 -17
- package/src/resources/v1/contracts/rate-cards.ts +3 -0
- package/src/resources/v1/contracts.ts +3 -0
- package/src/resources/{credit-grants.ts → v1/credit-grants.ts} +86 -14
- package/src/resources/{custom-fields.ts → v1/custom-fields.ts} +62 -14
- package/src/resources/{customers → v1/customers}/alerts.ts +35 -6
- package/src/resources/{customers → v1/customers}/billing-config.ts +37 -5
- package/src/resources/{customers → v1/customers}/commits.ts +100 -13
- package/src/resources/{customers → v1/customers}/credits.ts +79 -9
- package/src/resources/{customers → v1/customers}/customers.ts +229 -40
- package/src/resources/{customers → v1/customers}/index.ts +10 -8
- package/src/resources/{customers → v1/customers}/invoices.ts +131 -62
- package/src/resources/{customers → v1/customers}/named-schedules.ts +25 -4
- package/src/resources/{customers → v1/customers}/plans.ts +55 -9
- package/src/resources/v1/customers.ts +3 -0
- package/src/resources/{dashboards.ts → v1/dashboards.ts} +31 -5
- package/src/resources/v1/index.ts +151 -0
- package/src/resources/{invoices.ts → v1/invoices.ts} +18 -4
- package/src/resources/{plans.ts → v1/plans.ts} +49 -14
- package/src/resources/{pricing-units.ts → v1/pricing-units.ts} +13 -5
- package/src/resources/{services.ts → v1/services.ts} +8 -3
- package/src/resources/v1/usage.ts +429 -0
- package/src/resources/v1/v1.ts +364 -0
- package/src/resources/v1.ts +3 -0
- package/src/resources/v2/contracts.ts +7677 -0
- package/src/resources/v2/index.ts +18 -0
- package/src/resources/v2/v2.ts +43 -0
- package/src/resources/v2.ts +3 -0
- package/src/resources/webhooks.ts +7 -7
- package/src/resources.ts +1 -0
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/alerts.d.ts.map +0 -1
- package/resources/alerts.js +0 -21
- package/resources/alerts.js.map +0 -1
- package/resources/alerts.mjs +0 -17
- package/resources/alerts.mjs.map +0 -1
- package/resources/audit-logs.d.ts.map +0 -1
- package/resources/audit-logs.js.map +0 -1
- package/resources/audit-logs.mjs.map +0 -1
- package/resources/billable-metrics.d.ts.map +0 -1
- package/resources/billable-metrics.js +0 -43
- package/resources/billable-metrics.js.map +0 -1
- package/resources/billable-metrics.mjs +0 -38
- package/resources/billable-metrics.mjs.map +0 -1
- package/resources/contracts/contracts.d.ts.map +0 -1
- package/resources/contracts/contracts.js +0 -135
- package/resources/contracts/contracts.js.map +0 -1
- package/resources/contracts/contracts.mjs +0 -108
- package/resources/contracts/contracts.mjs.map +0 -1
- package/resources/contracts/index.d.ts +0 -5
- package/resources/contracts/index.d.ts.map +0 -1
- package/resources/contracts/index.js.map +0 -1
- package/resources/contracts/index.mjs.map +0 -1
- package/resources/contracts/named-schedules.d.ts.map +0 -1
- package/resources/contracts/named-schedules.js +0 -27
- package/resources/contracts/named-schedules.js.map +0 -1
- package/resources/contracts/named-schedules.mjs +0 -23
- package/resources/contracts/named-schedules.mjs.map +0 -1
- package/resources/contracts/products.d.ts.map +0 -1
- package/resources/contracts/products.js +0 -51
- package/resources/contracts/products.js.map +0 -1
- package/resources/contracts/products.mjs +0 -46
- package/resources/contracts/products.mjs.map +0 -1
- package/resources/contracts/rate-cards/index.d.ts.map +0 -1
- package/resources/contracts/rate-cards/index.js.map +0 -1
- package/resources/contracts/rate-cards/index.mjs.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.d.ts.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.js +0 -27
- package/resources/contracts/rate-cards/named-schedules.js.map +0 -1
- package/resources/contracts/rate-cards/named-schedules.mjs +0 -23
- package/resources/contracts/rate-cards/named-schedules.mjs.map +0 -1
- package/resources/contracts/rate-cards/product-orders.d.ts.map +0 -1
- package/resources/contracts/rate-cards/product-orders.js +0 -21
- package/resources/contracts/rate-cards/product-orders.js.map +0 -1
- package/resources/contracts/rate-cards/product-orders.mjs +0 -17
- package/resources/contracts/rate-cards/product-orders.mjs.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.d.ts.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.js.map +0 -1
- package/resources/contracts/rate-cards/rate-cards.mjs +0 -69
- package/resources/contracts/rate-cards/rate-cards.mjs.map +0 -1
- package/resources/contracts/rate-cards/rates.d.ts.map +0 -1
- package/resources/contracts/rate-cards/rates.js +0 -38
- package/resources/contracts/rate-cards/rates.js.map +0 -1
- package/resources/contracts/rate-cards/rates.mjs +0 -33
- package/resources/contracts/rate-cards/rates.mjs.map +0 -1
- package/resources/credit-grants.d.ts.map +0 -1
- package/resources/credit-grants.js +0 -52
- package/resources/credit-grants.js.map +0 -1
- package/resources/credit-grants.mjs +0 -47
- package/resources/credit-grants.mjs.map +0 -1
- package/resources/custom-fields.d.ts.map +0 -1
- package/resources/custom-fields.js.map +0 -1
- package/resources/custom-fields.mjs.map +0 -1
- package/resources/customers/alerts.d.ts.map +0 -1
- package/resources/customers/alerts.js +0 -33
- package/resources/customers/alerts.js.map +0 -1
- package/resources/customers/alerts.mjs +0 -29
- package/resources/customers/alerts.mjs.map +0 -1
- package/resources/customers/billing-config.d.ts.map +0 -1
- package/resources/customers/billing-config.js +0 -38
- package/resources/customers/billing-config.js.map +0 -1
- package/resources/customers/billing-config.mjs +0 -34
- package/resources/customers/billing-config.mjs.map +0 -1
- package/resources/customers/commits.d.ts.map +0 -1
- package/resources/customers/commits.js +0 -27
- package/resources/customers/commits.js.map +0 -1
- package/resources/customers/commits.mjs +0 -23
- package/resources/customers/commits.mjs.map +0 -1
- package/resources/customers/credits.d.ts.map +0 -1
- package/resources/customers/credits.js +0 -27
- package/resources/customers/credits.js.map +0 -1
- package/resources/customers/credits.mjs +0 -23
- package/resources/customers/credits.mjs.map +0 -1
- package/resources/customers/customers.d.ts.map +0 -1
- package/resources/customers/customers.js.map +0 -1
- package/resources/customers/customers.mjs +0 -126
- package/resources/customers/customers.mjs.map +0 -1
- package/resources/customers/index.d.ts.map +0 -1
- package/resources/customers/index.js.map +0 -1
- package/resources/customers/index.mjs.map +0 -1
- package/resources/customers/invoices.d.ts.map +0 -1
- package/resources/customers/invoices.js +0 -51
- package/resources/customers/invoices.js.map +0 -1
- package/resources/customers/invoices.mjs +0 -45
- package/resources/customers/invoices.mjs.map +0 -1
- package/resources/customers/named-schedules.d.ts.map +0 -1
- package/resources/customers/named-schedules.js +0 -27
- package/resources/customers/named-schedules.js.map +0 -1
- package/resources/customers/named-schedules.mjs +0 -23
- package/resources/customers/named-schedules.mjs.map +0 -1
- package/resources/customers/plans.d.ts.map +0 -1
- package/resources/customers/plans.js +0 -53
- package/resources/customers/plans.js.map +0 -1
- package/resources/customers/plans.mjs +0 -47
- package/resources/customers/plans.mjs.map +0 -1
- package/resources/dashboards.d.ts.map +0 -1
- package/resources/dashboards.js +0 -17
- package/resources/dashboards.js.map +0 -1
- package/resources/dashboards.mjs +0 -13
- package/resources/dashboards.mjs.map +0 -1
- package/resources/invoices.d.ts.map +0 -1
- package/resources/invoices.js +0 -21
- package/resources/invoices.js.map +0 -1
- package/resources/invoices.mjs +0 -17
- package/resources/invoices.mjs.map +0 -1
- package/resources/plans.d.ts.map +0 -1
- package/resources/plans.js.map +0 -1
- package/resources/plans.mjs +0 -47
- package/resources/plans.mjs.map +0 -1
- package/resources/pricing-units.d.ts.map +0 -1
- package/resources/pricing-units.js.map +0 -1
- package/resources/pricing-units.mjs.map +0 -1
- package/resources/services.d.ts.map +0 -1
- package/resources/services.js.map +0 -1
- package/resources/services.mjs.map +0 -1
- package/resources/usage.d.ts +0 -166
- package/resources/usage.d.ts.map +0 -1
- package/resources/usage.js +0 -49
- package/resources/usage.js.map +0 -1
- package/resources/usage.mjs +0 -44
- package/resources/usage.mjs.map +0 -1
- package/src/resources/usage.ts +0 -239
- /package/resources/{contracts → v1/contracts}/index.js +0 -0
- /package/resources/{contracts → v1/contracts}/index.mjs +0 -0
- /package/resources/{contracts → v1/contracts}/rate-cards/index.js +0 -0
- /package/resources/{contracts → v1/contracts}/rate-cards/index.mjs +0 -0
- /package/resources/{customers → v1/customers}/index.js +0 -0
- /package/resources/{customers → v1/customers}/index.mjs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,232 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 (2025-07-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.12...v0.1.0](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.12...v0.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Allow for Pagination past empty pages ([1b1308b](https://github.com/Metronome-Industries/metronome-node/commit/1b1308b513d14ae4da8c4c2626b31979812ab752))
|
|
10
|
+
* **api:** api update ([b9a103e](https://github.com/Metronome-Industries/metronome-node/commit/b9a103e4cb6df2b6aee6abb86b45b80629f015dd))
|
|
11
|
+
* **api:** api update ([2615251](https://github.com/Metronome-Industries/metronome-node/commit/26152511f0ca5b5fc6c899ad67edbdd27035d9a8))
|
|
12
|
+
* **api:** api update ([2bf2236](https://github.com/Metronome-Industries/metronome-node/commit/2bf22368018398ab1297177ad905d614f708ba94))
|
|
13
|
+
* **api:** api update ([5d3cd18](https://github.com/Metronome-Industries/metronome-node/commit/5d3cd180cb012878780ec99d8469a99d8f2fe5c6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Chores
|
|
17
|
+
|
|
18
|
+
* **internal:** codegen related update ([a587ca5](https://github.com/Metronome-Industries/metronome-node/commit/a587ca5d5b9e51241afe9b3bf570f47cee3a8916))
|
|
19
|
+
|
|
20
|
+
## 0.1.0-beta.12 (2025-07-18)
|
|
21
|
+
|
|
22
|
+
Full Changelog: [v0.1.0-beta.11...v0.1.0-beta.12](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.11...v0.1.0-beta.12)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **api:** Add Event Search API for finding events to match to customers and billable metrics ([1317600](https://github.com/Metronome-Industries/metronome-node/commit/13176003e84098a2ad6cd9f15b4c2cc9a5afc13c))
|
|
27
|
+
* **api:** add previewEvents API for generating draft invoices with provided events ([39bdb26](https://github.com/Metronome-Industries/metronome-node/commit/39bdb26b0dc826a4abfecdbf50e6c6e524bdbb1e))
|
|
28
|
+
* **api:** add support for Anrok and Precalculated tax types in payment gateway configuration ([063282e](https://github.com/Metronome-Industries/metronome-node/commit/063282e256add65b977bc1ed312dcd7d3b8f7447))
|
|
29
|
+
* **api:** add hierarchy configuration to v1 contracts and v2 contracts ([6a2cac4](https://github.com/Metronome-Industries/metronome-node/commit/6a2cac46aa813c57ab797e6060c413f3809f7dee))
|
|
30
|
+
* **api:** add UUID format annotations to credit type IDs ([07bec6a](https://github.com/Metronome-Industries/metronome-node/commit/07bec6a672c803fdf8708ed5fe6502044a7957b4))
|
|
31
|
+
* **api:** add custom credit type support to prepaid balance thresholds ([ad34431](https://github.com/Metronome-Industries/metronome-node/commit/ad344316b76a56cced5c2a6cd2d6b3cd7cf94c5e))
|
|
32
|
+
* **api:** add contract priority field ([1b84492](https://github.com/Metronome-Industries/metronome-node/commit/1b84492f3bc2456447dc0e8e0dd0acb9190a3b7c))
|
|
33
|
+
* **client:** add support for endpoint-specific base URLs ([9f93c51](https://github.com/Metronome-Industries/metronome-node/commit/9f93c51f5aab3e07e19ddacf9db29b87ff1dc0ff))
|
|
34
|
+
* **mcp:** fallback for void-typed methods ([d9dad2b](https://github.com/Metronome-Industries/metronome-node/commit/d9dad2b63eae17db6be436ef66af4d0f621787be))
|
|
35
|
+
* **mcp:** implement support for binary responses ([4cbe51d](https://github.com/Metronome-Industries/metronome-node/commit/4cbe51df7fba1a011a6aa2fb3174ca2a2f69ef11))
|
|
36
|
+
* **mcp:** set X-Stainless-MCP header ([e175ec9](https://github.com/Metronome-Industries/metronome-node/commit/e175ec9b72a2196c0ed9dade64e60d307b3ce9e5))
|
|
37
|
+
* **mcp:** support filtering tool results by a jq expression ([ebc5682](https://github.com/Metronome-Industries/metronome-node/commit/ebc5682662424f1912e40cb26c4409f001195435))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **build:** bump node version in CI build to 20 to be compatible with MCP package ([52b0abc](https://github.com/Metronome-Industries/metronome-node/commit/52b0abcac2913de4062e5249e27796647249bd7a))
|
|
43
|
+
* **ci:** release-doctor — report correct token name ([4e1621e](https://github.com/Metronome-Industries/metronome-node/commit/4e1621e8e77f29d18dcc6a3d428c0dde033723de))
|
|
44
|
+
* **client:** don't send `Content-Type` for bodyless methods ([7fd6259](https://github.com/Metronome-Industries/metronome-node/commit/7fd6259678fdf7c3878363732e6a1f2fbd90e595))
|
|
45
|
+
* **mcp:** include required section for top-level properties and support naming transformations ([63bb909](https://github.com/Metronome-Industries/metronome-node/commit/63bb909ae64ac02224a5261283cfcb00c556f7b0))
|
|
46
|
+
* **mcp:** relax input type for asTextContextResult ([672b608](https://github.com/Metronome-Industries/metronome-node/commit/672b6088899b3e56ccef1154061c179c0924eb7e))
|
|
47
|
+
* **mcp:** support jq filtering on cloudflare workers ([e560bbc](https://github.com/Metronome-Industries/metronome-node/commit/e560bbc9b9975e2b6fe4a0609e7bba5faf3ee487))
|
|
48
|
+
* publish script — handle NPM errors correctly ([59bc726](https://github.com/Metronome-Industries/metronome-node/commit/59bc726367965dac5877d900d81bec32b71c395d))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Chores
|
|
52
|
+
|
|
53
|
+
* **ci:** enable for pull requests ([22d2ba8](https://github.com/Metronome-Industries/metronome-node/commit/22d2ba8b4decab21dc501ecd054e1ec92caa0d03))
|
|
54
|
+
* **ci:** only run for pushes and fork pull requests ([55faa25](https://github.com/Metronome-Industries/metronome-node/commit/55faa250be777add47dc8c3e56918184aa66a8be))
|
|
55
|
+
* **docs:** use top-level-await in example snippets ([b3010ef](https://github.com/Metronome-Industries/metronome-node/commit/b3010ef72fb05f33c3382354bc297e8a8fd4a175))
|
|
56
|
+
* **internal:** make base APIResource abstract ([128bf66](https://github.com/Metronome-Industries/metronome-node/commit/128bf662fd0437cdcbd771d006e20b9a0f26f333))
|
|
57
|
+
* make some internal functions async ([4ce7c1b](https://github.com/Metronome-Industries/metronome-node/commit/4ce7c1bdbd26d2144e8cf04d58a80c78bd69931f))
|
|
58
|
+
* **mcp:** formatting ([51ed397](https://github.com/Metronome-Industries/metronome-node/commit/51ed397af653cdc96799a69a7065a66315c1410d))
|
|
59
|
+
* **mcp:** provides high-level initMcpServer function and exports known clients ([7f82ab5](https://github.com/Metronome-Industries/metronome-node/commit/7f82ab5960c2bc474063395fd4c7af6e14964bbf))
|
|
60
|
+
* **mcp:** rework imports in tools ([a1434bc](https://github.com/Metronome-Industries/metronome-node/commit/a1434bc98c123bd605091e1953faf6250022ed81))
|
|
61
|
+
* mention unit type in timeout docs ([74a810d](https://github.com/Metronome-Industries/metronome-node/commit/74a810d4f89fd2840cf0d69cf0c77af4a22a9ffb))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Refactors
|
|
65
|
+
|
|
66
|
+
* **types:** replace Record with mapped types ([34e6799](https://github.com/Metronome-Industries/metronome-node/commit/34e6799903417585e94f5db100fbb49bd2f047f0))
|
|
67
|
+
|
|
68
|
+
## 0.1.0-beta.11 (2025-05-30)
|
|
69
|
+
|
|
70
|
+
Full Changelog: [v0.1.0-beta.10...v0.1.0-beta.11](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.10...v0.1.0-beta.11)
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* **api:** add subscription quantity history endpoint ([e9b4bbe](https://github.com/Metronome-Industries/metronome-node/commit/e9b4bbef3d7435fd9d35a9938426b59f91e03ad4))
|
|
75
|
+
* **api:** api update ([d1052dc](https://github.com/Metronome-Industries/metronome-node/commit/d1052dce85e4a5497f457bd2168118f9cbb6dde3))
|
|
76
|
+
* **api:** api update ([9ef4660](https://github.com/Metronome-Industries/metronome-node/commit/9ef4660419a21dfcd3f060c93a372fbe010ea843))
|
|
77
|
+
* **api:** api update ([7a4ca29](https://github.com/Metronome-Industries/metronome-node/commit/7a4ca29be180fd7d06ae0b6d4598e708fa538281))
|
|
78
|
+
* **api:** api update ([1f75a2f](https://github.com/Metronome-Industries/metronome-node/commit/1f75a2fe161f762465ee072de1806bf4a510c2ce))
|
|
79
|
+
* **api:** api update ([81d3f3d](https://github.com/Metronome-Industries/metronome-node/commit/81d3f3d2be3ecfb033a6c9aeac2939b2ba0adf5a))
|
|
80
|
+
* **api:** api update ([18b541e](https://github.com/Metronome-Industries/metronome-node/commit/18b541eb177314ca299572a7053389701cea18a8))
|
|
81
|
+
* **api:** api update ([a9ddbe3](https://github.com/Metronome-Industries/metronome-node/commit/a9ddbe3c8a26df141f5ad41acaf8c2fc28bf1dd8))
|
|
82
|
+
* **api:** api update ([2da7274](https://github.com/Metronome-Industries/metronome-node/commit/2da7274efe1a758fbabf5ca4b54107fd33a3c069))
|
|
83
|
+
* **api:** api update ([31bbcc9](https://github.com/Metronome-Industries/metronome-node/commit/31bbcc96c9ae847939a2877475d14e094d06ecf1))
|
|
84
|
+
* **api:** api update ([7aecbf6](https://github.com/Metronome-Industries/metronome-node/commit/7aecbf620e2bb02afe1d3ee5cf6dbc6b4e6c5988))
|
|
85
|
+
* **api:** api update ([56bf37d](https://github.com/Metronome-Industries/metronome-node/commit/56bf37d8aa13c9f55f6ec75dcaf17adaadf2fb69))
|
|
86
|
+
* **api:** rename get subscription quantity history to retrieve ([e8fba34](https://github.com/Metronome-Industries/metronome-node/commit/e8fba347a4de50f939292a263c75ce8407bc33d2))
|
|
87
|
+
* **mcp:** include http information in tools ([726c5e8](https://github.com/Metronome-Industries/metronome-node/commit/726c5e8f508b4f106e753315f045eff3b66ad33f))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* **mcp:** fix cursor schema transformation issue with recursive references ([5f170a7](https://github.com/Metronome-Industries/metronome-node/commit/5f170a7dc19dc1fdfd52f1da2e77bcbe4d421d22))
|
|
93
|
+
* **mcp:** include description in dynamic tool search ([aa45634](https://github.com/Metronome-Industries/metronome-node/commit/aa456341222b425c6c76ca8db767bbbfa6117721))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Chores
|
|
97
|
+
|
|
98
|
+
* **api:** mark some methods as deprecated ([964f311](https://github.com/Metronome-Industries/metronome-node/commit/964f31117ebd10c9a340ffcda002761871d6c194))
|
|
99
|
+
* configure new SDK language ([f579630](https://github.com/Metronome-Industries/metronome-node/commit/f5796305b442d41d73cbc4bc6a713894f7aae190))
|
|
100
|
+
* configure new SDK language ([9f9be53](https://github.com/Metronome-Industries/metronome-node/commit/9f9be5311ee3cbd15e67ea4fdbfd7d1354cf7437))
|
|
101
|
+
* **docs:** grammar improvements ([a205060](https://github.com/Metronome-Industries/metronome-node/commit/a2050605f798ce57798f61135753ca489c6c99b2))
|
|
102
|
+
* improve docs for MCP servers ([8d769fc](https://github.com/Metronome-Industries/metronome-node/commit/8d769fc5714bddfa2094d8b31c4181c7aacb0661))
|
|
103
|
+
* improve publish-npm script --latest tag logic ([51cf030](https://github.com/Metronome-Industries/metronome-node/commit/51cf030151865adfc17dbf30392d92eaee780819))
|
|
104
|
+
* **mcp:** remove duplicate assignment ([3aee147](https://github.com/Metronome-Industries/metronome-node/commit/3aee1475476e8dc7b0672b3295358b498781bb93))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Documentation
|
|
108
|
+
|
|
109
|
+
* **pagination:** improve naming ([3861f31](https://github.com/Metronome-Industries/metronome-node/commit/3861f31fbe55cfd3d976d1a7794f7c7eb82b5fb7))
|
|
110
|
+
|
|
111
|
+
## 0.1.0-beta.10 (2025-05-14)
|
|
112
|
+
|
|
113
|
+
Full Changelog: [v0.1.0-beta.9...v0.1.0-beta.10](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.9...v0.1.0-beta.10)
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
* **api:** api update ([7dff441](https://github.com/Metronome-Industries/metronome-node/commit/7dff441268a88ce3a8846b6cdb7e68e2dca046fb))
|
|
118
|
+
* **api:** api update ([f2c27c0](https://github.com/Metronome-Industries/metronome-node/commit/f2c27c08def847f83d9d49fb756b223705d7afa2))
|
|
119
|
+
* **api:** api update ([8d84c75](https://github.com/Metronome-Industries/metronome-node/commit/8d84c75e3f9328f62b708d9594dcc1c087cbb756))
|
|
120
|
+
* **api:** api update ([af88cb0](https://github.com/Metronome-Industries/metronome-node/commit/af88cb055d1b1e3f20466f4dd0d31099c7a8dc43))
|
|
121
|
+
* **api:** api update ([3b80d3e](https://github.com/Metronome-Industries/metronome-node/commit/3b80d3ecfe26bc2a8250a4bb66fb328ac41d3392))
|
|
122
|
+
* **api:** api update ([a5f5e03](https://github.com/Metronome-Industries/metronome-node/commit/a5f5e0333a21847386d5f8be4d6351a2d1f7f452))
|
|
123
|
+
* **api:** api update ([1180b76](https://github.com/Metronome-Industries/metronome-node/commit/1180b76854337d77e1d2a4add70bb72d2dc6141e))
|
|
124
|
+
* **api:** api update ([6613c56](https://github.com/Metronome-Industries/metronome-node/commit/6613c563f56f6335a9f6061a365044bfcccb2e92))
|
|
125
|
+
* **api:** api update ([4cade32](https://github.com/Metronome-Industries/metronome-node/commit/4cade32a3dca201cde909e94ae2996bbf3cc12ac))
|
|
126
|
+
* **api:** api update ([3ba4f8e](https://github.com/Metronome-Industries/metronome-node/commit/3ba4f8e1b677282008728c84da4c3faf5697b7ed))
|
|
127
|
+
* **api:** api update ([60b4143](https://github.com/Metronome-Industries/metronome-node/commit/60b4143a03cc8e006b86c93da5a545e32703cd83))
|
|
128
|
+
* **api:** api update ([516d9c2](https://github.com/Metronome-Industries/metronome-node/commit/516d9c2fc1bf4b697bb4fafe6f628ea8fbccf79a))
|
|
129
|
+
* **api:** api update ([1c3e744](https://github.com/Metronome-Industries/metronome-node/commit/1c3e744c5003d63781cac40c89e1c5eef24b3bbe))
|
|
130
|
+
* **api:** api update ([bdc9761](https://github.com/Metronome-Industries/metronome-node/commit/bdc97612465ee679612a7b6abb4062d497249a68))
|
|
131
|
+
* **api:** api update ([d6f5562](https://github.com/Metronome-Industries/metronome-node/commit/d6f5562f12c16c51d0126efa3fcc0119fb961621))
|
|
132
|
+
* **api:** api update ([0fd2a49](https://github.com/Metronome-Industries/metronome-node/commit/0fd2a490b5b4e0df89433bfdd584dde69f4d4ea1))
|
|
133
|
+
* **api:** api update ([6dfdf86](https://github.com/Metronome-Industries/metronome-node/commit/6dfdf860700fd361f397a8af15f6f2d1c2577d39))
|
|
134
|
+
* **api:** api update ([4eba9b5](https://github.com/Metronome-Industries/metronome-node/commit/4eba9b5fc38511e98b2b75135dbece28c32af3a2))
|
|
135
|
+
* **api:** api update ([35aae7e](https://github.com/Metronome-Industries/metronome-node/commit/35aae7e331c078b459e73f027c7b4dc6f49176bc))
|
|
136
|
+
* **api:** api update ([84e20e7](https://github.com/Metronome-Industries/metronome-node/commit/84e20e7d6440e2fd6f53860a99600e7206d5d24c))
|
|
137
|
+
* **api:** api update ([3d93874](https://github.com/Metronome-Industries/metronome-node/commit/3d938742990b866401d760fe99a13c217d2c5ab3))
|
|
138
|
+
* **api:** api update ([7049bb8](https://github.com/Metronome-Industries/metronome-node/commit/7049bb8ed7f7f99c89b3a3b8a0e21871f4284055))
|
|
139
|
+
* **api:** api update ([e787f9e](https://github.com/Metronome-Industries/metronome-node/commit/e787f9e186c63ce947eae31727e05e74b6147aa3))
|
|
140
|
+
* **api:** api update ([30f0366](https://github.com/Metronome-Industries/metronome-node/commit/30f0366cfb29018ed2481d91b5fd5badb17da445))
|
|
141
|
+
* **api:** api update ([ea39816](https://github.com/Metronome-Industries/metronome-node/commit/ea39816046abc8384c5572af3aa86b77aa91a43e))
|
|
142
|
+
* **api:** api update ([eff527e](https://github.com/Metronome-Industries/metronome-node/commit/eff527efd5cd6ba1b340e63db45ff7e83a02718d))
|
|
143
|
+
* **api:** api update ([4c5558b](https://github.com/Metronome-Industries/metronome-node/commit/4c5558be27dde87e5801917847af58eab5b1115c))
|
|
144
|
+
* **api:** api update ([ae1b4a1](https://github.com/Metronome-Industries/metronome-node/commit/ae1b4a1fa632f1df8c7b57f63060ff54486b84c3))
|
|
145
|
+
* **api:** api update ([#214](https://github.com/Metronome-Industries/metronome-node/issues/214)) ([44fdb08](https://github.com/Metronome-Industries/metronome-node/commit/44fdb088aab81774a76b23332d631c7e524526bb))
|
|
146
|
+
* **api:** api update ([#216](https://github.com/Metronome-Industries/metronome-node/issues/216)) ([835b4ce](https://github.com/Metronome-Industries/metronome-node/commit/835b4ce72456738d7840dac151e53fe42c85e18d))
|
|
147
|
+
* **api:** api update ([#218](https://github.com/Metronome-Industries/metronome-node/issues/218)) ([37545a3](https://github.com/Metronome-Industries/metronome-node/commit/37545a3c3558f8d5ccc6307eb4ac957c43480ef3))
|
|
148
|
+
* **api:** api update ([#220](https://github.com/Metronome-Industries/metronome-node/issues/220)) ([6185553](https://github.com/Metronome-Industries/metronome-node/commit/6185553a7e1fbc048f37d1b4f376873d488e19f9))
|
|
149
|
+
* **api:** api update ([#222](https://github.com/Metronome-Industries/metronome-node/issues/222)) ([a6de865](https://github.com/Metronome-Industries/metronome-node/commit/a6de865062cc996ca2babb990df2483af26b3a81))
|
|
150
|
+
* **api:** api update ([#224](https://github.com/Metronome-Industries/metronome-node/issues/224)) ([ca18ead](https://github.com/Metronome-Industries/metronome-node/commit/ca18eada2acc3fca19509316825cf7d0cdc12053))
|
|
151
|
+
* **api:** api update ([#225](https://github.com/Metronome-Industries/metronome-node/issues/225)) ([e4d9ab0](https://github.com/Metronome-Industries/metronome-node/commit/e4d9ab0f33722af6b7141c2fc69011454ace1e44))
|
|
152
|
+
* **api:** api update ([#227](https://github.com/Metronome-Industries/metronome-node/issues/227)) ([5f15374](https://github.com/Metronome-Industries/metronome-node/commit/5f15374a6dd354723b6e8fe2f8d5a02407c604ce))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Bug Fixes
|
|
156
|
+
|
|
157
|
+
* **api:** improve type resolution when importing as a package ([#223](https://github.com/Metronome-Industries/metronome-node/issues/223)) ([35a28ba](https://github.com/Metronome-Industries/metronome-node/commit/35a28ba8b62e6b9afa5c0f86f13ae59335e01f05))
|
|
158
|
+
* **client:** send `X-Stainless-Timeout` in seconds ([#219](https://github.com/Metronome-Industries/metronome-node/issues/219)) ([f36c73a](https://github.com/Metronome-Industries/metronome-node/commit/f36c73aeadc23b5f641a498efe28e9d9b9cfa6ee))
|
|
159
|
+
* **internal:** work around https://github.com/vercel/next.js/issues/76881 ([#217](https://github.com/Metronome-Industries/metronome-node/issues/217)) ([23ce14d](https://github.com/Metronome-Industries/metronome-node/commit/23ce14d6a34b552c0f6fc8718029dbf12f919696))
|
|
160
|
+
* **mcp:** remove unused tools.ts ([#226](https://github.com/Metronome-Industries/metronome-node/issues/226)) ([43d45f6](https://github.com/Metronome-Industries/metronome-node/commit/43d45f68095bd4cfd04091ba078d85e3e38c1ea9))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Chores
|
|
164
|
+
|
|
165
|
+
* add hash of OpenAPI spec/config inputs to .stats.yml ([f797d09](https://github.com/Metronome-Industries/metronome-node/commit/f797d094fdccd8db75ed5c441580519b91d11f5a))
|
|
166
|
+
* **ci:** add timeout thresholds for CI jobs ([a2dcbf2](https://github.com/Metronome-Industries/metronome-node/commit/a2dcbf26450fe624fc073cd2f82006246b1a0997))
|
|
167
|
+
* **ci:** bump node version for release workflows ([501b76f](https://github.com/Metronome-Industries/metronome-node/commit/501b76f969395ab5bcace5ac9b229eac136e5a16))
|
|
168
|
+
* **ci:** only use depot for staging repos ([ee6b514](https://github.com/Metronome-Industries/metronome-node/commit/ee6b51494f1ab87c9a0d02d59c61d518d108c818))
|
|
169
|
+
* **ci:** run on more branches and use depot runners ([ed00453](https://github.com/Metronome-Industries/metronome-node/commit/ed00453cd92c062247cffe03ab50d055088c1fe5))
|
|
170
|
+
* **client:** minor internal fixes ([04a2029](https://github.com/Metronome-Industries/metronome-node/commit/04a20299b1f439d6bc20110a2043cb73650b8fdb))
|
|
171
|
+
* **internal:** add aliases for Record and Array ([#221](https://github.com/Metronome-Industries/metronome-node/issues/221)) ([3452e8a](https://github.com/Metronome-Industries/metronome-node/commit/3452e8ada01c6f42579e6be5aac0eac294cbafd3))
|
|
172
|
+
* **internal:** reduce CI branch coverage ([ac7f37b](https://github.com/Metronome-Industries/metronome-node/commit/ac7f37b6edee302bd25f2e9ad0d878739f58d2f5))
|
|
173
|
+
* **internal:** upload builds and expand CI branch coverage ([#229](https://github.com/Metronome-Industries/metronome-node/issues/229)) ([1a2c110](https://github.com/Metronome-Industries/metronome-node/commit/1a2c11097f7100c35b0318ad59105ba15bcdc363))
|
|
174
|
+
* **tests:** improve enum examples ([#228](https://github.com/Metronome-Industries/metronome-node/issues/228)) ([3476c1e](https://github.com/Metronome-Industries/metronome-node/commit/3476c1e6be559ad946a7843ec5b4bcc3f6d3670e))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Documentation
|
|
178
|
+
|
|
179
|
+
* add examples to tsdocs ([a2494b9](https://github.com/Metronome-Industries/metronome-node/commit/a2494b955cf88704027b087f429715c6f49ccb52))
|
|
180
|
+
* **readme:** fix typo ([f8da328](https://github.com/Metronome-Industries/metronome-node/commit/f8da3281bbff42cecb7abdf02d89f6ce6643bfd7))
|
|
181
|
+
|
|
182
|
+
## 0.1.0-beta.9 (2025-03-25)
|
|
183
|
+
|
|
184
|
+
Full Changelog: [v0.1.0-beta.8...v0.1.0-beta.9](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.8...v0.1.0-beta.9)
|
|
185
|
+
|
|
186
|
+
### Features
|
|
187
|
+
|
|
188
|
+
* add SKIP_BREW env var to ./scripts/bootstrap ([#198](https://github.com/Metronome-Industries/metronome-node/issues/198)) ([544d349](https://github.com/Metronome-Industries/metronome-node/commit/544d349fecda73a515121ada3b806db5baf09ea3))
|
|
189
|
+
* **api:** api update ([#184](https://github.com/Metronome-Industries/metronome-node/issues/184)) ([06fe395](https://github.com/Metronome-Industries/metronome-node/commit/06fe3958630e2d74debbc70156b60357c4a738d9))
|
|
190
|
+
* **api:** api update ([#186](https://github.com/Metronome-Industries/metronome-node/issues/186)) ([1664ab4](https://github.com/Metronome-Industries/metronome-node/commit/1664ab438dcd126f0a14efaf94162fc40ef8caf1))
|
|
191
|
+
* **api:** api update ([#190](https://github.com/Metronome-Industries/metronome-node/issues/190)) ([b52e98b](https://github.com/Metronome-Industries/metronome-node/commit/b52e98b973d3b5fedbb3934e597c99cb6402b7f7))
|
|
192
|
+
* **api:** api update ([#193](https://github.com/Metronome-Industries/metronome-node/issues/193)) ([c59b373](https://github.com/Metronome-Industries/metronome-node/commit/c59b373f045c8ae80d11694029ad53a9dc38178f))
|
|
193
|
+
* **api:** api update ([#194](https://github.com/Metronome-Industries/metronome-node/issues/194)) ([9bc2925](https://github.com/Metronome-Industries/metronome-node/commit/9bc2925267fc9a3c1200218952031ca4251e8c02))
|
|
194
|
+
* **api:** api update ([#195](https://github.com/Metronome-Industries/metronome-node/issues/195)) ([53acc95](https://github.com/Metronome-Industries/metronome-node/commit/53acc95e94df149834a1d3429598da42b1db2118))
|
|
195
|
+
* **api:** api update ([#196](https://github.com/Metronome-Industries/metronome-node/issues/196)) ([764940e](https://github.com/Metronome-Industries/metronome-node/commit/764940e9a25db57cc161dfd51f2da39c11f5f523))
|
|
196
|
+
* **api:** api update ([#197](https://github.com/Metronome-Industries/metronome-node/issues/197)) ([2205e62](https://github.com/Metronome-Industries/metronome-node/commit/2205e6222dccca01d1e208fa4a3839e362866566))
|
|
197
|
+
* **api:** api update ([#199](https://github.com/Metronome-Industries/metronome-node/issues/199)) ([8a841d2](https://github.com/Metronome-Industries/metronome-node/commit/8a841d2aa55607729aff538e412593f81c87ed1d))
|
|
198
|
+
* **api:** api update ([#201](https://github.com/Metronome-Industries/metronome-node/issues/201)) ([43e3bd1](https://github.com/Metronome-Industries/metronome-node/commit/43e3bd1828177baf0d49ac8115a632660edc5cbe))
|
|
199
|
+
* **api:** api update ([#202](https://github.com/Metronome-Industries/metronome-node/issues/202)) ([bd1a2fc](https://github.com/Metronome-Industries/metronome-node/commit/bd1a2fc37594a41645d0dab2867d8db1d7ce293c))
|
|
200
|
+
* **api:** api update ([#205](https://github.com/Metronome-Industries/metronome-node/issues/205)) ([5a11e9d](https://github.com/Metronome-Industries/metronome-node/commit/5a11e9d4846a300eddbc7fd6bac48a1e1566b257))
|
|
201
|
+
* **api:** api update ([#207](https://github.com/Metronome-Industries/metronome-node/issues/207)) ([9a3a1e0](https://github.com/Metronome-Industries/metronome-node/commit/9a3a1e07d2ce6a66c64f19e42769df63b0d9e569))
|
|
202
|
+
* **api:** api update ([#208](https://github.com/Metronome-Industries/metronome-node/issues/208)) ([de903a1](https://github.com/Metronome-Industries/metronome-node/commit/de903a1f16810fb46b18eb1113f03d9af30afeb4))
|
|
203
|
+
* **api:** api update ([#209](https://github.com/Metronome-Industries/metronome-node/issues/209)) ([d4dfbed](https://github.com/Metronome-Industries/metronome-node/commit/d4dfbed762fb631d3896229ef7f676bf49a98301))
|
|
204
|
+
* **api:** api update ([#211](https://github.com/Metronome-Industries/metronome-node/issues/211)) ([4bccf66](https://github.com/Metronome-Industries/metronome-node/commit/4bccf66082d6cd21d7e35a3f40932d7a86f54360))
|
|
205
|
+
* **api:** manual updates ([#212](https://github.com/Metronome-Industries/metronome-node/issues/212)) ([7423f29](https://github.com/Metronome-Industries/metronome-node/commit/7423f292405bf645ce21ad0f338145031fb9ba1c))
|
|
206
|
+
* **client:** accept RFC6838 JSON content types ([#200](https://github.com/Metronome-Industries/metronome-node/issues/200)) ([7b2dbb5](https://github.com/Metronome-Industries/metronome-node/commit/7b2dbb5a3f8917182a256f73d18d1c68e8e99805))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Bug Fixes
|
|
210
|
+
|
|
211
|
+
* avoid type error in certain environments ([#206](https://github.com/Metronome-Industries/metronome-node/issues/206)) ([0621095](https://github.com/Metronome-Industries/metronome-node/commit/0621095b11a6f90499cb42f1c480f394d3af8c3c))
|
|
212
|
+
* **client:** mark some request bodies as optional ([#188](https://github.com/Metronome-Industries/metronome-node/issues/188)) ([ccd11d0](https://github.com/Metronome-Industries/metronome-node/commit/ccd11d02a833be483334af37dfeebc70027b8658))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Chores
|
|
216
|
+
|
|
217
|
+
* **exports:** cleaner resource index imports ([#203](https://github.com/Metronome-Industries/metronome-node/issues/203)) ([ce3b069](https://github.com/Metronome-Industries/metronome-node/commit/ce3b069bda73cbbd08bbeb194e6d63cee38d0c62))
|
|
218
|
+
* **exports:** stop using path fallbacks ([#204](https://github.com/Metronome-Industries/metronome-node/issues/204)) ([aa701f2](https://github.com/Metronome-Industries/metronome-node/commit/aa701f28e265fbd87eaa7d4bd4f802dffb5df226))
|
|
219
|
+
* **internal:** codegen related update ([1cbad9c](https://github.com/Metronome-Industries/metronome-node/commit/1cbad9ca8d07a881679a82b3433966a922a6f2d8))
|
|
220
|
+
* **internal:** codegen related update ([8ad1b81](https://github.com/Metronome-Industries/metronome-node/commit/8ad1b81bd525d57a8f21b5928772539e1fe873fe))
|
|
221
|
+
* **internal:** codegen related update ([#187](https://github.com/Metronome-Industries/metronome-node/issues/187)) ([ec2d099](https://github.com/Metronome-Industries/metronome-node/commit/ec2d099444f2df38f60e912cd71fccd5f126dc99))
|
|
222
|
+
* **internal:** fix devcontainers setup ([#189](https://github.com/Metronome-Industries/metronome-node/issues/189)) ([519bf1d](https://github.com/Metronome-Industries/metronome-node/commit/519bf1ddc7b7ef7084f4d746c8a4123108a58f1e))
|
|
223
|
+
* **internal:** remove extra empty newlines ([e5a2f8a](https://github.com/Metronome-Industries/metronome-node/commit/e5a2f8a001a178780faf628678df5eed36e20631))
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Documentation
|
|
227
|
+
|
|
228
|
+
* update URLs from stainlessapi.com to stainless.com ([#191](https://github.com/Metronome-Industries/metronome-node/issues/191)) ([f5e0b39](https://github.com/Metronome-Industries/metronome-node/commit/f5e0b39c3df9e5a04cc3b5e588984685d2861c19))
|
|
229
|
+
|
|
3
230
|
## 0.1.0-beta.8 (2025-02-07)
|
|
4
231
|
|
|
5
232
|
Full Changelog: [v0.1.0-beta.7...v0.1.0-beta.8](https://github.com/Metronome-Industries/metronome-node/compare/v0.1.0-beta.7...v0.1.0-beta.8)
|
package/README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Metronome Node API Library
|
|
2
2
|
|
|
3
|
-
> [!WARNING]
|
|
4
|
-
> This is prerelease software that is not ready for production use. There may be bugs and
|
|
5
|
-
> there will be breaking changes version to version. Use at your own risk.
|
|
6
|
-
|
|
7
3
|
[](https://npmjs.org/package/@metronome/sdk) 
|
|
8
4
|
|
|
9
5
|
This library provides convenient access to the Metronome REST API from server-side TypeScript or JavaScript.
|
|
@@ -28,18 +24,15 @@ const client = new Metronome({
|
|
|
28
24
|
bearerToken: process.env['METRONOME_BEARER_TOKEN'], // This is the default and can be omitted
|
|
29
25
|
});
|
|
30
26
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
main();
|
|
27
|
+
await client.v1.usage.ingest([
|
|
28
|
+
{
|
|
29
|
+
transaction_id: '90e9401f-0f8c-4cd3-9a9f-d6beb56d8d72',
|
|
30
|
+
customer_id: 'team@example.com',
|
|
31
|
+
event_type: 'heartbeat',
|
|
32
|
+
timestamp: '2024-01-01T00:00:00Z',
|
|
33
|
+
properties: { cluster_id: '42', cpu_seconds: 60, region: 'Europe' },
|
|
34
|
+
},
|
|
35
|
+
]);
|
|
43
36
|
```
|
|
44
37
|
|
|
45
38
|
### Request & Response types
|
|
@@ -54,15 +47,11 @@ const client = new Metronome({
|
|
|
54
47
|
bearerToken: process.env['METRONOME_BEARER_TOKEN'], // This is the default and can be omitted
|
|
55
48
|
});
|
|
56
49
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const contract: Metronome.ContractCreateResponse = await client.contracts.create(params);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
main();
|
|
50
|
+
const params: Metronome.V1.ContractCreateParams = {
|
|
51
|
+
customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
52
|
+
starting_at: '2020-01-01T00:00:00.000Z',
|
|
53
|
+
};
|
|
54
|
+
const contract: Metronome.V1.ContractCreateResponse = await client.v1.contracts.create(params);
|
|
66
55
|
```
|
|
67
56
|
|
|
68
57
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
@@ -75,24 +64,20 @@ a subclass of `APIError` will be thrown:
|
|
|
75
64
|
|
|
76
65
|
<!-- prettier-ignore -->
|
|
77
66
|
```ts
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
main();
|
|
67
|
+
const contract = await client.v1.contracts
|
|
68
|
+
.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' })
|
|
69
|
+
.catch(async (err) => {
|
|
70
|
+
if (err instanceof Metronome.APIError) {
|
|
71
|
+
console.log(err.status); // 400
|
|
72
|
+
console.log(err.name); // BadRequestError
|
|
73
|
+
console.log(err.headers); // {server: 'nginx', ...}
|
|
74
|
+
} else {
|
|
75
|
+
throw err;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
93
78
|
```
|
|
94
79
|
|
|
95
|
-
Error codes are as
|
|
80
|
+
Error codes are as follows:
|
|
96
81
|
|
|
97
82
|
| Status Code | Error Type |
|
|
98
83
|
| ----------- | -------------------------- |
|
|
@@ -121,7 +106,7 @@ const client = new Metronome({
|
|
|
121
106
|
});
|
|
122
107
|
|
|
123
108
|
// Or, configure per-request:
|
|
124
|
-
await client.contracts.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' }, {
|
|
109
|
+
await client.v1.contracts.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' }, {
|
|
125
110
|
maxRetries: 5,
|
|
126
111
|
});
|
|
127
112
|
```
|
|
@@ -138,7 +123,7 @@ const client = new Metronome({
|
|
|
138
123
|
});
|
|
139
124
|
|
|
140
125
|
// Override per-request:
|
|
141
|
-
await client.contracts.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' }, {
|
|
126
|
+
await client.v1.contracts.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' }, {
|
|
142
127
|
timeout: 5 * 1000,
|
|
143
128
|
});
|
|
144
129
|
```
|
|
@@ -153,20 +138,20 @@ List methods in the Metronome API are paginated.
|
|
|
153
138
|
You can use the `for await … of` syntax to iterate through items across all pages:
|
|
154
139
|
|
|
155
140
|
```ts
|
|
156
|
-
async function
|
|
157
|
-
const
|
|
141
|
+
async function fetchAllProductListResponses(params) {
|
|
142
|
+
const allProductListResponses = [];
|
|
158
143
|
// Automatically fetches more pages as needed.
|
|
159
|
-
for await (const productListResponse of client.contracts.products.list()) {
|
|
160
|
-
|
|
144
|
+
for await (const productListResponse of client.v1.contracts.products.list()) {
|
|
145
|
+
allProductListResponses.push(productListResponse);
|
|
161
146
|
}
|
|
162
|
-
return
|
|
147
|
+
return allProductListResponses;
|
|
163
148
|
}
|
|
164
149
|
```
|
|
165
150
|
|
|
166
151
|
Alternatively, you can request a single page at a time:
|
|
167
152
|
|
|
168
153
|
```ts
|
|
169
|
-
let page = await client.contracts.products.list();
|
|
154
|
+
let page = await client.v1.contracts.products.list();
|
|
170
155
|
for (const productListResponse of page.data) {
|
|
171
156
|
console.log(productListResponse);
|
|
172
157
|
}
|
|
@@ -190,13 +175,13 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
|
|
|
190
175
|
```ts
|
|
191
176
|
const client = new Metronome();
|
|
192
177
|
|
|
193
|
-
const response = await client.contracts
|
|
178
|
+
const response = await client.v1.contracts
|
|
194
179
|
.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' })
|
|
195
180
|
.asResponse();
|
|
196
181
|
console.log(response.headers.get('X-My-Header'));
|
|
197
182
|
console.log(response.statusText); // access the underlying Response object
|
|
198
183
|
|
|
199
|
-
const { data: contract, response: raw } = await client.contracts
|
|
184
|
+
const { data: contract, response: raw } = await client.v1.contracts
|
|
200
185
|
.create({ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' })
|
|
201
186
|
.withResponse();
|
|
202
187
|
console.log(raw.headers.get('X-My-Header'));
|
|
@@ -304,7 +289,7 @@ const client = new Metronome({
|
|
|
304
289
|
});
|
|
305
290
|
|
|
306
291
|
// Override per-request:
|
|
307
|
-
await client.contracts.create(
|
|
292
|
+
await client.v1.contracts.create(
|
|
308
293
|
{ customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d', starting_at: '2020-01-01T00:00:00.000Z' },
|
|
309
294
|
{
|
|
310
295
|
httpAgent: new http.Agent({ keepAlive: false }),
|
package/_shims/index.d.ts
CHANGED
|
@@ -79,3 +79,5 @@ export function fileFromPath(path: string, options?: FileFromPathOptions): Promi
|
|
|
79
79
|
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
|
|
80
80
|
|
|
81
81
|
export function isFsReadStream(value: any): value is FsReadStream;
|
|
82
|
+
|
|
83
|
+
export const init: () => void;
|
package/_shims/index.js
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
const shims = require('./registry');
|
|
5
5
|
const auto = require('@metronome/sdk/_shims/auto/runtime');
|
|
6
|
-
|
|
6
|
+
exports.init = () => {
|
|
7
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
|
+
};
|
|
7
9
|
for (const property of Object.keys(shims)) {
|
|
8
10
|
Object.defineProperty(exports, property, {
|
|
9
11
|
get() {
|
|
@@ -11,3 +13,5 @@ for (const property of Object.keys(shims)) {
|
|
|
11
13
|
},
|
|
12
14
|
});
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
exports.init();
|
package/_shims/index.mjs
CHANGED
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as shims from './registry.mjs';
|
|
5
5
|
import * as auto from '@metronome/sdk/_shims/auto/runtime';
|
|
6
|
-
|
|
6
|
+
export const init = () => {
|
|
7
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
|
+
};
|
|
7
9
|
export * from './registry.mjs';
|
|
10
|
+
|
|
11
|
+
init();
|
package/core.d.ts
CHANGED
|
@@ -6,6 +6,17 @@ export { type Response };
|
|
|
6
6
|
import { BlobLike } from "./uploads.js";
|
|
7
7
|
export { maybeMultipartFormRequestOptions, multipartFormRequestOptions, createForm, type Uploadable, } from "./uploads.js";
|
|
8
8
|
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
9
|
+
/**
|
|
10
|
+
* An alias to the builtin `Array` type so we can
|
|
11
|
+
* easily alias it in import statements if there are name clashes.
|
|
12
|
+
*/
|
|
13
|
+
type _Array<T> = Array<T>;
|
|
14
|
+
/**
|
|
15
|
+
* An alias to the builtin `Record` type so we can
|
|
16
|
+
* easily alias it in import statements if there are name clashes.
|
|
17
|
+
*/
|
|
18
|
+
type _Record<K extends keyof any, T> = Record<K, T>;
|
|
19
|
+
export type { _Array as Array, _Record as Record };
|
|
9
20
|
type PromiseOrValue<T> = T | Promise<T>;
|
|
10
21
|
type APIResponseProps = {
|
|
11
22
|
response: Response;
|
|
@@ -59,15 +70,17 @@ export declare class APIPromise<T> extends Promise<T> {
|
|
|
59
70
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
60
71
|
}
|
|
61
72
|
export declare abstract class APIClient {
|
|
73
|
+
#private;
|
|
62
74
|
baseURL: string;
|
|
63
75
|
maxRetries: number;
|
|
64
76
|
timeout: number;
|
|
65
77
|
httpAgent: Agent | undefined;
|
|
66
78
|
private fetch;
|
|
67
79
|
protected idempotencyHeader?: string;
|
|
68
|
-
constructor({ baseURL, maxRetries, timeout, // 1 minute
|
|
80
|
+
constructor({ baseURL, baseURLOverridden, maxRetries, timeout, // 1 minute
|
|
69
81
|
httpAgent, fetch: overriddenFetch, }: {
|
|
70
82
|
baseURL: string;
|
|
83
|
+
baseURLOverridden: boolean;
|
|
71
84
|
maxRetries?: number | undefined;
|
|
72
85
|
timeout: number | undefined;
|
|
73
86
|
httpAgent: Agent | undefined;
|
|
@@ -97,13 +110,13 @@ export declare abstract class APIClient {
|
|
|
97
110
|
private methodRequest;
|
|
98
111
|
getAPIList<Item, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions<any>): PagePromise<PageClass, Item>;
|
|
99
112
|
private calculateContentLength;
|
|
100
|
-
buildRequest<Req>(
|
|
113
|
+
buildRequest<Req>(inputOptions: FinalRequestOptions<Req>, { retryCount }?: {
|
|
101
114
|
retryCount?: number;
|
|
102
|
-
}): {
|
|
115
|
+
}): Promise<{
|
|
103
116
|
req: RequestInit;
|
|
104
117
|
url: string;
|
|
105
118
|
timeout: number;
|
|
106
|
-
}
|
|
119
|
+
}>;
|
|
107
120
|
private buildHeaders;
|
|
108
121
|
/**
|
|
109
122
|
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
@@ -124,7 +137,7 @@ export declare abstract class APIClient {
|
|
|
124
137
|
request<Req, Rsp>(options: PromiseOrValue<FinalRequestOptions<Req>>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
125
138
|
private makeRequest;
|
|
126
139
|
requestAPIList<Item = unknown, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass, options: FinalRequestOptions): PagePromise<PageClass, Item>;
|
|
127
|
-
buildURL<Req>(path: string, query: Req | null | undefined): string;
|
|
140
|
+
buildURL<Req>(path: string, query: Req | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
128
141
|
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
129
142
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
130
143
|
private shouldRetry;
|
|
@@ -190,6 +203,7 @@ export type RequestOptions<Req = unknown | Record<string, unknown> | Readable |
|
|
|
190
203
|
query?: Req | undefined;
|
|
191
204
|
body?: Req | null | undefined;
|
|
192
205
|
headers?: Headers | undefined;
|
|
206
|
+
defaultBaseURL?: string | undefined;
|
|
193
207
|
maxRetries?: number;
|
|
194
208
|
stream?: boolean | undefined;
|
|
195
209
|
timeout?: number;
|
package/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["src/core.ts"],"names":[],"mappings":";;AACA,OAAO,EAEL,QAAQ,EAIT,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,KAAK,EAEV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["src/core.ts"],"names":[],"mappings":";;AACA,OAAO,EAEL,QAAQ,EAIT,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,KAAK,EAEV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAC;AAKxB,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;AACzB,OAAO,EAAE,QAAQ,EAA+B,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,UAAU,EACV,KAAK,UAAU,GAChB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEhF;;;GAGG;AACH,KAAK,MAAM,CAAC,CAAC,IAAI,KAAK,CA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