@paid-ai/paid-node 1.2.1 → 1.5.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 +9 -0
- package/dist/cjs/Client.js +33 -18
- package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
- package/dist/cjs/api/errors/ConflictError.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/checkouts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/cost/client/Client.d.ts +38 -0
- package/dist/cjs/api/resources/cost/client/Client.js +139 -0
- package/dist/cjs/api/resources/cost/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/cost/client/index.js +17 -0
- package/dist/cjs/api/resources/cost/client/requests/CostIngestRequest.d.ts +17 -0
- package/dist/cjs/api/resources/cost/client/requests/CostIngestRequest.js +3 -0
- package/dist/cjs/api/resources/cost/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/cost/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/cost/index.d.ts +1 -0
- package/dist/cjs/api/resources/cost/index.js +17 -0
- package/dist/cjs/api/resources/customers/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/customers/client/Client.js +86 -0
- package/dist/cjs/api/resources/customers/client/requests/UpsertCustomerUserRequest.d.ts +16 -0
- package/dist/cjs/api/resources/customers/client/requests/UpsertCustomerUserRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +9 -0
- package/dist/cjs/api/resources/index.js +10 -1
- package/dist/cjs/api/resources/orders/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/orders/client/Client.js +242 -0
- package/dist/cjs/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.d.ts +22 -0
- package/dist/cjs/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.js +3 -0
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +1 -0
- package/dist/cjs/api/resources/orders/client/requests/ListOrderSeatsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/orders/client/requests/ListOrderSeatsRequest.js +3 -0
- package/dist/cjs/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.d.ts +12 -0
- package/dist/cjs/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.js +3 -0
- package/dist/cjs/api/resources/orders/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/index.js +1 -0
- package/dist/cjs/api/resources/orders/types/ListOrderSeatsRequestStatus.d.ts +5 -0
- package/dist/cjs/api/resources/orders/types/ListOrderSeatsRequestStatus.js +8 -0
- package/dist/cjs/api/resources/orders/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/types/index.js +17 -0
- package/dist/cjs/api/resources/pricing/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/pricing/client/Client.js +284 -0
- package/dist/cjs/api/resources/pricing/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricing/client/index.js +17 -0
- package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.d.ts +9 -0
- package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.d.ts +10 -0
- package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.d.ts +20 -0
- package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pricing/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricing/index.js +17 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +85 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.js +362 -1
- package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +7 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.ts +28 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/index.js +1 -0
- package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.ts +5 -0
- package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.js +8 -0
- package/dist/cjs/api/resources/valueReceipts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/types/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +282 -0
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +14 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/index.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.ts +12 -0
- package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.js +15 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.ts +12 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.js +15 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +18 -0
- package/dist/cjs/api/types/BatchSeatAssignmentsResponse.d.ts +4 -0
- package/dist/cjs/api/types/BatchSeatAssignmentsResponse.js +3 -0
- package/dist/cjs/api/types/CheckoutDetails.d.ts +21 -0
- package/dist/cjs/api/types/CheckoutDetails.js +3 -0
- package/dist/cjs/api/types/Cost.d.ts +10 -0
- package/dist/cjs/api/types/Cost.js +3 -0
- package/dist/cjs/api/types/CostIngestResponse.d.ts +6 -0
- package/dist/cjs/api/types/CostIngestResponse.js +3 -0
- package/dist/cjs/api/types/CostOverride.d.ts +8 -0
- package/dist/cjs/api/types/CostOverride.js +3 -0
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +1 -0
- package/dist/cjs/api/types/CreditBalance.d.ts +6 -0
- package/dist/cjs/api/types/CreditBenefitInput.d.ts +30 -0
- package/dist/cjs/api/types/CreditBenefitInput.js +20 -0
- package/dist/cjs/api/types/CreditBenefitOutput.d.ts +13 -0
- package/dist/cjs/api/types/CreditBenefitOutput.js +3 -0
- package/dist/cjs/api/types/CreditGrant.d.ts +11 -0
- package/dist/cjs/api/types/CreditGrant.js +3 -0
- package/dist/cjs/api/types/CustomerUser.d.ts +13 -0
- package/dist/cjs/api/types/CustomerUser.js +3 -0
- package/dist/cjs/api/types/CustomerUserStatus.d.ts +5 -0
- package/dist/cjs/api/types/CustomerUserStatus.js +8 -0
- package/dist/cjs/api/types/OneTimePerUnitInput.d.ts +21 -0
- package/dist/cjs/api/types/OneTimePerUnitInput.js +18 -0
- package/dist/cjs/api/types/Order.d.ts +2 -0
- package/dist/cjs/api/types/OrderBillingFrequencyOverride.d.ts +14 -0
- package/dist/cjs/api/types/OrderBillingFrequencyOverride.js +14 -0
- package/dist/cjs/api/types/OrderSeat.d.ts +10 -0
- package/dist/cjs/api/types/OrderSeat.js +3 -0
- package/dist/cjs/api/types/OrderSeatListResponse.d.ts +5 -0
- package/dist/cjs/api/types/OrderSeatListResponse.js +3 -0
- package/dist/cjs/api/types/PrecomputedCost.d.ts +17 -0
- package/dist/cjs/api/types/PrecomputedCost.js +3 -0
- package/dist/cjs/api/types/PricingInput.d.ts +46 -0
- package/dist/cjs/api/types/PricingInput.js +3 -0
- package/dist/cjs/api/types/PricingListResponse.d.ts +4 -0
- package/dist/cjs/api/types/PricingListResponse.js +3 -0
- package/dist/cjs/api/types/PricingOutput.d.ts +36 -0
- package/dist/cjs/api/types/PricingOutput.js +23 -0
- package/dist/cjs/api/types/PricingPricePointOutput.d.ts +29 -0
- package/dist/cjs/api/types/PricingPricePointOutput.js +17 -0
- package/dist/cjs/api/types/PricingResponse.d.ts +7 -0
- package/dist/cjs/api/types/PricingResponse.js +3 -0
- package/dist/cjs/api/types/ProductAttribution.d.ts +2 -0
- package/dist/cjs/api/types/ProductAttribution.js +3 -0
- package/dist/cjs/api/types/RecurringGraduatedInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringGraduatedInput.js +18 -0
- package/dist/cjs/api/types/RecurringPerUnitInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringPerUnitInput.js +18 -0
- package/dist/cjs/api/types/RecurringPercentOfTotalInput.d.ts +23 -0
- package/dist/cjs/api/types/RecurringPercentOfTotalInput.js +18 -0
- package/dist/cjs/api/types/RecurringVolumeInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringVolumeInput.js +18 -0
- package/dist/cjs/api/types/SeatAssignee.d.ts +5 -0
- package/dist/cjs/api/types/SeatAssignee.js +3 -0
- package/dist/cjs/api/types/SeatAssignmentStatus.d.ts +5 -0
- package/dist/cjs/api/types/SeatAssignmentStatus.js +8 -0
- package/dist/cjs/api/types/SeatBasedGraduatedInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedGraduatedInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedPerUnitInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedPerUnitInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +25 -0
- package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedVolumeInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedVolumeInput.js +18 -0
- package/dist/cjs/api/types/SimplePricePoint.d.ts +29 -0
- package/dist/cjs/api/types/SimplePricePoint.js +17 -0
- package/dist/cjs/api/types/SuccessResponse.d.ts +3 -0
- package/dist/cjs/api/types/SuccessResponse.js +3 -0
- package/dist/cjs/api/types/TieredPricePoint.d.ts +29 -0
- package/dist/cjs/api/types/TieredPricePoint.js +17 -0
- package/dist/cjs/api/types/TokenUsage.d.ts +12 -0
- package/dist/cjs/api/types/TokenUsage.js +3 -0
- package/dist/cjs/api/types/UsageCost.d.ts +15 -0
- package/dist/cjs/api/types/UsageCost.js +3 -0
- package/dist/cjs/api/types/UsageCostPlusInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageCostPlusInput.js +18 -0
- package/dist/cjs/api/types/UsageGraduatedInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageGraduatedInput.js +18 -0
- package/dist/cjs/api/types/UsagePerUnitInput.d.ts +23 -0
- package/dist/cjs/api/types/UsagePerUnitInput.js +18 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +26 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +18 -0
- package/dist/cjs/api/types/UsageVolumeInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageVolumeInput.js +18 -0
- package/dist/cjs/api/types/ValueReceiptDetail.d.ts +2 -0
- package/dist/cjs/api/types/ValueReceiptSummary.d.ts +2 -0
- package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +6 -0
- package/dist/cjs/api/types/ValueReceiptSyncResponse.js +3 -0
- package/dist/cjs/api/types/Webhook.d.ts +24 -0
- package/dist/cjs/api/types/Webhook.js +18 -0
- package/dist/cjs/api/types/WebhookDeliveryStatus.d.ts +5 -0
- package/dist/cjs/api/types/WebhookDeliveryStatus.js +8 -0
- package/dist/cjs/api/types/WebhookListResponse.d.ts +4 -0
- package/dist/cjs/api/types/WebhookListResponse.js +3 -0
- package/dist/cjs/api/types/WebhookTestResponse.d.ts +3 -0
- package/dist/cjs/api/types/WebhookTestResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +46 -0
- package/dist/cjs/api/types/index.js +46 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +9 -0
- package/dist/esm/Client.mjs +17 -2
- package/dist/esm/api/errors/ConflictError.d.mts +6 -0
- package/dist/esm/api/errors/ConflictError.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/checkouts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/cost/client/Client.d.mts +38 -0
- package/dist/esm/api/resources/cost/client/Client.mjs +102 -0
- package/dist/esm/api/resources/cost/client/index.d.mts +1 -0
- package/dist/esm/api/resources/cost/client/index.mjs +1 -0
- package/dist/esm/api/resources/cost/client/requests/CostIngestRequest.d.mts +17 -0
- package/dist/esm/api/resources/cost/client/requests/CostIngestRequest.mjs +2 -0
- package/dist/esm/api/resources/cost/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/cost/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/cost/index.d.mts +1 -0
- package/dist/esm/api/resources/cost/index.mjs +1 -0
- package/dist/esm/api/resources/customers/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/customers/client/Client.mjs +86 -0
- package/dist/esm/api/resources/customers/client/requests/UpsertCustomerUserRequest.d.mts +16 -0
- package/dist/esm/api/resources/customers/client/requests/UpsertCustomerUserRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +9 -0
- package/dist/esm/api/resources/index.mjs +9 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/orders/client/Client.mjs +242 -0
- package/dist/esm/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.d.mts +22 -0
- package/dist/esm/api/resources/orders/client/requests/BatchSeatAssignmentsRequest.mjs +2 -0
- package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +1 -0
- package/dist/esm/api/resources/orders/client/requests/ListOrderSeatsRequest.d.mts +14 -0
- package/dist/esm/api/resources/orders/client/requests/ListOrderSeatsRequest.mjs +2 -0
- package/dist/esm/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.d.mts +12 -0
- package/dist/esm/api/resources/orders/client/requests/UpdateSeatAssignmentRequest.mjs +2 -0
- package/dist/esm/api/resources/orders/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/orders/types/ListOrderSeatsRequestStatus.d.mts +5 -0
- package/dist/esm/api/resources/orders/types/ListOrderSeatsRequestStatus.mjs +5 -0
- package/dist/esm/api/resources/orders/types/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/types/index.mjs +1 -0
- package/dist/esm/api/resources/pricing/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/pricing/client/Client.mjs +247 -0
- package/dist/esm/api/resources/pricing/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pricing/client/index.mjs +1 -0
- package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.d.mts +9 -0
- package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.d.mts +10 -0
- package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.d.mts +20 -0
- package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/pricing/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pricing/index.d.mts +1 -0
- package/dist/esm/api/resources/pricing/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +85 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.mjs +362 -1
- package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +7 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.mts +28 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.mts +5 -0
- package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.mjs +5 -0
- package/dist/esm/api/resources/valueReceipts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/types/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +245 -0
- package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +14 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/index.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.mts +12 -0
- package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.mjs +12 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.mts +12 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.mjs +12 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +2 -0
- package/dist/esm/api/types/BatchSeatAssignmentsResponse.d.mts +4 -0
- package/dist/esm/api/types/BatchSeatAssignmentsResponse.mjs +2 -0
- package/dist/esm/api/types/CheckoutDetails.d.mts +21 -0
- package/dist/esm/api/types/CheckoutDetails.mjs +2 -0
- package/dist/esm/api/types/Cost.d.mts +10 -0
- package/dist/esm/api/types/Cost.mjs +2 -0
- package/dist/esm/api/types/CostIngestResponse.d.mts +6 -0
- package/dist/esm/api/types/CostIngestResponse.mjs +2 -0
- package/dist/esm/api/types/CostOverride.d.mts +8 -0
- package/dist/esm/api/types/CostOverride.mjs +2 -0
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +1 -0
- package/dist/esm/api/types/CreditBalance.d.mts +6 -0
- package/dist/esm/api/types/CreditBenefitInput.d.mts +30 -0
- package/dist/esm/api/types/CreditBenefitInput.mjs +17 -0
- package/dist/esm/api/types/CreditBenefitOutput.d.mts +13 -0
- package/dist/esm/api/types/CreditBenefitOutput.mjs +2 -0
- package/dist/esm/api/types/CreditGrant.d.mts +11 -0
- package/dist/esm/api/types/CreditGrant.mjs +2 -0
- package/dist/esm/api/types/CustomerUser.d.mts +13 -0
- package/dist/esm/api/types/CustomerUser.mjs +2 -0
- package/dist/esm/api/types/CustomerUserStatus.d.mts +5 -0
- package/dist/esm/api/types/CustomerUserStatus.mjs +5 -0
- package/dist/esm/api/types/OneTimePerUnitInput.d.mts +21 -0
- package/dist/esm/api/types/OneTimePerUnitInput.mjs +15 -0
- package/dist/esm/api/types/Order.d.mts +2 -0
- package/dist/esm/api/types/OrderBillingFrequencyOverride.d.mts +14 -0
- package/dist/esm/api/types/OrderBillingFrequencyOverride.mjs +11 -0
- package/dist/esm/api/types/OrderSeat.d.mts +10 -0
- package/dist/esm/api/types/OrderSeat.mjs +2 -0
- package/dist/esm/api/types/OrderSeatListResponse.d.mts +5 -0
- package/dist/esm/api/types/OrderSeatListResponse.mjs +2 -0
- package/dist/esm/api/types/PrecomputedCost.d.mts +17 -0
- package/dist/esm/api/types/PrecomputedCost.mjs +2 -0
- package/dist/esm/api/types/PricingInput.d.mts +46 -0
- package/dist/esm/api/types/PricingInput.mjs +2 -0
- package/dist/esm/api/types/PricingListResponse.d.mts +4 -0
- package/dist/esm/api/types/PricingListResponse.mjs +2 -0
- package/dist/esm/api/types/PricingOutput.d.mts +36 -0
- package/dist/esm/api/types/PricingOutput.mjs +20 -0
- package/dist/esm/api/types/PricingPricePointOutput.d.mts +29 -0
- package/dist/esm/api/types/PricingPricePointOutput.mjs +14 -0
- package/dist/esm/api/types/PricingResponse.d.mts +7 -0
- package/dist/esm/api/types/PricingResponse.mjs +2 -0
- package/dist/esm/api/types/ProductAttribution.d.mts +2 -0
- package/dist/esm/api/types/ProductAttribution.mjs +2 -0
- package/dist/esm/api/types/RecurringGraduatedInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/RecurringPerUnitInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringPerUnitInput.mjs +15 -0
- package/dist/esm/api/types/RecurringPercentOfTotalInput.d.mts +23 -0
- package/dist/esm/api/types/RecurringPercentOfTotalInput.mjs +15 -0
- package/dist/esm/api/types/RecurringVolumeInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringVolumeInput.mjs +15 -0
- package/dist/esm/api/types/SeatAssignee.d.mts +5 -0
- package/dist/esm/api/types/SeatAssignee.mjs +2 -0
- package/dist/esm/api/types/SeatAssignmentStatus.d.mts +5 -0
- package/dist/esm/api/types/SeatAssignmentStatus.mjs +5 -0
- package/dist/esm/api/types/SeatBasedGraduatedInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedPerUnitInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedPerUnitInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +25 -0
- package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedVolumeInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedVolumeInput.mjs +15 -0
- package/dist/esm/api/types/SimplePricePoint.d.mts +29 -0
- package/dist/esm/api/types/SimplePricePoint.mjs +14 -0
- package/dist/esm/api/types/SuccessResponse.d.mts +3 -0
- package/dist/esm/api/types/SuccessResponse.mjs +2 -0
- package/dist/esm/api/types/TieredPricePoint.d.mts +29 -0
- package/dist/esm/api/types/TieredPricePoint.mjs +14 -0
- package/dist/esm/api/types/TokenUsage.d.mts +12 -0
- package/dist/esm/api/types/TokenUsage.mjs +2 -0
- package/dist/esm/api/types/UsageCost.d.mts +15 -0
- package/dist/esm/api/types/UsageCost.mjs +2 -0
- package/dist/esm/api/types/UsageCostPlusInput.d.mts +23 -0
- package/dist/esm/api/types/UsageCostPlusInput.mjs +15 -0
- package/dist/esm/api/types/UsageGraduatedInput.d.mts +23 -0
- package/dist/esm/api/types/UsageGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/UsagePerUnitInput.d.mts +23 -0
- package/dist/esm/api/types/UsagePerUnitInput.mjs +15 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +26 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +15 -0
- package/dist/esm/api/types/UsageVolumeInput.d.mts +23 -0
- package/dist/esm/api/types/UsageVolumeInput.mjs +15 -0
- package/dist/esm/api/types/ValueReceiptDetail.d.mts +2 -0
- package/dist/esm/api/types/ValueReceiptSummary.d.mts +2 -0
- package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +6 -0
- package/dist/esm/api/types/ValueReceiptSyncResponse.mjs +2 -0
- package/dist/esm/api/types/Webhook.d.mts +24 -0
- package/dist/esm/api/types/Webhook.mjs +15 -0
- package/dist/esm/api/types/WebhookDeliveryStatus.d.mts +5 -0
- package/dist/esm/api/types/WebhookDeliveryStatus.mjs +5 -0
- package/dist/esm/api/types/WebhookListResponse.d.mts +4 -0
- package/dist/esm/api/types/WebhookListResponse.mjs +2 -0
- package/dist/esm/api/types/WebhookTestResponse.d.mts +3 -0
- package/dist/esm/api/types/WebhookTestResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +46 -0
- package/dist/esm/api/types/index.mjs +46 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1159 -105
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var SimplePricePoint;
|
|
3
|
+
(function (SimplePricePoint) {
|
|
4
|
+
let Tiers;
|
|
5
|
+
(function (Tiers) {
|
|
6
|
+
let Item;
|
|
7
|
+
(function (Item) {
|
|
8
|
+
Item.TierBillingType = {
|
|
9
|
+
Flat: "flat",
|
|
10
|
+
PerUnit: "perUnit",
|
|
11
|
+
};
|
|
12
|
+
})(Item = Tiers.Item || (Tiers.Item = {}));
|
|
13
|
+
})(Tiers = SimplePricePoint.Tiers || (SimplePricePoint.Tiers = {}));
|
|
14
|
+
})(SimplePricePoint || (SimplePricePoint = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface TieredPricePoint {
|
|
2
|
+
currency: string;
|
|
3
|
+
unitPrice: number;
|
|
4
|
+
tiers: TieredPricePoint.Tiers.Item[];
|
|
5
|
+
minQuantity?: number;
|
|
6
|
+
maxQuantity?: number;
|
|
7
|
+
includedQuantity?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace TieredPricePoint {
|
|
10
|
+
type Tiers = Tiers.Item[];
|
|
11
|
+
namespace Tiers {
|
|
12
|
+
interface Item {
|
|
13
|
+
flatAmount?: number;
|
|
14
|
+
index?: number;
|
|
15
|
+
lowerBound: number;
|
|
16
|
+
number?: number;
|
|
17
|
+
tierBillingType?: Item.TierBillingType;
|
|
18
|
+
unitAmount?: number;
|
|
19
|
+
upperBound?: number;
|
|
20
|
+
}
|
|
21
|
+
namespace Item {
|
|
22
|
+
const TierBillingType: {
|
|
23
|
+
readonly Flat: "flat";
|
|
24
|
+
readonly PerUnit: "perUnit";
|
|
25
|
+
};
|
|
26
|
+
type TierBillingType = (typeof TierBillingType)[keyof typeof TierBillingType];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var TieredPricePoint;
|
|
3
|
+
(function (TieredPricePoint) {
|
|
4
|
+
let Tiers;
|
|
5
|
+
(function (Tiers) {
|
|
6
|
+
let Item;
|
|
7
|
+
(function (Item) {
|
|
8
|
+
Item.TierBillingType = {
|
|
9
|
+
Flat: "flat",
|
|
10
|
+
PerUnit: "perUnit",
|
|
11
|
+
};
|
|
12
|
+
})(Item = Tiers.Item || (Tiers.Item = {}));
|
|
13
|
+
})(Tiers = TieredPricePoint.Tiers || (TieredPricePoint.Tiers = {}));
|
|
14
|
+
})(TieredPricePoint || (TieredPricePoint = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TokenUsage {
|
|
2
|
+
/** Non-cached input tokens. Matches Anthropic's `input_tokens` semantic (does not include cached or cache-creation tokens). */
|
|
3
|
+
inputTokens?: number;
|
|
4
|
+
/** Output tokens generated by the model. */
|
|
5
|
+
outputTokens?: number;
|
|
6
|
+
/** Input tokens served from cache (cache hit). */
|
|
7
|
+
cacheReadInputTokens?: number;
|
|
8
|
+
/** Input tokens written to cache on this request (Anthropic prompt caching). */
|
|
9
|
+
cacheCreationInputTokens?: number;
|
|
10
|
+
/** Reasoning tokens emitted by reasoning models (o1/o3, Claude extended thinking). */
|
|
11
|
+
reasoningOutputTokens?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsageCost {
|
|
3
|
+
/** Record time in RFC3339 format with timezone. Defaults to server receive time. */
|
|
4
|
+
timestamp?: string;
|
|
5
|
+
customer: Paid.CustomerAttribution;
|
|
6
|
+
product?: Paid.ProductAttribution;
|
|
7
|
+
/** Free-form metadata for filtering and analytics. */
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
/** Provider name, used together with `model` to look up pricing (e.g. "openai", "anthropic"). */
|
|
10
|
+
vendor: string;
|
|
11
|
+
/** Exact provider model ID (e.g. "gpt-4o-2024-08-06"). */
|
|
12
|
+
model: string;
|
|
13
|
+
usage: Paid.TokenUsage;
|
|
14
|
+
costOverride?: Paid.CostOverride;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsageCostPlusInput {
|
|
3
|
+
costPlusMultiplier: number;
|
|
4
|
+
billingFrequency?: UsageCostPlusInput.BillingFrequency;
|
|
5
|
+
billingFrequencyCustomMonths?: number;
|
|
6
|
+
billingType?: UsageCostPlusInput.BillingType;
|
|
7
|
+
pricePoints?: Paid.SimplePricePoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace UsageCostPlusInput {
|
|
10
|
+
const BillingFrequency: {
|
|
11
|
+
readonly Monthly: "Monthly";
|
|
12
|
+
readonly Quarterly: "Quarterly";
|
|
13
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
14
|
+
readonly Annual: "Annual";
|
|
15
|
+
readonly Custom: "Custom";
|
|
16
|
+
};
|
|
17
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
18
|
+
const BillingType: {
|
|
19
|
+
readonly Advance: "Advance";
|
|
20
|
+
readonly Arrears: "Arrears";
|
|
21
|
+
};
|
|
22
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UsageCostPlusInput;
|
|
3
|
+
(function (UsageCostPlusInput) {
|
|
4
|
+
UsageCostPlusInput.BillingFrequency = {
|
|
5
|
+
Monthly: "Monthly",
|
|
6
|
+
Quarterly: "Quarterly",
|
|
7
|
+
SemiAnnually: "Semi-Annually",
|
|
8
|
+
Annual: "Annual",
|
|
9
|
+
Custom: "Custom",
|
|
10
|
+
};
|
|
11
|
+
UsageCostPlusInput.BillingType = {
|
|
12
|
+
Advance: "Advance",
|
|
13
|
+
Arrears: "Arrears",
|
|
14
|
+
};
|
|
15
|
+
})(UsageCostPlusInput || (UsageCostPlusInput = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsageGraduatedInput {
|
|
3
|
+
eventName: string;
|
|
4
|
+
billingFrequency?: UsageGraduatedInput.BillingFrequency;
|
|
5
|
+
billingFrequencyCustomMonths?: number;
|
|
6
|
+
billingType?: UsageGraduatedInput.BillingType;
|
|
7
|
+
pricePoints: Paid.TieredPricePoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace UsageGraduatedInput {
|
|
10
|
+
const BillingFrequency: {
|
|
11
|
+
readonly Monthly: "Monthly";
|
|
12
|
+
readonly Quarterly: "Quarterly";
|
|
13
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
14
|
+
readonly Annual: "Annual";
|
|
15
|
+
readonly Custom: "Custom";
|
|
16
|
+
};
|
|
17
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
18
|
+
const BillingType: {
|
|
19
|
+
readonly Advance: "Advance";
|
|
20
|
+
readonly Arrears: "Arrears";
|
|
21
|
+
};
|
|
22
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UsageGraduatedInput;
|
|
3
|
+
(function (UsageGraduatedInput) {
|
|
4
|
+
UsageGraduatedInput.BillingFrequency = {
|
|
5
|
+
Monthly: "Monthly",
|
|
6
|
+
Quarterly: "Quarterly",
|
|
7
|
+
SemiAnnually: "Semi-Annually",
|
|
8
|
+
Annual: "Annual",
|
|
9
|
+
Custom: "Custom",
|
|
10
|
+
};
|
|
11
|
+
UsageGraduatedInput.BillingType = {
|
|
12
|
+
Advance: "Advance",
|
|
13
|
+
Arrears: "Arrears",
|
|
14
|
+
};
|
|
15
|
+
})(UsageGraduatedInput || (UsageGraduatedInput = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsagePerUnitInput {
|
|
3
|
+
eventName: string;
|
|
4
|
+
billingFrequency?: UsagePerUnitInput.BillingFrequency;
|
|
5
|
+
billingFrequencyCustomMonths?: number;
|
|
6
|
+
billingType?: UsagePerUnitInput.BillingType;
|
|
7
|
+
pricePoints: Paid.SimplePricePoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace UsagePerUnitInput {
|
|
10
|
+
const BillingFrequency: {
|
|
11
|
+
readonly Monthly: "Monthly";
|
|
12
|
+
readonly Quarterly: "Quarterly";
|
|
13
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
14
|
+
readonly Annual: "Annual";
|
|
15
|
+
readonly Custom: "Custom";
|
|
16
|
+
};
|
|
17
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
18
|
+
const BillingType: {
|
|
19
|
+
readonly Advance: "Advance";
|
|
20
|
+
readonly Arrears: "Arrears";
|
|
21
|
+
};
|
|
22
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UsagePerUnitInput;
|
|
3
|
+
(function (UsagePerUnitInput) {
|
|
4
|
+
UsagePerUnitInput.BillingFrequency = {
|
|
5
|
+
Monthly: "Monthly",
|
|
6
|
+
Quarterly: "Quarterly",
|
|
7
|
+
SemiAnnually: "Semi-Annually",
|
|
8
|
+
Annual: "Annual",
|
|
9
|
+
Custom: "Custom",
|
|
10
|
+
};
|
|
11
|
+
UsagePerUnitInput.BillingType = {
|
|
12
|
+
Advance: "Advance",
|
|
13
|
+
Arrears: "Arrears",
|
|
14
|
+
};
|
|
15
|
+
})(UsagePerUnitInput || (UsagePerUnitInput = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsagePrepaidCreditsInput {
|
|
3
|
+
eventName: string;
|
|
4
|
+
creditsCurrencyId: string;
|
|
5
|
+
creditCost: number;
|
|
6
|
+
unitValue?: number;
|
|
7
|
+
billingFrequency?: UsagePrepaidCreditsInput.BillingFrequency;
|
|
8
|
+
billingFrequencyCustomMonths?: number;
|
|
9
|
+
billingType?: UsagePrepaidCreditsInput.BillingType;
|
|
10
|
+
pricePoints?: Paid.SimplePricePoint[];
|
|
11
|
+
}
|
|
12
|
+
export declare namespace UsagePrepaidCreditsInput {
|
|
13
|
+
const BillingFrequency: {
|
|
14
|
+
readonly Monthly: "Monthly";
|
|
15
|
+
readonly Quarterly: "Quarterly";
|
|
16
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
17
|
+
readonly Annual: "Annual";
|
|
18
|
+
readonly Custom: "Custom";
|
|
19
|
+
};
|
|
20
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
21
|
+
const BillingType: {
|
|
22
|
+
readonly Advance: "Advance";
|
|
23
|
+
readonly Arrears: "Arrears";
|
|
24
|
+
};
|
|
25
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UsagePrepaidCreditsInput;
|
|
3
|
+
(function (UsagePrepaidCreditsInput) {
|
|
4
|
+
UsagePrepaidCreditsInput.BillingFrequency = {
|
|
5
|
+
Monthly: "Monthly",
|
|
6
|
+
Quarterly: "Quarterly",
|
|
7
|
+
SemiAnnually: "Semi-Annually",
|
|
8
|
+
Annual: "Annual",
|
|
9
|
+
Custom: "Custom",
|
|
10
|
+
};
|
|
11
|
+
UsagePrepaidCreditsInput.BillingType = {
|
|
12
|
+
Advance: "Advance",
|
|
13
|
+
Arrears: "Arrears",
|
|
14
|
+
};
|
|
15
|
+
})(UsagePrepaidCreditsInput || (UsagePrepaidCreditsInput = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface UsageVolumeInput {
|
|
3
|
+
eventName: string;
|
|
4
|
+
billingFrequency?: UsageVolumeInput.BillingFrequency;
|
|
5
|
+
billingFrequencyCustomMonths?: number;
|
|
6
|
+
billingType?: UsageVolumeInput.BillingType;
|
|
7
|
+
pricePoints: Paid.TieredPricePoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace UsageVolumeInput {
|
|
10
|
+
const BillingFrequency: {
|
|
11
|
+
readonly Monthly: "Monthly";
|
|
12
|
+
readonly Quarterly: "Quarterly";
|
|
13
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
14
|
+
readonly Annual: "Annual";
|
|
15
|
+
readonly Custom: "Custom";
|
|
16
|
+
};
|
|
17
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
18
|
+
const BillingType: {
|
|
19
|
+
readonly Advance: "Advance";
|
|
20
|
+
readonly Arrears: "Arrears";
|
|
21
|
+
};
|
|
22
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UsageVolumeInput;
|
|
3
|
+
(function (UsageVolumeInput) {
|
|
4
|
+
UsageVolumeInput.BillingFrequency = {
|
|
5
|
+
Monthly: "Monthly",
|
|
6
|
+
Quarterly: "Quarterly",
|
|
7
|
+
SemiAnnually: "Semi-Annually",
|
|
8
|
+
Annual: "Annual",
|
|
9
|
+
Custom: "Custom",
|
|
10
|
+
};
|
|
11
|
+
UsageVolumeInput.BillingType = {
|
|
12
|
+
Advance: "Advance",
|
|
13
|
+
Arrears: "Arrears",
|
|
14
|
+
};
|
|
15
|
+
})(UsageVolumeInput || (UsageVolumeInput = {}));
|
|
@@ -8,10 +8,12 @@ export interface ValueReceiptDetail {
|
|
|
8
8
|
customerName: string | null;
|
|
9
9
|
customerExternalId: string | null;
|
|
10
10
|
orderId: string | null;
|
|
11
|
+
productId: string | null;
|
|
11
12
|
currency: string;
|
|
12
13
|
startDate: string | null;
|
|
13
14
|
endDate: string | null;
|
|
14
15
|
totalDeliveredValue: number | null;
|
|
16
|
+
archivedAt: string | null;
|
|
15
17
|
createdAt: string;
|
|
16
18
|
publishedAt: string | null;
|
|
17
19
|
publishExpiresAt: string | null;
|
|
@@ -8,9 +8,11 @@ export interface ValueReceiptSummary {
|
|
|
8
8
|
customerName: string | null;
|
|
9
9
|
customerExternalId: string | null;
|
|
10
10
|
orderId: string | null;
|
|
11
|
+
productId: string | null;
|
|
11
12
|
currency: string;
|
|
12
13
|
startDate: string | null;
|
|
13
14
|
endDate: string | null;
|
|
14
15
|
totalDeliveredValue: number | null;
|
|
16
|
+
archivedAt: string | null;
|
|
15
17
|
createdAt: string;
|
|
16
18
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Paid from "../index.mjs";
|
|
2
|
+
export interface Webhook {
|
|
3
|
+
id: string;
|
|
4
|
+
name: Webhook.Name;
|
|
5
|
+
description: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
url: string | null;
|
|
8
|
+
lastSentAt: string | null;
|
|
9
|
+
lastStatus: Paid.WebhookDeliveryStatus | null;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace Webhook {
|
|
12
|
+
const Name: {
|
|
13
|
+
readonly BillingInvoiceCreated: "billing-invoice-created";
|
|
14
|
+
readonly BillingInvoicePaid: "billing-invoice-paid";
|
|
15
|
+
readonly BillingCheckoutCreated: "billing-checkout-created";
|
|
16
|
+
readonly BillingCheckoutCompleted: "billing-checkout-completed";
|
|
17
|
+
readonly BillingCheckoutExpired: "billing-checkout-expired";
|
|
18
|
+
readonly BillingPaymentSucceeded: "billing-payment-succeeded";
|
|
19
|
+
readonly BillingPaymentFailed: "billing-payment-failed";
|
|
20
|
+
readonly BillingCreditsDepleted: "billing-credits-depleted";
|
|
21
|
+
readonly BillingOverageIncurred: "billing-overage-incurred";
|
|
22
|
+
};
|
|
23
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Webhook;
|
|
3
|
+
(function (Webhook) {
|
|
4
|
+
Webhook.Name = {
|
|
5
|
+
BillingInvoiceCreated: "billing-invoice-created",
|
|
6
|
+
BillingInvoicePaid: "billing-invoice-paid",
|
|
7
|
+
BillingCheckoutCreated: "billing-checkout-created",
|
|
8
|
+
BillingCheckoutCompleted: "billing-checkout-completed",
|
|
9
|
+
BillingCheckoutExpired: "billing-checkout-expired",
|
|
10
|
+
BillingPaymentSucceeded: "billing-payment-succeeded",
|
|
11
|
+
BillingPaymentFailed: "billing-payment-failed",
|
|
12
|
+
BillingCreditsDepleted: "billing-credits-depleted",
|
|
13
|
+
BillingOverageIncurred: "billing-overage-incurred",
|
|
14
|
+
};
|
|
15
|
+
})(Webhook || (Webhook = {}));
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./Attribution.mjs";
|
|
2
|
+
export * from "./BatchSeatAssignmentsResponse.mjs";
|
|
2
3
|
export * from "./BulkSignalsResponse.mjs";
|
|
3
4
|
export * from "./Checkout.mjs";
|
|
5
|
+
export * from "./CheckoutDetails.mjs";
|
|
4
6
|
export * from "./CheckoutListResponse.mjs";
|
|
5
7
|
export * from "./CheckoutProduct.mjs";
|
|
6
8
|
export * from "./CheckoutProductInput.mjs";
|
|
@@ -8,12 +10,18 @@ export * from "./CheckoutStatus.mjs";
|
|
|
8
10
|
export * from "./Contact.mjs";
|
|
9
11
|
export * from "./ContactBillingAddress.mjs";
|
|
10
12
|
export * from "./ContactListResponse.mjs";
|
|
13
|
+
export * from "./Cost.mjs";
|
|
14
|
+
export * from "./CostIngestResponse.mjs";
|
|
15
|
+
export * from "./CostOverride.mjs";
|
|
11
16
|
export * from "./CreateOrderLineAttributeRequest.mjs";
|
|
12
17
|
export * from "./CreateOrderLineRequest.mjs";
|
|
13
18
|
export * from "./CreditBalance.mjs";
|
|
14
19
|
export * from "./CreditBalanceListResponse.mjs";
|
|
20
|
+
export * from "./CreditBenefitInput.mjs";
|
|
21
|
+
export * from "./CreditBenefitOutput.mjs";
|
|
15
22
|
export * from "./CreditCurrency.mjs";
|
|
16
23
|
export * from "./CreditCurrencyListResponse.mjs";
|
|
24
|
+
export * from "./CreditGrant.mjs";
|
|
17
25
|
export * from "./Customer.mjs";
|
|
18
26
|
export * from "./CustomerAttribution.mjs";
|
|
19
27
|
export * from "./CustomerBillingAddress.mjs";
|
|
@@ -23,26 +31,64 @@ export * from "./CustomerCreationState.mjs";
|
|
|
23
31
|
export * from "./CustomerListResponse.mjs";
|
|
24
32
|
export * from "./CustomerPortal.mjs";
|
|
25
33
|
export * from "./CustomerPortalStatus.mjs";
|
|
34
|
+
export * from "./CustomerUser.mjs";
|
|
35
|
+
export * from "./CustomerUserStatus.mjs";
|
|
26
36
|
export * from "./EmptyResponse.mjs";
|
|
27
37
|
export * from "./ErrorResponse.mjs";
|
|
28
38
|
export * from "./Invoice.mjs";
|
|
29
39
|
export * from "./InvoiceLine.mjs";
|
|
30
40
|
export * from "./InvoiceLinesResponse.mjs";
|
|
31
41
|
export * from "./InvoiceListResponse.mjs";
|
|
42
|
+
export * from "./OneTimePerUnitInput.mjs";
|
|
32
43
|
export * from "./Order.mjs";
|
|
44
|
+
export * from "./OrderBillingFrequencyOverride.mjs";
|
|
33
45
|
export * from "./OrderCreationState.mjs";
|
|
34
46
|
export * from "./OrderLine.mjs";
|
|
35
47
|
export * from "./OrderLinesResponse.mjs";
|
|
36
48
|
export * from "./OrderListResponse.mjs";
|
|
49
|
+
export * from "./OrderSeat.mjs";
|
|
50
|
+
export * from "./OrderSeatListResponse.mjs";
|
|
37
51
|
export * from "./Pagination.mjs";
|
|
52
|
+
export * from "./PrecomputedCost.mjs";
|
|
53
|
+
export * from "./PricingInput.mjs";
|
|
54
|
+
export * from "./PricingListResponse.mjs";
|
|
55
|
+
export * from "./PricingOutput.mjs";
|
|
56
|
+
export * from "./PricingPricePointOutput.mjs";
|
|
57
|
+
export * from "./PricingResponse.mjs";
|
|
38
58
|
export * from "./Product.mjs";
|
|
59
|
+
export * from "./ProductAttribution.mjs";
|
|
39
60
|
export * from "./ProductByExternalId.mjs";
|
|
40
61
|
export * from "./ProductById.mjs";
|
|
41
62
|
export * from "./ProductListResponse.mjs";
|
|
63
|
+
export * from "./RecurringGraduatedInput.mjs";
|
|
64
|
+
export * from "./RecurringPercentOfTotalInput.mjs";
|
|
65
|
+
export * from "./RecurringPerUnitInput.mjs";
|
|
66
|
+
export * from "./RecurringVolumeInput.mjs";
|
|
67
|
+
export * from "./SeatAssignee.mjs";
|
|
68
|
+
export * from "./SeatAssignmentStatus.mjs";
|
|
69
|
+
export * from "./SeatBasedGraduatedInput.mjs";
|
|
70
|
+
export * from "./SeatBasedPerUnitInput.mjs";
|
|
71
|
+
export * from "./SeatBasedPrepaidCreditsInput.mjs";
|
|
72
|
+
export * from "./SeatBasedVolumeInput.mjs";
|
|
42
73
|
export * from "./Signal.mjs";
|
|
74
|
+
export * from "./SimplePricePoint.mjs";
|
|
75
|
+
export * from "./SuccessResponse.mjs";
|
|
76
|
+
export * from "./TieredPricePoint.mjs";
|
|
77
|
+
export * from "./TokenUsage.mjs";
|
|
43
78
|
export * from "./UpdateContactRequest.mjs";
|
|
44
79
|
export * from "./UpdateCustomerRequest.mjs";
|
|
45
80
|
export * from "./UpdateProductRequest.mjs";
|
|
81
|
+
export * from "./UsageCost.mjs";
|
|
82
|
+
export * from "./UsageCostPlusInput.mjs";
|
|
83
|
+
export * from "./UsageGraduatedInput.mjs";
|
|
84
|
+
export * from "./UsagePerUnitInput.mjs";
|
|
85
|
+
export * from "./UsagePrepaidCreditsInput.mjs";
|
|
86
|
+
export * from "./UsageVolumeInput.mjs";
|
|
46
87
|
export * from "./ValueReceiptDetail.mjs";
|
|
47
88
|
export * from "./ValueReceiptListResponse.mjs";
|
|
48
89
|
export * from "./ValueReceiptSummary.mjs";
|
|
90
|
+
export * from "./ValueReceiptSyncResponse.mjs";
|
|
91
|
+
export * from "./Webhook.mjs";
|
|
92
|
+
export * from "./WebhookDeliveryStatus.mjs";
|
|
93
|
+
export * from "./WebhookListResponse.mjs";
|
|
94
|
+
export * from "./WebhookTestResponse.mjs";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./Attribution.mjs";
|
|
2
|
+
export * from "./BatchSeatAssignmentsResponse.mjs";
|
|
2
3
|
export * from "./BulkSignalsResponse.mjs";
|
|
3
4
|
export * from "./Checkout.mjs";
|
|
5
|
+
export * from "./CheckoutDetails.mjs";
|
|
4
6
|
export * from "./CheckoutListResponse.mjs";
|
|
5
7
|
export * from "./CheckoutProduct.mjs";
|
|
6
8
|
export * from "./CheckoutProductInput.mjs";
|
|
@@ -8,12 +10,18 @@ export * from "./CheckoutStatus.mjs";
|
|
|
8
10
|
export * from "./Contact.mjs";
|
|
9
11
|
export * from "./ContactBillingAddress.mjs";
|
|
10
12
|
export * from "./ContactListResponse.mjs";
|
|
13
|
+
export * from "./Cost.mjs";
|
|
14
|
+
export * from "./CostIngestResponse.mjs";
|
|
15
|
+
export * from "./CostOverride.mjs";
|
|
11
16
|
export * from "./CreateOrderLineAttributeRequest.mjs";
|
|
12
17
|
export * from "./CreateOrderLineRequest.mjs";
|
|
13
18
|
export * from "./CreditBalance.mjs";
|
|
14
19
|
export * from "./CreditBalanceListResponse.mjs";
|
|
20
|
+
export * from "./CreditBenefitInput.mjs";
|
|
21
|
+
export * from "./CreditBenefitOutput.mjs";
|
|
15
22
|
export * from "./CreditCurrency.mjs";
|
|
16
23
|
export * from "./CreditCurrencyListResponse.mjs";
|
|
24
|
+
export * from "./CreditGrant.mjs";
|
|
17
25
|
export * from "./Customer.mjs";
|
|
18
26
|
export * from "./CustomerAttribution.mjs";
|
|
19
27
|
export * from "./CustomerBillingAddress.mjs";
|
|
@@ -23,26 +31,64 @@ export * from "./CustomerCreationState.mjs";
|
|
|
23
31
|
export * from "./CustomerListResponse.mjs";
|
|
24
32
|
export * from "./CustomerPortal.mjs";
|
|
25
33
|
export * from "./CustomerPortalStatus.mjs";
|
|
34
|
+
export * from "./CustomerUser.mjs";
|
|
35
|
+
export * from "./CustomerUserStatus.mjs";
|
|
26
36
|
export * from "./EmptyResponse.mjs";
|
|
27
37
|
export * from "./ErrorResponse.mjs";
|
|
28
38
|
export * from "./Invoice.mjs";
|
|
29
39
|
export * from "./InvoiceLine.mjs";
|
|
30
40
|
export * from "./InvoiceLinesResponse.mjs";
|
|
31
41
|
export * from "./InvoiceListResponse.mjs";
|
|
42
|
+
export * from "./OneTimePerUnitInput.mjs";
|
|
32
43
|
export * from "./Order.mjs";
|
|
44
|
+
export * from "./OrderBillingFrequencyOverride.mjs";
|
|
33
45
|
export * from "./OrderCreationState.mjs";
|
|
34
46
|
export * from "./OrderLine.mjs";
|
|
35
47
|
export * from "./OrderLinesResponse.mjs";
|
|
36
48
|
export * from "./OrderListResponse.mjs";
|
|
49
|
+
export * from "./OrderSeat.mjs";
|
|
50
|
+
export * from "./OrderSeatListResponse.mjs";
|
|
37
51
|
export * from "./Pagination.mjs";
|
|
52
|
+
export * from "./PrecomputedCost.mjs";
|
|
53
|
+
export * from "./PricingInput.mjs";
|
|
54
|
+
export * from "./PricingListResponse.mjs";
|
|
55
|
+
export * from "./PricingOutput.mjs";
|
|
56
|
+
export * from "./PricingPricePointOutput.mjs";
|
|
57
|
+
export * from "./PricingResponse.mjs";
|
|
38
58
|
export * from "./Product.mjs";
|
|
59
|
+
export * from "./ProductAttribution.mjs";
|
|
39
60
|
export * from "./ProductByExternalId.mjs";
|
|
40
61
|
export * from "./ProductById.mjs";
|
|
41
62
|
export * from "./ProductListResponse.mjs";
|
|
63
|
+
export * from "./RecurringGraduatedInput.mjs";
|
|
64
|
+
export * from "./RecurringPercentOfTotalInput.mjs";
|
|
65
|
+
export * from "./RecurringPerUnitInput.mjs";
|
|
66
|
+
export * from "./RecurringVolumeInput.mjs";
|
|
67
|
+
export * from "./SeatAssignee.mjs";
|
|
68
|
+
export * from "./SeatAssignmentStatus.mjs";
|
|
69
|
+
export * from "./SeatBasedGraduatedInput.mjs";
|
|
70
|
+
export * from "./SeatBasedPerUnitInput.mjs";
|
|
71
|
+
export * from "./SeatBasedPrepaidCreditsInput.mjs";
|
|
72
|
+
export * from "./SeatBasedVolumeInput.mjs";
|
|
42
73
|
export * from "./Signal.mjs";
|
|
74
|
+
export * from "./SimplePricePoint.mjs";
|
|
75
|
+
export * from "./SuccessResponse.mjs";
|
|
76
|
+
export * from "./TieredPricePoint.mjs";
|
|
77
|
+
export * from "./TokenUsage.mjs";
|
|
43
78
|
export * from "./UpdateContactRequest.mjs";
|
|
44
79
|
export * from "./UpdateCustomerRequest.mjs";
|
|
45
80
|
export * from "./UpdateProductRequest.mjs";
|
|
81
|
+
export * from "./UsageCost.mjs";
|
|
82
|
+
export * from "./UsageCostPlusInput.mjs";
|
|
83
|
+
export * from "./UsageGraduatedInput.mjs";
|
|
84
|
+
export * from "./UsagePerUnitInput.mjs";
|
|
85
|
+
export * from "./UsagePrepaidCreditsInput.mjs";
|
|
86
|
+
export * from "./UsageVolumeInput.mjs";
|
|
46
87
|
export * from "./ValueReceiptDetail.mjs";
|
|
47
88
|
export * from "./ValueReceiptListResponse.mjs";
|
|
48
89
|
export * from "./ValueReceiptSummary.mjs";
|
|
90
|
+
export * from "./ValueReceiptSyncResponse.mjs";
|
|
91
|
+
export * from "./Webhook.mjs";
|
|
92
|
+
export * from "./WebhookDeliveryStatus.mjs";
|
|
93
|
+
export * from "./WebhookListResponse.mjs";
|
|
94
|
+
export * from "./WebhookTestResponse.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.5.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.5.0";
|