@flexprice/sdk 2.1.11 → 2.1.18
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/attributed-to-customer-result.md +17 -0
- package/docs/sdk/models/bucket-summary.md +26 -0
- package/docs/sdk/models/bucket.md +16 -0
- package/docs/sdk/models/cancel-subscription-request.md +7 -7
- package/docs/sdk/models/changed-subscription.md +7 -5
- package/docs/sdk/models/commitment-bucket-request.md +22 -0
- package/docs/sdk/models/coupon-response.md +1 -0
- package/docs/sdk/models/coupon.md +1 -0
- package/docs/sdk/models/create-coupon-request.md +1 -0
- package/docs/sdk/models/create-invoice-line-item-request.md +25 -22
- package/docs/sdk/models/create-subscription-line-item-request.md +1 -0
- package/docs/sdk/models/create-subscription-request.md +3 -2
- package/docs/sdk/models/create-tax-association-request.md +12 -10
- package/docs/sdk/models/create-user-request.md +1 -0
- package/docs/sdk/models/create-user-response.md +2 -0
- package/docs/sdk/models/debug-tracker-status.md +2 -2
- package/docs/sdk/models/debug-tracker.md +1 -0
- package/docs/sdk/models/delete-service-account-request.md +17 -0
- package/docs/sdk/models/delink-integration-mapping-request.md +21 -0
- package/docs/sdk/models/entity-integration-mapping-response.md +1 -0
- package/docs/sdk/models/entity-sync-config.md +16 -0
- package/docs/sdk/models/execute-subscription-modify-request-request.md +1 -1
- package/docs/sdk/models/execute-subscription-modify-request.md +4 -1
- package/docs/sdk/models/failure-point-type.md +1 -1
- package/docs/sdk/models/get-coupon-association-request.md +17 -0
- package/docs/sdk/models/get-entity-integration-mappings-request.md +19 -0
- package/docs/sdk/models/get-usage-analytics-request.md +13 -12
- package/docs/sdk/models/inheritance-action.md +15 -0
- package/docs/sdk/models/integration-config-entry.md +17 -0
- package/docs/sdk/models/integration-config-response.md +15 -0
- package/docs/sdk/models/invoice-billing-reason.md +1 -1
- package/docs/sdk/models/invoice-filter.md +2 -0
- package/docs/sdk/models/invoice-line-item-response.md +38 -36
- package/docs/sdk/models/invoice-sync-settings.md +15 -0
- package/docs/sdk/models/line-item-commitment-config.md +10 -9
- package/docs/sdk/models/list-coupon-associations-request.md +19 -0
- package/docs/sdk/models/list-coupon-associations-response.md +16 -0
- package/docs/sdk/models/list-entity-integration-mappings-response.md +16 -0
- package/docs/sdk/models/meter-usage-attribution.md +17 -0
- package/docs/sdk/models/payment-gateway-type.md +1 -1
- package/docs/sdk/models/preview-subscription-modify-request.md +1 -1
- package/docs/sdk/models/price-filter.md +1 -0
- package/docs/sdk/models/price-price.md +43 -42
- package/docs/sdk/models/price-response.md +48 -47
- package/docs/sdk/models/s3-export-config.md +20 -0
- package/docs/sdk/models/secret-provider.md +1 -1
- package/docs/sdk/models/sub-modify-coupon-action.md +15 -0
- package/docs/sdk/models/sub-modify-coupon-params.md +24 -0
- package/docs/sdk/models/sub-modify-inheritance-request.md +5 -3
- package/docs/sdk/models/sub-modify-tax-action.md +15 -0
- package/docs/sdk/models/sub-modify-tax-params.md +20 -0
- package/docs/sdk/models/sub-modify-trial-end-request.md +18 -0
- package/docs/sdk/models/subscription-coupon-input.md +20 -0
- package/docs/sdk/models/subscription-line-item-response.md +1 -0
- package/docs/sdk/models/subscription-modify-type.md +2 -2
- package/docs/sdk/models/subscription-phase-create-request.md +4 -3
- package/docs/sdk/models/subscription-response-v2.md +2 -0
- package/docs/sdk/models/subscription-response.md +1 -0
- package/docs/sdk/models/subscription-subscription-line-item.md +1 -0
- package/docs/sdk/models/sync-config.md +23 -0
- package/docs/sdk/models/tax-association-response.md +2 -0
- package/docs/sdk/models/time-of-day-bucket.md +22 -0
- package/docs/sdk/models/trial-end-action.md +15 -0
- package/docs/sdk/models/update-service-account-request-request.md +21 -0
- package/docs/sdk/models/update-service-account-request.md +17 -0
- package/docs/sdk/models/update-service-account-response.md +21 -0
- package/docs/sdk/models/update-subscription-line-item-request.md +17 -16
- package/docs/sdk/models/update-user-request.md +16 -0
- package/docs/sdk/models/update-user-response.md +21 -0
- package/docs/sdk/models/usage-analytic-item.md +34 -33
- package/docs/sdk/models/usage-analytic-point.md +11 -9
- package/docs/sdk/models/user-response.md +2 -0
- package/docs/sdk/models/window-size.md +2 -2
- package/docs/sdks/couponassociations/README.md +150 -0
- package/docs/sdks/integrations/README.md +223 -0
- package/docs/sdks/subscriptions/README.md +4 -4
- package/docs/sdks/users/README.md +221 -0
- package/esm/funcs/coupon-associations-get-coupon-association.d.ts +17 -0
- package/esm/funcs/coupon-associations-get-coupon-association.d.ts.map +1 -0
- package/esm/funcs/coupon-associations-get-coupon-association.js +91 -0
- package/esm/funcs/coupon-associations-get-coupon-association.js.map +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.d.ts +17 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.d.ts.map +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js +91 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js.map +1 -0
- package/esm/funcs/integrations-delink-integration-mapping.d.ts +17 -0
- package/esm/funcs/integrations-delink-integration-mapping.d.ts.map +1 -0
- package/esm/funcs/integrations-delink-integration-mapping.js +83 -0
- package/esm/funcs/integrations-delink-integration-mapping.js.map +1 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.d.ts +17 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.d.ts.map +1 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.js +91 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.js.map +1 -0
- package/esm/funcs/integrations-get-integration-config.d.ts +17 -0
- package/esm/funcs/integrations-get-integration-config.d.ts.map +1 -0
- package/esm/funcs/integrations-get-integration-config.js +72 -0
- package/esm/funcs/integrations-get-integration-config.js.map +1 -0
- package/esm/funcs/subscriptions-execute-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.js +1 -1
- package/esm/funcs/users-delete-service-account.d.ts +17 -0
- package/esm/funcs/users-delete-service-account.d.ts.map +1 -0
- package/esm/funcs/users-delete-service-account.js +91 -0
- package/esm/funcs/users-delete-service-account.js.map +1 -0
- package/esm/funcs/users-update-service-account.d.ts +17 -0
- package/esm/funcs/users-update-service-account.d.ts.map +1 -0
- package/esm/funcs/users-update-service-account.js +93 -0
- package/esm/funcs/users-update-service-account.js.map +1 -0
- package/esm/funcs/users-update-user.d.ts +17 -0
- package/esm/funcs/users-update-user.d.ts.map +1 -0
- package/esm/funcs/users-update-user.js +83 -0
- package/esm/funcs/users-update-user.js.map +1 -0
- package/esm/hooks/types.d.ts +1 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.js +1 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/matchers.js +1 -1
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +50 -16
- package/esm/lib/sdks.js.map +1 -1
- package/esm/sdk/coupon-associations.d.ts +19 -0
- package/esm/sdk/coupon-associations.d.ts.map +1 -0
- package/esm/sdk/coupon-associations.js +28 -0
- package/esm/sdk/coupon-associations.js.map +1 -0
- package/esm/sdk/integrations.d.ts +21 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +30 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/models/attributed-to-customer-result.d.ts +15 -0
- package/esm/sdk/models/attributed-to-customer-result.d.ts.map +1 -0
- package/esm/sdk/models/attributed-to-customer-result.js +24 -0
- package/esm/sdk/models/attributed-to-customer-result.js.map +1 -0
- package/esm/sdk/models/bucket-summary.d.ts +31 -0
- package/esm/sdk/models/bucket-summary.d.ts.map +1 -0
- package/esm/sdk/models/bucket-summary.js +40 -0
- package/esm/sdk/models/bucket-summary.js.map +1 -0
- package/esm/sdk/models/bucket.d.ts +19 -0
- package/esm/sdk/models/bucket.d.ts.map +1 -0
- package/esm/sdk/models/bucket.js +24 -0
- package/esm/sdk/models/bucket.js.map +1 -0
- package/esm/sdk/models/cancel-subscription-request.d.ts +8 -0
- package/esm/sdk/models/cancel-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/cancel-subscription-request.js.map +1 -1
- package/esm/sdk/models/changed-subscription.d.ts +2 -0
- package/esm/sdk/models/changed-subscription.d.ts.map +1 -1
- package/esm/sdk/models/changed-subscription.js +10 -2
- package/esm/sdk/models/changed-subscription.js.map +1 -1
- package/esm/sdk/models/commitment-bucket-request.d.ts +29 -0
- package/esm/sdk/models/commitment-bucket-request.d.ts.map +1 -0
- package/esm/sdk/models/commitment-bucket-request.js +30 -0
- package/esm/sdk/models/commitment-bucket-request.js.map +1 -0
- package/esm/sdk/models/coupon-response.d.ts +1 -0
- package/esm/sdk/models/coupon-response.d.ts.map +1 -1
- package/esm/sdk/models/coupon-response.js +2 -0
- package/esm/sdk/models/coupon-response.js.map +1 -1
- package/esm/sdk/models/coupon.d.ts +1 -0
- package/esm/sdk/models/coupon.d.ts.map +1 -1
- package/esm/sdk/models/coupon.js +2 -0
- package/esm/sdk/models/coupon.js.map +1 -1
- package/esm/sdk/models/create-coupon-request.d.ts +2 -0
- package/esm/sdk/models/create-coupon-request.d.ts.map +1 -1
- package/esm/sdk/models/create-coupon-request.js +2 -0
- package/esm/sdk/models/create-coupon-request.js.map +1 -1
- package/esm/sdk/models/create-invoice-line-item-request.d.ts +18 -0
- package/esm/sdk/models/create-invoice-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/create-invoice-line-item-request.js +6 -0
- package/esm/sdk/models/create-invoice-line-item-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-line-item-request.d.ts +3 -0
- package/esm/sdk/models/create-subscription-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-line-item-request.js +3 -0
- package/esm/sdk/models/create-subscription-line-item-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-request.d.ts +15 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +3 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/create-tax-association-request.d.ts +10 -0
- package/esm/sdk/models/create-tax-association-request.d.ts.map +1 -1
- package/esm/sdk/models/create-tax-association-request.js +4 -0
- package/esm/sdk/models/create-tax-association-request.js.map +1 -1
- package/esm/sdk/models/create-user-request.d.ts +5 -0
- package/esm/sdk/models/create-user-request.d.ts.map +1 -1
- package/esm/sdk/models/create-user-request.js +1 -0
- package/esm/sdk/models/create-user-request.js.map +1 -1
- package/esm/sdk/models/create-user-response.d.ts +4 -0
- package/esm/sdk/models/create-user-response.d.ts.map +1 -1
- package/esm/sdk/models/create-user-response.js +2 -0
- package/esm/sdk/models/create-user-response.js.map +1 -1
- package/esm/sdk/models/debug-tracker-status.d.ts +2 -0
- package/esm/sdk/models/debug-tracker-status.d.ts.map +1 -1
- package/esm/sdk/models/debug-tracker-status.js +2 -0
- package/esm/sdk/models/debug-tracker-status.js.map +1 -1
- package/esm/sdk/models/debug-tracker.d.ts +2 -0
- package/esm/sdk/models/debug-tracker.d.ts.map +1 -1
- package/esm/sdk/models/debug-tracker.js +3 -0
- package/esm/sdk/models/debug-tracker.js.map +1 -1
- package/esm/sdk/models/delete-service-account-op.d.ts +15 -0
- package/esm/sdk/models/delete-service-account-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-service-account-op.js +12 -0
- package/esm/sdk/models/delete-service-account-op.js.map +1 -0
- package/esm/sdk/models/delink-integration-mapping-request.d.ts +17 -0
- package/esm/sdk/models/delink-integration-mapping-request.d.ts.map +1 -0
- package/esm/sdk/models/delink-integration-mapping-request.js +22 -0
- package/esm/sdk/models/delink-integration-mapping-request.js.map +1 -0
- package/esm/sdk/models/entity-integration-mapping-response.d.ts +3 -0
- package/esm/sdk/models/entity-integration-mapping-response.d.ts.map +1 -1
- package/esm/sdk/models/entity-integration-mapping-response.js +1 -0
- package/esm/sdk/models/entity-integration-mapping-response.js.map +1 -1
- package/esm/sdk/models/entity-sync-config.d.ts +17 -0
- package/esm/sdk/models/entity-sync-config.d.ts.map +1 -0
- package/esm/sdk/models/entity-sync-config.js +15 -0
- package/esm/sdk/models/entity-sync-config.js.map +1 -0
- package/esm/sdk/models/execute-subscription-modify-request.d.ts +9 -0
- package/esm/sdk/models/execute-subscription-modify-request.d.ts.map +1 -1
- package/esm/sdk/models/execute-subscription-modify-request.js +9 -0
- package/esm/sdk/models/execute-subscription-modify-request.js.map +1 -1
- package/esm/sdk/models/failure-point-type.d.ts +1 -0
- package/esm/sdk/models/failure-point-type.d.ts.map +1 -1
- package/esm/sdk/models/failure-point-type.js +1 -0
- package/esm/sdk/models/failure-point-type.js.map +1 -1
- package/esm/sdk/models/get-coupon-association-op.d.ts +15 -0
- package/esm/sdk/models/get-coupon-association-op.d.ts.map +1 -0
- package/esm/sdk/models/get-coupon-association-op.js +12 -0
- package/esm/sdk/models/get-coupon-association-op.js.map +1 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.d.ts +20 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.d.ts.map +1 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.js +19 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.js.map +1 -0
- package/esm/sdk/models/get-usage-analytics-request.d.ts +10 -0
- package/esm/sdk/models/get-usage-analytics-request.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-analytics-request.js +2 -0
- package/esm/sdk/models/get-usage-analytics-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +32 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +32 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/inheritance-action.d.ts +10 -0
- package/esm/sdk/models/inheritance-action.d.ts.map +1 -0
- package/esm/sdk/models/inheritance-action.js +11 -0
- package/esm/sdk/models/inheritance-action.js.map +1 -0
- package/esm/sdk/models/integration-config-entry.d.ts +14 -0
- package/esm/sdk/models/integration-config-entry.d.ts.map +1 -0
- package/esm/sdk/models/integration-config-entry.js +24 -0
- package/esm/sdk/models/integration-config-entry.js.map +1 -0
- package/esm/sdk/models/integration-config-response.d.ts +11 -0
- package/esm/sdk/models/integration-config-response.d.ts.map +1 -0
- package/esm/sdk/models/integration-config-response.js +15 -0
- package/esm/sdk/models/integration-config-response.js.map +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
- package/esm/sdk/models/invoice-billing-reason.js +1 -0
- package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
- package/esm/sdk/models/invoice-filter.d.ts +11 -0
- package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
- package/esm/sdk/models/invoice-filter.js +4 -0
- package/esm/sdk/models/invoice-filter.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.d.ts +11 -0
- package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.js +4 -0
- package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.d.ts +11 -0
- package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -0
- package/esm/sdk/models/invoice-sync-settings.js +20 -0
- package/esm/sdk/models/invoice-sync-settings.js.map +1 -0
- package/esm/sdk/models/line-item-commitment-config.d.ts +11 -0
- package/esm/sdk/models/line-item-commitment-config.d.ts.map +1 -1
- package/esm/sdk/models/line-item-commitment-config.js +3 -0
- package/esm/sdk/models/line-item-commitment-config.js.map +1 -1
- package/esm/sdk/models/list-coupon-associations-op.d.ts +35 -0
- package/esm/sdk/models/list-coupon-associations-op.d.ts.map +1 -0
- package/esm/sdk/models/list-coupon-associations-op.js +23 -0
- package/esm/sdk/models/list-coupon-associations-op.js.map +1 -0
- package/esm/sdk/models/list-coupon-associations-response.d.ts +13 -0
- package/esm/sdk/models/list-coupon-associations-response.d.ts.map +1 -0
- package/esm/sdk/models/list-coupon-associations-response.js +17 -0
- package/esm/sdk/models/list-coupon-associations-response.js.map +1 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.d.ts +13 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.d.ts.map +1 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.js +17 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.js.map +1 -0
- package/esm/sdk/models/meter-usage-attribution.d.ts +12 -0
- package/esm/sdk/models/meter-usage-attribution.d.ts.map +1 -0
- package/esm/sdk/models/meter-usage-attribution.js +23 -0
- package/esm/sdk/models/meter-usage-attribution.js.map +1 -0
- package/esm/sdk/models/payment-gateway-type.d.ts +1 -0
- package/esm/sdk/models/payment-gateway-type.d.ts.map +1 -1
- package/esm/sdk/models/payment-gateway-type.js +1 -0
- package/esm/sdk/models/payment-gateway-type.js.map +1 -1
- package/esm/sdk/models/price-filter.d.ts +3 -0
- package/esm/sdk/models/price-filter.d.ts.map +1 -1
- package/esm/sdk/models/price-filter.js +3 -0
- package/esm/sdk/models/price-filter.js.map +1 -1
- package/esm/sdk/models/price-price.d.ts +9 -0
- package/esm/sdk/models/price-price.d.ts.map +1 -1
- package/esm/sdk/models/price-price.js +1 -0
- package/esm/sdk/models/price-price.js.map +1 -1
- package/esm/sdk/models/price-response.d.ts +9 -0
- package/esm/sdk/models/price-response.d.ts.map +1 -1
- package/esm/sdk/models/price-response.js +1 -0
- package/esm/sdk/models/price-response.js.map +1 -1
- package/esm/sdk/models/s3-export-config.d.ts +29 -0
- package/esm/sdk/models/s3-export-config.d.ts.map +1 -0
- package/esm/sdk/models/s3-export-config.js +27 -0
- package/esm/sdk/models/s3-export-config.js.map +1 -0
- package/esm/sdk/models/secret-provider.d.ts +1 -0
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +1 -0
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/models/sub-modify-coupon-action.d.ts +10 -0
- package/esm/sdk/models/sub-modify-coupon-action.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-action.js +11 -0
- package/esm/sdk/models/sub-modify-coupon-action.js.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-params.d.ts +48 -0
- package/esm/sdk/models/sub-modify-coupon-params.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-params.js +31 -0
- package/esm/sdk/models/sub-modify-coupon-params.js.map +1 -0
- package/esm/sdk/models/sub-modify-inheritance-request.d.ts +11 -0
- package/esm/sdk/models/sub-modify-inheritance-request.d.ts.map +1 -1
- package/esm/sdk/models/sub-modify-inheritance-request.js +4 -0
- package/esm/sdk/models/sub-modify-inheritance-request.js.map +1 -1
- package/esm/sdk/models/sub-modify-tax-action.d.ts +10 -0
- package/esm/sdk/models/sub-modify-tax-action.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-tax-action.js +11 -0
- package/esm/sdk/models/sub-modify-tax-action.js.map +1 -0
- package/esm/sdk/models/sub-modify-tax-params.d.ts +28 -0
- package/esm/sdk/models/sub-modify-tax-params.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-tax-params.js +23 -0
- package/esm/sdk/models/sub-modify-tax-params.js.map +1 -0
- package/esm/sdk/models/sub-modify-trial-end-request.d.ts +18 -0
- package/esm/sdk/models/sub-modify-trial-end-request.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-trial-end-request.js +19 -0
- package/esm/sdk/models/sub-modify-trial-end-request.js.map +1 -0
- package/esm/sdk/models/subscription-coupon-input.d.ts +30 -0
- package/esm/sdk/models/subscription-coupon-input.d.ts.map +1 -0
- package/esm/sdk/models/subscription-coupon-input.js +23 -0
- package/esm/sdk/models/subscription-coupon-input.js.map +1 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts +2 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +3 -0
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-modify-type.d.ts +3 -0
- package/esm/sdk/models/subscription-modify-type.d.ts.map +1 -1
- package/esm/sdk/models/subscription-modify-type.js +3 -0
- package/esm/sdk/models/subscription-modify-type.js.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.d.ts +8 -2
- package/esm/sdk/models/subscription-phase-create-request.d.ts.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.js +3 -0
- package/esm/sdk/models/subscription-phase-create-request.js.map +1 -1
- package/esm/sdk/models/subscription-response-v2.d.ts +16 -0
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +4 -0
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/subscription-response.d.ts +8 -0
- package/esm/sdk/models/subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response.js +2 -0
- package/esm/sdk/models/subscription-response.js.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts +2 -0
- package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.js +3 -0
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/sync-config.d.ts +21 -0
- package/esm/sdk/models/sync-config.d.ts.map +1 -0
- package/esm/sdk/models/sync-config.js +31 -0
- package/esm/sdk/models/sync-config.js.map +1 -0
- package/esm/sdk/models/tax-association-response.d.ts +8 -0
- package/esm/sdk/models/tax-association-response.d.ts.map +1 -1
- package/esm/sdk/models/tax-association-response.js +4 -0
- package/esm/sdk/models/tax-association-response.js.map +1 -1
- package/esm/sdk/models/time-of-day-bucket.d.ts +31 -0
- package/esm/sdk/models/time-of-day-bucket.d.ts.map +1 -0
- package/esm/sdk/models/time-of-day-bucket.js +32 -0
- package/esm/sdk/models/time-of-day-bucket.js.map +1 -0
- package/esm/sdk/models/trial-end-action.d.ts +10 -0
- package/esm/sdk/models/trial-end-action.d.ts.map +1 -0
- package/esm/sdk/models/trial-end-action.js +11 -0
- package/esm/sdk/models/trial-end-action.js.map +1 -0
- package/esm/sdk/models/update-service-account-op.d.ts +21 -0
- package/esm/sdk/models/update-service-account-op.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-op.js +14 -0
- package/esm/sdk/models/update-service-account-op.js.map +1 -0
- package/esm/sdk/models/update-service-account-request.d.ts +12 -0
- package/esm/sdk/models/update-service-account-request.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-request.js +12 -0
- package/esm/sdk/models/update-service-account-request.js.map +1 -0
- package/esm/sdk/models/update-service-account-response.d.ts +23 -0
- package/esm/sdk/models/update-service-account-response.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-response.js +22 -0
- package/esm/sdk/models/update-service-account-response.js.map +1 -0
- package/esm/sdk/models/update-subscription-line-item-request.d.ts +6 -0
- package/esm/sdk/models/update-subscription-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/update-subscription-line-item-request.js +3 -0
- package/esm/sdk/models/update-subscription-line-item-request.js.map +1 -1
- package/esm/sdk/models/update-user-request.d.ts +18 -0
- package/esm/sdk/models/update-user-request.d.ts.map +1 -0
- package/esm/sdk/models/update-user-request.js +13 -0
- package/esm/sdk/models/update-user-request.js.map +1 -0
- package/esm/sdk/models/update-user-response.d.ts +23 -0
- package/esm/sdk/models/update-user-response.d.ts.map +1 -0
- package/esm/sdk/models/update-user-response.js +22 -0
- package/esm/sdk/models/update-user-response.js.map +1 -0
- package/esm/sdk/models/usage-analytic-item.d.ts +8 -0
- package/esm/sdk/models/usage-analytic-item.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-item.js +3 -0
- package/esm/sdk/models/usage-analytic-item.js.map +1 -1
- package/esm/sdk/models/usage-analytic-point.d.ts +8 -0
- package/esm/sdk/models/usage-analytic-point.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-point.js +4 -0
- package/esm/sdk/models/usage-analytic-point.js.map +1 -1
- package/esm/sdk/models/user-response.d.ts +4 -0
- package/esm/sdk/models/user-response.d.ts.map +1 -1
- package/esm/sdk/models/user-response.js +2 -0
- package/esm/sdk/models/user-response.js.map +1 -1
- package/esm/sdk/models/window-size.d.ts +1 -1
- package/esm/sdk/models/window-size.js +1 -1
- package/esm/sdk/models/window-size.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/esm/sdk/subscriptions.d.ts +2 -2
- package/esm/sdk/subscriptions.js +2 -2
- package/esm/sdk/users.d.ts +21 -0
- package/esm/sdk/users.d.ts.map +1 -1
- package/esm/sdk/users.js +30 -0
- package/esm/sdk/users.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/esm/types/primitives.d.ts +0 -2
- package/esm/types/primitives.d.ts.map +1 -1
- package/esm/types/primitives.js +0 -22
- package/esm/types/primitives.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/coupon-associations-get-coupon-association.ts +182 -0
- package/src/funcs/coupon-associations-list-coupon-associations.ts +188 -0
- package/src/funcs/integrations-delink-integration-mapping.ts +173 -0
- package/src/funcs/integrations-get-entity-integration-mappings.ts +186 -0
- package/src/funcs/integrations-get-integration-config.ts +152 -0
- package/src/funcs/subscriptions-execute-subscription-modify.ts +1 -1
- package/src/funcs/subscriptions-preview-subscription-modify.ts +1 -1
- package/src/funcs/users-delete-service-account.ts +182 -0
- package/src/funcs/users-update-service-account.ts +187 -0
- package/src/funcs/users-update-user.ts +172 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/sdks.ts +54 -17
- package/src/sdk/coupon-associations.ts +45 -0
- package/src/sdk/integrations.ts +54 -0
- package/src/sdk/models/attributed-to-customer-result.ts +55 -0
- package/src/sdk/models/bucket-summary.ts +80 -0
- package/src/sdk/models/bucket.ts +45 -0
- package/src/sdk/models/cancel-subscription-request.ts +8 -0
- package/src/sdk/models/changed-subscription.ts +18 -5
- package/src/sdk/models/commitment-bucket-request.ts +72 -0
- package/src/sdk/models/coupon-response.ts +3 -0
- package/src/sdk/models/coupon.ts +3 -0
- package/src/sdk/models/create-coupon-request.ts +4 -0
- package/src/sdk/models/create-invoice-line-item-request.ts +24 -0
- package/src/sdk/models/create-subscription-line-item-request.ts +11 -0
- package/src/sdk/models/create-subscription-request.ts +23 -0
- package/src/sdk/models/create-tax-association-request.ts +14 -0
- package/src/sdk/models/create-user-request.ts +6 -0
- package/src/sdk/models/create-user-response.ts +4 -0
- package/src/sdk/models/debug-tracker-status.ts +2 -0
- package/src/sdk/models/debug-tracker.ts +9 -0
- package/src/sdk/models/delete-service-account-op.ts +35 -0
- package/src/sdk/models/delink-integration-mapping-request.ts +52 -0
- package/src/sdk/models/entity-integration-mapping-response.ts +2 -0
- package/src/sdk/models/entity-sync-config.ts +39 -0
- package/src/sdk/models/execute-subscription-modify-request.ts +27 -0
- package/src/sdk/models/failure-point-type.ts +1 -0
- package/src/sdk/models/get-coupon-association-op.ts +35 -0
- package/src/sdk/models/get-entity-integration-mappings-op.ts +50 -0
- package/src/sdk/models/get-usage-analytics-request.ts +12 -0
- package/src/sdk/models/index.ts +32 -0
- package/src/sdk/models/inheritance-action.ts +17 -0
- package/src/sdk/models/integration-config-entry.ts +49 -0
- package/src/sdk/models/integration-config-response.ts +35 -0
- package/src/sdk/models/invoice-billing-reason.ts +1 -0
- package/src/sdk/models/invoice-filter.ts +17 -0
- package/src/sdk/models/invoice-line-item-response.ts +15 -0
- package/src/sdk/models/invoice-sync-settings.ts +43 -0
- package/src/sdk/models/line-item-commitment-config.ts +19 -0
- package/src/sdk/models/list-coupon-associations-op.ts +69 -0
- package/src/sdk/models/list-coupon-associations-response.ts +41 -0
- package/src/sdk/models/list-entity-integration-mappings-response.ts +44 -0
- package/src/sdk/models/meter-usage-attribution.ts +45 -0
- package/src/sdk/models/payment-gateway-type.ts +1 -0
- package/src/sdk/models/price-filter.ts +8 -0
- package/src/sdk/models/price-price.ts +10 -0
- package/src/sdk/models/price-response.ts +10 -0
- package/src/sdk/models/s3-export-config.ts +70 -0
- package/src/sdk/models/secret-provider.ts +1 -0
- package/src/sdk/models/sub-modify-coupon-action.ts +17 -0
- package/src/sdk/models/sub-modify-coupon-params.ts +92 -0
- package/src/sdk/models/sub-modify-inheritance-request.ts +17 -0
- package/src/sdk/models/sub-modify-tax-action.ts +17 -0
- package/src/sdk/models/sub-modify-tax-params.ts +64 -0
- package/src/sdk/models/sub-modify-trial-end-request.ts +50 -0
- package/src/sdk/models/subscription-coupon-input.ts +62 -0
- package/src/sdk/models/subscription-line-item-response.ts +9 -0
- package/src/sdk/models/subscription-modify-type.ts +3 -0
- package/src/sdk/models/subscription-phase-create-request.ts +16 -2
- package/src/sdk/models/subscription-response-v2.ts +20 -0
- package/src/sdk/models/subscription-response.ts +10 -0
- package/src/sdk/models/subscription-subscription-line-item.ts +9 -0
- package/src/sdk/models/sync-config.ts +65 -0
- package/src/sdk/models/tax-association-response.ts +12 -0
- package/src/sdk/models/time-of-day-bucket.ts +74 -0
- package/src/sdk/models/trial-end-action.ts +17 -0
- package/src/sdk/models/update-service-account-op.ts +46 -0
- package/src/sdk/models/update-service-account-request.ts +32 -0
- package/src/sdk/models/update-service-account-response.ts +51 -0
- package/src/sdk/models/update-subscription-line-item-request.ts +14 -0
- package/src/sdk/models/update-user-request.ts +33 -0
- package/src/sdk/models/update-user-response.ts +51 -0
- package/src/sdk/models/usage-analytic-item.ts +13 -0
- package/src/sdk/models/usage-analytic-point.ts +12 -0
- package/src/sdk/models/user-response.ts +4 -0
- package/src/sdk/models/window-size.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/subscriptions.ts +2 -2
- package/src/sdk/users.ts +56 -0
- package/src/types/async.ts +8 -7
- package/src/types/primitives.ts +0 -26
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.d.ts.map +0 -1
- package/esm/lib/dlv.js +0 -46
- package/esm/lib/dlv.js.map +0 -1
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.d.ts.map +0 -1
- package/esm/lib/is-plain-object.js +0 -38
- package/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -7,6 +7,15 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { WindowSize, WindowSize$outboundSchema } from "./window-size.js";
|
|
8
8
|
|
|
9
9
|
export type GetUsageAnalyticsRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* BreakdownBucket when true augments each time-series point with BucketID/PriceID
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* and appends a BucketSummaries rollup to each item. Requires WindowSize to be set
|
|
15
|
+
* and the item to be linked to a subscription line item that has CommitmentTimeBuckets.
|
|
16
|
+
* Default: false (opt-in, backward compatible).
|
|
17
|
+
*/
|
|
18
|
+
breakdownBucket?: boolean | undefined;
|
|
10
19
|
endTime?: Date | undefined;
|
|
11
20
|
/**
|
|
12
21
|
* allowed values: "price", "meter", "feature", "subscription_line_item","plan","addon"
|
|
@@ -42,6 +51,7 @@ export type GetUsageAnalyticsRequest = {
|
|
|
42
51
|
|
|
43
52
|
/** @internal */
|
|
44
53
|
export type GetUsageAnalyticsRequest$Outbound = {
|
|
54
|
+
breakdown_bucket?: boolean | undefined;
|
|
45
55
|
end_time?: string | undefined;
|
|
46
56
|
expand?: Array<string> | undefined;
|
|
47
57
|
external_customer_id?: string | undefined;
|
|
@@ -60,6 +70,7 @@ export const GetUsageAnalyticsRequest$outboundSchema: z.ZodMiniType<
|
|
|
60
70
|
GetUsageAnalyticsRequest
|
|
61
71
|
> = z.pipe(
|
|
62
72
|
z.object({
|
|
73
|
+
breakdownBucket: z.optional(z.boolean()),
|
|
63
74
|
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
64
75
|
expand: z.optional(z.array(z.string())),
|
|
65
76
|
externalCustomerId: z.optional(z.string()),
|
|
@@ -73,6 +84,7 @@ export const GetUsageAnalyticsRequest$outboundSchema: z.ZodMiniType<
|
|
|
73
84
|
}),
|
|
74
85
|
z.transform((v) => {
|
|
75
86
|
return remap$(v, {
|
|
87
|
+
breakdownBucket: "breakdown_bucket",
|
|
76
88
|
endTime: "end_time",
|
|
77
89
|
externalCustomerId: "external_customer_id",
|
|
78
90
|
featureIds: "feature_ids",
|
package/src/sdk/models/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from "./alert-threshold.js";
|
|
|
28
28
|
export * from "./alert-type.js";
|
|
29
29
|
export * from "./application-status.js";
|
|
30
30
|
export * from "./attempt-invoice-payment-op.js";
|
|
31
|
+
export * from "./attributed-to-customer-result.js";
|
|
31
32
|
export * from "./auto-topup.js";
|
|
32
33
|
export * from "./billing-cadence.js";
|
|
33
34
|
export * from "./billing-cycle-info.js";
|
|
@@ -36,6 +37,8 @@ export * from "./billing-model.js";
|
|
|
36
37
|
export * from "./billing-period-info.js";
|
|
37
38
|
export * from "./billing-period.js";
|
|
38
39
|
export * from "./billing-tier.js";
|
|
40
|
+
export * from "./bucket-summary.js";
|
|
41
|
+
export * from "./bucket.js";
|
|
39
42
|
export * from "./bulk-ingest-event-request.js";
|
|
40
43
|
export * from "./cancel-immediately-invoice-policy.js";
|
|
41
44
|
export * from "./cancel-schedule-request.js";
|
|
@@ -60,6 +63,7 @@ export * from "./clone-feature-request.js";
|
|
|
60
63
|
export * from "./clone-plan-op.js";
|
|
61
64
|
export * from "./clone-plan-request.js";
|
|
62
65
|
export * from "./collection-method.js";
|
|
66
|
+
export * from "./commitment-bucket-request.js";
|
|
63
67
|
export * from "./commitment-info.js";
|
|
64
68
|
export * from "./commitment-type.js";
|
|
65
69
|
export * from "./cost-analytic-item.js";
|
|
@@ -154,10 +158,12 @@ export * from "./delete-price-op.js";
|
|
|
154
158
|
export * from "./delete-price-request.js";
|
|
155
159
|
export * from "./delete-price-unit-op.js";
|
|
156
160
|
export * from "./delete-scheduled-task-op.js";
|
|
161
|
+
export * from "./delete-service-account-op.js";
|
|
157
162
|
export * from "./delete-subscription-line-item-op.js";
|
|
158
163
|
export * from "./delete-subscription-line-item-request.js";
|
|
159
164
|
export * from "./delete-tax-association-op.js";
|
|
160
165
|
export * from "./delete-tax-rate-op.js";
|
|
166
|
+
export * from "./delink-integration-mapping-request.js";
|
|
161
167
|
export * from "./download-task-export-op.js";
|
|
162
168
|
export * from "./entitlement-entity-type.js";
|
|
163
169
|
export * from "./entitlement-filter.js";
|
|
@@ -166,6 +172,7 @@ export * from "./entitlement-source-entity-type.js";
|
|
|
166
172
|
export * from "./entitlement-source.js";
|
|
167
173
|
export * from "./entitlement-usage-reset-period.js";
|
|
168
174
|
export * from "./entity-integration-mapping-response.js";
|
|
175
|
+
export * from "./entity-sync-config.js";
|
|
169
176
|
export * from "./entity-type.js";
|
|
170
177
|
export * from "./environment-type.js";
|
|
171
178
|
export * from "./error-code.js";
|
|
@@ -198,6 +205,7 @@ export * from "./get-addon-op.js";
|
|
|
198
205
|
export * from "./get-cost-analytics-request.js";
|
|
199
206
|
export * from "./get-costsheet-op.js";
|
|
200
207
|
export * from "./get-costsheet-response.js";
|
|
208
|
+
export * from "./get-coupon-association-op.js";
|
|
201
209
|
export * from "./get-coupon-op.js";
|
|
202
210
|
export * from "./get-credit-grant-op.js";
|
|
203
211
|
export * from "./get-credit-note-op.js";
|
|
@@ -210,6 +218,7 @@ export * from "./get-customer-usage-summary-op.js";
|
|
|
210
218
|
export * from "./get-customer-wallets-op.js";
|
|
211
219
|
export * from "./get-detailed-cost-analytics-response.js";
|
|
212
220
|
export * from "./get-entitlement-op.js";
|
|
221
|
+
export * from "./get-entity-integration-mappings-op.js";
|
|
213
222
|
export * from "./get-event-by-id-response.js";
|
|
214
223
|
export * from "./get-event-op.js";
|
|
215
224
|
export * from "./get-events-request.js";
|
|
@@ -260,6 +269,9 @@ export * from "./group-response.js";
|
|
|
260
269
|
export * from "./grouped-invoicing-action.js";
|
|
261
270
|
export * from "./http-client-errors.js";
|
|
262
271
|
export * from "./ingest-event-request.js";
|
|
272
|
+
export * from "./inheritance-action.js";
|
|
273
|
+
export * from "./integration-config-entry.js";
|
|
274
|
+
export * from "./integration-config-response.js";
|
|
263
275
|
export * from "./integration-entity-type.js";
|
|
264
276
|
export * from "./invoice-billing-reason.js";
|
|
265
277
|
export * from "./invoice-cadence.js";
|
|
@@ -271,6 +283,7 @@ export * from "./invoice-line-item-response.js";
|
|
|
271
283
|
export * from "./invoice-preview.js";
|
|
272
284
|
export * from "./invoice-response.js";
|
|
273
285
|
export * from "./invoice-status.js";
|
|
286
|
+
export * from "./invoice-sync-settings.js";
|
|
274
287
|
export * from "./invoice-type.js";
|
|
275
288
|
export * from "./line-item-commitment-config.js";
|
|
276
289
|
export * from "./line-item-quantity-change.js";
|
|
@@ -281,11 +294,14 @@ export * from "./list-alert-logs-response.js";
|
|
|
281
294
|
export * from "./list-all-subscription-schedules-op.js";
|
|
282
295
|
export * from "./list-api-keys-op.js";
|
|
283
296
|
export * from "./list-costsheet-response.js";
|
|
297
|
+
export * from "./list-coupon-associations-op.js";
|
|
298
|
+
export * from "./list-coupon-associations-response.js";
|
|
284
299
|
export * from "./list-coupons-response.js";
|
|
285
300
|
export * from "./list-credit-grant-applications-response.js";
|
|
286
301
|
export * from "./list-credit-grants-response.js";
|
|
287
302
|
export * from "./list-customers-response.js";
|
|
288
303
|
export * from "./list-entitlements-response.js";
|
|
304
|
+
export * from "./list-entity-integration-mappings-response.js";
|
|
289
305
|
export * from "./list-features-response.js";
|
|
290
306
|
export * from "./list-groups-response.js";
|
|
291
307
|
export * from "./list-invoices-response.js";
|
|
@@ -317,6 +333,7 @@ export * from "./meter-filter.js";
|
|
|
317
333
|
export * from "./meter-matching-result.js";
|
|
318
334
|
export * from "./meter-meter.js";
|
|
319
335
|
export * from "./meter-response.js";
|
|
336
|
+
export * from "./meter-usage-attribution.js";
|
|
320
337
|
export * from "./models-temporal-workflow-result.js";
|
|
321
338
|
export * from "./override-entitlement-request.js";
|
|
322
339
|
export * from "./override-line-item-request.js";
|
|
@@ -366,6 +383,7 @@ export * from "./resume-mode.js";
|
|
|
366
383
|
export * from "./round-type.js";
|
|
367
384
|
export * from "./s3-compression-type.js";
|
|
368
385
|
export * from "./s3-encryption-type.js";
|
|
386
|
+
export * from "./s3-export-config.js";
|
|
369
387
|
export * from "./s3-job-config.js";
|
|
370
388
|
export * from "./schedule-draft-finalization-op.js";
|
|
371
389
|
export * from "./schedule-status.js";
|
|
@@ -384,13 +402,19 @@ export * from "./sort-condition.js";
|
|
|
384
402
|
export * from "./sort-direction.js";
|
|
385
403
|
export * from "./source-usage-item.js";
|
|
386
404
|
export * from "./status.js";
|
|
405
|
+
export * from "./sub-modify-coupon-action.js";
|
|
406
|
+
export * from "./sub-modify-coupon-params.js";
|
|
387
407
|
export * from "./sub-modify-grouped-invoicing-params.js";
|
|
388
408
|
export * from "./sub-modify-inheritance-request.js";
|
|
389
409
|
export * from "./sub-modify-quantity-change-request.js";
|
|
410
|
+
export * from "./sub-modify-tax-action.js";
|
|
411
|
+
export * from "./sub-modify-tax-params.js";
|
|
412
|
+
export * from "./sub-modify-trial-end-request.js";
|
|
390
413
|
export * from "./subscription-change-execute-response.js";
|
|
391
414
|
export * from "./subscription-change-preview-response.js";
|
|
392
415
|
export * from "./subscription-change-request.js";
|
|
393
416
|
export * from "./subscription-change-type.js";
|
|
417
|
+
export * from "./subscription-coupon-input.js";
|
|
394
418
|
export * from "./subscription-entitlements-response.js";
|
|
395
419
|
export * from "./subscription-filter.js";
|
|
396
420
|
export * from "./subscription-inheritance-config.js";
|
|
@@ -414,6 +438,7 @@ export * from "./subscription-summary.js";
|
|
|
414
438
|
export * from "./subscription-type.js";
|
|
415
439
|
export * from "./subscription-usage-by-meters-response.js";
|
|
416
440
|
export * from "./success-response.js";
|
|
441
|
+
export * from "./sync-config.js";
|
|
417
442
|
export * from "./sync-plan-prices-op.js";
|
|
418
443
|
export * from "./task-response.js";
|
|
419
444
|
export * from "./task-status.js";
|
|
@@ -431,6 +456,7 @@ export * from "./tenant-billing-details.js";
|
|
|
431
456
|
export * from "./tenant-billing-usage.js";
|
|
432
457
|
export * from "./tenant-response.js";
|
|
433
458
|
export * from "./terminate-wallet-op.js";
|
|
459
|
+
export * from "./time-of-day-bucket.js";
|
|
434
460
|
export * from "./time-range-filter.js";
|
|
435
461
|
export * from "./top-up-wallet-op.js";
|
|
436
462
|
export * from "./top-up-wallet-request.js";
|
|
@@ -438,6 +464,7 @@ export * from "./top-up-wallet-response.js";
|
|
|
438
464
|
export * from "./transaction-reason.js";
|
|
439
465
|
export * from "./transaction-status.js";
|
|
440
466
|
export * from "./transaction-type.js";
|
|
467
|
+
export * from "./trial-end-action.js";
|
|
441
468
|
export * from "./trigger-force-run-request.js";
|
|
442
469
|
export * from "./trigger-force-run-response.js";
|
|
443
470
|
export * from "./trigger-invoice-comms-webhook-op.js";
|
|
@@ -471,6 +498,9 @@ export * from "./update-price-unit-op.js";
|
|
|
471
498
|
export * from "./update-price-unit-request.js";
|
|
472
499
|
export * from "./update-scheduled-task-op.js";
|
|
473
500
|
export * from "./update-scheduled-task-request.js";
|
|
501
|
+
export * from "./update-service-account-op.js";
|
|
502
|
+
export * from "./update-service-account-request.js";
|
|
503
|
+
export * from "./update-service-account-response.js";
|
|
474
504
|
export * from "./update-subscription-line-item-op.js";
|
|
475
505
|
export * from "./update-subscription-line-item-request.js";
|
|
476
506
|
export * from "./update-subscription-op.js";
|
|
@@ -481,6 +511,8 @@ export * from "./update-tax-association-op.js";
|
|
|
481
511
|
export * from "./update-tax-rate-op.js";
|
|
482
512
|
export * from "./update-tax-rate-request.js";
|
|
483
513
|
export * from "./update-tenant-request.js";
|
|
514
|
+
export * from "./update-user-request.js";
|
|
515
|
+
export * from "./update-user-response.js";
|
|
484
516
|
export * from "./update-wallet-op.js";
|
|
485
517
|
export * from "./update-wallet-request.js";
|
|
486
518
|
export * from "./usage-analytic-item.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const InheritanceAction = {
|
|
9
|
+
Add: "add",
|
|
10
|
+
Remove: "remove",
|
|
11
|
+
} as const;
|
|
12
|
+
export type InheritanceAction = ClosedEnum<typeof InheritanceAction>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const InheritanceAction$outboundSchema: z.ZodMiniEnum<
|
|
16
|
+
typeof InheritanceAction
|
|
17
|
+
> = z.enum(InheritanceAction);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
|
+
import {
|
|
12
|
+
SecretProvider,
|
|
13
|
+
SecretProvider$inboundSchema,
|
|
14
|
+
} from "./secret-provider.js";
|
|
15
|
+
import { SyncConfig, SyncConfig$inboundSchema } from "./sync-config.js";
|
|
16
|
+
|
|
17
|
+
export type IntegrationConfigEntry = {
|
|
18
|
+
baseConfig?: SyncConfig | undefined;
|
|
19
|
+
currentConfig?: SyncConfig | undefined;
|
|
20
|
+
provider?: SecretProvider | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const IntegrationConfigEntry$inboundSchema: z.ZodMiniType<
|
|
25
|
+
IntegrationConfigEntry,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.pipe(
|
|
28
|
+
z.object({
|
|
29
|
+
base_config: types.optional(SyncConfig$inboundSchema),
|
|
30
|
+
current_config: types.optional(SyncConfig$inboundSchema),
|
|
31
|
+
provider: types.optional(SecretProvider$inboundSchema),
|
|
32
|
+
}),
|
|
33
|
+
z.transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"base_config": "baseConfig",
|
|
36
|
+
"current_config": "currentConfig",
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export function integrationConfigEntryFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<IntegrationConfigEntry, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => IntegrationConfigEntry$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'IntegrationConfigEntry' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import {
|
|
10
|
+
IntegrationConfigEntry,
|
|
11
|
+
IntegrationConfigEntry$inboundSchema,
|
|
12
|
+
} from "./integration-config-entry.js";
|
|
13
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
14
|
+
|
|
15
|
+
export type IntegrationConfigResponse = {
|
|
16
|
+
integrations?: Array<IntegrationConfigEntry> | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const IntegrationConfigResponse$inboundSchema: z.ZodMiniType<
|
|
21
|
+
IntegrationConfigResponse,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
integrations: types.optional(z.array(IntegrationConfigEntry$inboundSchema)),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function integrationConfigResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<IntegrationConfigResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => IntegrationConfigResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'IntegrationConfigResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -14,6 +14,7 @@ export const InvoiceBillingReason = {
|
|
|
14
14
|
Proration: "PRORATION",
|
|
15
15
|
Manual: "MANUAL",
|
|
16
16
|
AutoInvoiceThreshold: "AUTO_INVOICE_THRESHOLD",
|
|
17
|
+
WalletAutoTopup: "WALLET_AUTO_TOPUP",
|
|
17
18
|
} as const;
|
|
18
19
|
export type InvoiceBillingReason = ClosedEnum<typeof InvoiceBillingReason>;
|
|
19
20
|
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
FilterCondition$Outbound,
|
|
11
11
|
FilterCondition$outboundSchema,
|
|
12
12
|
} from "./filter-condition.js";
|
|
13
|
+
import {
|
|
14
|
+
InvoiceBillingReason,
|
|
15
|
+
InvoiceBillingReason$outboundSchema,
|
|
16
|
+
} from "./invoice-billing-reason.js";
|
|
13
17
|
import {
|
|
14
18
|
InvoiceStatus,
|
|
15
19
|
InvoiceStatus$outboundSchema,
|
|
@@ -47,6 +51,14 @@ export type InvoiceFilter = {
|
|
|
47
51
|
* Useful for finding invoices that still have significant unpaid amounts
|
|
48
52
|
*/
|
|
49
53
|
amountRemainingGt?: number | undefined;
|
|
54
|
+
billingReason?: InvoiceBillingReason | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* currency filters invoices by their currency (ISO 4217 code, e.g. "usd", "eur").
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Matches on the invoices.currency column exactly.
|
|
60
|
+
*/
|
|
61
|
+
currency?: string | undefined;
|
|
50
62
|
/**
|
|
51
63
|
* customer_id filters invoices for a specific customer using FlexPrice's internal customer ID
|
|
52
64
|
*
|
|
@@ -134,6 +146,8 @@ export const InvoiceFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
|
134
146
|
export type InvoiceFilter$Outbound = {
|
|
135
147
|
amount_due_gt?: number | undefined;
|
|
136
148
|
amount_remaining_gt?: number | undefined;
|
|
149
|
+
billing_reason?: string | undefined;
|
|
150
|
+
currency?: string | undefined;
|
|
137
151
|
customer_id?: string | undefined;
|
|
138
152
|
end_time?: string | undefined;
|
|
139
153
|
expand?: string | undefined;
|
|
@@ -166,6 +180,8 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
166
180
|
z.object({
|
|
167
181
|
amountDueGt: z.optional(z.number()),
|
|
168
182
|
amountRemainingGt: z.optional(z.number()),
|
|
183
|
+
billingReason: z.optional(InvoiceBillingReason$outboundSchema),
|
|
184
|
+
currency: z.optional(z.string()),
|
|
169
185
|
customerId: z.optional(z.string()),
|
|
170
186
|
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
171
187
|
expand: z.optional(z.string()),
|
|
@@ -193,6 +209,7 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
193
209
|
return remap$(v, {
|
|
194
210
|
amountDueGt: "amount_due_gt",
|
|
195
211
|
amountRemainingGt: "amount_remaining_gt",
|
|
212
|
+
billingReason: "billing_reason",
|
|
196
213
|
customerId: "customer_id",
|
|
197
214
|
endTime: "end_time",
|
|
198
215
|
externalCustomerId: "external_customer_id",
|
|
@@ -23,6 +23,13 @@ import {
|
|
|
23
23
|
} from "./usage-breakdown-item.js";
|
|
24
24
|
|
|
25
25
|
export type InvoiceLineItemResponse = {
|
|
26
|
+
/**
|
|
27
|
+
* adjusted_entitlement_quantity is the entitlement-covered portion deducted from raw usage.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Nil when no entitlement was applied. Raw usage = Quantity + AdjustedEntitlementQuantity.
|
|
31
|
+
*/
|
|
32
|
+
adjustedEntitlementQuantity?: string | undefined;
|
|
26
33
|
amount?: string | undefined;
|
|
27
34
|
commitmentInfo?: CommitmentInfo | undefined;
|
|
28
35
|
createdAt?: Date | undefined;
|
|
@@ -61,6 +68,10 @@ export type InvoiceLineItemResponse = {
|
|
|
61
68
|
quantity?: string | undefined;
|
|
62
69
|
status?: Status | undefined;
|
|
63
70
|
subscriptionId?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* sub_line_item_id links this invoice line item to the subscription_line_item that generated it.
|
|
73
|
+
*/
|
|
74
|
+
subscriptionLineItemId?: string | undefined;
|
|
64
75
|
tenantId?: string | undefined;
|
|
65
76
|
updatedAt?: Date | undefined;
|
|
66
77
|
updatedBy?: string | undefined;
|
|
@@ -80,6 +91,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
80
91
|
unknown
|
|
81
92
|
> = z.pipe(
|
|
82
93
|
z.object({
|
|
94
|
+
adjusted_entitlement_quantity: types.optional(types.string()),
|
|
83
95
|
amount: types.optional(types.string()),
|
|
84
96
|
commitment_info: types.optional(CommitmentInfo$inboundSchema),
|
|
85
97
|
created_at: types.optional(types.date()),
|
|
@@ -109,6 +121,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
109
121
|
quantity: types.optional(types.string()),
|
|
110
122
|
status: types.optional(Status$inboundSchema),
|
|
111
123
|
subscription_id: types.optional(types.string()),
|
|
124
|
+
subscription_line_item_id: types.optional(types.string()),
|
|
112
125
|
tenant_id: types.optional(types.string()),
|
|
113
126
|
updated_at: types.optional(types.date()),
|
|
114
127
|
updated_by: types.optional(types.string()),
|
|
@@ -117,6 +130,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
117
130
|
}),
|
|
118
131
|
z.transform((v) => {
|
|
119
132
|
return remap$(v, {
|
|
133
|
+
"adjusted_entitlement_quantity": "adjustedEntitlementQuantity",
|
|
120
134
|
"commitment_info": "commitmentInfo",
|
|
121
135
|
"created_at": "createdAt",
|
|
122
136
|
"created_by": "createdBy",
|
|
@@ -140,6 +154,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
140
154
|
"price_unit_amount": "priceUnitAmount",
|
|
141
155
|
"price_unit_id": "priceUnitId",
|
|
142
156
|
"subscription_id": "subscriptionId",
|
|
157
|
+
"subscription_line_item_id": "subscriptionLineItemId",
|
|
143
158
|
"tenant_id": "tenantId",
|
|
144
159
|
"updated_at": "updatedAt",
|
|
145
160
|
"updated_by": "updatedBy",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
BillingPeriod,
|
|
12
|
+
BillingPeriod$inboundSchema,
|
|
13
|
+
} from "./billing-period.js";
|
|
14
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
15
|
+
|
|
16
|
+
export type InvoiceSyncSettings = {
|
|
17
|
+
normalizeFixedTo?: BillingPeriod | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const InvoiceSyncSettings$inboundSchema: z.ZodMiniType<
|
|
22
|
+
InvoiceSyncSettings,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.pipe(
|
|
25
|
+
z.object({
|
|
26
|
+
normalize_fixed_to: types.optional(BillingPeriod$inboundSchema),
|
|
27
|
+
}),
|
|
28
|
+
z.transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"normalize_fixed_to": "normalizeFixedTo",
|
|
31
|
+
});
|
|
32
|
+
}),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export function invoiceSyncSettingsFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<InvoiceSyncSettings, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) => InvoiceSyncSettings$inboundSchema.parse(JSON.parse(x)),
|
|
41
|
+
`Failed to parse 'InvoiceSyncSettings' from JSON`,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
BillingPeriod,
|
|
9
9
|
BillingPeriod$outboundSchema,
|
|
10
10
|
} from "./billing-period.js";
|
|
11
|
+
import {
|
|
12
|
+
CommitmentBucketRequest,
|
|
13
|
+
CommitmentBucketRequest$Outbound,
|
|
14
|
+
CommitmentBucketRequest$outboundSchema,
|
|
15
|
+
} from "./commitment-bucket-request.js";
|
|
11
16
|
import {
|
|
12
17
|
CommitmentType,
|
|
13
18
|
CommitmentType$outboundSchema,
|
|
@@ -23,6 +28,15 @@ export type LineItemCommitmentConfig = {
|
|
|
23
28
|
* CommitmentQuantity is the minimum quantity committed for this line item
|
|
24
29
|
*/
|
|
25
30
|
commitmentQuantity?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* CommitmentTimeBuckets defines per-bucket commitment + inline price for
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* windows whose start UTC hour falls within each configured bucket. Each
|
|
36
|
+
* bucket carries its own price (materialized by the service). Requires
|
|
37
|
+
* IsWindowCommitment=true.
|
|
38
|
+
*/
|
|
39
|
+
commitmentTimeBuckets?: Array<CommitmentBucketRequest> | undefined;
|
|
26
40
|
commitmentType?: CommitmentType | undefined;
|
|
27
41
|
/**
|
|
28
42
|
* EnableTrueUp determines if true-up fee should be applied when usage is below commitment
|
|
@@ -43,6 +57,7 @@ export type LineItemCommitmentConfig$Outbound = {
|
|
|
43
57
|
commitment_amount?: number | undefined;
|
|
44
58
|
commitment_duration?: string | undefined;
|
|
45
59
|
commitment_quantity?: number | undefined;
|
|
60
|
+
commitment_time_buckets?: Array<CommitmentBucketRequest$Outbound> | undefined;
|
|
46
61
|
commitment_type?: string | undefined;
|
|
47
62
|
enable_true_up?: boolean | undefined;
|
|
48
63
|
is_window_commitment?: boolean | undefined;
|
|
@@ -58,6 +73,9 @@ export const LineItemCommitmentConfig$outboundSchema: z.ZodMiniType<
|
|
|
58
73
|
commitmentAmount: z.optional(z.number()),
|
|
59
74
|
commitmentDuration: z.optional(BillingPeriod$outboundSchema),
|
|
60
75
|
commitmentQuantity: z.optional(z.number()),
|
|
76
|
+
commitmentTimeBuckets: z.optional(
|
|
77
|
+
z.array(CommitmentBucketRequest$outboundSchema),
|
|
78
|
+
),
|
|
61
79
|
commitmentType: z.optional(CommitmentType$outboundSchema),
|
|
62
80
|
enableTrueUp: z.optional(z.boolean()),
|
|
63
81
|
isWindowCommitment: z.optional(z.boolean()),
|
|
@@ -68,6 +86,7 @@ export const LineItemCommitmentConfig$outboundSchema: z.ZodMiniType<
|
|
|
68
86
|
commitmentAmount: "commitment_amount",
|
|
69
87
|
commitmentDuration: "commitment_duration",
|
|
70
88
|
commitmentQuantity: "commitment_quantity",
|
|
89
|
+
commitmentTimeBuckets: "commitment_time_buckets",
|
|
71
90
|
commitmentType: "commitment_type",
|
|
72
91
|
enableTrueUp: "enable_true_up",
|
|
73
92
|
isWindowCommitment: "is_window_commitment",
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ListCouponAssociationsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Filter by subscription IDs (max 100)
|
|
11
|
+
*/
|
|
12
|
+
subscriptionIds?: Array<string> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Filter by coupon IDs (max 100)
|
|
15
|
+
*/
|
|
16
|
+
couponIds?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Return only currently active associations
|
|
19
|
+
*/
|
|
20
|
+
activeOnly?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Page size
|
|
23
|
+
*/
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Page offset
|
|
27
|
+
*/
|
|
28
|
+
offset?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ListCouponAssociationsRequest$Outbound = {
|
|
33
|
+
subscription_ids?: Array<string> | undefined;
|
|
34
|
+
coupon_ids?: Array<string> | undefined;
|
|
35
|
+
active_only?: boolean | undefined;
|
|
36
|
+
limit?: number | undefined;
|
|
37
|
+
offset?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ListCouponAssociationsRequest$outboundSchema: z.ZodMiniType<
|
|
42
|
+
ListCouponAssociationsRequest$Outbound,
|
|
43
|
+
ListCouponAssociationsRequest
|
|
44
|
+
> = z.pipe(
|
|
45
|
+
z.object({
|
|
46
|
+
subscriptionIds: z.optional(z.array(z.string())),
|
|
47
|
+
couponIds: z.optional(z.array(z.string())),
|
|
48
|
+
activeOnly: z.optional(z.boolean()),
|
|
49
|
+
limit: z.optional(z.int()),
|
|
50
|
+
offset: z.optional(z.int()),
|
|
51
|
+
}),
|
|
52
|
+
z.transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
subscriptionIds: "subscription_ids",
|
|
55
|
+
couponIds: "coupon_ids",
|
|
56
|
+
activeOnly: "active_only",
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export function listCouponAssociationsRequestToJSON(
|
|
62
|
+
listCouponAssociationsRequest: ListCouponAssociationsRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
ListCouponAssociationsRequest$outboundSchema.parse(
|
|
66
|
+
listCouponAssociationsRequest,
|
|
67
|
+
),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import {
|
|
10
|
+
CouponAssociationResponse,
|
|
11
|
+
CouponAssociationResponse$inboundSchema,
|
|
12
|
+
} from "./coupon-association-response.js";
|
|
13
|
+
import {
|
|
14
|
+
PaginationResponse,
|
|
15
|
+
PaginationResponse$inboundSchema,
|
|
16
|
+
} from "./pagination-response.js";
|
|
17
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
18
|
+
|
|
19
|
+
export type ListCouponAssociationsResponse = {
|
|
20
|
+
items?: Array<CouponAssociationResponse> | undefined;
|
|
21
|
+
pagination?: PaginationResponse | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListCouponAssociationsResponse$inboundSchema: z.ZodMiniType<
|
|
26
|
+
ListCouponAssociationsResponse,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
items: types.optional(z.array(CouponAssociationResponse$inboundSchema)),
|
|
30
|
+
pagination: types.optional(PaginationResponse$inboundSchema),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listCouponAssociationsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListCouponAssociationsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListCouponAssociationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListCouponAssociationsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|