@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.353.g74313e0
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/billing/type/funds/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/models.d.ts +375 -779
- package/dist/billing/type/order/v1/generated/models.js +12 -44
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/type/order/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/billing/type/quote/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/quote/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/functions.d.ts +176 -310
- package/dist/billing/v1/generated/functions.js +175 -309
- package/dist/billing/v1/generated/models.d.ts +425 -863
- package/dist/billing/v1/generated/models.js +13 -49
- package/dist/billing/v1/generated/schemas.zod.d.ts +166 -383
- package/dist/billing/v1/generated/schemas.zod.js +213 -372
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +4 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +375 -779
- package/dist/canopy/v1/generated/models.js +12 -44
- package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
- package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/compute/v1/generated/models.d.ts +4 -4
- package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
- package/dist/membership/v1/generated/models.d.ts +375 -779
- package/dist/membership/v1/generated/models.js +12 -44
- package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
- package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
- package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/order.zod.js +10 -12
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/price.zod.js +14 -11
- package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
- package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
- package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
- package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
- package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/routes.d.ts +4 -4
- package/dist/routes.js +4 -4
- package/package.json +1 -1
|
@@ -6,19 +6,25 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { BillingScheme } from "./billingScheme.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
11
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
12
|
+
import { PriceType } from "./priceType.zod.js";
|
|
11
13
|
import { Product } from "./product.zod.js";
|
|
12
14
|
import { ProductID } from "./productID.zod.js";
|
|
13
15
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
14
16
|
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
15
17
|
import { Tier } from "./tier.zod.js";
|
|
18
|
+
import { UsageType } from "./usageType.zod.js";
|
|
16
19
|
export const Price = zod.strictObject({
|
|
17
20
|
rate_card: ObjectIdentity.optional(),
|
|
18
21
|
lookup_key: zod.string().optional(),
|
|
19
22
|
product: Product,
|
|
20
23
|
plan: ObjectIdentity,
|
|
21
|
-
meter_id: zod
|
|
24
|
+
meter_id: zod
|
|
25
|
+
.uuid()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("For a metered price with its own amounts, the meter it charges. For a licensed price, the meter its quantity is held on. Absent otherwise."),
|
|
22
28
|
meter: ObjectIdentity.optional(),
|
|
23
29
|
unit_quantity: zod.string(),
|
|
24
30
|
active: zod
|
|
@@ -30,22 +36,19 @@ export const Price = zod.strictObject({
|
|
|
30
36
|
id: zod.uuid(),
|
|
31
37
|
plan_id: zod.uuid(),
|
|
32
38
|
currency: zod.string(),
|
|
33
|
-
type:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
billing_scheme: zod
|
|
37
|
-
.enum(["per_unit", "tiered", "rated"])
|
|
38
|
-
.describe("How the amount is arrived at. `rated` means the rate depends on attributes such as\nregion or machine type, and is looked up on a price list."),
|
|
39
|
+
type: PriceType,
|
|
40
|
+
usage_type: UsageType,
|
|
41
|
+
billing_scheme: BillingScheme.optional().describe("Absent when the price delegates to a rate card, where the rate depends on attributes such as region or machine type."),
|
|
39
42
|
unit_amount: Money.optional().describe("Present for `per_unit`."),
|
|
40
43
|
tiers_mode: zod
|
|
41
44
|
.enum(["none", "graduated", "volume"])
|
|
42
45
|
.optional()
|
|
43
|
-
.describe("
|
|
46
|
+
.describe("How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered."),
|
|
44
47
|
tiers: zod.array(Tier).optional().describe("Present for `tiered`, in ascending order."),
|
|
45
48
|
rate_card_id: zod
|
|
46
49
|
.uuid()
|
|
47
50
|
.optional()
|
|
48
|
-
.describe("
|
|
51
|
+
.describe("Present when the price delegates to a rate card, the price list its rates are read from."),
|
|
49
52
|
min_quantity: zod
|
|
50
53
|
.string()
|
|
51
54
|
.optional()
|
|
@@ -53,7 +56,7 @@ export const Price = zod.strictObject({
|
|
|
53
56
|
max_quantity: zod
|
|
54
57
|
.string()
|
|
55
58
|
.optional()
|
|
56
|
-
.describe("The largest
|
|
59
|
+
.describe("The largest quantity that may be bought; absent when there is no limit. A larger quantity is refused with `BILLING_PRICE_INVALID` and `field` `max_quantity`."),
|
|
57
60
|
quantity_step: zod
|
|
58
61
|
.string()
|
|
59
62
|
.optional()
|
|
@@ -61,7 +64,7 @@ export const Price = zod.strictObject({
|
|
|
61
64
|
interval_count: zod
|
|
62
65
|
.int()
|
|
63
66
|
.optional()
|
|
64
|
-
.describe("For
|
|
67
|
+
.describe("For recurring licensed prices, how many interval units one period covers."),
|
|
65
68
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
66
69
|
setup_fee: Money.optional(),
|
|
67
70
|
});
|
|
@@ -45,15 +45,17 @@ export declare const PriceList: zod.ZodObject<{
|
|
|
45
45
|
plan_id: zod.ZodUUID;
|
|
46
46
|
currency: zod.ZodString;
|
|
47
47
|
type: zod.ZodEnum<{
|
|
48
|
-
postpaid: "postpaid";
|
|
49
|
-
prepaid: "prepaid";
|
|
50
48
|
one_time: "one_time";
|
|
49
|
+
recurring: "recurring";
|
|
51
50
|
}>;
|
|
52
|
-
|
|
51
|
+
usage_type: zod.ZodEnum<{
|
|
52
|
+
licensed: "licensed";
|
|
53
|
+
metered: "metered";
|
|
54
|
+
}>;
|
|
55
|
+
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
53
56
|
per_unit: "per_unit";
|
|
54
57
|
tiered: "tiered";
|
|
55
|
-
|
|
56
|
-
}>;
|
|
58
|
+
}>>;
|
|
57
59
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
58
60
|
tiers_mode: zod.ZodOptional<zod.ZodEnum<{
|
|
59
61
|
none: "none";
|
|
@@ -17,18 +17,20 @@ export declare const PriceOption: zod.ZodObject<{
|
|
|
17
17
|
id: zod.ZodUUID;
|
|
18
18
|
name: zod.ZodString;
|
|
19
19
|
}, zod.z.core.$strict>;
|
|
20
|
-
billing_scheme: zod.ZodEnum<{
|
|
20
|
+
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
21
21
|
per_unit: "per_unit";
|
|
22
22
|
tiered: "tiered";
|
|
23
|
-
|
|
24
|
-
}>;
|
|
23
|
+
}>>;
|
|
25
24
|
unit_quantity: zod.ZodString;
|
|
26
25
|
id: zod.ZodUUID;
|
|
27
26
|
currency: zod.ZodString;
|
|
28
27
|
type: zod.ZodEnum<{
|
|
29
|
-
postpaid: "postpaid";
|
|
30
|
-
prepaid: "prepaid";
|
|
31
28
|
one_time: "one_time";
|
|
29
|
+
recurring: "recurring";
|
|
30
|
+
}>;
|
|
31
|
+
usage_type: zod.ZodEnum<{
|
|
32
|
+
licensed: "licensed";
|
|
33
|
+
metered: "metered";
|
|
32
34
|
}>;
|
|
33
35
|
interval: zod.ZodEnum<{
|
|
34
36
|
none: "none";
|
|
@@ -6,18 +6,22 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { BillingScheme } from "./billingScheme.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
11
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
12
|
+
import { PriceType } from "./priceType.zod.js";
|
|
11
13
|
import { Product } from "./product.zod.js";
|
|
14
|
+
import { UsageType } from "./usageType.zod.js";
|
|
12
15
|
export const PriceOption = zod
|
|
13
16
|
.strictObject({
|
|
14
17
|
product: Product,
|
|
15
18
|
plan: ObjectIdentity,
|
|
16
|
-
billing_scheme:
|
|
19
|
+
billing_scheme: BillingScheme.optional().describe("Absent when the price delegates to a rate card."),
|
|
17
20
|
unit_quantity: zod.string(),
|
|
18
21
|
id: zod.uuid(),
|
|
19
22
|
currency: zod.string(),
|
|
20
|
-
type:
|
|
23
|
+
type: PriceType,
|
|
24
|
+
usage_type: UsageType,
|
|
21
25
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
22
26
|
interval_count: zod.int().optional().describe("How many periods one purchase covers."),
|
|
23
27
|
unit_amount: Money.optional(),
|
|
@@ -25,4 +29,4 @@ export const PriceOption = zod
|
|
|
25
29
|
.boolean()
|
|
26
30
|
.describe("False once the price is archived. It still applies to purchases already made at this price."),
|
|
27
31
|
})
|
|
28
|
-
.describe("A price's display terms, including archived prices referenced by an applicability
|
|
32
|
+
.describe("A price's display terms, including archived prices referenced by an applicability.");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const PriceType: zod.ZodEnum<{
|
|
10
|
+
one_time: "one_time";
|
|
11
|
+
recurring: "recurring";
|
|
12
|
+
}>;
|
|
13
|
+
export type PriceType = zod.input<typeof PriceType>;
|
|
14
|
+
export type PriceTypeOutput = zod.output<typeof PriceType>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const PriceType = zod
|
|
10
|
+
.enum(["one_time", "recurring"])
|
|
11
|
+
.describe("`one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.");
|
|
@@ -13,4 +13,4 @@ export const ProductID = zod
|
|
|
13
13
|
.min(1)
|
|
14
14
|
.max(ProductIDMax)
|
|
15
15
|
.regex(ProductIDRegExp)
|
|
16
|
-
.describe("
|
|
16
|
+
.describe("The platform service's fixed identifier, such as compute, canopy or assistant.");
|
|
@@ -13,11 +13,11 @@ export const ProjectAssignment = zod
|
|
|
13
13
|
project: zod
|
|
14
14
|
.union([NamedIdentity, zod.null()])
|
|
15
15
|
.optional()
|
|
16
|
-
.describe("The project and its current name
|
|
16
|
+
.describe("The project and its current name. Absent when the project cannot be read; `project_id` still identifies it."),
|
|
17
17
|
billing_account_id: zod.int(),
|
|
18
18
|
account_name: zod.string().optional(),
|
|
19
19
|
currency: zod.string(),
|
|
20
20
|
effective_from: zod.iso.datetime({ offset: true }),
|
|
21
21
|
effective_to: zod.iso.datetime({ offset: true }).nullish(),
|
|
22
22
|
})
|
|
23
|
-
.describe("A project's assignment to a billing account
|
|
23
|
+
.describe("A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.");
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export const PurchaseOperation = zod
|
|
10
10
|
.enum(["new", "renew", "modify"])
|
|
11
|
-
.describe("
|
|
11
|
+
.describe("The purchase operation covered. `new`: every new purchase, including zero-charge ones; it does not mean the account's first purchase, which `first_purchase_only` restricts. `renew`: renewals. `modify`: configuration or billing-term changes, whether they charge, refund or neither.");
|
|
@@ -79,10 +79,13 @@ export declare const Quote: zod.ZodObject<{
|
|
|
79
79
|
id: zod.ZodUUID;
|
|
80
80
|
name: zod.ZodString;
|
|
81
81
|
}, zod.z.core.$strict>, zod.ZodNull]>>;
|
|
82
|
-
|
|
83
|
-
postpaid: "postpaid";
|
|
84
|
-
prepaid: "prepaid";
|
|
82
|
+
type: zod.ZodEnum<{
|
|
85
83
|
one_time: "one_time";
|
|
84
|
+
recurring: "recurring";
|
|
85
|
+
}>;
|
|
86
|
+
usage_type: zod.ZodEnum<{
|
|
87
|
+
licensed: "licensed";
|
|
88
|
+
metered: "metered";
|
|
86
89
|
}>;
|
|
87
90
|
auto_renew: zod.ZodBoolean;
|
|
88
91
|
unused_amount: zod.ZodString;
|
|
@@ -15,18 +15,18 @@ import { QuoteItem } from "./quoteItem.zod.js";
|
|
|
15
15
|
import { QuoteRenewalResult } from "./quoteRenewalResult.zod.js";
|
|
16
16
|
export const Quote = zod
|
|
17
17
|
.strictObject({
|
|
18
|
-
funds: Funds.optional().describe("Account
|
|
18
|
+
funds: Funds.optional().describe("Account funds for an existing-order checkout quote. Absent for usage estimates, refunds and cancellations."),
|
|
19
19
|
subtotal: Money,
|
|
20
20
|
discount_amount: Money,
|
|
21
21
|
tax_amount: Money,
|
|
22
22
|
discount: zod
|
|
23
23
|
.union([QuotedDiscount, zod.null()])
|
|
24
|
-
.describe("The discount
|
|
24
|
+
.describe("The discount a purchase or order would get, not yet applied. Null when there is none, and for renewals and cancellations. A confirmed order reports its recorded discount."),
|
|
25
25
|
items: zod.array(QuoteItem),
|
|
26
26
|
renewals: zod.array(QuoteRenewalResult),
|
|
27
27
|
cancellation: CancellationRefundPreview.optional().describe("What the cancellation requested would return. Present only when one was requested."),
|
|
28
28
|
total: Money,
|
|
29
29
|
currency: zod.string(),
|
|
30
|
-
refund: OrderRefundQuote.optional().describe("Present
|
|
30
|
+
refund: OrderRefundQuote.optional().describe("Present when an order refund was requested."),
|
|
31
31
|
})
|
|
32
|
-
.describe("A complete calculation in
|
|
32
|
+
.describe("A complete calculation in the billing account's currency; nothing is saved or reserved. The request fails if any item cannot be priced. Usage estimates are included in totals but are not collected at checkout; only an existing-order quote gives that order's checkout amount.");
|
|
@@ -14,7 +14,7 @@ export const QuoteCancellation = zod
|
|
|
14
14
|
.array(zod.uuid())
|
|
15
15
|
.min(1)
|
|
16
16
|
.max(quoteCancellationSubscriptionIdsMax)
|
|
17
|
-
.describe("The subscriptions to end together, all of one service
|
|
17
|
+
.describe("The subscriptions to end together, all of one service, including every subscription released with a resource."),
|
|
18
18
|
mode: TerminationPolicy,
|
|
19
19
|
})
|
|
20
|
-
.describe("A cancellation to quote: what ending these subscriptions together would return
|
|
20
|
+
.describe("A cancellation to quote: what ending these subscriptions together would return, for one mode; quote `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).");
|
|
@@ -15,24 +15,24 @@ export const QuoteItem = zod
|
|
|
15
15
|
index: zod
|
|
16
16
|
.int()
|
|
17
17
|
.min(quoteItemIndexMin)
|
|
18
|
-
.describe("
|
|
18
|
+
.describe("The zero-based request line index, or the recorded order item's position for an order quote."),
|
|
19
19
|
order_item_id: zod
|
|
20
20
|
.uuid()
|
|
21
21
|
.optional()
|
|
22
22
|
.describe("Present for an existing order quote; identifies the recorded item being priced."),
|
|
23
23
|
price_id: zod
|
|
24
24
|
.uuid()
|
|
25
|
-
.describe("The selected price,
|
|
25
|
+
.describe("The selected price, also when the request identified it indirectly."),
|
|
26
26
|
plan_name: zod.string(),
|
|
27
27
|
unit_amount: zod
|
|
28
28
|
.union([Money, zod.null()])
|
|
29
29
|
.describe("Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing."),
|
|
30
30
|
quantity: zod
|
|
31
31
|
.string()
|
|
32
|
-
.describe("The quantity priced
|
|
32
|
+
.describe("The quantity priced; with duration_seconds, quantity times the duration."),
|
|
33
33
|
amount: Money.describe("Amount before discounts and including any setup charge. For requested future usage this is an estimate, not a collectible checkout amount."),
|
|
34
34
|
discount_amount: Money,
|
|
35
35
|
total: Money,
|
|
36
36
|
currency: zod.string(),
|
|
37
37
|
})
|
|
38
|
-
.describe("One fully calculated purchase, estimated
|
|
38
|
+
.describe("One fully calculated purchase, estimated metered usage or recorded order item. Amounts use the\nbilling-account currency. An item with no immediate charge has zero checkout amounts.");
|
|
@@ -17,9 +17,12 @@ export declare const QuoteItemInput: zod.ZodObject<{
|
|
|
17
17
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
18
18
|
plan_id: zod.ZodOptional<zod.ZodUUID>;
|
|
19
19
|
price_type: zod.ZodOptional<zod.ZodEnum<{
|
|
20
|
-
postpaid: "postpaid";
|
|
21
|
-
prepaid: "prepaid";
|
|
22
20
|
one_time: "one_time";
|
|
21
|
+
recurring: "recurring";
|
|
22
|
+
}>>;
|
|
23
|
+
usage_type: zod.ZodOptional<zod.ZodEnum<{
|
|
24
|
+
licensed: "licensed";
|
|
25
|
+
metered: "metered";
|
|
23
26
|
}>>;
|
|
24
27
|
interval: zod.ZodOptional<zod.ZodEnum<{
|
|
25
28
|
none: "none";
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { PriceType } from "./priceType.zod.js";
|
|
9
10
|
import { ProductID } from "./productID.zod.js";
|
|
10
11
|
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
12
|
+
import { UsageType } from "./usageType.zod.js";
|
|
11
13
|
export const quoteItemInputPriceLookupKeyMax = 128;
|
|
12
14
|
export const quoteItemInputPlanLookupKeyMax = 128;
|
|
13
15
|
export const quoteItemInputQuantityRegExp = new RegExp("^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$");
|
|
@@ -19,23 +21,21 @@ export const QuoteItemInput = zod
|
|
|
19
21
|
price_id: zod.uuid().optional(),
|
|
20
22
|
product_id: ProductID.optional(),
|
|
21
23
|
plan_id: zod.uuid().optional(),
|
|
22
|
-
price_type:
|
|
23
|
-
|
|
24
|
-
.optional()
|
|
25
|
-
.describe("Narrows the selection when a plan offers more than one charge type."),
|
|
24
|
+
price_type: PriceType.optional().describe("Narrows the selection when a plan offers more than one price type."),
|
|
25
|
+
usage_type: UsageType.optional().describe("Narrows the selection when a plan offers more than one usage type."),
|
|
26
26
|
interval: zod.enum(["none", "day", "month", "year"]).optional(),
|
|
27
27
|
interval_count: zod.int().min(1).optional(),
|
|
28
|
-
termination_policy: TerminationPolicy.optional().describe("Selects among
|
|
28
|
+
termination_policy: TerminationPolicy.optional().describe("Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily."),
|
|
29
29
|
quantity: zod.string().regex(quoteItemInputQuantityRegExp),
|
|
30
30
|
meter_id: zod.uuid().optional(),
|
|
31
31
|
meter_lookup_key: zod.string().min(1).max(quoteItemInputMeterLookupKeyMax).optional(),
|
|
32
32
|
dimensions: zod
|
|
33
33
|
.record(zod.string(), zod.string())
|
|
34
34
|
.optional()
|
|
35
|
-
.describe("The
|
|
35
|
+
.describe("The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero."),
|
|
36
36
|
duration_seconds: zod
|
|
37
37
|
.int()
|
|
38
38
|
.optional()
|
|
39
|
-
.describe(
|
|
39
|
+
.describe("For a metered estimate, how long to price for, in seconds; the priced quantity is `quantity` times this duration."),
|
|
40
40
|
})
|
|
41
|
-
.describe("Identify a price
|
|
41
|
+
.describe("Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. For a metered price, a meter or duration_seconds requests a usage estimate, which cannot be combined with a promotion code and is not a checkout amount. Without one, a metered item includes only any setup charge.");
|
|
@@ -23,4 +23,4 @@ export const QuoteRenewal = zod
|
|
|
23
23
|
.default(quoteRenewalPeriodsDefault)
|
|
24
24
|
.describe("How many consecutive periods to renew for."),
|
|
25
25
|
})
|
|
26
|
-
.describe("Price renewing a
|
|
26
|
+
.describe("Price renewing a licensed subscription. Give `price_id`, or `interval` with\n`interval_count`, to renew for another term at the price currently sold for it. Naming\nthe current term, or giving neither, renews at the agreed amount. A term sold at several\nprices that differ in termination policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.");
|
|
@@ -15,10 +15,10 @@ export const QuoteRenewalResult = zod
|
|
|
15
15
|
interval: zod.enum(["day", "month", "year"]),
|
|
16
16
|
interval_count: zod.int(),
|
|
17
17
|
periods: zod.int(),
|
|
18
|
-
amount: Money.describe("The price of the periods before the discounts
|
|
18
|
+
amount: Money.describe("The price of the periods before the account's discounts, with any discount the subscription carries already reflected; includes tax only where the price does."),
|
|
19
19
|
discount_amount: Money.describe("The reduction from a discount the account holds."),
|
|
20
20
|
tax_amount: Money.describe("Tax on the discounted amount."),
|
|
21
21
|
tax_included_amount: Money.describe("The part of `tax_amount` already contained in `amount`."),
|
|
22
22
|
total: Money.describe("What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less\n`tax_included_amount`."),
|
|
23
23
|
})
|
|
24
|
-
.describe("What renewing would charge. Renewing the same subscription for the same term and
|
|
24
|
+
.describe("What renewing would charge. Renewing the same subscription for the same term and periods charges exactly `total` unless prices or the account's discounts change first.");
|
|
@@ -18,9 +18,12 @@ export declare const QuoteRequest: zod.ZodObject<{
|
|
|
18
18
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
19
19
|
plan_id: zod.ZodOptional<zod.ZodUUID>;
|
|
20
20
|
price_type: zod.ZodOptional<zod.ZodEnum<{
|
|
21
|
-
postpaid: "postpaid";
|
|
22
|
-
prepaid: "prepaid";
|
|
23
21
|
one_time: "one_time";
|
|
22
|
+
recurring: "recurring";
|
|
23
|
+
}>>;
|
|
24
|
+
usage_type: zod.ZodOptional<zod.ZodEnum<{
|
|
25
|
+
licensed: "licensed";
|
|
26
|
+
metered: "metered";
|
|
24
27
|
}>>;
|
|
25
28
|
interval: zod.ZodOptional<zod.ZodEnum<{
|
|
26
29
|
none: "none";
|
|
@@ -18,25 +18,25 @@ export const QuoteRequest = zod
|
|
|
18
18
|
billing_account_id: zod
|
|
19
19
|
.int()
|
|
20
20
|
.min(1)
|
|
21
|
-
.describe("The billing account to price for
|
|
21
|
+
.describe("The billing account to price for; it must be yours. Existing orders must have been placed with it, and renewals and cancellations must currently be paid by it."),
|
|
22
22
|
items: zod
|
|
23
23
|
.array(QuoteItemInput)
|
|
24
24
|
.min(1)
|
|
25
25
|
.max(quoteRequestItemsMax)
|
|
26
26
|
.optional()
|
|
27
|
-
.describe("A proposed purchase priced in the account currency. Metered items may
|
|
27
|
+
.describe("A proposed purchase priced in the account's currency. Metered items may include usage estimates, which are not checkout amounts."),
|
|
28
28
|
order_id: zod
|
|
29
29
|
.uuid()
|
|
30
30
|
.optional()
|
|
31
|
-
.describe("Preview paying this
|
|
31
|
+
.describe("Preview paying this order. Its recorded terms supply every line, and an order whose terms are fixed returns its recorded amounts. The order does not change."),
|
|
32
32
|
renewals: zod
|
|
33
33
|
.array(QuoteRenewal)
|
|
34
34
|
.min(1)
|
|
35
35
|
.max(quoteRequestRenewalsMax)
|
|
36
36
|
.optional()
|
|
37
|
-
.describe("Preview renewing these subscriptions, each at most once
|
|
37
|
+
.describe("Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. To preview a promotion code, create a renewal order and quote it by order_id."),
|
|
38
38
|
cancellation: QuoteCancellation.optional(),
|
|
39
39
|
promotion_code: zod.string().min(1).max(quoteRequestPromotionCodeMax).optional(),
|
|
40
40
|
refund: OrderRefundQuoteInput.optional(),
|
|
41
41
|
})
|
|
42
|
-
.describe(
|
|
42
|
+
.describe("Quote exactly one target for the billing account: proposed items, an existing order, renewals, a cancellation or an order refund. Promotion codes apply only to proposed items or an existing order. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.");
|
|
@@ -18,4 +18,4 @@ export const QuotedDiscount = zod
|
|
|
18
18
|
.nullable()
|
|
19
19
|
.describe("Code text for a promotion_code discount; null for an account_discount."),
|
|
20
20
|
})
|
|
21
|
-
.describe("The discount selected for this calculation
|
|
21
|
+
.describe("The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.");
|
|
@@ -18,6 +18,17 @@ export declare const Rate: zod.ZodObject<{
|
|
|
18
18
|
per_unit: "per_unit";
|
|
19
19
|
tiered: "tiered";
|
|
20
20
|
}>;
|
|
21
|
+
usage_type: zod.ZodEnum<{
|
|
22
|
+
licensed: "licensed";
|
|
23
|
+
metered: "metered";
|
|
24
|
+
}>;
|
|
25
|
+
interval: zod.ZodEnum<{
|
|
26
|
+
none: "none";
|
|
27
|
+
day: "day";
|
|
28
|
+
month: "month";
|
|
29
|
+
year: "year";
|
|
30
|
+
}>;
|
|
31
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
21
32
|
tiers_mode: zod.ZodEnum<{
|
|
22
33
|
none: "none";
|
|
23
34
|
graduated: "graduated";
|
|
@@ -6,18 +6,26 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { BillingScheme } from "./billingScheme.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
11
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
11
12
|
import { Tier } from "./tier.zod.js";
|
|
13
|
+
import { UsageType } from "./usageType.zod.js";
|
|
12
14
|
export const Rate = zod.strictObject({
|
|
13
15
|
meter: ObjectIdentity,
|
|
14
|
-
unit: zod
|
|
16
|
+
unit: zod
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe("The unit readings are reported in, such as `core-second`."),
|
|
15
20
|
dimensions: zod
|
|
16
21
|
.record(zod.string(), zod.string())
|
|
17
|
-
.describe("The
|
|
18
|
-
billing_scheme:
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
.describe("The dimension values this rate applies to, such as region and machine type."),
|
|
23
|
+
billing_scheme: BillingScheme,
|
|
24
|
+
usage_type: UsageType.describe("`metered` prices usage; `licensed` prices holding a quantity for one period."),
|
|
25
|
+
interval: zod
|
|
26
|
+
.enum(["none", "day", "month", "year"])
|
|
27
|
+
.describe("Licensed rates only, the period the amount buys; `none` for metered rates."),
|
|
28
|
+
interval_count: zod.int().nullish(),
|
|
21
29
|
tiers_mode: zod
|
|
22
30
|
.enum(["none", "graduated", "volume"])
|
|
23
31
|
.describe("`graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate."),
|
|
@@ -26,7 +34,7 @@ export const Rate = zod.strictObject({
|
|
|
26
34
|
unit_quantity: zod
|
|
27
35
|
.string()
|
|
28
36
|
.optional()
|
|
29
|
-
.describe('How many measured units one amount covers
|
|
37
|
+
.describe('How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`.'),
|
|
30
38
|
currency: zod.string(),
|
|
31
39
|
effective_from: zod.iso.datetime({ offset: true }),
|
|
32
40
|
effective_to: zod.iso.datetime({ offset: true }).nullish(),
|
|
@@ -19,6 +19,17 @@ export declare const RateList: zod.ZodObject<{
|
|
|
19
19
|
per_unit: "per_unit";
|
|
20
20
|
tiered: "tiered";
|
|
21
21
|
}>;
|
|
22
|
+
usage_type: zod.ZodEnum<{
|
|
23
|
+
licensed: "licensed";
|
|
24
|
+
metered: "metered";
|
|
25
|
+
}>;
|
|
26
|
+
interval: zod.ZodEnum<{
|
|
27
|
+
none: "none";
|
|
28
|
+
day: "day";
|
|
29
|
+
month: "month";
|
|
30
|
+
year: "year";
|
|
31
|
+
}>;
|
|
32
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
22
33
|
tiers_mode: zod.ZodEnum<{
|
|
23
34
|
none: "none";
|
|
24
35
|
graduated: "graduated";
|
|
@@ -14,14 +14,14 @@ export const Refund = zod.strictObject({
|
|
|
14
14
|
cancellation_item_id: zod.uuid().optional(),
|
|
15
15
|
transactions: zod
|
|
16
16
|
.array(Transaction)
|
|
17
|
-
.describe("
|
|
17
|
+
.describe("The refund split by original payment source, with each result. Unknown gateway results stay pending."),
|
|
18
18
|
id: zod.uuid(),
|
|
19
19
|
billing_account_id: zod.int().optional(),
|
|
20
20
|
invoice_id: zod.uuid().nullish(),
|
|
21
21
|
order_id: zod
|
|
22
22
|
.uuid()
|
|
23
23
|
.nullish()
|
|
24
|
-
.describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise
|
|
24
|
+
.describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise the order of the refunded invoice. Null for refunds of top-ups and usage invoices."),
|
|
25
25
|
amount: Money.describe("The whole refund. Equals balance_amount plus credit_amount plus gateway_amount."),
|
|
26
26
|
balance_amount: Money.describe("The part returned to the account balance."),
|
|
27
27
|
credit_amount: Money.describe("The part restored to the credit grants that paid for it."),
|
|
@@ -31,7 +31,7 @@ export const Refund = zod.strictObject({
|
|
|
31
31
|
destination: zod
|
|
32
32
|
.enum(["balance", "gateway"])
|
|
33
33
|
.optional()
|
|
34
|
-
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between
|
|
34
|
+
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations."),
|
|
35
35
|
status: zod
|
|
36
36
|
.enum(["pending", "processing", "succeeded", "failed"])
|
|
37
37
|
.describe("Summary of the parts in `transactions`.\n\n- `pending`: nothing has been returned yet, and at least one part is in progress.\n- `processing`: some parts have been returned, and at least one is still in progress.\n- `succeeded`: every part has been returned.\n- `failed`: no part is in progress and at least one has failed. What was returned is in\n settled_amount.\n\nReturns to the balance and to credit grants complete shortly after the refund is made; a\nreturn to a payment method completes when the gateway confirms it."),
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export const RefundPolicy = zod
|
|
10
10
|
.enum(["none", "prorated"])
|
|
11
|
-
.describe("none refunds nothing. prorated refunds the amount paid for the current period minus the value of
|
|
11
|
+
.describe("`none` refunds nothing. `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero or above what remains unrefunded. Time used runs from the period start to the effective cancellation and is valued at prices frozen on the order item: each full calendar month at `refund_monthly_amount`, the rest at `refund_hourly_amount` or, without it, at the monthly price by the second. When the plan has no licensed period shorter than the one bought, time used is valued pro rata at the price paid. Discounts and setup fees are not refunded. Refunds return to the original payment sources, with tax refunded in proportion.");
|
|
@@ -20,4 +20,4 @@ export const RefundReason = zod
|
|
|
20
20
|
"payment_not_applied",
|
|
21
21
|
"operator",
|
|
22
22
|
])
|
|
23
|
-
.describe("Why the refund was made.
|
|
23
|
+
.describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`\n describes, minus the new configuration's cost for the remaining time at the change item's\n `refund_monthly_amount` and `refund_hourly_amount`.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
|
|
@@ -13,12 +13,12 @@ export const renewRequestUseCreditsDefault = true;
|
|
|
13
13
|
export const RenewRequest = zod.strictObject({
|
|
14
14
|
order_id: zod
|
|
15
15
|
.uuid()
|
|
16
|
-
.describe("
|
|
16
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
17
17
|
periods: zod
|
|
18
18
|
.int()
|
|
19
19
|
.min(1)
|
|
20
20
|
.default(renewRequestPeriodsDefault)
|
|
21
|
-
.describe("How many further periods to buy, each at the price
|
|
21
|
+
.describe("How many further periods to buy, each at the price the subscription already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead."),
|
|
22
22
|
interval_count: zod
|
|
23
23
|
.int()
|
|
24
24
|
.min(1)
|
|
@@ -12,7 +12,7 @@ export const RenewalOrderRequest = zod
|
|
|
12
12
|
.strictObject({
|
|
13
13
|
order_id: zod
|
|
14
14
|
.uuid()
|
|
15
|
-
.describe("
|
|
15
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
16
16
|
periods: zod
|
|
17
17
|
.int()
|
|
18
18
|
.min(1)
|
|
@@ -22,4 +22,4 @@ export const RenewalOrderRequest = zod
|
|
|
22
22
|
interval: zod.enum(["day", "month", "year"]).optional().describe("As in renewing."),
|
|
23
23
|
termination_policy: TerminationPolicy.optional().describe("As in renewing."),
|
|
24
24
|
})
|
|
25
|
-
.describe("The periods and price
|
|
25
|
+
.describe("The renewal's periods and price, chosen as in renewing.");
|