@flexprice/sdk 2.1.2 → 2.1.4
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/docs/sdk/models/changed-invoice-action.md +19 -0
- package/docs/sdk/models/changed-invoice-status.md +19 -0
- package/docs/sdk/models/changed-invoice.md +19 -6
- package/docs/sdk/models/changed-line-item-action.md +19 -0
- package/docs/sdk/models/changed-line-item.md +1 -1
- package/docs/sdk/models/changed-resources.md +16 -1
- package/docs/sdk/models/changed-subscription-action.md +19 -0
- package/docs/sdk/models/changed-subscription.md +5 -5
- package/docs/sdk/models/clone-environment-request-request.md +19 -0
- package/docs/sdk/models/clone-environment-request.md +17 -0
- package/docs/sdk/models/clone-feature-request-request.md +19 -0
- package/docs/sdk/models/clone-feature-request.md +18 -0
- package/docs/sdk/models/{post-plans-id-clone-request.md → clone-plan-request-request.md} +3 -3
- package/docs/sdk/models/create-subscription-request.md +38 -37
- package/docs/sdk/models/environment-type.md +15 -0
- package/docs/sdk/models/subscription-modify-response.md +16 -0
- package/docs/sdks/environments/README.md +79 -0
- package/docs/sdks/features/README.md +73 -0
- package/docs/sdks/plans/README.md +7 -7
- package/esm/funcs/addons-create-addon.d.ts.map +1 -1
- package/esm/funcs/addons-create-addon.js +2 -1
- package/esm/funcs/addons-create-addon.js.map +1 -1
- package/esm/funcs/addons-delete-addon.d.ts.map +1 -1
- package/esm/funcs/addons-delete-addon.js +2 -1
- package/esm/funcs/addons-delete-addon.js.map +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.d.ts.map +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.js +2 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.js.map +1 -1
- package/esm/funcs/addons-get-addon.d.ts.map +1 -1
- package/esm/funcs/addons-get-addon.js +2 -1
- package/esm/funcs/addons-get-addon.js.map +1 -1
- package/esm/funcs/addons-query-addon.d.ts.map +1 -1
- package/esm/funcs/addons-query-addon.js +2 -1
- package/esm/funcs/addons-query-addon.js.map +1 -1
- package/esm/funcs/addons-update-addon.d.ts.map +1 -1
- package/esm/funcs/addons-update-addon.js +2 -1
- package/esm/funcs/addons-update-addon.js.map +1 -1
- package/esm/funcs/alerts-query-alert-log.d.ts.map +1 -1
- package/esm/funcs/alerts-query-alert-log.js +2 -1
- package/esm/funcs/alerts-query-alert-log.js.map +1 -1
- package/esm/funcs/costs-create-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-create-costsheet.js +2 -1
- package/esm/funcs/costs-create-costsheet.js.map +1 -1
- package/esm/funcs/costs-delete-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-delete-costsheet.js +2 -1
- package/esm/funcs/costs-delete-costsheet.js.map +1 -1
- package/esm/funcs/costs-get-active-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-get-active-costsheet.js +2 -1
- package/esm/funcs/costs-get-active-costsheet.js.map +1 -1
- package/esm/funcs/costs-get-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-get-costsheet.js +2 -1
- package/esm/funcs/costs-get-costsheet.js.map +1 -1
- package/esm/funcs/costs-get-detailed-cost-analytics-v2.d.ts.map +1 -1
- package/esm/funcs/costs-get-detailed-cost-analytics-v2.js +2 -1
- package/esm/funcs/costs-get-detailed-cost-analytics-v2.js.map +1 -1
- package/esm/funcs/costs-get-detailed-cost-analytics.d.ts.map +1 -1
- package/esm/funcs/costs-get-detailed-cost-analytics.js +2 -1
- package/esm/funcs/costs-get-detailed-cost-analytics.js.map +1 -1
- package/esm/funcs/costs-query-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-query-costsheet.js +2 -1
- package/esm/funcs/costs-query-costsheet.js.map +1 -1
- package/esm/funcs/costs-update-costsheet.d.ts.map +1 -1
- package/esm/funcs/costs-update-costsheet.js +2 -1
- package/esm/funcs/costs-update-costsheet.js.map +1 -1
- package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-create-coupon.js +2 -1
- package/esm/funcs/coupons-create-coupon.js.map +1 -1
- package/esm/funcs/coupons-delete-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-delete-coupon.js +2 -1
- package/esm/funcs/coupons-delete-coupon.js.map +1 -1
- package/esm/funcs/coupons-get-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-get-coupon.js +2 -1
- package/esm/funcs/coupons-get-coupon.js.map +1 -1
- package/esm/funcs/coupons-query-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-query-coupon.js +2 -1
- package/esm/funcs/coupons-query-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-update-coupon.js +2 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/credit-grants-create-credit-grant.d.ts.map +1 -1
- package/esm/funcs/credit-grants-create-credit-grant.js +2 -1
- package/esm/funcs/credit-grants-create-credit-grant.js.map +1 -1
- package/esm/funcs/credit-grants-delete-credit-grant.d.ts.map +1 -1
- package/esm/funcs/credit-grants-delete-credit-grant.js +2 -1
- package/esm/funcs/credit-grants-delete-credit-grant.js.map +1 -1
- package/esm/funcs/credit-grants-get-credit-grant.d.ts.map +1 -1
- package/esm/funcs/credit-grants-get-credit-grant.js +2 -1
- package/esm/funcs/credit-grants-get-credit-grant.js.map +1 -1
- package/esm/funcs/credit-grants-get-plan-credit-grants.d.ts.map +1 -1
- package/esm/funcs/credit-grants-get-plan-credit-grants.js +2 -1
- package/esm/funcs/credit-grants-get-plan-credit-grants.js.map +1 -1
- package/esm/funcs/credit-grants-update-credit-grant.d.ts.map +1 -1
- package/esm/funcs/credit-grants-update-credit-grant.js +2 -1
- package/esm/funcs/credit-grants-update-credit-grant.js.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.js +2 -1
- package/esm/funcs/credit-notes-create-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-get-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-get-credit-note.js +2 -1
- package/esm/funcs/credit-notes-get-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.js +2 -1
- package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.js +2 -1
- package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
- package/esm/funcs/customers-create-customer.d.ts.map +1 -1
- package/esm/funcs/customers-create-customer.js +2 -1
- package/esm/funcs/customers-create-customer.js.map +1 -1
- package/esm/funcs/customers-delete-customer.d.ts.map +1 -1
- package/esm/funcs/customers-delete-customer.js +2 -1
- package/esm/funcs/customers-delete-customer.js.map +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.js +2 -1
- package/esm/funcs/customers-get-customer-by-external-id.js.map +1 -1
- package/esm/funcs/customers-get-customer-entitlements.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer-entitlements.js +2 -1
- package/esm/funcs/customers-get-customer-entitlements.js.map +1 -1
- package/esm/funcs/customers-get-customer-upcoming-grants.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer-upcoming-grants.js +2 -1
- package/esm/funcs/customers-get-customer-upcoming-grants.js.map +1 -1
- package/esm/funcs/customers-get-customer-usage-summary.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer-usage-summary.js +2 -1
- package/esm/funcs/customers-get-customer-usage-summary.js.map +1 -1
- package/esm/funcs/customers-get-customer.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer.js +2 -1
- package/esm/funcs/customers-get-customer.js.map +1 -1
- package/esm/funcs/customers-query-customer.d.ts.map +1 -1
- package/esm/funcs/customers-query-customer.js +2 -1
- package/esm/funcs/customers-query-customer.js.map +1 -1
- package/esm/funcs/customers-update-customer.d.ts.map +1 -1
- package/esm/funcs/customers-update-customer.js +2 -1
- package/esm/funcs/customers-update-customer.js.map +1 -1
- package/esm/funcs/entitlements-create-entitlement.d.ts.map +1 -1
- package/esm/funcs/entitlements-create-entitlement.js +2 -1
- package/esm/funcs/entitlements-create-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-create-entitlements-bulk.d.ts.map +1 -1
- package/esm/funcs/entitlements-create-entitlements-bulk.js +2 -1
- package/esm/funcs/entitlements-create-entitlements-bulk.js.map +1 -1
- package/esm/funcs/entitlements-delete-entitlement.d.ts.map +1 -1
- package/esm/funcs/entitlements-delete-entitlement.js +2 -1
- package/esm/funcs/entitlements-delete-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-get-addon-entitlements.d.ts.map +1 -1
- package/esm/funcs/entitlements-get-addon-entitlements.js +2 -1
- package/esm/funcs/entitlements-get-addon-entitlements.js.map +1 -1
- package/esm/funcs/entitlements-get-entitlement.d.ts.map +1 -1
- package/esm/funcs/entitlements-get-entitlement.js +2 -1
- package/esm/funcs/entitlements-get-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-get-plan-entitlements.d.ts.map +1 -1
- package/esm/funcs/entitlements-get-plan-entitlements.js +2 -1
- package/esm/funcs/entitlements-get-plan-entitlements.js.map +1 -1
- package/esm/funcs/entitlements-query-entitlement.d.ts.map +1 -1
- package/esm/funcs/entitlements-query-entitlement.js +2 -1
- package/esm/funcs/entitlements-query-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-update-entitlement.d.ts.map +1 -1
- package/esm/funcs/entitlements-update-entitlement.js +2 -1
- package/esm/funcs/entitlements-update-entitlement.js.map +1 -1
- package/esm/funcs/environments-clone-environment.d.ts +17 -0
- package/esm/funcs/environments-clone-environment.d.ts.map +1 -0
- package/esm/funcs/environments-clone-environment.js +93 -0
- package/esm/funcs/environments-clone-environment.js.map +1 -0
- package/esm/funcs/events-get-event.d.ts.map +1 -1
- package/esm/funcs/events-get-event.js +2 -1
- package/esm/funcs/events-get-event.js.map +1 -1
- package/esm/funcs/events-get-huggingface-inference-data.d.ts.map +1 -1
- package/esm/funcs/events-get-huggingface-inference-data.js +2 -1
- package/esm/funcs/events-get-huggingface-inference-data.js.map +1 -1
- package/esm/funcs/events-get-usage-analytics.d.ts.map +1 -1
- package/esm/funcs/events-get-usage-analytics.js +2 -1
- package/esm/funcs/events-get-usage-analytics.js.map +1 -1
- package/esm/funcs/events-get-usage-by-meter.d.ts.map +1 -1
- package/esm/funcs/events-get-usage-by-meter.js +2 -1
- package/esm/funcs/events-get-usage-by-meter.js.map +1 -1
- package/esm/funcs/events-get-usage-statistics.d.ts.map +1 -1
- package/esm/funcs/events-get-usage-statistics.js +2 -1
- package/esm/funcs/events-get-usage-statistics.js.map +1 -1
- package/esm/funcs/events-ingest-event.d.ts.map +1 -1
- package/esm/funcs/events-ingest-event.js +2 -1
- package/esm/funcs/events-ingest-event.js.map +1 -1
- package/esm/funcs/events-ingest-events-bulk.d.ts.map +1 -1
- package/esm/funcs/events-ingest-events-bulk.js +2 -1
- package/esm/funcs/events-ingest-events-bulk.js.map +1 -1
- package/esm/funcs/events-list-raw-events.d.ts.map +1 -1
- package/esm/funcs/events-list-raw-events.js +2 -1
- package/esm/funcs/events-list-raw-events.js.map +1 -1
- package/esm/funcs/features-clone-feature.d.ts +17 -0
- package/esm/funcs/features-clone-feature.d.ts.map +1 -0
- package/esm/funcs/features-clone-feature.js +93 -0
- package/esm/funcs/features-clone-feature.js.map +1 -0
- package/esm/funcs/features-create-feature.d.ts.map +1 -1
- package/esm/funcs/features-create-feature.js +2 -1
- package/esm/funcs/features-create-feature.js.map +1 -1
- package/esm/funcs/features-delete-feature.d.ts.map +1 -1
- package/esm/funcs/features-delete-feature.js +2 -1
- package/esm/funcs/features-delete-feature.js.map +1 -1
- package/esm/funcs/features-query-feature.d.ts.map +1 -1
- package/esm/funcs/features-query-feature.js +2 -1
- package/esm/funcs/features-query-feature.js.map +1 -1
- package/esm/funcs/features-update-feature.d.ts.map +1 -1
- package/esm/funcs/features-update-feature.js +2 -1
- package/esm/funcs/features-update-feature.js.map +1 -1
- package/esm/funcs/groups-create-group.d.ts.map +1 -1
- package/esm/funcs/groups-create-group.js +2 -1
- package/esm/funcs/groups-create-group.js.map +1 -1
- package/esm/funcs/groups-delete-group.d.ts.map +1 -1
- package/esm/funcs/groups-delete-group.js +2 -1
- package/esm/funcs/groups-delete-group.js.map +1 -1
- package/esm/funcs/groups-get-group.d.ts.map +1 -1
- package/esm/funcs/groups-get-group.js +2 -1
- package/esm/funcs/groups-get-group.js.map +1 -1
- package/esm/funcs/groups-query-group.d.ts.map +1 -1
- package/esm/funcs/groups-query-group.js +2 -1
- package/esm/funcs/groups-query-group.js.map +1 -1
- package/esm/funcs/integrations-link-integration-mapping.d.ts.map +1 -1
- package/esm/funcs/integrations-link-integration-mapping.js +2 -1
- package/esm/funcs/integrations-link-integration-mapping.js.map +1 -1
- package/esm/funcs/invoices-attempt-invoice-payment.d.ts.map +1 -1
- package/esm/funcs/invoices-attempt-invoice-payment.js +2 -1
- package/esm/funcs/invoices-attempt-invoice-payment.js.map +1 -1
- package/esm/funcs/invoices-create-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-create-invoice.js +2 -1
- package/esm/funcs/invoices-create-invoice.js.map +1 -1
- package/esm/funcs/invoices-finalize-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-finalize-invoice.js +2 -1
- package/esm/funcs/invoices-finalize-invoice.js.map +1 -1
- package/esm/funcs/invoices-get-customer-invoice-summary.d.ts.map +1 -1
- package/esm/funcs/invoices-get-customer-invoice-summary.js +2 -1
- package/esm/funcs/invoices-get-customer-invoice-summary.js.map +1 -1
- package/esm/funcs/invoices-get-invoice-pdf.d.ts.map +1 -1
- package/esm/funcs/invoices-get-invoice-pdf.js +2 -1
- package/esm/funcs/invoices-get-invoice-pdf.js.map +1 -1
- package/esm/funcs/invoices-get-invoice-preview.d.ts.map +1 -1
- package/esm/funcs/invoices-get-invoice-preview.js +2 -1
- package/esm/funcs/invoices-get-invoice-preview.js.map +1 -1
- package/esm/funcs/invoices-get-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-get-invoice.js +2 -1
- package/esm/funcs/invoices-get-invoice.js.map +1 -1
- package/esm/funcs/invoices-get-meter-usage-preview-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-get-meter-usage-preview-invoice.js +2 -1
- package/esm/funcs/invoices-get-meter-usage-preview-invoice.js.map +1 -1
- package/esm/funcs/invoices-query-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-query-invoice.js +2 -1
- package/esm/funcs/invoices-query-invoice.js.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.d.ts.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.js +2 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.js.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice.js +2 -1
- package/esm/funcs/invoices-recalculate-invoice.js.map +1 -1
- package/esm/funcs/invoices-trigger-invoice-comms-webhook.d.ts.map +1 -1
- package/esm/funcs/invoices-trigger-invoice-comms-webhook.js +2 -1
- package/esm/funcs/invoices-trigger-invoice-comms-webhook.js.map +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.d.ts.map +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.js +2 -1
- package/esm/funcs/invoices-update-invoice-payment-status.js.map +1 -1
- package/esm/funcs/invoices-update-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-update-invoice.js +2 -1
- package/esm/funcs/invoices-update-invoice.js.map +1 -1
- package/esm/funcs/invoices-void-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-void-invoice.js +2 -1
- package/esm/funcs/invoices-void-invoice.js.map +1 -1
- package/esm/funcs/meter-usage-get-meter-usage-analytics.d.ts.map +1 -1
- package/esm/funcs/meter-usage-get-meter-usage-analytics.js +2 -1
- package/esm/funcs/meter-usage-get-meter-usage-analytics.js.map +1 -1
- package/esm/funcs/meter-usage-query-meter-usage.d.ts.map +1 -1
- package/esm/funcs/meter-usage-query-meter-usage.js +2 -1
- package/esm/funcs/meter-usage-query-meter-usage.js.map +1 -1
- package/esm/funcs/payments-create-payment.d.ts.map +1 -1
- package/esm/funcs/payments-create-payment.js +2 -1
- package/esm/funcs/payments-create-payment.js.map +1 -1
- package/esm/funcs/payments-delete-payment.d.ts.map +1 -1
- package/esm/funcs/payments-delete-payment.js +2 -1
- package/esm/funcs/payments-delete-payment.js.map +1 -1
- package/esm/funcs/payments-get-payment.d.ts.map +1 -1
- package/esm/funcs/payments-get-payment.js +2 -1
- package/esm/funcs/payments-get-payment.js.map +1 -1
- package/esm/funcs/payments-list-payments.d.ts.map +1 -1
- package/esm/funcs/payments-list-payments.js +2 -1
- package/esm/funcs/payments-list-payments.js.map +1 -1
- package/esm/funcs/payments-process-payment.d.ts.map +1 -1
- package/esm/funcs/payments-process-payment.js +2 -1
- package/esm/funcs/payments-process-payment.js.map +1 -1
- package/esm/funcs/payments-update-payment.d.ts.map +1 -1
- package/esm/funcs/payments-update-payment.js +2 -1
- package/esm/funcs/payments-update-payment.js.map +1 -1
- package/esm/funcs/{plans-post-plans-id-clone.d.ts → plans-clone-plan.d.ts} +2 -2
- package/esm/funcs/plans-clone-plan.d.ts.map +1 -0
- package/esm/funcs/{plans-post-plans-id-clone.js → plans-clone-plan.js} +6 -5
- package/esm/funcs/plans-clone-plan.js.map +1 -0
- package/esm/funcs/plans-create-plan.d.ts.map +1 -1
- package/esm/funcs/plans-create-plan.js +2 -1
- package/esm/funcs/plans-create-plan.js.map +1 -1
- package/esm/funcs/plans-delete-plan.d.ts.map +1 -1
- package/esm/funcs/plans-delete-plan.js +2 -1
- package/esm/funcs/plans-delete-plan.js.map +1 -1
- package/esm/funcs/plans-get-plan.d.ts.map +1 -1
- package/esm/funcs/plans-get-plan.js +2 -1
- package/esm/funcs/plans-get-plan.js.map +1 -1
- package/esm/funcs/plans-query-plan.d.ts.map +1 -1
- package/esm/funcs/plans-query-plan.js +2 -1
- package/esm/funcs/plans-query-plan.js.map +1 -1
- package/esm/funcs/plans-sync-plan-prices.d.ts.map +1 -1
- package/esm/funcs/plans-sync-plan-prices.js +2 -1
- package/esm/funcs/plans-sync-plan-prices.js.map +1 -1
- package/esm/funcs/plans-update-plan.d.ts.map +1 -1
- package/esm/funcs/plans-update-plan.js +2 -1
- package/esm/funcs/plans-update-plan.js.map +1 -1
- package/esm/funcs/price-units-create-price-unit.d.ts.map +1 -1
- package/esm/funcs/price-units-create-price-unit.js +2 -1
- package/esm/funcs/price-units-create-price-unit.js.map +1 -1
- package/esm/funcs/price-units-delete-price-unit.d.ts.map +1 -1
- package/esm/funcs/price-units-delete-price-unit.js +2 -1
- package/esm/funcs/price-units-delete-price-unit.js.map +1 -1
- package/esm/funcs/price-units-get-price-unit-by-code.d.ts.map +1 -1
- package/esm/funcs/price-units-get-price-unit-by-code.js +2 -1
- package/esm/funcs/price-units-get-price-unit-by-code.js.map +1 -1
- package/esm/funcs/price-units-get-price-unit.d.ts.map +1 -1
- package/esm/funcs/price-units-get-price-unit.js +2 -1
- package/esm/funcs/price-units-get-price-unit.js.map +1 -1
- package/esm/funcs/price-units-list-price-units.d.ts.map +1 -1
- package/esm/funcs/price-units-list-price-units.js +2 -1
- package/esm/funcs/price-units-list-price-units.js.map +1 -1
- package/esm/funcs/price-units-query-price-unit.d.ts.map +1 -1
- package/esm/funcs/price-units-query-price-unit.js +2 -1
- package/esm/funcs/price-units-query-price-unit.js.map +1 -1
- package/esm/funcs/price-units-update-price-unit.d.ts.map +1 -1
- package/esm/funcs/price-units-update-price-unit.js +2 -1
- package/esm/funcs/price-units-update-price-unit.js.map +1 -1
- package/esm/funcs/prices-create-price.d.ts.map +1 -1
- package/esm/funcs/prices-create-price.js +2 -1
- package/esm/funcs/prices-create-price.js.map +1 -1
- package/esm/funcs/prices-create-prices-bulk.d.ts.map +1 -1
- package/esm/funcs/prices-create-prices-bulk.js +2 -1
- package/esm/funcs/prices-create-prices-bulk.js.map +1 -1
- package/esm/funcs/prices-delete-price.d.ts.map +1 -1
- package/esm/funcs/prices-delete-price.js +2 -1
- package/esm/funcs/prices-delete-price.js.map +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.d.ts.map +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.js +2 -1
- package/esm/funcs/prices-get-price-by-lookup-key.js.map +1 -1
- package/esm/funcs/prices-get-price.d.ts.map +1 -1
- package/esm/funcs/prices-get-price.js +2 -1
- package/esm/funcs/prices-get-price.js.map +1 -1
- package/esm/funcs/prices-query-price.d.ts.map +1 -1
- package/esm/funcs/prices-query-price.js +2 -1
- package/esm/funcs/prices-query-price.js.map +1 -1
- package/esm/funcs/prices-update-price.d.ts.map +1 -1
- package/esm/funcs/prices-update-price.js +2 -1
- package/esm/funcs/prices-update-price.js.map +1 -1
- package/esm/funcs/rbac-get-rbac-role.d.ts.map +1 -1
- package/esm/funcs/rbac-get-rbac-role.js +2 -1
- package/esm/funcs/rbac-get-rbac-role.js.map +1 -1
- package/esm/funcs/rbac-list-rbac-roles.d.ts.map +1 -1
- package/esm/funcs/rbac-list-rbac-roles.js +2 -1
- package/esm/funcs/rbac-list-rbac-roles.js.map +1 -1
- package/esm/funcs/scheduled-tasks-create-scheduled-task.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-create-scheduled-task.js +2 -1
- package/esm/funcs/scheduled-tasks-create-scheduled-task.js.map +1 -1
- package/esm/funcs/scheduled-tasks-delete-scheduled-task.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-delete-scheduled-task.js +2 -1
- package/esm/funcs/scheduled-tasks-delete-scheduled-task.js.map +1 -1
- package/esm/funcs/scheduled-tasks-get-scheduled-task.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-get-scheduled-task.js +2 -1
- package/esm/funcs/scheduled-tasks-get-scheduled-task.js.map +1 -1
- package/esm/funcs/scheduled-tasks-list-scheduled-tasks.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-list-scheduled-tasks.js +2 -1
- package/esm/funcs/scheduled-tasks-list-scheduled-tasks.js.map +1 -1
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js +2 -1
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js.map +1 -1
- package/esm/funcs/scheduled-tasks-schedule-update-billing-period.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-schedule-update-billing-period.js +2 -1
- package/esm/funcs/scheduled-tasks-schedule-update-billing-period.js.map +1 -1
- package/esm/funcs/scheduled-tasks-trigger-scheduled-task-run.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-trigger-scheduled-task-run.js +2 -1
- package/esm/funcs/scheduled-tasks-trigger-scheduled-task-run.js.map +1 -1
- package/esm/funcs/scheduled-tasks-update-scheduled-task.d.ts.map +1 -1
- package/esm/funcs/scheduled-tasks-update-scheduled-task.js +2 -1
- package/esm/funcs/scheduled-tasks-update-scheduled-task.js.map +1 -1
- package/esm/funcs/secrets-create-api-key.d.ts.map +1 -1
- package/esm/funcs/secrets-create-api-key.js +2 -1
- package/esm/funcs/secrets-create-api-key.js.map +1 -1
- package/esm/funcs/secrets-delete-api-key.d.ts.map +1 -1
- package/esm/funcs/secrets-delete-api-key.js +2 -1
- package/esm/funcs/secrets-delete-api-key.js.map +1 -1
- package/esm/funcs/secrets-list-api-keys.d.ts.map +1 -1
- package/esm/funcs/secrets-list-api-keys.js +2 -1
- package/esm/funcs/secrets-list-api-keys.js.map +1 -1
- package/esm/funcs/subscriptions-activate-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-activate-subscription.js +2 -1
- package/esm/funcs/subscriptions-activate-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-add-subscription-addon.d.ts.map +1 -1
- package/esm/funcs/subscriptions-add-subscription-addon.js +2 -1
- package/esm/funcs/subscriptions-add-subscription-addon.js.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription-schedule.d.ts.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription-schedule.js +2 -1
- package/esm/funcs/subscriptions-cancel-subscription-schedule.js.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription.js +2 -1
- package/esm/funcs/subscriptions-cancel-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-create-subscription-line-item.d.ts.map +1 -1
- package/esm/funcs/subscriptions-create-subscription-line-item.js +2 -1
- package/esm/funcs/subscriptions-create-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-create-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-create-subscription.js +2 -1
- package/esm/funcs/subscriptions-create-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-delete-subscription-line-item.d.ts.map +1 -1
- package/esm/funcs/subscriptions-delete-subscription-line-item.js +2 -1
- package/esm/funcs/subscriptions-delete-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-change.d.ts.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-change.js +2 -1
- package/esm/funcs/subscriptions-execute-subscription-change.js.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.d.ts.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js +2 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-addon-associations.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-addon-associations.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-addon-associations.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-entitlements.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-entitlements.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-entitlements.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-schedule.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-schedule.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-schedule.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-upcoming-grants.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-upcoming-grants.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-upcoming-grants.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-usage.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-usage.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-usage.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-v2.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-v2.js +2 -1
- package/esm/funcs/subscriptions-get-subscription-v2.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription.js +2 -1
- package/esm/funcs/subscriptions-get-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-list-all-subscription-schedules.d.ts.map +1 -1
- package/esm/funcs/subscriptions-list-all-subscription-schedules.js +2 -1
- package/esm/funcs/subscriptions-list-all-subscription-schedules.js.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-pauses.d.ts.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-pauses.js +2 -1
- package/esm/funcs/subscriptions-list-subscription-pauses.js.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-schedules.d.ts.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-schedules.js +2 -1
- package/esm/funcs/subscriptions-list-subscription-schedules.js.map +1 -1
- package/esm/funcs/subscriptions-pause-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-pause-subscription.js +2 -1
- package/esm/funcs/subscriptions-pause-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-preview-subscription-change.d.ts.map +1 -1
- package/esm/funcs/subscriptions-preview-subscription-change.js +2 -1
- package/esm/funcs/subscriptions-preview-subscription-change.js.map +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.d.ts.map +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.js +2 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.js.map +1 -1
- package/esm/funcs/subscriptions-query-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-query-subscription.js +2 -1
- package/esm/funcs/subscriptions-query-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-remove-subscription-addon.d.ts.map +1 -1
- package/esm/funcs/subscriptions-remove-subscription-addon.js +2 -1
- package/esm/funcs/subscriptions-remove-subscription-addon.js.map +1 -1
- package/esm/funcs/subscriptions-resume-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-resume-subscription.js +2 -1
- package/esm/funcs/subscriptions-resume-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-update-subscription-line-item.d.ts.map +1 -1
- package/esm/funcs/subscriptions-update-subscription-line-item.js +2 -1
- package/esm/funcs/subscriptions-update-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-update-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-update-subscription.js +2 -1
- package/esm/funcs/subscriptions-update-subscription.js.map +1 -1
- package/esm/funcs/tasks-create-task.d.ts.map +1 -1
- package/esm/funcs/tasks-create-task.js +2 -1
- package/esm/funcs/tasks-create-task.js.map +1 -1
- package/esm/funcs/tasks-download-task-export.d.ts.map +1 -1
- package/esm/funcs/tasks-download-task-export.js +2 -1
- package/esm/funcs/tasks-download-task-export.js.map +1 -1
- package/esm/funcs/tasks-get-task-result.d.ts.map +1 -1
- package/esm/funcs/tasks-get-task-result.js +2 -1
- package/esm/funcs/tasks-get-task-result.js.map +1 -1
- package/esm/funcs/tasks-get-task.d.ts.map +1 -1
- package/esm/funcs/tasks-get-task.js +2 -1
- package/esm/funcs/tasks-get-task.js.map +1 -1
- package/esm/funcs/tasks-list-tasks.d.ts.map +1 -1
- package/esm/funcs/tasks-list-tasks.js +2 -1
- package/esm/funcs/tasks-list-tasks.js.map +1 -1
- package/esm/funcs/tasks-update-task-status.d.ts.map +1 -1
- package/esm/funcs/tasks-update-task-status.js +2 -1
- package/esm/funcs/tasks-update-task-status.js.map +1 -1
- package/esm/funcs/tax-associations-create-tax-association.d.ts.map +1 -1
- package/esm/funcs/tax-associations-create-tax-association.js +2 -1
- package/esm/funcs/tax-associations-create-tax-association.js.map +1 -1
- package/esm/funcs/tax-associations-delete-tax-association.d.ts.map +1 -1
- package/esm/funcs/tax-associations-delete-tax-association.js +2 -1
- package/esm/funcs/tax-associations-delete-tax-association.js.map +1 -1
- package/esm/funcs/tax-associations-get-tax-association.d.ts.map +1 -1
- package/esm/funcs/tax-associations-get-tax-association.js +2 -1
- package/esm/funcs/tax-associations-get-tax-association.js.map +1 -1
- package/esm/funcs/tax-associations-list-tax-associations.d.ts.map +1 -1
- package/esm/funcs/tax-associations-list-tax-associations.js +2 -1
- package/esm/funcs/tax-associations-list-tax-associations.js.map +1 -1
- package/esm/funcs/tax-associations-update-tax-association.d.ts.map +1 -1
- package/esm/funcs/tax-associations-update-tax-association.js +2 -1
- package/esm/funcs/tax-associations-update-tax-association.js.map +1 -1
- package/esm/funcs/tax-rates-create-tax-rate.d.ts.map +1 -1
- package/esm/funcs/tax-rates-create-tax-rate.js +2 -1
- package/esm/funcs/tax-rates-create-tax-rate.js.map +1 -1
- package/esm/funcs/tax-rates-delete-tax-rate.d.ts.map +1 -1
- package/esm/funcs/tax-rates-delete-tax-rate.js +2 -1
- package/esm/funcs/tax-rates-delete-tax-rate.js.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rate.d.ts.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rate.js +2 -1
- package/esm/funcs/tax-rates-get-tax-rate.js.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.d.ts.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.js +2 -1
- package/esm/funcs/tax-rates-get-tax-rates.js.map +1 -1
- package/esm/funcs/tax-rates-update-tax-rate.d.ts.map +1 -1
- package/esm/funcs/tax-rates-update-tax-rate.js +2 -1
- package/esm/funcs/tax-rates-update-tax-rate.js.map +1 -1
- package/esm/funcs/tenants-get-tenant-billing-usage.d.ts.map +1 -1
- package/esm/funcs/tenants-get-tenant-billing-usage.js +2 -1
- package/esm/funcs/tenants-get-tenant-billing-usage.js.map +1 -1
- package/esm/funcs/tenants-get-tenant-by-id.d.ts.map +1 -1
- package/esm/funcs/tenants-get-tenant-by-id.js +2 -1
- package/esm/funcs/tenants-get-tenant-by-id.js.map +1 -1
- package/esm/funcs/tenants-update-tenant.d.ts.map +1 -1
- package/esm/funcs/tenants-update-tenant.js +2 -1
- package/esm/funcs/tenants-update-tenant.js.map +1 -1
- package/esm/funcs/users-create-user.d.ts.map +1 -1
- package/esm/funcs/users-create-user.js +2 -1
- package/esm/funcs/users-create-user.js.map +1 -1
- package/esm/funcs/users-get-user-info.d.ts.map +1 -1
- package/esm/funcs/users-get-user-info.js +2 -1
- package/esm/funcs/users-get-user-info.js.map +1 -1
- package/esm/funcs/users-query-user.d.ts.map +1 -1
- package/esm/funcs/users-query-user.js +2 -1
- package/esm/funcs/users-query-user.js.map +1 -1
- package/esm/funcs/wallets-create-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-create-wallet.js +2 -1
- package/esm/funcs/wallets-create-wallet.js.map +1 -1
- package/esm/funcs/wallets-get-customer-wallets.d.ts.map +1 -1
- package/esm/funcs/wallets-get-customer-wallets.js +2 -1
- package/esm/funcs/wallets-get-customer-wallets.js.map +1 -1
- package/esm/funcs/wallets-get-wallet-balance.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallet-balance.js +2 -1
- package/esm/funcs/wallets-get-wallet-balance.js.map +1 -1
- package/esm/funcs/wallets-get-wallet-transactions.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallet-transactions.js +2 -1
- package/esm/funcs/wallets-get-wallet-transactions.js.map +1 -1
- package/esm/funcs/wallets-get-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallet.js +2 -1
- package/esm/funcs/wallets-get-wallet.js.map +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.js +2 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.js.map +1 -1
- package/esm/funcs/wallets-query-wallet-transaction.d.ts.map +1 -1
- package/esm/funcs/wallets-query-wallet-transaction.js +2 -1
- package/esm/funcs/wallets-query-wallet-transaction.js.map +1 -1
- package/esm/funcs/wallets-query-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-query-wallet.js +2 -1
- package/esm/funcs/wallets-query-wallet.js.map +1 -1
- package/esm/funcs/wallets-terminate-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-terminate-wallet.js +2 -1
- package/esm/funcs/wallets-terminate-wallet.js.map +1 -1
- package/esm/funcs/wallets-top-up-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-top-up-wallet.js +2 -1
- package/esm/funcs/wallets-top-up-wallet.js.map +1 -1
- package/esm/funcs/wallets-update-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-update-wallet.js +2 -1
- package/esm/funcs/wallets-update-wallet.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.d.ts.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.js +2 -1
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.js.map +1 -1
- package/esm/funcs/workflows-query-workflow.d.ts.map +1 -1
- package/esm/funcs/workflows-query-workflow.js +2 -1
- package/esm/funcs/workflows-query-workflow.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +3 -3
- package/esm/lib/sdks.js.map +1 -1
- package/esm/sdk/environments.d.ts +12 -0
- package/esm/sdk/environments.d.ts.map +1 -0
- package/esm/sdk/environments.js +18 -0
- package/esm/sdk/environments.js.map +1 -0
- package/esm/sdk/features.d.ts +7 -0
- package/esm/sdk/features.d.ts.map +1 -1
- package/esm/sdk/features.js +10 -0
- package/esm/sdk/features.js.map +1 -1
- package/esm/sdk/models/changed-invoice-action.d.ts +16 -0
- package/esm/sdk/models/changed-invoice-action.d.ts.map +1 -0
- package/esm/sdk/models/changed-invoice-action.js +14 -0
- package/esm/sdk/models/changed-invoice-action.js.map +1 -0
- package/esm/sdk/models/changed-invoice-status.d.ts +16 -0
- package/esm/sdk/models/changed-invoice-status.d.ts.map +1 -0
- package/esm/sdk/models/changed-invoice-status.js +14 -0
- package/esm/sdk/models/changed-invoice-status.js.map +1 -0
- package/esm/sdk/models/changed-invoice.d.ts +12 -3
- package/esm/sdk/models/changed-invoice.d.ts.map +1 -1
- package/esm/sdk/models/changed-invoice.js +15 -4
- package/esm/sdk/models/changed-invoice.js.map +1 -1
- package/esm/sdk/models/changed-line-item-action.d.ts +17 -0
- package/esm/sdk/models/changed-line-item-action.d.ts.map +1 -0
- package/esm/sdk/models/changed-line-item-action.js +15 -0
- package/esm/sdk/models/changed-line-item-action.js.map +1 -0
- package/esm/sdk/models/changed-line-item.d.ts +3 -2
- package/esm/sdk/models/changed-line-item.d.ts.map +1 -1
- package/esm/sdk/models/changed-line-item.js +2 -1
- package/esm/sdk/models/changed-line-item.js.map +1 -1
- package/esm/sdk/models/changed-subscription-action.d.ts +16 -0
- package/esm/sdk/models/changed-subscription-action.d.ts.map +1 -0
- package/esm/sdk/models/changed-subscription-action.js +14 -0
- package/esm/sdk/models/changed-subscription-action.js.map +1 -0
- package/esm/sdk/models/changed-subscription.d.ts +3 -2
- package/esm/sdk/models/changed-subscription.d.ts.map +1 -1
- package/esm/sdk/models/changed-subscription.js +2 -1
- package/esm/sdk/models/changed-subscription.js.map +1 -1
- package/esm/sdk/models/clone-environment-op.d.ts +21 -0
- package/esm/sdk/models/clone-environment-op.d.ts.map +1 -0
- package/esm/sdk/models/clone-environment-op.js +14 -0
- package/esm/sdk/models/clone-environment-op.js.map +1 -0
- package/esm/sdk/models/clone-environment-request.d.ts +26 -0
- package/esm/sdk/models/clone-environment-request.d.ts.map +1 -0
- package/esm/sdk/models/clone-environment-request.js +20 -0
- package/esm/sdk/models/clone-environment-request.js.map +1 -0
- package/esm/sdk/models/clone-feature-op.d.ts +21 -0
- package/esm/sdk/models/clone-feature-op.d.ts.map +1 -0
- package/esm/sdk/models/clone-feature-op.js +14 -0
- package/esm/sdk/models/clone-feature-op.js.map +1 -0
- package/esm/sdk/models/clone-feature-request.d.ts +31 -0
- package/esm/sdk/models/clone-feature-request.d.ts.map +1 -0
- package/esm/sdk/models/clone-feature-request.js +20 -0
- package/esm/sdk/models/clone-feature-request.js.map +1 -0
- package/esm/sdk/models/clone-plan-op.d.ts +21 -0
- package/esm/sdk/models/clone-plan-op.d.ts.map +1 -0
- package/esm/sdk/models/{post-plans-id-clone-op.js → clone-plan-op.js} +4 -4
- package/esm/sdk/models/clone-plan-op.js.map +1 -0
- package/esm/sdk/models/create-subscription-request.d.ts +10 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +2 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/environment-type.d.ts +10 -0
- package/esm/sdk/models/environment-type.d.ts.map +1 -0
- package/esm/sdk/models/environment-type.js +11 -0
- package/esm/sdk/models/environment-type.js.map +1 -0
- package/esm/sdk/models/index.d.ts +10 -1
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +10 -1
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/plans.d.ts +1 -1
- package/esm/sdk/plans.d.ts.map +1 -1
- package/esm/sdk/plans.js +3 -3
- package/esm/sdk/plans.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/addons-create-addon.ts +3 -1
- package/src/funcs/addons-delete-addon.ts +3 -1
- package/src/funcs/addons-get-addon-by-lookup-key.ts +3 -1
- package/src/funcs/addons-get-addon.ts +3 -1
- package/src/funcs/addons-query-addon.ts +3 -1
- package/src/funcs/addons-update-addon.ts +3 -1
- package/src/funcs/alerts-query-alert-log.ts +3 -1
- package/src/funcs/costs-create-costsheet.ts +3 -1
- package/src/funcs/costs-delete-costsheet.ts +3 -1
- package/src/funcs/costs-get-active-costsheet.ts +3 -1
- package/src/funcs/costs-get-costsheet.ts +3 -1
- package/src/funcs/costs-get-detailed-cost-analytics-v2.ts +3 -1
- package/src/funcs/costs-get-detailed-cost-analytics.ts +3 -1
- package/src/funcs/costs-query-costsheet.ts +3 -1
- package/src/funcs/costs-update-costsheet.ts +3 -1
- package/src/funcs/coupons-create-coupon.ts +3 -1
- package/src/funcs/coupons-delete-coupon.ts +3 -1
- package/src/funcs/coupons-get-coupon.ts +3 -1
- package/src/funcs/coupons-query-coupon.ts +3 -1
- package/src/funcs/coupons-update-coupon.ts +3 -1
- package/src/funcs/credit-grants-create-credit-grant.ts +3 -1
- package/src/funcs/credit-grants-delete-credit-grant.ts +3 -1
- package/src/funcs/credit-grants-get-credit-grant.ts +3 -1
- package/src/funcs/credit-grants-get-plan-credit-grants.ts +3 -1
- package/src/funcs/credit-grants-update-credit-grant.ts +3 -1
- package/src/funcs/credit-notes-create-credit-note.ts +3 -1
- package/src/funcs/credit-notes-get-credit-note.ts +3 -1
- package/src/funcs/credit-notes-process-credit-note.ts +3 -1
- package/src/funcs/credit-notes-void-credit-note.ts +3 -1
- package/src/funcs/customers-create-customer.ts +3 -1
- package/src/funcs/customers-delete-customer.ts +3 -1
- package/src/funcs/customers-get-customer-by-external-id.ts +3 -1
- package/src/funcs/customers-get-customer-entitlements.ts +3 -1
- package/src/funcs/customers-get-customer-upcoming-grants.ts +3 -1
- package/src/funcs/customers-get-customer-usage-summary.ts +3 -1
- package/src/funcs/customers-get-customer.ts +3 -1
- package/src/funcs/customers-query-customer.ts +3 -1
- package/src/funcs/customers-update-customer.ts +3 -1
- package/src/funcs/entitlements-create-entitlement.ts +3 -1
- package/src/funcs/entitlements-create-entitlements-bulk.ts +3 -1
- package/src/funcs/entitlements-delete-entitlement.ts +3 -1
- package/src/funcs/entitlements-get-addon-entitlements.ts +3 -1
- package/src/funcs/entitlements-get-entitlement.ts +3 -1
- package/src/funcs/entitlements-get-plan-entitlements.ts +3 -1
- package/src/funcs/entitlements-query-entitlement.ts +3 -1
- package/src/funcs/entitlements-update-entitlement.ts +3 -1
- package/src/funcs/environments-clone-environment.ts +187 -0
- package/src/funcs/events-get-event.ts +3 -1
- package/src/funcs/events-get-huggingface-inference-data.ts +3 -1
- package/src/funcs/events-get-usage-analytics.ts +3 -1
- package/src/funcs/events-get-usage-by-meter.ts +3 -1
- package/src/funcs/events-get-usage-statistics.ts +3 -1
- package/src/funcs/events-ingest-event.ts +3 -1
- package/src/funcs/events-ingest-events-bulk.ts +3 -1
- package/src/funcs/events-list-raw-events.ts +3 -1
- package/src/funcs/features-clone-feature.ts +186 -0
- package/src/funcs/features-create-feature.ts +3 -1
- package/src/funcs/features-delete-feature.ts +3 -1
- package/src/funcs/features-query-feature.ts +3 -1
- package/src/funcs/features-update-feature.ts +3 -1
- package/src/funcs/groups-create-group.ts +3 -1
- package/src/funcs/groups-delete-group.ts +3 -1
- package/src/funcs/groups-get-group.ts +3 -1
- package/src/funcs/groups-query-group.ts +3 -1
- package/src/funcs/integrations-link-integration-mapping.ts +3 -1
- package/src/funcs/invoices-attempt-invoice-payment.ts +3 -1
- package/src/funcs/invoices-create-invoice.ts +3 -1
- package/src/funcs/invoices-finalize-invoice.ts +3 -1
- package/src/funcs/invoices-get-customer-invoice-summary.ts +3 -1
- package/src/funcs/invoices-get-invoice-pdf.ts +3 -1
- package/src/funcs/invoices-get-invoice-preview.ts +3 -1
- package/src/funcs/invoices-get-invoice.ts +3 -1
- package/src/funcs/invoices-get-meter-usage-preview-invoice.ts +3 -1
- package/src/funcs/invoices-query-invoice.ts +3 -1
- package/src/funcs/invoices-recalculate-invoice-v2.ts +3 -1
- package/src/funcs/invoices-recalculate-invoice.ts +3 -1
- package/src/funcs/invoices-trigger-invoice-comms-webhook.ts +3 -1
- package/src/funcs/invoices-update-invoice-payment-status.ts +3 -1
- package/src/funcs/invoices-update-invoice.ts +3 -1
- package/src/funcs/invoices-void-invoice.ts +3 -1
- package/src/funcs/meter-usage-get-meter-usage-analytics.ts +3 -1
- package/src/funcs/meter-usage-query-meter-usage.ts +3 -1
- package/src/funcs/payments-create-payment.ts +3 -1
- package/src/funcs/payments-delete-payment.ts +3 -1
- package/src/funcs/payments-get-payment.ts +3 -1
- package/src/funcs/payments-list-payments.ts +3 -1
- package/src/funcs/payments-process-payment.ts +3 -1
- package/src/funcs/payments-update-payment.ts +3 -1
- package/src/funcs/{plans-post-plans-id-clone.ts → plans-clone-plan.ts} +7 -5
- package/src/funcs/plans-create-plan.ts +3 -1
- package/src/funcs/plans-delete-plan.ts +3 -1
- package/src/funcs/plans-get-plan.ts +3 -1
- package/src/funcs/plans-query-plan.ts +3 -1
- package/src/funcs/plans-sync-plan-prices.ts +3 -1
- package/src/funcs/plans-update-plan.ts +3 -1
- package/src/funcs/price-units-create-price-unit.ts +3 -1
- package/src/funcs/price-units-delete-price-unit.ts +3 -1
- package/src/funcs/price-units-get-price-unit-by-code.ts +3 -1
- package/src/funcs/price-units-get-price-unit.ts +3 -1
- package/src/funcs/price-units-list-price-units.ts +3 -1
- package/src/funcs/price-units-query-price-unit.ts +3 -1
- package/src/funcs/price-units-update-price-unit.ts +3 -1
- package/src/funcs/prices-create-price.ts +3 -1
- package/src/funcs/prices-create-prices-bulk.ts +3 -1
- package/src/funcs/prices-delete-price.ts +3 -1
- package/src/funcs/prices-get-price-by-lookup-key.ts +3 -1
- package/src/funcs/prices-get-price.ts +3 -1
- package/src/funcs/prices-query-price.ts +3 -1
- package/src/funcs/prices-update-price.ts +3 -1
- package/src/funcs/rbac-get-rbac-role.ts +3 -1
- package/src/funcs/rbac-list-rbac-roles.ts +3 -1
- package/src/funcs/scheduled-tasks-create-scheduled-task.ts +3 -1
- package/src/funcs/scheduled-tasks-delete-scheduled-task.ts +3 -1
- package/src/funcs/scheduled-tasks-get-scheduled-task.ts +3 -1
- package/src/funcs/scheduled-tasks-list-scheduled-tasks.ts +3 -1
- package/src/funcs/scheduled-tasks-schedule-draft-finalization.ts +3 -1
- package/src/funcs/scheduled-tasks-schedule-update-billing-period.ts +3 -1
- package/src/funcs/scheduled-tasks-trigger-scheduled-task-run.ts +3 -1
- package/src/funcs/scheduled-tasks-update-scheduled-task.ts +3 -1
- package/src/funcs/secrets-create-api-key.ts +3 -1
- package/src/funcs/secrets-delete-api-key.ts +3 -1
- package/src/funcs/secrets-list-api-keys.ts +3 -1
- package/src/funcs/subscriptions-activate-subscription.ts +3 -1
- package/src/funcs/subscriptions-add-subscription-addon.ts +3 -1
- package/src/funcs/subscriptions-cancel-subscription-schedule.ts +3 -1
- package/src/funcs/subscriptions-cancel-subscription.ts +3 -1
- package/src/funcs/subscriptions-create-subscription-line-item.ts +3 -1
- package/src/funcs/subscriptions-create-subscription.ts +3 -1
- package/src/funcs/subscriptions-delete-subscription-line-item.ts +3 -1
- package/src/funcs/subscriptions-execute-subscription-change.ts +3 -1
- package/src/funcs/subscriptions-execute-subscription-modify.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-addon-associations.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-entitlements.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-schedule.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-upcoming-grants.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-usage.ts +3 -1
- package/src/funcs/subscriptions-get-subscription-v2.ts +3 -1
- package/src/funcs/subscriptions-get-subscription.ts +3 -1
- package/src/funcs/subscriptions-list-all-subscription-schedules.ts +3 -1
- package/src/funcs/subscriptions-list-subscription-pauses.ts +3 -1
- package/src/funcs/subscriptions-list-subscription-schedules.ts +3 -1
- package/src/funcs/subscriptions-pause-subscription.ts +3 -1
- package/src/funcs/subscriptions-preview-subscription-change.ts +3 -1
- package/src/funcs/subscriptions-preview-subscription-modify.ts +3 -1
- package/src/funcs/subscriptions-query-subscription.ts +3 -1
- package/src/funcs/subscriptions-remove-subscription-addon.ts +3 -1
- package/src/funcs/subscriptions-resume-subscription.ts +3 -1
- package/src/funcs/subscriptions-update-subscription-line-item.ts +3 -1
- package/src/funcs/subscriptions-update-subscription.ts +3 -1
- package/src/funcs/tasks-create-task.ts +3 -1
- package/src/funcs/tasks-download-task-export.ts +3 -1
- package/src/funcs/tasks-get-task-result.ts +3 -1
- package/src/funcs/tasks-get-task.ts +3 -1
- package/src/funcs/tasks-list-tasks.ts +3 -1
- package/src/funcs/tasks-update-task-status.ts +3 -1
- package/src/funcs/tax-associations-create-tax-association.ts +3 -1
- package/src/funcs/tax-associations-delete-tax-association.ts +3 -1
- package/src/funcs/tax-associations-get-tax-association.ts +3 -1
- package/src/funcs/tax-associations-list-tax-associations.ts +3 -1
- package/src/funcs/tax-associations-update-tax-association.ts +3 -1
- package/src/funcs/tax-rates-create-tax-rate.ts +3 -1
- package/src/funcs/tax-rates-delete-tax-rate.ts +3 -1
- package/src/funcs/tax-rates-get-tax-rate.ts +3 -1
- package/src/funcs/tax-rates-get-tax-rates.ts +3 -1
- package/src/funcs/tax-rates-update-tax-rate.ts +3 -1
- package/src/funcs/tenants-get-tenant-billing-usage.ts +3 -1
- package/src/funcs/tenants-get-tenant-by-id.ts +3 -1
- package/src/funcs/tenants-update-tenant.ts +3 -1
- package/src/funcs/users-create-user.ts +3 -1
- package/src/funcs/users-get-user-info.ts +3 -1
- package/src/funcs/users-query-user.ts +3 -1
- package/src/funcs/wallets-create-wallet.ts +3 -1
- package/src/funcs/wallets-get-customer-wallets.ts +3 -1
- package/src/funcs/wallets-get-wallet-balance.ts +3 -1
- package/src/funcs/wallets-get-wallet-transactions.ts +3 -1
- package/src/funcs/wallets-get-wallet.ts +3 -1
- package/src/funcs/wallets-get-wallets-by-customer-id.ts +3 -1
- package/src/funcs/wallets-query-wallet-transaction.ts +3 -1
- package/src/funcs/wallets-query-wallet.ts +3 -1
- package/src/funcs/wallets-terminate-wallet.ts +3 -1
- package/src/funcs/wallets-top-up-wallet.ts +3 -1
- package/src/funcs/wallets-update-wallet.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-credit-note-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-credit-note-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-customer-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-customer-deleted.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-customer-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-entitlement-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-entitlement-deleted.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-entitlement-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-feature-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-feature-deleted.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-feature-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-finalized.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-payment.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-voided.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-invoice-update.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-payment-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-payment-failed.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-payment-pending.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-payment-success.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-payment-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-activated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-cancelled.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-draft-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-paused.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-renewal-due.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-resumed.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-subscription-updated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-terminated.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-transaction-created.ts +3 -1
- package/src/funcs/webhook-events-post-webhook-events-wallet-updated.ts +3 -1
- package/src/funcs/workflows-query-workflow.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +3 -4
- package/src/sdk/environments.ts +29 -0
- package/src/sdk/features.ts +20 -0
- package/src/sdk/models/changed-invoice-action.ts +25 -0
- package/src/sdk/models/changed-invoice-status.ts +25 -0
- package/src/sdk/models/changed-invoice.ts +39 -8
- package/src/sdk/models/changed-line-item-action.ts +26 -0
- package/src/sdk/models/changed-line-item.ts +7 -3
- package/src/sdk/models/changed-subscription-action.ts +27 -0
- package/src/sdk/models/changed-subscription.ts +7 -3
- package/src/sdk/models/clone-environment-op.ts +46 -0
- package/src/sdk/models/clone-environment-request.ts +57 -0
- package/src/sdk/models/clone-feature-op.ts +44 -0
- package/src/sdk/models/clone-feature-request.ts +56 -0
- package/src/sdk/models/{post-plans-id-clone-op.ts → clone-plan-op.ts} +8 -8
- package/src/sdk/models/create-subscription-request.ts +14 -0
- package/src/sdk/models/environment-type.ts +17 -0
- package/src/sdk/models/index.ts +10 -1
- package/src/sdk/plans.ts +3 -3
- package/src/sdk/sdk.ts +6 -0
- package/esm/funcs/plans-post-plans-id-clone.d.ts.map +0 -1
- package/esm/funcs/plans-post-plans-id-clone.js.map +0 -1
- package/esm/sdk/models/post-plans-id-clone-op.d.ts +0 -21
- package/esm/sdk/models/post-plans-id-clone-op.d.ts.map +0 -1
- package/esm/sdk/models/post-plans-id-clone-op.js.map +0 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { FlexpriceCore } from "../core.js";
|
|
7
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../sdk/models/http-client-errors.js";
|
|
23
|
+
import * as models from "../sdk/models/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Clone an environment
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Clone all published features and plans from the source environment into a target environment. If target_environment_id is provided, entities are cloned into that existing environment. Otherwise a new environment is created from name and type first.
|
|
34
|
+
*/
|
|
35
|
+
export function environmentsCloneEnvironment(
|
|
36
|
+
client: FlexpriceCore,
|
|
37
|
+
id: string,
|
|
38
|
+
body: models.CloneEnvironmentRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
models.ModelsTemporalWorkflowResult,
|
|
43
|
+
| models.ErrorsErrorResponse
|
|
44
|
+
| FlexPriceError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
id,
|
|
57
|
+
body,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: FlexpriceCore,
|
|
64
|
+
id: string,
|
|
65
|
+
body: models.CloneEnvironmentRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
models.ModelsTemporalWorkflowResult,
|
|
71
|
+
| models.ErrorsErrorResponse
|
|
72
|
+
| FlexPriceError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const input: models.CloneEnvironmentRequestRequest = {
|
|
85
|
+
id: id,
|
|
86
|
+
body: body,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const parsed = safeParse(
|
|
90
|
+
input,
|
|
91
|
+
(value) =>
|
|
92
|
+
z.parse(models.CloneEnvironmentRequestRequest$outboundSchema, value),
|
|
93
|
+
"Input validation failed",
|
|
94
|
+
);
|
|
95
|
+
if (!parsed.ok) {
|
|
96
|
+
return [parsed, { status: "invalid" }];
|
|
97
|
+
}
|
|
98
|
+
const payload = parsed.value;
|
|
99
|
+
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
100
|
+
|
|
101
|
+
const pathParams = {
|
|
102
|
+
id: encodeSimple("id", payload.id, {
|
|
103
|
+
explode: false,
|
|
104
|
+
charEncoding: "percent",
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
const path = pathToFunc("/environments/{id}/clone")(pathParams);
|
|
108
|
+
|
|
109
|
+
const headers = new Headers(compactMap({
|
|
110
|
+
"Content-Type": "application/json",
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
115
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
|
+
|
|
118
|
+
const context = {
|
|
119
|
+
options: client._options,
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
121
|
+
operationID: "cloneEnvironment",
|
|
122
|
+
oAuth2Scopes: null,
|
|
123
|
+
|
|
124
|
+
resolvedSecurity: requestSecurity,
|
|
125
|
+
|
|
126
|
+
securitySource: client._options.apiKeyAuth,
|
|
127
|
+
retryConfig: options?.retries
|
|
128
|
+
|| client._options.retryConfig
|
|
129
|
+
|| { strategy: "none" },
|
|
130
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const requestRes = client._createRequest(context, {
|
|
134
|
+
security: requestSecurity,
|
|
135
|
+
method: "POST",
|
|
136
|
+
baseURL: options?.serverURL,
|
|
137
|
+
path: path,
|
|
138
|
+
headers: headers,
|
|
139
|
+
body: body$,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
142
|
+
}, options);
|
|
143
|
+
if (!requestRes.ok) {
|
|
144
|
+
return [requestRes, { status: "invalid" }];
|
|
145
|
+
}
|
|
146
|
+
const req = requestRes.value;
|
|
147
|
+
|
|
148
|
+
const doResult = await client._do(req, {
|
|
149
|
+
context,
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
|
+
retryConfig: context.retryConfig,
|
|
153
|
+
retryCodes: context.retryCodes,
|
|
154
|
+
});
|
|
155
|
+
if (!doResult.ok) {
|
|
156
|
+
return [doResult, { status: "request-error", request: req }];
|
|
157
|
+
}
|
|
158
|
+
const response = doResult.value;
|
|
159
|
+
|
|
160
|
+
const responseFields = {
|
|
161
|
+
HttpMeta: { Response: response, Request: req },
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
const [result] = await M.match<
|
|
165
|
+
models.ModelsTemporalWorkflowResult,
|
|
166
|
+
| models.ErrorsErrorResponse
|
|
167
|
+
| FlexPriceError
|
|
168
|
+
| ResponseValidationError
|
|
169
|
+
| ConnectionError
|
|
170
|
+
| RequestAbortedError
|
|
171
|
+
| RequestTimeoutError
|
|
172
|
+
| InvalidRequestError
|
|
173
|
+
| UnexpectedClientError
|
|
174
|
+
| SDKValidationError
|
|
175
|
+
>(
|
|
176
|
+
M.json(202, models.ModelsTemporalWorkflowResult$inboundSchema),
|
|
177
|
+
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
178
|
+
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
179
|
+
M.fail("4XX"),
|
|
180
|
+
M.fail("5XX"),
|
|
181
|
+
)(response, req, { extraFields: responseFields });
|
|
182
|
+
if (!result.ok) {
|
|
183
|
+
return [result, { status: "complete", request: req, response }];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return [result, { status: "complete", request: req, response }];
|
|
187
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -140,7 +141,8 @@ async function $do(
|
|
|
140
141
|
|
|
141
142
|
const doResult = await client._do(req, {
|
|
142
143
|
context,
|
|
143
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
146
|
retryConfig: context.retryConfig,
|
|
145
147
|
retryCodes: context.retryCodes,
|
|
146
148
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FlexpriceCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -112,7 +113,8 @@ async function $do(
|
|
|
112
113
|
|
|
113
114
|
const doResult = await client._do(req, {
|
|
114
115
|
context,
|
|
115
|
-
|
|
116
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
117
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
116
118
|
retryConfig: context.retryConfig,
|
|
117
119
|
retryCodes: context.retryCodes,
|
|
118
120
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -132,7 +133,8 @@ async function $do(
|
|
|
132
133
|
|
|
133
134
|
const doResult = await client._do(req, {
|
|
134
135
|
context,
|
|
135
|
-
|
|
136
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
137
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
136
138
|
retryConfig: context.retryConfig,
|
|
137
139
|
retryCodes: context.retryCodes,
|
|
138
140
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -132,7 +133,8 @@ async function $do(
|
|
|
132
133
|
|
|
133
134
|
const doResult = await client._do(req, {
|
|
134
135
|
context,
|
|
135
|
-
|
|
136
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
137
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
136
138
|
retryConfig: context.retryConfig,
|
|
137
139
|
retryCodes: context.retryCodes,
|
|
138
140
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { FlexpriceCore } from "../core.js";
|
|
7
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../sdk/models/http-client-errors.js";
|
|
23
|
+
import * as models from "../sdk/models/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Clone a feature
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Clone an existing feature
|
|
34
|
+
*/
|
|
35
|
+
export function featuresCloneFeature(
|
|
36
|
+
client: FlexpriceCore,
|
|
37
|
+
id: string,
|
|
38
|
+
body: models.CloneFeatureRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
models.FeatureResponse,
|
|
43
|
+
| models.ErrorsErrorResponse
|
|
44
|
+
| FlexPriceError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
id,
|
|
57
|
+
body,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: FlexpriceCore,
|
|
64
|
+
id: string,
|
|
65
|
+
body: models.CloneFeatureRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
models.FeatureResponse,
|
|
71
|
+
| models.ErrorsErrorResponse
|
|
72
|
+
| FlexPriceError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const input: models.CloneFeatureRequestRequest = {
|
|
85
|
+
id: id,
|
|
86
|
+
body: body,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const parsed = safeParse(
|
|
90
|
+
input,
|
|
91
|
+
(value) => z.parse(models.CloneFeatureRequestRequest$outboundSchema, value),
|
|
92
|
+
"Input validation failed",
|
|
93
|
+
);
|
|
94
|
+
if (!parsed.ok) {
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const payload = parsed.value;
|
|
98
|
+
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
99
|
+
|
|
100
|
+
const pathParams = {
|
|
101
|
+
id: encodeSimple("id", payload.id, {
|
|
102
|
+
explode: false,
|
|
103
|
+
charEncoding: "percent",
|
|
104
|
+
}),
|
|
105
|
+
};
|
|
106
|
+
const path = pathToFunc("/features/{id}/clone")(pathParams);
|
|
107
|
+
|
|
108
|
+
const headers = new Headers(compactMap({
|
|
109
|
+
"Content-Type": "application/json",
|
|
110
|
+
Accept: "application/json",
|
|
111
|
+
}));
|
|
112
|
+
|
|
113
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
114
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
115
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
+
|
|
117
|
+
const context = {
|
|
118
|
+
options: client._options,
|
|
119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
+
operationID: "cloneFeature",
|
|
121
|
+
oAuth2Scopes: null,
|
|
122
|
+
|
|
123
|
+
resolvedSecurity: requestSecurity,
|
|
124
|
+
|
|
125
|
+
securitySource: client._options.apiKeyAuth,
|
|
126
|
+
retryConfig: options?.retries
|
|
127
|
+
|| client._options.retryConfig
|
|
128
|
+
|| { strategy: "none" },
|
|
129
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const requestRes = client._createRequest(context, {
|
|
133
|
+
security: requestSecurity,
|
|
134
|
+
method: "POST",
|
|
135
|
+
baseURL: options?.serverURL,
|
|
136
|
+
path: path,
|
|
137
|
+
headers: headers,
|
|
138
|
+
body: body$,
|
|
139
|
+
userAgent: client._options.userAgent,
|
|
140
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
141
|
+
}, options);
|
|
142
|
+
if (!requestRes.ok) {
|
|
143
|
+
return [requestRes, { status: "invalid" }];
|
|
144
|
+
}
|
|
145
|
+
const req = requestRes.value;
|
|
146
|
+
|
|
147
|
+
const doResult = await client._do(req, {
|
|
148
|
+
context,
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
151
|
+
retryConfig: context.retryConfig,
|
|
152
|
+
retryCodes: context.retryCodes,
|
|
153
|
+
});
|
|
154
|
+
if (!doResult.ok) {
|
|
155
|
+
return [doResult, { status: "request-error", request: req }];
|
|
156
|
+
}
|
|
157
|
+
const response = doResult.value;
|
|
158
|
+
|
|
159
|
+
const responseFields = {
|
|
160
|
+
HttpMeta: { Response: response, Request: req },
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const [result] = await M.match<
|
|
164
|
+
models.FeatureResponse,
|
|
165
|
+
| models.ErrorsErrorResponse
|
|
166
|
+
| FlexPriceError
|
|
167
|
+
| ResponseValidationError
|
|
168
|
+
| ConnectionError
|
|
169
|
+
| RequestAbortedError
|
|
170
|
+
| RequestTimeoutError
|
|
171
|
+
| InvalidRequestError
|
|
172
|
+
| UnexpectedClientError
|
|
173
|
+
| SDKValidationError
|
|
174
|
+
>(
|
|
175
|
+
M.json(201, models.FeatureResponse$inboundSchema),
|
|
176
|
+
M.jsonErr([400, 404, 409], models.ErrorsErrorResponse$inboundSchema),
|
|
177
|
+
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
178
|
+
M.fail("4XX"),
|
|
179
|
+
M.fail("5XX"),
|
|
180
|
+
)(response, req, { extraFields: responseFields });
|
|
181
|
+
if (!result.ok) {
|
|
182
|
+
return [result, { status: "complete", request: req, response }];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return [result, { status: "complete", request: req, response }];
|
|
186
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -140,7 +141,8 @@ async function $do(
|
|
|
140
141
|
|
|
141
142
|
const doResult = await client._do(req, {
|
|
142
143
|
context,
|
|
143
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
146
|
retryConfig: context.retryConfig,
|
|
145
147
|
retryCodes: context.retryCodes,
|
|
146
148
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -146,7 +147,8 @@ async function $do(
|
|
|
146
147
|
|
|
147
148
|
const doResult = await client._do(req, {
|
|
148
149
|
context,
|
|
149
|
-
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
150
152
|
retryConfig: context.retryConfig,
|
|
151
153
|
retryCodes: context.retryCodes,
|
|
152
154
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -140,7 +141,8 @@ async function $do(
|
|
|
140
141
|
|
|
141
142
|
const doResult = await client._do(req, {
|
|
142
143
|
context,
|
|
143
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
146
|
retryConfig: context.retryConfig,
|
|
145
147
|
retryCodes: context.retryCodes,
|
|
146
148
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -140,7 +141,8 @@ async function $do(
|
|
|
140
141
|
|
|
141
142
|
const doResult = await client._do(req, {
|
|
142
143
|
context,
|
|
143
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
146
|
retryConfig: context.retryConfig,
|
|
145
147
|
retryCodes: context.retryCodes,
|
|
146
148
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { FlexpriceCore } from "../core.js";
|
|
7
7
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -131,7 +132,8 @@ async function $do(
|
|
|
131
132
|
|
|
132
133
|
const doResult = await client._do(req, {
|
|
133
134
|
context,
|
|
134
|
-
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
137
|
retryConfig: context.retryConfig,
|
|
136
138
|
retryCodes: context.retryCodes,
|
|
137
139
|
});
|