@paid-ai/paid-node 1.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +3 -3
- package/dist/cjs/Client.js +13 -13
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/analytics/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/analytics/client/Client.js +5 -2
- package/dist/cjs/api/resources/analyticsExperimental/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/analyticsExperimental/client/Client.js +5 -2
- package/dist/cjs/api/resources/checkouts/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/checkouts/client/Client.js +4 -1
- package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +5 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +6 -4
- package/dist/cjs/api/resources/contacts/client/Client.js +10 -4
- package/dist/cjs/api/resources/credits/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/credits/client/Client.js +105 -1
- package/dist/cjs/api/resources/credits/client/requests/GetCreditTransactionSummaryRequest.d.ts +33 -0
- package/dist/cjs/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/credits/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.d.ts +4 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.js +7 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.d.ts +6 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.js +9 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestType.d.ts +6 -0
- package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestType.js +9 -0
- package/dist/cjs/api/resources/credits/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/credits/types/index.js +3 -0
- package/dist/cjs/api/resources/customViewsExperimental/client/Client.d.ts +26 -3
- package/dist/cjs/api/resources/customViewsExperimental/client/Client.js +101 -4
- package/dist/cjs/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.ts +4 -0
- package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.ts +6 -0
- package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.ts +4 -0
- package/dist/cjs/api/resources/customViewsExperimental/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.d.ts +5 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.js +8 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.d.ts +6 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.js +9 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/customViewsExperimental/types/index.js +2 -0
- package/dist/cjs/api/resources/customerPortals/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/customerPortals/client/Client.js +1 -1
- package/dist/cjs/api/resources/customers/client/Client.d.ts +489 -19
- package/dist/cjs/api/resources/customers/client/Client.js +2018 -207
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerApiKeyRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerFundingInstructionsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.d.ts +18 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasByKeyRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasRequest.d.ts +18 -0
- package/dist/cjs/api/resources/customers/client/requests/CustomerUnitCreateUnderParent.d.ts +21 -0
- package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.d.ts +16 -0
- package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasRequest.d.ts +16 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerFundingInstructionsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitByKeyRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.d.ts +22 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.d.ts +22 -0
- package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.ts +2 -1
- package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.ts +2 -1
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/index.d.ts +23 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.js +3 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.js +3 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasResponse.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasResponse.js +3 -0
- package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.js +1 -0
- package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.js +1 -0
- package/dist/cjs/api/resources/customers/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customers/types/index.js +3 -0
- package/dist/cjs/api/resources/deliveredValue/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/deliveredValue/client/Client.js +248 -0
- package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.d.ts +18 -0
- package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.js +3 -0
- package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.d.ts +29 -0
- package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.js +3 -0
- package/dist/cjs/api/resources/deliveredValue/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/{customerGroups → deliveredValue}/index.d.ts +1 -0
- package/dist/cjs/api/resources/{customerGroups → deliveredValue}/index.js +1 -0
- package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.d.ts +7 -0
- package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.js +10 -0
- package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.d.ts +8 -0
- package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.js +11 -0
- package/dist/cjs/api/resources/deliveredValue/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/deliveredValue/types/index.js +18 -0
- package/dist/cjs/api/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/index.js +5 -3
- package/dist/cjs/api/resources/orders/client/Client.d.ts +87 -1
- package/dist/cjs/api/resources/orders/client/Client.js +146 -1
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +12 -1
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.js +12 -0
- package/dist/cjs/api/resources/orders/client/requests/ProvisionRequest.d.ts +82 -0
- package/dist/cjs/api/resources/orders/client/requests/ProvisionRequest.js +3 -0
- package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.d.ts +12 -1
- package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.js +12 -0
- package/dist/cjs/api/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/paymentAllocations/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/paymentAllocations/client/Client.js +4 -1
- package/dist/cjs/api/resources/payments/client/requests/CreatePaymentRequest.d.ts +1 -1
- package/dist/cjs/api/resources/signals/client/Client.d.ts +137 -4
- package/dist/cjs/api/resources/signals/client/Client.js +389 -4
- package/dist/cjs/api/resources/signals/client/requests/BulkSignalsRequest.d.ts +17 -3
- package/dist/cjs/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.d.ts +56 -0
- package/dist/cjs/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.js +12 -0
- package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryExportRequest.d.ts +9 -0
- package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryExportRequest.js +3 -0
- package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryRequest.d.ts +45 -0
- package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryRequest.js +3 -0
- package/dist/cjs/api/resources/signals/client/requests/SignalLookupRequest.d.ts +10 -0
- package/dist/cjs/api/resources/signals/client/requests/SignalLookupRequest.js +3 -0
- package/dist/cjs/api/resources/signals/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/signals/index.d.ts +1 -0
- package/dist/cjs/api/resources/signals/index.js +1 -0
- package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestGroupBy.d.ts +5 -0
- package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestGroupBy.js +8 -0
- package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestInterval.d.ts +7 -0
- package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestInterval.js +10 -0
- package/dist/cjs/api/resources/signals/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/signals/types/index.js +18 -0
- package/dist/cjs/api/resources/valueMetrics/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/valueMetrics/client/Client.js +1 -1
- package/dist/cjs/api/resources/valueModels/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/valueModels/client/Client.js +8 -2
- package/dist/cjs/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.ts +2 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/valueReceipts/client/Client.js +5 -5
- package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.js +0 -1
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.js +0 -1
- package/dist/cjs/api/types/Attribution.d.ts +3 -0
- package/dist/cjs/api/types/Checkout.d.ts +4 -0
- package/dist/cjs/api/types/CheckoutDetails.d.ts +4 -0
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +9 -0
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +3 -0
- package/dist/cjs/api/types/CreditBenefitInput.d.ts +5 -0
- package/dist/cjs/api/types/CreditBenefitInput.js +2 -0
- package/dist/cjs/api/types/CreditBenefitOutput.d.ts +2 -0
- package/dist/cjs/api/types/CreditGrantCreateRequest.d.ts +2 -0
- package/dist/cjs/api/types/CreditTransaction.d.ts +1 -1
- package/dist/cjs/api/types/CreditTransactionSummaryBucket.d.ts +25 -0
- package/dist/cjs/api/types/CreditTransactionSummaryBucket.js +3 -0
- package/dist/cjs/api/types/CreditTransactionSummaryResponse.d.ts +32 -0
- package/dist/cjs/api/types/CreditTransactionSummaryResponse.js +23 -0
- package/dist/cjs/api/types/CustomView.d.ts +4 -0
- package/dist/cjs/api/types/CustomViewAuthoringDetail.d.ts +4 -0
- package/dist/cjs/api/types/CustomViewContextCap.d.ts +27 -0
- package/dist/cjs/api/types/CustomViewContextCap.js +11 -0
- package/dist/cjs/api/types/CustomViewCustomerUnit.d.ts +16 -0
- package/dist/cjs/api/types/CustomViewCustomerUnit.js +3 -0
- package/dist/cjs/api/types/CustomViewDataContext.d.ts +57 -0
- package/dist/cjs/api/types/CustomViewDataContext.js +21 -0
- package/dist/cjs/api/types/CustomViewDetail.d.ts +4 -0
- package/dist/cjs/api/types/CustomViewPreviewHarnessRequest.d.ts +2 -1
- package/dist/cjs/api/types/CustomViewSummary.d.ts +4 -0
- package/dist/cjs/api/types/CustomViewUnitSelection.d.ts +14 -0
- package/dist/cjs/api/types/CustomViewUnitSelection.js +3 -0
- package/dist/cjs/api/types/CustomerAlias.d.ts +2 -0
- package/dist/cjs/api/types/CustomerApiKey.d.ts +31 -0
- package/dist/cjs/api/types/CustomerApiKey.js +13 -0
- package/dist/cjs/api/types/CustomerApiKeyCreate.d.ts +8 -0
- package/dist/cjs/api/types/CustomerApiKeyCreate.js +3 -0
- package/dist/cjs/api/types/CustomerApiKeyCreated.d.ts +33 -0
- package/dist/cjs/api/types/CustomerApiKeyCreated.js +13 -0
- package/dist/cjs/api/types/CustomerApiKeyList.d.ts +5 -0
- package/dist/cjs/api/types/CustomerApiKeyList.js +3 -0
- package/dist/cjs/api/types/CustomerAttribution.d.ts +3 -0
- package/dist/cjs/api/types/CustomerFundingInstructions.d.ts +24 -0
- package/dist/cjs/api/types/CustomerFundingInstructions.js +10 -0
- package/dist/cjs/api/types/CustomerFundingInstructionsCreateRequest.d.ts +4 -0
- package/dist/cjs/api/types/CustomerFundingInstructionsCreateRequest.js +3 -0
- package/dist/cjs/api/types/CustomerUnit.d.ts +13 -2
- package/dist/cjs/api/types/CustomerUnit.js +2 -1
- package/dist/cjs/api/types/CustomerUnitAttribution.d.ts +2 -2
- package/dist/cjs/api/types/CustomerUnitByKey.d.ts +37 -0
- package/dist/cjs/api/types/CustomerUnitByKey.js +13 -0
- package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.d.ts +5 -3
- package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.js +1 -1
- package/dist/cjs/api/types/CustomerUnitCapPolicy.d.ts +5 -3
- package/dist/cjs/api/types/CustomerUnitCapPolicy.js +1 -1
- package/dist/cjs/api/types/CustomerUnitCapSavedPolicy.d.ts +26 -0
- package/dist/cjs/api/types/CustomerUnitCapSavedPolicy.js +11 -0
- package/dist/cjs/api/types/CustomerUnitCapSchedule.d.ts +9 -0
- package/dist/cjs/api/types/CustomerUnitCapSchedule.js +3 -0
- package/dist/cjs/api/types/CustomerUnitCapScheduleInput.d.ts +9 -0
- package/dist/cjs/api/types/CustomerUnitCapScheduleInput.js +3 -0
- package/dist/cjs/api/types/CustomerUnitCapSet.d.ts +5 -3
- package/dist/cjs/api/types/CustomerUnitCapSet.js +1 -1
- package/dist/cjs/api/types/CustomerUnitCapSetResponse.d.ts +3 -1
- package/dist/cjs/api/types/CustomerUnitCreate.d.ts +3 -1
- package/dist/cjs/api/types/CustomerUnitCreatedUnderParent.d.ts +34 -0
- package/dist/cjs/api/types/CustomerUnitCreatedUnderParent.js +13 -0
- package/dist/cjs/api/types/CustomerUnitSpendResponse.d.ts +12 -0
- package/dist/cjs/api/types/CustomerUnitSpendResponse.js +3 -0
- package/dist/cjs/api/types/CustomerUnitSpendWindow.d.ts +9 -0
- package/dist/cjs/api/types/CustomerUnitSpendWindow.js +3 -0
- package/dist/cjs/api/types/CustomerUnitUpdate.d.ts +2 -0
- package/dist/cjs/api/types/DeliveredValueCalculation.d.ts +11 -0
- package/dist/cjs/api/types/DeliveredValueCalculation.js +3 -0
- package/dist/cjs/api/types/DeliveredValueCalculationTerm.d.ts +34 -0
- package/dist/cjs/api/types/DeliveredValueCalculationTerm.js +24 -0
- package/dist/cjs/api/types/DeliveredValueMetric.d.ts +54 -0
- package/dist/cjs/api/types/DeliveredValueMetric.js +3 -0
- package/dist/cjs/api/types/DeliveredValueResponse.d.ts +34 -0
- package/dist/cjs/api/types/DeliveredValueResponse.js +3 -0
- package/dist/cjs/api/types/DeliveredValueSignal.d.ts +14 -0
- package/dist/cjs/api/types/DeliveredValueSignal.js +3 -0
- package/dist/cjs/api/types/DeliveredValueSignalValue.d.ts +8 -0
- package/dist/cjs/api/types/DeliveredValueSignalValue.js +3 -0
- package/dist/cjs/api/types/DeliveredValueSummaryBucket.d.ts +20 -0
- package/dist/cjs/api/types/DeliveredValueSummaryBucket.js +3 -0
- package/dist/cjs/api/types/DeliveredValueSummaryResponse.d.ts +41 -0
- package/dist/cjs/api/types/DeliveredValueSummaryResponse.js +22 -0
- package/dist/cjs/api/types/GrantCustomerCreditsResponse.d.ts +1 -1
- package/dist/cjs/api/types/PlanCreditBenefit.d.ts +4 -6
- package/dist/cjs/api/types/PlanCreditBenefit.js +0 -4
- package/dist/cjs/api/types/PricingOutput.d.ts +3 -0
- package/dist/cjs/api/types/ProductCreditBenefitInput.d.ts +5 -0
- package/dist/cjs/api/types/ProductCreditBenefitInput.js +2 -0
- package/dist/cjs/api/types/ProductCreditBenefitOutput.d.ts +2 -0
- package/dist/cjs/api/types/ProductPricingOutput.d.ts +3 -0
- package/dist/cjs/api/types/ProductSeatBasedPrepaidCreditsInput.d.ts +3 -0
- package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.d.ts +4 -0
- package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.js +1 -0
- package/dist/cjs/api/types/ProductUsageCostPlusInput.d.ts +2 -0
- package/dist/cjs/api/types/ProductUsageCostPlusInput.js +1 -0
- package/dist/cjs/api/types/ProductUsageGraduatedInput.d.ts +2 -0
- package/dist/cjs/api/types/ProductUsageGraduatedInput.js +1 -0
- package/dist/cjs/api/types/ProductUsagePerUnitInput.d.ts +2 -0
- package/dist/cjs/api/types/ProductUsagePerUnitInput.js +1 -0
- package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.d.ts +5 -0
- package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.js +1 -0
- package/dist/cjs/api/types/ProductUsageVolumeInput.d.ts +2 -0
- package/dist/cjs/api/types/ProductUsageVolumeInput.js +1 -0
- package/dist/cjs/api/types/ProvisionBillingFrequencyOverride.d.ts +14 -0
- package/dist/cjs/api/types/ProvisionBillingFrequencyOverride.js +14 -0
- package/dist/cjs/api/types/ProvisionContact.d.ts +20 -0
- package/dist/cjs/api/types/ProvisionContact.js +14 -0
- package/dist/cjs/api/types/ProvisionCreatedContact.d.ts +14 -0
- package/dist/cjs/api/types/ProvisionCreatedContact.js +12 -0
- package/dist/cjs/api/types/ProvisionCreatedCustomer.d.ts +14 -0
- package/dist/cjs/api/types/ProvisionCreatedCustomer.js +12 -0
- package/dist/cjs/api/types/ProvisionCreatedOrder.d.ts +17 -0
- package/dist/cjs/api/types/ProvisionCreatedOrder.js +12 -0
- package/dist/cjs/api/types/ProvisionCreatedOrderLine.d.ts +17 -0
- package/dist/cjs/api/types/ProvisionCreatedOrderLine.js +12 -0
- package/dist/cjs/api/types/ProvisionCreditBenefit.d.ts +44 -0
- package/dist/cjs/api/types/ProvisionCreditBenefit.js +26 -0
- package/dist/cjs/api/types/ProvisionCustomer.d.ts +23 -0
- package/dist/cjs/api/types/ProvisionCustomer.js +12 -0
- package/dist/cjs/api/types/ProvisionExternalReference.d.ts +16 -0
- package/dist/cjs/api/types/ProvisionExternalReference.js +14 -0
- package/dist/cjs/api/types/ProvisionOrder.d.ts +39 -0
- package/dist/cjs/api/types/ProvisionOrder.js +20 -0
- package/dist/cjs/api/types/ProvisionOrderLine.d.ts +12 -0
- package/dist/cjs/api/types/ProvisionOrderLine.js +3 -0
- package/dist/cjs/api/types/ProvisionOrderLineAttribute.d.ts +96 -0
- package/dist/cjs/api/types/ProvisionOrderLineAttribute.js +50 -0
- package/dist/cjs/api/types/ProvisionOrderLineType.d.ts +7 -0
- package/dist/cjs/api/types/ProvisionOrderLineType.js +10 -0
- package/dist/cjs/api/types/ProvisionProduct.d.ts +95 -0
- package/dist/cjs/api/types/ProvisionProduct.js +52 -0
- package/dist/cjs/api/types/ProvisionResponse.d.ts +17 -0
- package/dist/cjs/api/types/ProvisionResponse.js +12 -0
- package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +3 -0
- package/dist/cjs/api/types/Signal.d.ts +8 -2
- package/dist/cjs/api/types/SignalListItem.d.ts +1 -1
- package/dist/cjs/api/types/SignalLookupResponse.d.ts +7 -0
- package/dist/cjs/api/types/SignalLookupResponse.js +3 -0
- package/dist/cjs/api/types/SignalSummaryBandsDimension.d.ts +21 -0
- package/dist/cjs/api/types/SignalSummaryBandsDimension.js +3 -0
- package/dist/cjs/api/types/SignalSummaryColumn.d.ts +8 -0
- package/dist/cjs/api/types/SignalSummaryColumn.js +3 -0
- package/dist/cjs/api/types/SignalSummaryDefinitionSpec.d.ts +21 -0
- package/dist/cjs/api/types/SignalSummaryDefinitionSpec.js +11 -0
- package/dist/cjs/api/types/SignalSummaryDefinitionSpecDimensionsItem.d.ts +10 -0
- package/dist/cjs/api/types/SignalSummaryDefinitionSpecDimensionsItem.js +3 -0
- package/dist/cjs/api/types/SignalSummaryExport.d.ts +36 -0
- package/dist/cjs/api/types/SignalSummaryExport.js +18 -0
- package/dist/cjs/api/types/SignalSummaryGroups.d.ts +9 -0
- package/dist/cjs/api/types/SignalSummaryGroups.js +3 -0
- package/dist/cjs/api/types/SignalSummaryMeasure.d.ts +16 -0
- package/dist/cjs/api/types/SignalSummaryMeasure.js +14 -0
- package/dist/cjs/api/types/SignalSummaryPage.d.ts +8 -0
- package/dist/cjs/api/types/SignalSummaryPage.js +3 -0
- package/dist/cjs/api/types/SignalSummaryPoint.d.ts +16 -0
- package/dist/cjs/api/types/SignalSummaryPoint.js +3 -0
- package/dist/cjs/api/types/SignalSummaryPresenceDimension.d.ts +23 -0
- package/dist/cjs/api/types/SignalSummaryPresenceDimension.js +3 -0
- package/dist/cjs/api/types/SignalSummaryResponse.d.ts +29 -0
- package/dist/cjs/api/types/SignalSummaryResponse.js +19 -0
- package/dist/cjs/api/types/SignalSummarySignalSelection.d.ts +8 -0
- package/dist/cjs/api/types/SignalSummarySignalSelection.js +3 -0
- package/dist/cjs/api/types/SignalSummarySpecInput.d.ts +21 -0
- package/dist/cjs/api/types/SignalSummarySpecInput.js +11 -0
- package/dist/cjs/api/types/SignalSummarySpecInputDimensionsItem.d.ts +10 -0
- package/dist/cjs/api/types/SignalSummarySpecInputDimensionsItem.js +3 -0
- package/dist/cjs/api/types/SignalsMetadataResponse.d.ts +22 -1
- package/dist/cjs/api/types/SignalsMetadataResponse.js +24 -0
- package/dist/cjs/api/types/UpdateContactRequest.d.ts +1 -0
- package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.d.ts +4 -0
- package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.js +1 -0
- package/dist/cjs/api/types/UsageCostPlusInput.d.ts +2 -0
- package/dist/cjs/api/types/UsageCostPlusInput.js +1 -0
- package/dist/cjs/api/types/UsageGraduatedInput.d.ts +2 -0
- package/dist/cjs/api/types/UsageGraduatedInput.js +1 -0
- package/dist/cjs/api/types/UsagePerUnitInput.d.ts +2 -0
- package/dist/cjs/api/types/UsagePerUnitInput.js +1 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +5 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +1 -0
- package/dist/cjs/api/types/UsageVolumeInput.d.ts +2 -0
- package/dist/cjs/api/types/UsageVolumeInput.js +1 -0
- package/dist/cjs/api/types/ValidateCustomViewRequest.d.ts +4 -0
- package/dist/cjs/api/types/ValueModelContent.d.ts +17 -15
- package/dist/cjs/api/types/ValueModelContent.js +7 -0
- package/dist/cjs/api/types/ValueReceiptDetail.d.ts +1 -0
- package/dist/cjs/api/types/ValueReceiptSummary.d.ts +1 -0
- package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +1 -0
- package/dist/cjs/api/types/ViewCustomerUnitsResponse.d.ts +7 -0
- package/dist/cjs/api/types/ViewCustomerUnitsResponse.js +3 -0
- package/dist/cjs/api/types/ViewDataResponse.d.ts +2 -0
- package/dist/cjs/api/types/Webhook.d.ts +0 -1
- package/dist/cjs/api/types/Webhook.js +0 -1
- package/dist/cjs/api/types/WebhookUpdateResponse.d.ts +0 -1
- package/dist/cjs/api/types/WebhookUpdateResponse.js +0 -1
- package/dist/cjs/api/types/WritableProvisionOrderLineType.d.ts +6 -0
- package/dist/cjs/api/types/WritableProvisionOrderLineType.js +9 -0
- package/dist/cjs/api/types/index.d.ts +59 -10
- package/dist/cjs/api/types/index.js +59 -10
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -3
- package/dist/esm/Client.mjs +7 -7
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/analytics/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/analytics/client/Client.mjs +5 -2
- package/dist/esm/api/resources/analyticsExperimental/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/analyticsExperimental/client/Client.mjs +5 -2
- package/dist/esm/api/resources/checkouts/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/checkouts/client/Client.mjs +4 -1
- package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +5 -0
- package/dist/esm/api/resources/contacts/client/Client.d.mts +6 -4
- package/dist/esm/api/resources/contacts/client/Client.mjs +10 -4
- package/dist/esm/api/resources/credits/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/credits/client/Client.mjs +105 -1
- package/dist/esm/api/resources/credits/client/requests/GetCreditTransactionSummaryRequest.d.mts +33 -0
- package/dist/esm/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.mts +2 -0
- package/dist/esm/api/resources/credits/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.d.mts +4 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.mjs +4 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.d.mts +6 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.mjs +6 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestType.d.mts +6 -0
- package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestType.mjs +6 -0
- package/dist/esm/api/resources/credits/types/index.d.mts +3 -0
- package/dist/esm/api/resources/credits/types/index.mjs +3 -0
- package/dist/esm/api/resources/customViewsExperimental/client/Client.d.mts +26 -3
- package/dist/esm/api/resources/customViewsExperimental/client/Client.mjs +101 -4
- package/dist/esm/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.mts +4 -0
- package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.mts +6 -0
- package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.mts +4 -0
- package/dist/esm/api/resources/customViewsExperimental/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.d.mts +5 -0
- package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.mjs +5 -0
- package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.d.mts +6 -0
- package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.mjs +6 -0
- package/dist/esm/api/resources/customViewsExperimental/types/index.d.mts +2 -0
- package/dist/esm/api/resources/customViewsExperimental/types/index.mjs +2 -0
- package/dist/esm/api/resources/customerPortals/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/customerPortals/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customers/client/Client.d.mts +489 -19
- package/dist/esm/api/resources/customers/client/Client.mjs +2018 -207
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.d.mts +15 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerApiKeyRequest.d.mts +15 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerFundingInstructionsRequest.d.mts +13 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.d.mts +18 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasByKeyRequest.d.mts +15 -0
- package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasRequest.d.mts +18 -0
- package/dist/esm/api/resources/customers/client/requests/CustomerUnitCreateUnderParent.d.mts +21 -0
- package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.d.mts +16 -0
- package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.d.mts +13 -0
- package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasRequest.d.mts +16 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.d.mts +11 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerFundingInstructionsRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitByKeyRequest.d.mts +10 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.d.mts +22 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.d.mts +22 -0
- package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.mts +2 -1
- package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.mts +2 -1
- package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.d.mts +15 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.d.mts +15 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.mts +1 -1
- package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.mts +1 -1
- package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.d.mts +13 -0
- package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/index.d.mts +23 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.mjs +2 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.mjs +2 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasResponse.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasResponse.mjs +2 -0
- package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.mjs +1 -0
- package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.mjs +1 -0
- package/dist/esm/api/resources/customers/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customers/types/index.mjs +3 -0
- package/dist/esm/api/resources/deliveredValue/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/deliveredValue/client/Client.mjs +211 -0
- package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.d.mts +18 -0
- package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.mjs +2 -0
- package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.d.mts +29 -0
- package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.mjs +2 -0
- package/dist/esm/api/resources/deliveredValue/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/{customerGroups → deliveredValue}/index.d.mts +1 -0
- package/dist/esm/api/resources/{customerGroups → deliveredValue}/index.mjs +1 -0
- package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.d.mts +7 -0
- package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.mjs +7 -0
- package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.d.mts +8 -0
- package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.mjs +8 -0
- package/dist/esm/api/resources/deliveredValue/types/index.d.mts +2 -0
- package/dist/esm/api/resources/deliveredValue/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/index.mjs +4 -2
- package/dist/esm/api/resources/orders/client/Client.d.mts +87 -1
- package/dist/esm/api/resources/orders/client/Client.mjs +146 -1
- package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +12 -1
- package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.mjs +11 -1
- package/dist/esm/api/resources/orders/client/requests/ProvisionRequest.d.mts +82 -0
- package/dist/esm/api/resources/orders/client/requests/ProvisionRequest.mjs +2 -0
- package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +12 -1
- package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.mjs +11 -1
- package/dist/esm/api/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/paymentAllocations/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/paymentAllocations/client/Client.mjs +4 -1
- package/dist/esm/api/resources/payments/client/requests/CreatePaymentRequest.d.mts +1 -1
- package/dist/esm/api/resources/signals/client/Client.d.mts +137 -4
- package/dist/esm/api/resources/signals/client/Client.mjs +389 -4
- package/dist/esm/api/resources/signals/client/requests/BulkSignalsRequest.d.mts +17 -3
- package/dist/esm/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.d.mts +56 -0
- package/dist/esm/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.mjs +9 -0
- package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryExportRequest.d.mts +9 -0
- package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryExportRequest.mjs +2 -0
- package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryRequest.d.mts +45 -0
- package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryRequest.mjs +2 -0
- package/dist/esm/api/resources/signals/client/requests/SignalLookupRequest.d.mts +10 -0
- package/dist/esm/api/resources/signals/client/requests/SignalLookupRequest.mjs +2 -0
- package/dist/esm/api/resources/signals/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/signals/index.d.mts +1 -0
- package/dist/esm/api/resources/signals/index.mjs +1 -0
- package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestGroupBy.d.mts +5 -0
- package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestGroupBy.mjs +5 -0
- package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestInterval.d.mts +7 -0
- package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestInterval.mjs +7 -0
- package/dist/esm/api/resources/signals/types/index.d.mts +2 -0
- package/dist/esm/api/resources/signals/types/index.mjs +2 -0
- package/dist/esm/api/resources/valueMetrics/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/valueMetrics/client/Client.mjs +1 -1
- package/dist/esm/api/resources/valueModels/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/valueModels/client/Client.mjs +8 -2
- package/dist/esm/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.mts +2 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/valueReceipts/client/Client.mjs +5 -5
- package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -2
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.mjs +0 -1
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.mjs +0 -1
- package/dist/esm/api/types/Attribution.d.mts +3 -0
- package/dist/esm/api/types/Checkout.d.mts +4 -0
- package/dist/esm/api/types/CheckoutDetails.d.mts +4 -0
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +9 -0
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +3 -0
- package/dist/esm/api/types/CreditBenefitInput.d.mts +5 -0
- package/dist/esm/api/types/CreditBenefitInput.mjs +2 -0
- package/dist/esm/api/types/CreditBenefitOutput.d.mts +2 -0
- package/dist/esm/api/types/CreditGrantCreateRequest.d.mts +2 -0
- package/dist/esm/api/types/CreditTransaction.d.mts +1 -1
- package/dist/esm/api/types/CreditTransactionSummaryBucket.d.mts +25 -0
- package/dist/esm/api/types/CreditTransactionSummaryBucket.mjs +2 -0
- package/dist/esm/api/types/CreditTransactionSummaryResponse.d.mts +32 -0
- package/dist/esm/api/types/CreditTransactionSummaryResponse.mjs +20 -0
- package/dist/esm/api/types/CustomView.d.mts +4 -0
- package/dist/esm/api/types/CustomViewAuthoringDetail.d.mts +4 -0
- package/dist/esm/api/types/CustomViewContextCap.d.mts +27 -0
- package/dist/esm/api/types/CustomViewContextCap.mjs +8 -0
- package/dist/esm/api/types/CustomViewCustomerUnit.d.mts +16 -0
- package/dist/esm/api/types/CustomViewCustomerUnit.mjs +2 -0
- package/dist/esm/api/types/CustomViewDataContext.d.mts +57 -0
- package/dist/esm/api/types/CustomViewDataContext.mjs +18 -0
- package/dist/esm/api/types/CustomViewDetail.d.mts +4 -0
- package/dist/esm/api/types/CustomViewPreviewHarnessRequest.d.mts +2 -1
- package/dist/esm/api/types/CustomViewSummary.d.mts +4 -0
- package/dist/esm/api/types/CustomViewUnitSelection.d.mts +14 -0
- package/dist/esm/api/types/CustomViewUnitSelection.mjs +2 -0
- package/dist/esm/api/types/CustomerAlias.d.mts +2 -0
- package/dist/esm/api/types/CustomerApiKey.d.mts +31 -0
- package/dist/esm/api/types/CustomerApiKey.mjs +10 -0
- package/dist/esm/api/types/CustomerApiKeyCreate.d.mts +8 -0
- package/dist/esm/api/types/CustomerApiKeyCreate.mjs +2 -0
- package/dist/esm/api/types/CustomerApiKeyCreated.d.mts +33 -0
- package/dist/esm/api/types/CustomerApiKeyCreated.mjs +10 -0
- package/dist/esm/api/types/CustomerApiKeyList.d.mts +5 -0
- package/dist/esm/api/types/CustomerApiKeyList.mjs +2 -0
- package/dist/esm/api/types/CustomerAttribution.d.mts +3 -0
- package/dist/esm/api/types/CustomerFundingInstructions.d.mts +24 -0
- package/dist/esm/api/types/CustomerFundingInstructions.mjs +7 -0
- package/dist/esm/api/types/CustomerFundingInstructionsCreateRequest.d.mts +4 -0
- package/dist/esm/api/types/CustomerFundingInstructionsCreateRequest.mjs +2 -0
- package/dist/esm/api/types/CustomerUnit.d.mts +13 -2
- package/dist/esm/api/types/CustomerUnit.mjs +2 -1
- package/dist/esm/api/types/CustomerUnitAttribution.d.mts +2 -2
- package/dist/esm/api/types/CustomerUnitByKey.d.mts +37 -0
- package/dist/esm/api/types/CustomerUnitByKey.mjs +10 -0
- package/dist/esm/api/types/CustomerUnitCapEndedPolicy.d.mts +5 -3
- package/dist/esm/api/types/CustomerUnitCapEndedPolicy.mjs +1 -1
- package/dist/esm/api/types/CustomerUnitCapPolicy.d.mts +5 -3
- package/dist/esm/api/types/CustomerUnitCapPolicy.mjs +1 -1
- package/dist/esm/api/types/CustomerUnitCapSavedPolicy.d.mts +26 -0
- package/dist/esm/api/types/CustomerUnitCapSavedPolicy.mjs +8 -0
- package/dist/esm/api/types/CustomerUnitCapSchedule.d.mts +9 -0
- package/dist/esm/api/types/CustomerUnitCapSchedule.mjs +2 -0
- package/dist/esm/api/types/CustomerUnitCapScheduleInput.d.mts +9 -0
- package/dist/esm/api/types/CustomerUnitCapScheduleInput.mjs +2 -0
- package/dist/esm/api/types/CustomerUnitCapSet.d.mts +5 -3
- package/dist/esm/api/types/CustomerUnitCapSet.mjs +1 -1
- package/dist/esm/api/types/CustomerUnitCapSetResponse.d.mts +3 -1
- package/dist/esm/api/types/CustomerUnitCreate.d.mts +3 -1
- package/dist/esm/api/types/CustomerUnitCreatedUnderParent.d.mts +34 -0
- package/dist/esm/api/types/CustomerUnitCreatedUnderParent.mjs +10 -0
- package/dist/esm/api/types/CustomerUnitSpendResponse.d.mts +12 -0
- package/dist/esm/api/types/CustomerUnitSpendResponse.mjs +2 -0
- package/dist/esm/api/types/CustomerUnitSpendWindow.d.mts +9 -0
- package/dist/esm/api/types/CustomerUnitSpendWindow.mjs +2 -0
- package/dist/esm/api/types/CustomerUnitUpdate.d.mts +2 -0
- package/dist/esm/api/types/DeliveredValueCalculation.d.mts +11 -0
- package/dist/esm/api/types/DeliveredValueCalculation.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueCalculationTerm.d.mts +34 -0
- package/dist/esm/api/types/DeliveredValueCalculationTerm.mjs +21 -0
- package/dist/esm/api/types/DeliveredValueMetric.d.mts +54 -0
- package/dist/esm/api/types/DeliveredValueMetric.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueResponse.d.mts +34 -0
- package/dist/esm/api/types/DeliveredValueResponse.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueSignal.d.mts +14 -0
- package/dist/esm/api/types/DeliveredValueSignal.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueSignalValue.d.mts +8 -0
- package/dist/esm/api/types/DeliveredValueSignalValue.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueSummaryBucket.d.mts +20 -0
- package/dist/esm/api/types/DeliveredValueSummaryBucket.mjs +2 -0
- package/dist/esm/api/types/DeliveredValueSummaryResponse.d.mts +41 -0
- package/dist/esm/api/types/DeliveredValueSummaryResponse.mjs +19 -0
- package/dist/esm/api/types/GrantCustomerCreditsResponse.d.mts +1 -1
- package/dist/esm/api/types/PlanCreditBenefit.d.mts +4 -6
- package/dist/esm/api/types/PlanCreditBenefit.mjs +0 -4
- package/dist/esm/api/types/PricingOutput.d.mts +3 -0
- package/dist/esm/api/types/ProductCreditBenefitInput.d.mts +5 -0
- package/dist/esm/api/types/ProductCreditBenefitInput.mjs +2 -0
- package/dist/esm/api/types/ProductCreditBenefitOutput.d.mts +2 -0
- package/dist/esm/api/types/ProductPricingOutput.d.mts +3 -0
- package/dist/esm/api/types/ProductSeatBasedPrepaidCreditsInput.d.mts +3 -0
- package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.d.mts +4 -0
- package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.mjs +1 -0
- package/dist/esm/api/types/ProductUsageCostPlusInput.d.mts +2 -0
- package/dist/esm/api/types/ProductUsageCostPlusInput.mjs +1 -0
- package/dist/esm/api/types/ProductUsageGraduatedInput.d.mts +2 -0
- package/dist/esm/api/types/ProductUsageGraduatedInput.mjs +1 -0
- package/dist/esm/api/types/ProductUsagePerUnitInput.d.mts +2 -0
- package/dist/esm/api/types/ProductUsagePerUnitInput.mjs +1 -0
- package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.d.mts +5 -0
- package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.mjs +1 -0
- package/dist/esm/api/types/ProductUsageVolumeInput.d.mts +2 -0
- package/dist/esm/api/types/ProductUsageVolumeInput.mjs +1 -0
- package/dist/esm/api/types/ProvisionBillingFrequencyOverride.d.mts +14 -0
- package/dist/esm/api/types/ProvisionBillingFrequencyOverride.mjs +11 -0
- package/dist/esm/api/types/ProvisionContact.d.mts +20 -0
- package/dist/esm/api/types/ProvisionContact.mjs +11 -0
- package/dist/esm/api/types/ProvisionCreatedContact.d.mts +14 -0
- package/dist/esm/api/types/ProvisionCreatedContact.mjs +9 -0
- package/dist/esm/api/types/ProvisionCreatedCustomer.d.mts +14 -0
- package/dist/esm/api/types/ProvisionCreatedCustomer.mjs +9 -0
- package/dist/esm/api/types/ProvisionCreatedOrder.d.mts +17 -0
- package/dist/esm/api/types/ProvisionCreatedOrder.mjs +9 -0
- package/dist/esm/api/types/ProvisionCreatedOrderLine.d.mts +17 -0
- package/dist/esm/api/types/ProvisionCreatedOrderLine.mjs +9 -0
- package/dist/esm/api/types/ProvisionCreditBenefit.d.mts +44 -0
- package/dist/esm/api/types/ProvisionCreditBenefit.mjs +23 -0
- package/dist/esm/api/types/ProvisionCustomer.d.mts +23 -0
- package/dist/esm/api/types/ProvisionCustomer.mjs +9 -0
- package/dist/esm/api/types/ProvisionExternalReference.d.mts +16 -0
- package/dist/esm/api/types/ProvisionExternalReference.mjs +11 -0
- package/dist/esm/api/types/ProvisionOrder.d.mts +39 -0
- package/dist/esm/api/types/ProvisionOrder.mjs +17 -0
- package/dist/esm/api/types/ProvisionOrderLine.d.mts +12 -0
- package/dist/esm/api/types/ProvisionOrderLine.mjs +2 -0
- package/dist/esm/api/types/ProvisionOrderLineAttribute.d.mts +96 -0
- package/dist/esm/api/types/ProvisionOrderLineAttribute.mjs +47 -0
- package/dist/esm/api/types/ProvisionOrderLineType.d.mts +7 -0
- package/dist/esm/api/types/ProvisionOrderLineType.mjs +7 -0
- package/dist/esm/api/types/ProvisionProduct.d.mts +95 -0
- package/dist/esm/api/types/ProvisionProduct.mjs +49 -0
- package/dist/esm/api/types/ProvisionResponse.d.mts +17 -0
- package/dist/esm/api/types/ProvisionResponse.mjs +9 -0
- package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +3 -0
- package/dist/esm/api/types/Signal.d.mts +8 -2
- package/dist/esm/api/types/SignalListItem.d.mts +1 -1
- package/dist/esm/api/types/SignalLookupResponse.d.mts +7 -0
- package/dist/esm/api/types/SignalLookupResponse.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryBandsDimension.d.mts +21 -0
- package/dist/esm/api/types/SignalSummaryBandsDimension.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryColumn.d.mts +8 -0
- package/dist/esm/api/types/SignalSummaryColumn.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryDefinitionSpec.d.mts +21 -0
- package/dist/esm/api/types/SignalSummaryDefinitionSpec.mjs +8 -0
- package/dist/esm/api/types/SignalSummaryDefinitionSpecDimensionsItem.d.mts +10 -0
- package/dist/esm/api/types/SignalSummaryDefinitionSpecDimensionsItem.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryExport.d.mts +36 -0
- package/dist/esm/api/types/SignalSummaryExport.mjs +15 -0
- package/dist/esm/api/types/SignalSummaryGroups.d.mts +9 -0
- package/dist/esm/api/types/SignalSummaryGroups.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryMeasure.d.mts +16 -0
- package/dist/esm/api/types/SignalSummaryMeasure.mjs +11 -0
- package/dist/esm/api/types/SignalSummaryPage.d.mts +8 -0
- package/dist/esm/api/types/SignalSummaryPage.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryPoint.d.mts +16 -0
- package/dist/esm/api/types/SignalSummaryPoint.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryPresenceDimension.d.mts +23 -0
- package/dist/esm/api/types/SignalSummaryPresenceDimension.mjs +2 -0
- package/dist/esm/api/types/SignalSummaryResponse.d.mts +29 -0
- package/dist/esm/api/types/SignalSummaryResponse.mjs +16 -0
- package/dist/esm/api/types/SignalSummarySignalSelection.d.mts +8 -0
- package/dist/esm/api/types/SignalSummarySignalSelection.mjs +2 -0
- package/dist/esm/api/types/SignalSummarySpecInput.d.mts +21 -0
- package/dist/esm/api/types/SignalSummarySpecInput.mjs +8 -0
- package/dist/esm/api/types/SignalSummarySpecInputDimensionsItem.d.mts +10 -0
- package/dist/esm/api/types/SignalSummarySpecInputDimensionsItem.mjs +2 -0
- package/dist/esm/api/types/SignalsMetadataResponse.d.mts +22 -1
- package/dist/esm/api/types/SignalsMetadataResponse.mjs +23 -1
- package/dist/esm/api/types/UpdateContactRequest.d.mts +1 -0
- package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.d.mts +4 -0
- package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.mjs +1 -0
- package/dist/esm/api/types/UsageCostPlusInput.d.mts +2 -0
- package/dist/esm/api/types/UsageCostPlusInput.mjs +1 -0
- package/dist/esm/api/types/UsageGraduatedInput.d.mts +2 -0
- package/dist/esm/api/types/UsageGraduatedInput.mjs +1 -0
- package/dist/esm/api/types/UsagePerUnitInput.d.mts +2 -0
- package/dist/esm/api/types/UsagePerUnitInput.mjs +1 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +5 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +1 -0
- package/dist/esm/api/types/UsageVolumeInput.d.mts +2 -0
- package/dist/esm/api/types/UsageVolumeInput.mjs +1 -0
- package/dist/esm/api/types/ValidateCustomViewRequest.d.mts +4 -0
- package/dist/esm/api/types/ValueModelContent.d.mts +17 -15
- package/dist/esm/api/types/ValueModelContent.mjs +7 -0
- package/dist/esm/api/types/ValueReceiptDetail.d.mts +1 -0
- package/dist/esm/api/types/ValueReceiptSummary.d.mts +1 -0
- package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +1 -0
- package/dist/esm/api/types/ViewCustomerUnitsResponse.d.mts +7 -0
- package/dist/esm/api/types/ViewCustomerUnitsResponse.mjs +2 -0
- package/dist/esm/api/types/ViewDataResponse.d.mts +2 -0
- package/dist/esm/api/types/Webhook.d.mts +0 -1
- package/dist/esm/api/types/Webhook.mjs +0 -1
- package/dist/esm/api/types/WebhookUpdateResponse.d.mts +0 -1
- package/dist/esm/api/types/WebhookUpdateResponse.mjs +0 -1
- package/dist/esm/api/types/WritableProvisionOrderLineType.d.mts +6 -0
- package/dist/esm/api/types/WritableProvisionOrderLineType.mjs +6 -0
- package/dist/esm/api/types/index.d.mts +59 -10
- package/dist/esm/api/types/index.mjs +59 -10
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2461 -730
- package/dist/cjs/api/resources/customerGroups/client/Client.d.ts +0 -153
- package/dist/cjs/api/resources/customerGroups/client/Client.js +0 -636
- package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.ts +0 -14
- package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.ts +0 -10
- package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.ts +0 -14
- package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.ts +0 -9
- package/dist/cjs/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.ts +0 -9
- package/dist/cjs/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.ts +0 -8
- package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.ts +0 -14
- package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.ts +0 -11
- package/dist/cjs/api/resources/customerGroups/client/requests/index.d.ts +0 -8
- package/dist/cjs/api/types/AddMembersResponse.d.ts +0 -5
- package/dist/cjs/api/types/CustomerGroupDeleteResponse.d.ts +0 -4
- package/dist/cjs/api/types/CustomerGroupDetail.d.ts +0 -10
- package/dist/cjs/api/types/CustomerGroupListResponse.d.ts +0 -5
- package/dist/cjs/api/types/CustomerGroupMember.d.ts +0 -5
- package/dist/cjs/api/types/CustomerGroupSummary.d.ts +0 -8
- package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.d.ts +0 -29
- package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.js +0 -15
- package/dist/cjs/api/types/MemberRequest.d.ts +0 -4
- package/dist/cjs/api/types/RemoveMembersResponse.d.ts +0 -5
- package/dist/cjs/api/types/SetMembersResponse.d.ts +0 -6
- package/dist/esm/api/resources/customerGroups/client/Client.d.mts +0 -153
- package/dist/esm/api/resources/customerGroups/client/Client.mjs +0 -599
- package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.mts +0 -14
- package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.mts +0 -10
- package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.mts +0 -14
- package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.mts +0 -9
- package/dist/esm/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.mts +0 -9
- package/dist/esm/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.mts +0 -8
- package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.mts +0 -14
- package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.mts +0 -11
- package/dist/esm/api/resources/customerGroups/client/requests/index.d.mts +0 -8
- package/dist/esm/api/types/AddMembersResponse.d.mts +0 -5
- package/dist/esm/api/types/CustomerGroupDeleteResponse.d.mts +0 -4
- package/dist/esm/api/types/CustomerGroupDetail.d.mts +0 -10
- package/dist/esm/api/types/CustomerGroupListResponse.d.mts +0 -5
- package/dist/esm/api/types/CustomerGroupMember.d.mts +0 -5
- package/dist/esm/api/types/CustomerGroupSummary.d.mts +0 -8
- package/dist/esm/api/types/CustomerUnitCapOpenPolicy.d.mts +0 -29
- package/dist/esm/api/types/CustomerUnitCapOpenPolicy.mjs +0 -12
- package/dist/esm/api/types/MemberRequest.d.mts +0 -4
- package/dist/esm/api/types/RemoveMembersResponse.d.mts +0 -5
- package/dist/esm/api/types/SetMembersResponse.d.mts +0 -6
- /package/dist/cjs/api/resources/{customerGroups/client/requests/CreateCustomerGroupMembersRequest.js → credits/client/requests/GetCreditTransactionSummaryRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/CreateCustomerGroupRequest.js → customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/DeleteCustomerGroupMembersRequest.js → customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/DeleteCustomerGroupRequest.js → customers/client/requests/CreateCustomerApiKeyRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/GetCustomerGroupRequest.js → customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/ListCustomerGroupsRequest.js → customers/client/requests/CreateCustomerFundingInstructionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/UpdateCustomerGroupMembersRequest.js → customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups/client/requests/UpdateCustomerGroupRequest.js → customers/client/requests/CreateCustomerUnitAliasByKeyRequest.js} +0 -0
- /package/dist/cjs/api/{types/AddMembersResponse.js → resources/customers/client/requests/CreateCustomerUnitAliasRequest.js} +0 -0
- /package/dist/cjs/api/{types/CustomerGroupDeleteResponse.js → resources/customers/client/requests/CustomerUnitCreateUnderParent.js} +0 -0
- /package/dist/cjs/api/{types/CustomerGroupDetail.js → resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/{types/CustomerGroupListResponse.js → resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.js} +0 -0
- /package/dist/cjs/api/{types/CustomerGroupMember.js → resources/customers/client/requests/DeleteCustomerUnitAliasRequest.js} +0 -0
- /package/dist/cjs/api/{types/CustomerGroupSummary.js → resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/{types/MemberRequest.js → resources/customers/client/requests/GetCustomerFundingInstructionsRequest.js} +0 -0
- /package/dist/cjs/api/{types/RemoveMembersResponse.js → resources/customers/client/requests/GetCustomerUnitByKeyRequest.js} +0 -0
- /package/dist/cjs/api/{types/SetMembersResponse.js → resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/requests/index.js +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/CreateCustomerGroupMembersRequest.mjs → credits/client/requests/GetCreditTransactionSummaryRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/CreateCustomerGroupRequest.mjs → customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/DeleteCustomerGroupMembersRequest.mjs → customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/DeleteCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerApiKeyRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/GetCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/ListCustomerGroupsRequest.mjs → customers/client/requests/CreateCustomerFundingInstructionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/UpdateCustomerGroupMembersRequest.mjs → customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups/client/requests/UpdateCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerUnitAliasByKeyRequest.mjs} +0 -0
- /package/dist/esm/api/{types/AddMembersResponse.mjs → resources/customers/client/requests/CreateCustomerUnitAliasRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CustomerGroupDeleteResponse.mjs → resources/customers/client/requests/CustomerUnitCreateUnderParent.mjs} +0 -0
- /package/dist/esm/api/{types/CustomerGroupDetail.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CustomerGroupListResponse.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CustomerGroupMember.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CustomerGroupSummary.mjs → resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/{types/MemberRequest.mjs → resources/customers/client/requests/GetCustomerFundingInstructionsRequest.mjs} +0 -0
- /package/dist/esm/api/{types/RemoveMembersResponse.mjs → resources/customers/client/requests/GetCustomerUnitByKeyRequest.mjs} +0 -0
- /package/dist/esm/api/{types/SetMembersResponse.mjs → resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/requests/index.mjs +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A cap in force on one of the customer's units, as the customer unit cap read returns it. `used` covers the unit and every unit under it.
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomViewContextCap {
|
|
6
|
+
/** The cap, in credits of the currency. JSON number; exact within ±2^53. */
|
|
7
|
+
amount: number;
|
|
8
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
9
|
+
frequency: CustomViewContextCap.Frequency;
|
|
10
|
+
schedule: Paid.CustomerUnitCapSchedule;
|
|
11
|
+
/** The capped unit's externalId, as in `units`. */
|
|
12
|
+
externalId: string;
|
|
13
|
+
/** The credits currency this cap limits. */
|
|
14
|
+
creditsCurrencyId: string;
|
|
15
|
+
/** That currency's key, such as `agent_credits`. */
|
|
16
|
+
creditsCurrencyKey: string;
|
|
17
|
+
/** That currency's display name. */
|
|
18
|
+
creditsCurrencyName: string;
|
|
19
|
+
currentPeriod: Paid.CustomerUnitCapCurrentPeriod | null;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace CustomViewContextCap {
|
|
22
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
23
|
+
const Frequency: {
|
|
24
|
+
readonly Monthly: "MONTHLY";
|
|
25
|
+
};
|
|
26
|
+
type Frequency = (typeof Frequency)[keyof typeof Frequency];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomViewContextCap = void 0;
|
|
5
|
+
var CustomViewContextCap;
|
|
6
|
+
(function (CustomViewContextCap) {
|
|
7
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
|
+
CustomViewContextCap.Frequency = {
|
|
9
|
+
Monthly: "MONTHLY",
|
|
10
|
+
};
|
|
11
|
+
})(CustomViewContextCap || (exports.CustomViewContextCap = CustomViewContextCap = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface CustomViewCustomerUnit {
|
|
2
|
+
/** Your stable identifier for this unit, unique within its customer. */
|
|
3
|
+
externalId: string;
|
|
4
|
+
/** Display name of the customer unit. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Your label for the kind of unit, such as department or team; null when unset. */
|
|
7
|
+
externalType: string | null;
|
|
8
|
+
/** The parent customer unit's externalId; null only for the root unit. */
|
|
9
|
+
parentExternalId: string | null;
|
|
10
|
+
/** True when this unit has no parent and is the customer's root unit. */
|
|
11
|
+
isRoot: boolean;
|
|
12
|
+
/** The unit's own setting. `false` marks it, and every unit under it, non-billable. Always `true` on the root. */
|
|
13
|
+
billable: boolean;
|
|
14
|
+
/** Whether new usage on this unit is billable now, once its ancestors are counted: `false` when the unit or any unit above it is non-billable. A change applies only to signals received afterwards, so it does not describe past usage. */
|
|
15
|
+
effectiveBillable: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* What these rows were read for. The render bundle receives this object as `context` in the `paid:data` message.
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomViewDataContext {
|
|
6
|
+
/** Context version. 2 adds the selected unit's `name`, the unit directory (`units`, `unitsTotal`, `unitsTruncated`) and unit caps (`caps`, `capsTotal`, `capsTruncated`, `capsUnavailable`); absent on version 1. Later versions only add fields. */
|
|
7
|
+
version?: number;
|
|
8
|
+
unitSelection: Paid.CustomViewUnitSelection;
|
|
9
|
+
/** Default date range for the view's queries. Use `{period_start:DateTime}` / `{period_end:DateTime}` placeholders in your SQL to make the range adjustable. Either relative (unit+amount) or absolute (start+end). */
|
|
10
|
+
period: CustomViewDataContext.Period | null;
|
|
11
|
+
/** The viewing customer's active units, for labelling rows by name, type, parent and billability. Sent only for hierarchy-enabled, customer-scoped views. At most 1,000, oldest first; see `unitsTruncated`. */
|
|
12
|
+
units?: Paid.CustomViewCustomerUnit[];
|
|
13
|
+
/** How many active units the customer has, including any left out of `units`. */
|
|
14
|
+
unitsTotal?: number;
|
|
15
|
+
/** True when the customer has more than 1,000 active units and `units` holds only the first 1,000. Label any other unit by its externalId. */
|
|
16
|
+
unitsTruncated?: boolean;
|
|
17
|
+
/** Caps in force on the customer's active units, one per unit and credits currency, sent with `units`. At most 25, in directory order; see `capsTruncated`. Absent when `capsUnavailable` is true. */
|
|
18
|
+
caps?: Paid.CustomViewContextCap[];
|
|
19
|
+
/** How many caps are in force, including any left out of `caps`. */
|
|
20
|
+
capsTotal?: number;
|
|
21
|
+
/** True when more than 25 caps are in force and `caps` holds only the first 25. */
|
|
22
|
+
capsTruncated?: boolean;
|
|
23
|
+
/** True when cap usage could not be read in time. The view's rows are unaffected; show the view without caps. */
|
|
24
|
+
capsUnavailable?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace CustomViewDataContext {
|
|
27
|
+
/**
|
|
28
|
+
* Default date range for the view's queries. Use `{period_start:DateTime}` / `{period_end:DateTime}` placeholders in your SQL to make the range adjustable. Either relative (unit+amount) or absolute (start+end).
|
|
29
|
+
*/
|
|
30
|
+
interface Period {
|
|
31
|
+
/** 'relative' = a rolling window ending today (set `unit` + `amount`); 'absolute' = a fixed calendar range (set `start` + `end`). */
|
|
32
|
+
kind: Period.Kind;
|
|
33
|
+
/** relative only: the unit of the rolling window. */
|
|
34
|
+
unit?: Period.Unit;
|
|
35
|
+
/** relative only: how many units back from today (e.g. unit 'day', amount 30 = last 30 days). */
|
|
36
|
+
amount?: number;
|
|
37
|
+
/** absolute only: inclusive start date (YYYY-MM-DD). */
|
|
38
|
+
start?: string;
|
|
39
|
+
/** absolute only: inclusive end date (YYYY-MM-DD). */
|
|
40
|
+
end?: string;
|
|
41
|
+
}
|
|
42
|
+
namespace Period {
|
|
43
|
+
/** 'relative' = a rolling window ending today (set `unit` + `amount`); 'absolute' = a fixed calendar range (set `start` + `end`). */
|
|
44
|
+
const Kind: {
|
|
45
|
+
readonly Relative: "relative";
|
|
46
|
+
readonly Absolute: "absolute";
|
|
47
|
+
};
|
|
48
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
49
|
+
/** relative only: the unit of the rolling window. */
|
|
50
|
+
const Unit: {
|
|
51
|
+
readonly Day: "day";
|
|
52
|
+
readonly Month: "month";
|
|
53
|
+
readonly Year: "year";
|
|
54
|
+
};
|
|
55
|
+
type Unit = (typeof Unit)[keyof typeof Unit];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomViewDataContext = void 0;
|
|
5
|
+
var CustomViewDataContext;
|
|
6
|
+
(function (CustomViewDataContext) {
|
|
7
|
+
let Period;
|
|
8
|
+
(function (Period) {
|
|
9
|
+
/** 'relative' = a rolling window ending today (set `unit` + `amount`); 'absolute' = a fixed calendar range (set `start` + `end`). */
|
|
10
|
+
Period.Kind = {
|
|
11
|
+
Relative: "relative",
|
|
12
|
+
Absolute: "absolute",
|
|
13
|
+
};
|
|
14
|
+
/** relative only: the unit of the rolling window. */
|
|
15
|
+
Period.Unit = {
|
|
16
|
+
Day: "day",
|
|
17
|
+
Month: "month",
|
|
18
|
+
Year: "year",
|
|
19
|
+
};
|
|
20
|
+
})(Period = CustomViewDataContext.Period || (CustomViewDataContext.Period = {}));
|
|
21
|
+
})(CustomViewDataContext || (exports.CustomViewDataContext = CustomViewDataContext = {}));
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as Paid from "../index.js";
|
|
2
2
|
export interface CustomViewDetail {
|
|
3
|
+
/** Enable customer unit navigation for a customer-scoped view. Setting true requires customer hierarchies to be enabled for your organization, and every query must support unit selection. Existing views default to false. */
|
|
4
|
+
hierarchyEnabled?: boolean;
|
|
5
|
+
/** Send the customer's unit caps to the render bundle as `context.caps`. Needs `hierarchyEnabled` on a customer-scoped view. Turn it on only for views that draw cap usage: each load then reads cap usage from billing. Caps are spend policy, so an API key also needs `read:billing` to receive them in the data (they are left out otherwise) or to mint this view's embed token. Defaults to false. */
|
|
6
|
+
capsEnabled?: boolean;
|
|
3
7
|
displayId: string;
|
|
4
8
|
name: string;
|
|
5
9
|
description: string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Paid from "../index.js";
|
|
2
2
|
export interface CustomViewPreviewHarnessRequest {
|
|
3
|
+
context?: Paid.CustomViewDataContext;
|
|
3
4
|
/** The raw, self-contained HTML render bundle to preview — the SAME string you would pass to createCustomView. Pass it verbatim; do NOT escape `</script>`, backticks, or quotes yourself (that is exactly what this endpoint does for you). */
|
|
4
5
|
renderBundle: string;
|
|
5
|
-
/** Optional sample data keyed by query id (
|
|
6
|
+
/** Optional sample data keyed by query id (the `data` field of a getCustomViewData response), e.g. `{ "usage": [{ "day": "2026-01-01", "signals": "42" }] }`. Delivered to the bundle via the same `paid:data` message the real embed sends. Omit to preview the empty state. If these rows are fabricated (a data-restricted org), also set `sampleData: true` so the harness is marked with a sample-data banner. */
|
|
6
7
|
data?: Record<string, Record<string, unknown>[]>;
|
|
7
8
|
/** For data-restricted orgs (API key without read:analytics, so the real data endpoints are blocked): a per-query column contract, keyed by query id, describing the columns each SQL returns. The server fabricates deterministic sample rows from it — no query runs, so no customer data is used — and marks the preview as sample data. Mutually exclusive with `data`. */
|
|
8
9
|
synthetic?: Record<string, Paid.CustomViewPreviewHarnessColumn[]>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface CustomViewSummary {
|
|
2
|
+
/** Enable customer unit navigation for a customer-scoped view. Setting true requires customer hierarchies to be enabled for your organization, and every query must support unit selection. Existing views default to false. */
|
|
3
|
+
hierarchyEnabled?: boolean;
|
|
4
|
+
/** Send the customer's unit caps to the render bundle as `context.caps`. Needs `hierarchyEnabled` on a customer-scoped view. Turn it on only for views that draw cap usage: each load then reads cap usage from billing. Caps are spend policy, so an API key also needs `read:billing` to receive them in the data (they are left out otherwise) or to mint this view's embed token. Defaults to false. */
|
|
5
|
+
capsEnabled?: boolean;
|
|
2
6
|
displayId: string;
|
|
3
7
|
name: string;
|
|
4
8
|
description: string | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All customer activity, one unit's direct activity, or that unit and its current descendants. A display filter within the authorized customer, not an access restriction. In a data context, a selected unit also carries its display name.
|
|
3
|
+
*/
|
|
4
|
+
export type CustomViewUnitSelection = {
|
|
5
|
+
mode: "all";
|
|
6
|
+
} | {
|
|
7
|
+
mode: "direct";
|
|
8
|
+
externalId: string;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
mode: "subtree";
|
|
12
|
+
externalId: string;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
};
|
|
@@ -3,6 +3,8 @@ export interface CustomerAlias {
|
|
|
3
3
|
alias: string;
|
|
4
4
|
/** Paid customer display ID this alias resolves to. */
|
|
5
5
|
customerId: string;
|
|
6
|
+
/** Your id of the customer unit signals carrying this alias land on: the unit the alias was created under, or the customer's root unit for a customer-level alias. `null` only while the customer has no root unit. */
|
|
7
|
+
customerUnitExternalId: string | null;
|
|
6
8
|
name: string | null;
|
|
7
9
|
description: string | null;
|
|
8
10
|
createdAt: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CustomerApiKey {
|
|
2
|
+
/** The key's id. */
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
/** Display id (`cus_…`) of the customer the key acts for. */
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
/** That customer's id in your system, if it has one. */
|
|
9
|
+
customerExternalId: string | null;
|
|
10
|
+
/** What the key may do. */
|
|
11
|
+
scopes: string[];
|
|
12
|
+
/** The key's first characters, to recognise it in a list. */
|
|
13
|
+
keyPrefix: string;
|
|
14
|
+
/** The key's last four characters. */
|
|
15
|
+
last4: string;
|
|
16
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
17
|
+
status: CustomerApiKey.Status;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
lastUsedAt: string | null;
|
|
20
|
+
expiresAt: string | null;
|
|
21
|
+
revokedAt: string | null;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace CustomerApiKey {
|
|
24
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
25
|
+
const Status: {
|
|
26
|
+
readonly Active: "ACTIVE";
|
|
27
|
+
readonly Revoked: "REVOKED";
|
|
28
|
+
readonly Expired: "EXPIRED";
|
|
29
|
+
};
|
|
30
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerApiKey = void 0;
|
|
5
|
+
var CustomerApiKey;
|
|
6
|
+
(function (CustomerApiKey) {
|
|
7
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
8
|
+
CustomerApiKey.Status = {
|
|
9
|
+
Active: "ACTIVE",
|
|
10
|
+
Revoked: "REVOKED",
|
|
11
|
+
Expired: "EXPIRED",
|
|
12
|
+
};
|
|
13
|
+
})(CustomerApiKey || (exports.CustomerApiKey = CustomerApiKey = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface CustomerApiKeyCreate {
|
|
2
|
+
/** A label for the key, shown in lists and in the audit log. */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Optional free text about where the key is used. */
|
|
5
|
+
description?: string;
|
|
6
|
+
/** Optional expiry (ISO 8601), which must be in the future. Without it the key works until it is revoked. */
|
|
7
|
+
expiresAt?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface CustomerApiKeyCreated {
|
|
2
|
+
/** The key's id. */
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
/** Display id (`cus_…`) of the customer the key acts for. */
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
/** That customer's id in your system, if it has one. */
|
|
9
|
+
customerExternalId: string | null;
|
|
10
|
+
/** What the key may do. */
|
|
11
|
+
scopes: string[];
|
|
12
|
+
/** The key's first characters, to recognise it in a list. */
|
|
13
|
+
keyPrefix: string;
|
|
14
|
+
/** The key's last four characters. */
|
|
15
|
+
last4: string;
|
|
16
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
17
|
+
status: CustomerApiKeyCreated.Status;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
lastUsedAt: string | null;
|
|
20
|
+
expiresAt: string | null;
|
|
21
|
+
revokedAt: string | null;
|
|
22
|
+
/** The secret. Returned only in this response and never again: store it now. Paid keeps only its hash. */
|
|
23
|
+
key: string;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace CustomerApiKeyCreated {
|
|
26
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
27
|
+
const Status: {
|
|
28
|
+
readonly Active: "ACTIVE";
|
|
29
|
+
readonly Revoked: "REVOKED";
|
|
30
|
+
readonly Expired: "EXPIRED";
|
|
31
|
+
};
|
|
32
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerApiKeyCreated = void 0;
|
|
5
|
+
var CustomerApiKeyCreated;
|
|
6
|
+
(function (CustomerApiKeyCreated) {
|
|
7
|
+
/** `ACTIVE` until the key is revoked (`REVOKED`) or its expiry passes (`EXPIRED`). */
|
|
8
|
+
CustomerApiKeyCreated.Status = {
|
|
9
|
+
Active: "ACTIVE",
|
|
10
|
+
Revoked: "REVOKED",
|
|
11
|
+
Expired: "EXPIRED",
|
|
12
|
+
};
|
|
13
|
+
})(CustomerApiKeyCreated || (exports.CustomerApiKeyCreated = CustomerApiKeyCreated = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CustomerFundingInstructions {
|
|
2
|
+
/** Paid customer display id */
|
|
3
|
+
customerId: string;
|
|
4
|
+
currency: string;
|
|
5
|
+
/** Bank holding the virtual account, as issued by Stripe */
|
|
6
|
+
bankName: string;
|
|
7
|
+
/** Name the customer should address the transfer to */
|
|
8
|
+
accountHolderName: string;
|
|
9
|
+
/** ABA routing number */
|
|
10
|
+
routingNumber: string;
|
|
11
|
+
/** Account number unique to this customer */
|
|
12
|
+
accountNumber: string;
|
|
13
|
+
accountType: CustomerFundingInstructions.AccountType;
|
|
14
|
+
status: string;
|
|
15
|
+
/** What the customer must put in the transfer memo so the payment is matched to an invoice */
|
|
16
|
+
memo: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace CustomerFundingInstructions {
|
|
20
|
+
const AccountType: {
|
|
21
|
+
readonly Checking: "checking";
|
|
22
|
+
};
|
|
23
|
+
type AccountType = (typeof AccountType)[keyof typeof AccountType];
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerFundingInstructions = void 0;
|
|
5
|
+
var CustomerFundingInstructions;
|
|
6
|
+
(function (CustomerFundingInstructions) {
|
|
7
|
+
CustomerFundingInstructions.AccountType = {
|
|
8
|
+
Checking: "checking",
|
|
9
|
+
};
|
|
10
|
+
})(CustomerFundingInstructions || (exports.CustomerFundingInstructions = CustomerFundingInstructions = {}));
|
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
export interface CustomerUnit {
|
|
2
|
+
/** Paid's id for the unit (`cu_…`), unique within the organization and stable across renames of the customer. For reference only: no unit route accepts it, and routes and signals name a unit by its `externalId`. */
|
|
3
|
+
id: string;
|
|
2
4
|
/** Your own id for the unit, unique within the customer; the identifier every unit route takes. */
|
|
3
5
|
externalId: string;
|
|
6
|
+
/** Paid's id of the customer the unit belongs to (`cus_…`). `null` only for a legacy customer that has no Paid id; `customerExternalId` still names it. */
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
/** Your external id of that customer, when it has one. */
|
|
9
|
+
customerExternalId: string | null;
|
|
4
10
|
/** Display name. Never used to address the unit. */
|
|
5
11
|
name: string;
|
|
6
12
|
/** Your structural vocabulary for the unit. */
|
|
7
13
|
externalType: string | null;
|
|
8
|
-
/** ACTIVE
|
|
14
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
9
15
|
status: CustomerUnit.Status;
|
|
10
16
|
/** `externalId` of the parent unit; `null` only on the customer's root unit. */
|
|
11
17
|
parentExternalId: string | null;
|
|
12
18
|
/** Whether this unit is the customer's root: the one unit without a parent. Derived from the missing parent, not stored. At most one active root per customer; the root cannot be moved, and once deleted a new root can be created. */
|
|
13
19
|
isRoot: boolean;
|
|
20
|
+
/** The unit's own setting, as last created or updated: `false` marks it, and every unit under it, non-billable. Always `true` on the root. `effectiveBillable` says whether the unit is billable once its ancestors are counted. Usage on a non-billable unit is still recorded but not billed: it burns no credits, adds nothing to invoices or overage, and counts toward no cap, on a price whose usage comes from a meter (read from your events when the invoice closes) too. A meter's derived signal, and a correlation-window meter's window, follow the source event they take their unit from (the window's closing event, else its opening event): they are not billed when that event was not. Usage is still billed when it is sent with a customer API key, and on cost-plus pricing, which bills from costs that carry no unit. Only signals sent to `/api/v2/signals` that resolve to an active unit, by its key or through an alias on it, can be non-billable, and a change applies to signals received afterwards. */
|
|
21
|
+
billable: boolean;
|
|
22
|
+
/** Read-only. Whether the unit is billable in effect: `false` when the unit or any unit above it has `billable: false`. A unit cannot make itself billable under a non-billable ancestor, and moving a unit under one makes it non-billable. */
|
|
23
|
+
effectiveBillable: boolean;
|
|
14
24
|
metadata: Record<string, unknown> | null;
|
|
15
25
|
createdAt: string;
|
|
16
26
|
updatedAt: string;
|
|
17
27
|
}
|
|
18
28
|
export declare namespace CustomerUnit {
|
|
19
|
-
/** ACTIVE
|
|
29
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
20
30
|
const Status: {
|
|
21
31
|
readonly Active: "ACTIVE";
|
|
22
32
|
readonly Deleted: "DELETED";
|
|
33
|
+
readonly Draft: "DRAFT";
|
|
23
34
|
};
|
|
24
35
|
type Status = (typeof Status)[keyof typeof Status];
|
|
25
36
|
}
|
|
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.CustomerUnit = void 0;
|
|
5
5
|
var CustomerUnit;
|
|
6
6
|
(function (CustomerUnit) {
|
|
7
|
-
/** ACTIVE
|
|
7
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
8
8
|
CustomerUnit.Status = {
|
|
9
9
|
Active: "ACTIVE",
|
|
10
10
|
Deleted: "DELETED",
|
|
11
|
+
Draft: "DRAFT",
|
|
11
12
|
};
|
|
12
13
|
})(CustomerUnit || (exports.CustomerUnit = CustomerUnit = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The customer unit (a node in the customer's internal hierarchy) this usage belongs to.
|
|
2
|
+
* The customer unit (a node in the customer's internal hierarchy) this usage belongs to, by your key for the unit or by an alias that points at it. Paid's unit ID is not accepted. Sent with `customer`, the unit must belong to that customer. Omit to attribute to the customer only.
|
|
3
3
|
*/
|
|
4
4
|
export interface CustomerUnitAttribution {
|
|
5
|
-
/** Your external customer unit ID. Cannot be `.` or `..`. */
|
|
5
|
+
/** Your external customer unit ID (the unit's key), or an alias that points at a unit. Cannot be `.` or `..`. */
|
|
6
6
|
externalCustomerUnitId: string;
|
|
7
7
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A customer unit as the organization-level routes return it: the customer-scoped unit shape without Paid's unit id.
|
|
3
|
+
*/
|
|
4
|
+
export interface CustomerUnitByKey {
|
|
5
|
+
/** Your own id for the unit, unique within the customer; the identifier every unit route takes. */
|
|
6
|
+
externalId: string;
|
|
7
|
+
/** Paid's id of the customer the unit belongs to (`cus_…`). `null` only for a legacy customer that has no Paid id; `customerExternalId` still names it. */
|
|
8
|
+
customerId: string | null;
|
|
9
|
+
/** Your external id of that customer, when it has one. */
|
|
10
|
+
customerExternalId: string | null;
|
|
11
|
+
/** Display name. Never used to address the unit. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Your structural vocabulary for the unit. */
|
|
14
|
+
externalType: string | null;
|
|
15
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
16
|
+
status: CustomerUnitByKey.Status;
|
|
17
|
+
/** `externalId` of the parent unit; `null` only on the customer's root unit. */
|
|
18
|
+
parentExternalId: string | null;
|
|
19
|
+
/** Whether this unit is the customer's root: the one unit without a parent. Derived from the missing parent, not stored. At most one active root per customer; the root cannot be moved, and once deleted a new root can be created. */
|
|
20
|
+
isRoot: boolean;
|
|
21
|
+
/** The unit's own setting, as last created or updated: `false` marks it, and every unit under it, non-billable. Always `true` on the root. `effectiveBillable` says whether the unit is billable once its ancestors are counted. Usage on a non-billable unit is still recorded but not billed: it burns no credits, adds nothing to invoices or overage, and counts toward no cap, on a price whose usage comes from a meter (read from your events when the invoice closes) too. A meter's derived signal, and a correlation-window meter's window, follow the source event they take their unit from (the window's closing event, else its opening event): they are not billed when that event was not. Usage is still billed when it is sent with a customer API key, and on cost-plus pricing, which bills from costs that carry no unit. Only signals sent to `/api/v2/signals` that resolve to an active unit, by its key or through an alias on it, can be non-billable, and a change applies to signals received afterwards. */
|
|
22
|
+
billable: boolean;
|
|
23
|
+
/** Read-only. Whether the unit is billable in effect: `false` when the unit or any unit above it has `billable: false`. A unit cannot make itself billable under a non-billable ancestor, and moving a unit under one makes it non-billable. */
|
|
24
|
+
effectiveBillable: boolean;
|
|
25
|
+
metadata: Record<string, unknown> | null;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace CustomerUnitByKey {
|
|
30
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
31
|
+
const Status: {
|
|
32
|
+
readonly Active: "ACTIVE";
|
|
33
|
+
readonly Deleted: "DELETED";
|
|
34
|
+
readonly Draft: "DRAFT";
|
|
35
|
+
};
|
|
36
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerUnitByKey = void 0;
|
|
5
|
+
var CustomerUnitByKey;
|
|
6
|
+
(function (CustomerUnitByKey) {
|
|
7
|
+
/** ACTIVE; DELETED after a soft delete (one-way); or DRAFT, a placeholder that holds the key for this customer until you create the unit with that key (which promotes it) or delete it (soft, the key stays reserved, as for any unit). A draft is never a parent and never carries a cap. */
|
|
8
|
+
CustomerUnitByKey.Status = {
|
|
9
|
+
Active: "ACTIVE",
|
|
10
|
+
Deleted: "DELETED",
|
|
11
|
+
Draft: "DRAFT",
|
|
12
|
+
};
|
|
13
|
+
})(CustomerUnitByKey || (exports.CustomerUnitByKey = CustomerUnitByKey = {}));
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* The cap version that was in force at the time of the call, now ended (`effectiveUntil` set). `null` when no version was in force — only scheduled versions were ended.
|
|
3
4
|
*/
|
|
4
5
|
export interface CustomerUnitCapEndedPolicy {
|
|
5
6
|
/** The cap, in credits of the currency. JSON number; exact within ±2^53. */
|
|
6
7
|
amount: number;
|
|
7
|
-
/**
|
|
8
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
9
|
frequency: CustomerUnitCapEndedPolicy.Frequency;
|
|
9
|
-
|
|
10
|
+
schedule: Paid.CustomerUnitCapSchedule;
|
|
11
|
+
/** When this cap version started applying. The schedule independently defines its spend window. */
|
|
10
12
|
effectiveFrom: string;
|
|
11
13
|
/** When this cap version stopped applying (exclusive). */
|
|
12
14
|
effectiveUntil: string;
|
|
@@ -16,7 +18,7 @@ export interface CustomerUnitCapEndedPolicy {
|
|
|
16
18
|
source: string;
|
|
17
19
|
}
|
|
18
20
|
export declare namespace CustomerUnitCapEndedPolicy {
|
|
19
|
-
/**
|
|
21
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
20
22
|
const Frequency: {
|
|
21
23
|
readonly Monthly: "MONTHLY";
|
|
22
24
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.CustomerUnitCapEndedPolicy = void 0;
|
|
5
5
|
var CustomerUnitCapEndedPolicy;
|
|
6
6
|
(function (CustomerUnitCapEndedPolicy) {
|
|
7
|
-
/**
|
|
7
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
8
|
CustomerUnitCapEndedPolicy.Frequency = {
|
|
9
9
|
Monthly: "MONTHLY",
|
|
10
10
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* The cap version in force now.
|
|
3
4
|
*/
|
|
4
5
|
export interface CustomerUnitCapPolicy {
|
|
5
6
|
/** The cap, in credits of the currency. JSON number; exact within ±2^53. */
|
|
6
7
|
amount: number;
|
|
7
|
-
/**
|
|
8
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
9
|
frequency: CustomerUnitCapPolicy.Frequency;
|
|
9
|
-
|
|
10
|
+
schedule: Paid.CustomerUnitCapSchedule;
|
|
11
|
+
/** When this cap version started applying. The schedule independently defines its spend window. */
|
|
10
12
|
effectiveFrom: string;
|
|
11
13
|
/** When this cap version stopped applying (exclusive). `null` while it is open. */
|
|
12
14
|
effectiveUntil: string | null;
|
|
@@ -16,7 +18,7 @@ export interface CustomerUnitCapPolicy {
|
|
|
16
18
|
source: string;
|
|
17
19
|
}
|
|
18
20
|
export declare namespace CustomerUnitCapPolicy {
|
|
19
|
-
/**
|
|
21
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
20
22
|
const Frequency: {
|
|
21
23
|
readonly Monthly: "MONTHLY";
|
|
22
24
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.CustomerUnitCapPolicy = void 0;
|
|
5
5
|
var CustomerUnitCapPolicy;
|
|
6
6
|
(function (CustomerUnitCapPolicy) {
|
|
7
|
-
/**
|
|
7
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
8
|
CustomerUnitCapPolicy.Frequency = {
|
|
9
9
|
Monthly: "MONTHLY",
|
|
10
10
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The new version, or the existing version covering the requested effectiveFrom when changed is false. New versions are open; an existing version may have a finite end.
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomerUnitCapSavedPolicy {
|
|
6
|
+
/** The cap, in credits of the currency. JSON number; exact within ±2^53. */
|
|
7
|
+
amount: number;
|
|
8
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
9
|
+
frequency: CustomerUnitCapSavedPolicy.Frequency;
|
|
10
|
+
schedule: Paid.CustomerUnitCapSchedule;
|
|
11
|
+
/** When this cap version started applying. The schedule independently defines its spend window. */
|
|
12
|
+
effectiveFrom: string;
|
|
13
|
+
/** When this cap version stopped applying (exclusive). `null` while it is open. */
|
|
14
|
+
effectiveUntil: string | null;
|
|
15
|
+
/** When this cap version was set. */
|
|
16
|
+
createdAt: string;
|
|
17
|
+
/** Where this cap version was set from. */
|
|
18
|
+
source: string;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace CustomerUnitCapSavedPolicy {
|
|
21
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
22
|
+
const Frequency: {
|
|
23
|
+
readonly Monthly: "MONTHLY";
|
|
24
|
+
};
|
|
25
|
+
type Frequency = (typeof Frequency)[keyof typeof Frequency];
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomerUnitCapSavedPolicy = void 0;
|
|
5
|
+
var CustomerUnitCapSavedPolicy;
|
|
6
|
+
(function (CustomerUnitCapSavedPolicy) {
|
|
7
|
+
/** Monthly UTC periods, with boundaries defined by `schedule`. */
|
|
8
|
+
CustomerUnitCapSavedPolicy.Frequency = {
|
|
9
|
+
Monthly: "MONTHLY",
|
|
10
|
+
};
|
|
11
|
+
})(CustomerUnitCapSavedPolicy || (exports.CustomerUnitCapSavedPolicy = CustomerUnitCapSavedPolicy = {}));
|