@leaflow/sdk 0.141.0 → 0.143.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/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/functions.d.ts +66 -1
- package/dist/canopy/v1/generated/functions.js +67 -0
- package/dist/canopy/v1/generated/models.d.ts +516 -788
- package/dist/canopy/v1/generated/models.js +36 -44
- package/dist/canopy/v1/generated/schemas.zod.d.ts +27 -0
- package/dist/canopy/v1/generated/schemas.zod.js +18 -0
- 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/cursorPageRequestResource.zod.d.ts +9 -0
- 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/endpointCapabilities.zod.d.ts +50 -0
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +39 -0
- 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/modality.zod.d.ts +43 -0
- package/dist/canopy/v1/generated/validators/modality.zod.js +34 -0
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +44 -4
- package/dist/canopy/v1/generated/validators/model.zod.js +19 -4
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +50 -0
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +37 -0
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +44 -4
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +44 -4
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +44 -4
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +19 -6
- 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/reasoningCapabilities.zod.d.ts +48 -0
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +51 -0
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +44 -0
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +38 -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/requestResource.zod.d.ts +9 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +48 -0
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +48 -0
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +40 -0
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +38 -0
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +36 -0
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +34 -0
- 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 +28 -4
- package/dist/routes.js +31 -4
- package/package.json +1 -1
|
@@ -43,9 +43,12 @@ export declare const QuoteRequest: zod.ZodObject<{
|
|
|
43
43
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
44
44
|
plan_id: zod.ZodOptional<zod.ZodUUID>;
|
|
45
45
|
price_type: zod.ZodOptional<zod.ZodEnum<{
|
|
46
|
-
postpaid: "postpaid";
|
|
47
|
-
prepaid: "prepaid";
|
|
48
46
|
one_time: "one_time";
|
|
47
|
+
recurring: "recurring";
|
|
48
|
+
}>>;
|
|
49
|
+
usage_type: zod.ZodOptional<zod.ZodEnum<{
|
|
50
|
+
licensed: "licensed";
|
|
51
|
+
metered: "metered";
|
|
49
52
|
}>>;
|
|
50
53
|
interval: zod.ZodOptional<zod.ZodEnum<{
|
|
51
54
|
none: "none";
|
|
@@ -43,25 +43,25 @@ export const QuoteRequest = zod
|
|
|
43
43
|
billing_account_id: zod
|
|
44
44
|
.int()
|
|
45
45
|
.min(1)
|
|
46
|
-
.describe("The billing account to price for
|
|
46
|
+
.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."),
|
|
47
47
|
items: zod
|
|
48
48
|
.array(QuoteItemInput)
|
|
49
49
|
.min(1)
|
|
50
50
|
.max(quoteRequestItemsMax)
|
|
51
51
|
.optional()
|
|
52
|
-
.describe("A proposed purchase priced in the account currency. Metered items may
|
|
52
|
+
.describe("A proposed purchase priced in the account's currency. Metered items may include usage estimates, which are not checkout amounts."),
|
|
53
53
|
order_id: zod
|
|
54
54
|
.uuid()
|
|
55
55
|
.optional()
|
|
56
|
-
.describe("Preview paying this
|
|
56
|
+
.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."),
|
|
57
57
|
renewals: zod
|
|
58
58
|
.array(QuoteRenewal)
|
|
59
59
|
.min(1)
|
|
60
60
|
.max(quoteRequestRenewalsMax)
|
|
61
61
|
.optional()
|
|
62
|
-
.describe("Preview renewing these subscriptions, each at most once
|
|
62
|
+
.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."),
|
|
63
63
|
cancellation: QuoteCancellation.optional(),
|
|
64
64
|
promotion_code: zod.string().min(1).max(quoteRequestPromotionCodeMax).optional(),
|
|
65
65
|
refund: OrderRefundQuoteInput.optional(),
|
|
66
66
|
})
|
|
67
|
-
.describe(
|
|
67
|
+
.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.");
|
|
@@ -43,4 +43,4 @@ export const QuotedDiscount = zod
|
|
|
43
43
|
.nullable()
|
|
44
44
|
.describe("Code text for a promotion_code discount; null for an account_discount."),
|
|
45
45
|
})
|
|
46
|
-
.describe("The discount selected for this calculation
|
|
46
|
+
.describe("The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.");
|
|
@@ -43,6 +43,17 @@ export declare const Rate: zod.ZodObject<{
|
|
|
43
43
|
per_unit: "per_unit";
|
|
44
44
|
tiered: "tiered";
|
|
45
45
|
}>;
|
|
46
|
+
usage_type: zod.ZodEnum<{
|
|
47
|
+
licensed: "licensed";
|
|
48
|
+
metered: "metered";
|
|
49
|
+
}>;
|
|
50
|
+
interval: zod.ZodEnum<{
|
|
51
|
+
none: "none";
|
|
52
|
+
day: "day";
|
|
53
|
+
month: "month";
|
|
54
|
+
year: "year";
|
|
55
|
+
}>;
|
|
56
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
46
57
|
tiers_mode: zod.ZodEnum<{
|
|
47
58
|
none: "none";
|
|
48
59
|
graduated: "graduated";
|
|
@@ -31,18 +31,26 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
+
import { BillingScheme } from "./billingScheme.zod.js";
|
|
34
35
|
import { Money } from "./money.zod.js";
|
|
35
36
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
36
37
|
import { Tier } from "./tier.zod.js";
|
|
38
|
+
import { UsageType } from "./usageType.zod.js";
|
|
37
39
|
export const Rate = zod.strictObject({
|
|
38
40
|
meter: ObjectIdentity,
|
|
39
|
-
unit: zod
|
|
41
|
+
unit: zod
|
|
42
|
+
.string()
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("The unit readings are reported in, such as `core-second`."),
|
|
40
45
|
dimensions: zod
|
|
41
46
|
.record(zod.string(), zod.string())
|
|
42
|
-
.describe("The
|
|
43
|
-
billing_scheme:
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
.describe("The dimension values this rate applies to, such as region and machine type."),
|
|
48
|
+
billing_scheme: BillingScheme,
|
|
49
|
+
usage_type: UsageType.describe("`metered` prices usage; `licensed` prices holding a quantity for one period."),
|
|
50
|
+
interval: zod
|
|
51
|
+
.enum(["none", "day", "month", "year"])
|
|
52
|
+
.describe("Licensed rates only, the period the amount buys; `none` for metered rates."),
|
|
53
|
+
interval_count: zod.int().nullish(),
|
|
46
54
|
tiers_mode: zod
|
|
47
55
|
.enum(["none", "graduated", "volume"])
|
|
48
56
|
.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."),
|
|
@@ -51,7 +59,7 @@ export const Rate = zod.strictObject({
|
|
|
51
59
|
unit_quantity: zod
|
|
52
60
|
.string()
|
|
53
61
|
.optional()
|
|
54
|
-
.describe('How many measured units one amount covers
|
|
62
|
+
.describe('How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`.'),
|
|
55
63
|
currency: zod.string(),
|
|
56
64
|
effective_from: zod.iso.datetime({ offset: true }),
|
|
57
65
|
effective_to: zod.iso.datetime({ offset: true }).nullish(),
|
|
@@ -44,6 +44,17 @@ export declare const RateList: zod.ZodObject<{
|
|
|
44
44
|
per_unit: "per_unit";
|
|
45
45
|
tiered: "tiered";
|
|
46
46
|
}>;
|
|
47
|
+
usage_type: zod.ZodEnum<{
|
|
48
|
+
licensed: "licensed";
|
|
49
|
+
metered: "metered";
|
|
50
|
+
}>;
|
|
51
|
+
interval: zod.ZodEnum<{
|
|
52
|
+
none: "none";
|
|
53
|
+
day: "day";
|
|
54
|
+
month: "month";
|
|
55
|
+
year: "year";
|
|
56
|
+
}>;
|
|
57
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
47
58
|
tiers_mode: zod.ZodEnum<{
|
|
48
59
|
none: "none";
|
|
49
60
|
graduated: "graduated";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export declare const reasoningCapabilitiesBudgetTokensMinMin = 0;
|
|
35
|
+
export declare const reasoningCapabilitiesBudgetTokensMaxMin = 0;
|
|
36
|
+
export declare const ReasoningCapabilities: zod.ZodObject<{
|
|
37
|
+
supported: zod.ZodBoolean;
|
|
38
|
+
effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
39
|
+
default_effort: zod.ZodNullable<zod.ZodString>;
|
|
40
|
+
modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
41
|
+
budget_tokens: zod.ZodNullable<zod.ZodObject<{
|
|
42
|
+
min: zod.ZodInt;
|
|
43
|
+
max: zod.ZodInt;
|
|
44
|
+
}, zod.z.core.$strict>>;
|
|
45
|
+
summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
46
|
+
}, zod.z.core.$strict>;
|
|
47
|
+
export type ReasoningCapabilities = zod.input<typeof ReasoningCapabilities>;
|
|
48
|
+
export type ReasoningCapabilitiesOutput = zod.output<typeof ReasoningCapabilities>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export const reasoningCapabilitiesBudgetTokensMinMin = 0;
|
|
35
|
+
export const reasoningCapabilitiesBudgetTokensMaxMin = 0;
|
|
36
|
+
export const ReasoningCapabilities = zod.strictObject({
|
|
37
|
+
supported: zod.boolean(),
|
|
38
|
+
effort_levels: zod
|
|
39
|
+
.array(zod.string())
|
|
40
|
+
.nullable()
|
|
41
|
+
.describe("Null means unknown; an empty array means effort is not configurable."),
|
|
42
|
+
default_effort: zod.string().nullable(),
|
|
43
|
+
modes: zod.array(zod.string()).nullable(),
|
|
44
|
+
budget_tokens: zod
|
|
45
|
+
.strictObject({
|
|
46
|
+
min: zod.int().min(reasoningCapabilitiesBudgetTokensMinMin),
|
|
47
|
+
max: zod.int().min(reasoningCapabilitiesBudgetTokensMaxMin),
|
|
48
|
+
})
|
|
49
|
+
.nullable(),
|
|
50
|
+
summary: zod.array(zod.string()).nullable(),
|
|
51
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export declare const ReasoningDiagnostics: zod.ZodObject<{
|
|
35
|
+
requested: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
36
|
+
effective: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
37
|
+
translation: zod.ZodOptional<zod.ZodEnum<{
|
|
38
|
+
translate: "translate";
|
|
39
|
+
passthrough: "passthrough";
|
|
40
|
+
strip: "strip";
|
|
41
|
+
}>>;
|
|
42
|
+
}, zod.z.core.$strict>;
|
|
43
|
+
export type ReasoningDiagnostics = zod.input<typeof ReasoningDiagnostics>;
|
|
44
|
+
export type ReasoningDiagnosticsOutput = zod.output<typeof ReasoningDiagnostics>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export const ReasoningDiagnostics = zod.strictObject({
|
|
35
|
+
requested: zod.record(zod.string(), zod.unknown()),
|
|
36
|
+
effective: zod.record(zod.string(), zod.unknown()).optional(),
|
|
37
|
+
translation: zod.enum(["translate", "passthrough", "strip"]).optional(),
|
|
38
|
+
});
|
|
@@ -39,14 +39,14 @@ export const Refund = zod.strictObject({
|
|
|
39
39
|
cancellation_item_id: zod.uuid().optional(),
|
|
40
40
|
transactions: zod
|
|
41
41
|
.array(Transaction)
|
|
42
|
-
.describe("
|
|
42
|
+
.describe("The refund split by original payment source, with each result. Unknown gateway results stay pending."),
|
|
43
43
|
id: zod.uuid(),
|
|
44
44
|
billing_account_id: zod.int().optional(),
|
|
45
45
|
invoice_id: zod.uuid().nullish(),
|
|
46
46
|
order_id: zod
|
|
47
47
|
.uuid()
|
|
48
48
|
.nullish()
|
|
49
|
-
.describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise
|
|
49
|
+
.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."),
|
|
50
50
|
amount: Money.describe("The whole refund. Equals balance_amount plus credit_amount plus gateway_amount."),
|
|
51
51
|
balance_amount: Money.describe("The part returned to the account balance."),
|
|
52
52
|
credit_amount: Money.describe("The part restored to the credit grants that paid for it."),
|
|
@@ -56,7 +56,7 @@ export const Refund = zod.strictObject({
|
|
|
56
56
|
destination: zod
|
|
57
57
|
.enum(["balance", "gateway"])
|
|
58
58
|
.optional()
|
|
59
|
-
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between
|
|
59
|
+
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations."),
|
|
60
60
|
status: zod
|
|
61
61
|
.enum(["pending", "processing", "succeeded", "failed"])
|
|
62
62
|
.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."),
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const RefundPolicy = zod
|
|
35
35
|
.enum(["none", "prorated"])
|
|
36
|
-
.describe("none refunds nothing. prorated refunds the amount paid for the current period minus the value of
|
|
36
|
+
.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.");
|
|
@@ -45,4 +45,4 @@ export const RefundReason = zod
|
|
|
45
45
|
"payment_not_applied",
|
|
46
46
|
"operator",
|
|
47
47
|
])
|
|
48
|
-
.describe("Why the refund was made.
|
|
48
|
+
.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.");
|
|
@@ -38,12 +38,12 @@ export const renewRequestUseCreditsDefault = true;
|
|
|
38
38
|
export const RenewRequest = zod.strictObject({
|
|
39
39
|
order_id: zod
|
|
40
40
|
.uuid()
|
|
41
|
-
.describe("
|
|
41
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
42
42
|
periods: zod
|
|
43
43
|
.int()
|
|
44
44
|
.min(1)
|
|
45
45
|
.default(renewRequestPeriodsDefault)
|
|
46
|
-
.describe("How many further periods to buy, each at the price
|
|
46
|
+
.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."),
|
|
47
47
|
interval_count: zod
|
|
48
48
|
.int()
|
|
49
49
|
.min(1)
|
|
@@ -37,7 +37,7 @@ export const RenewalOrderRequest = zod
|
|
|
37
37
|
.strictObject({
|
|
38
38
|
order_id: zod
|
|
39
39
|
.uuid()
|
|
40
|
-
.describe("
|
|
40
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
41
41
|
periods: zod
|
|
42
42
|
.int()
|
|
43
43
|
.min(1)
|
|
@@ -47,4 +47,4 @@ export const RenewalOrderRequest = zod
|
|
|
47
47
|
interval: zod.enum(["day", "month", "year"]).optional().describe("As in renewing."),
|
|
48
48
|
termination_policy: TerminationPolicy.optional().describe("As in renewing."),
|
|
49
49
|
})
|
|
50
|
-
.describe("The periods and price
|
|
50
|
+
.describe("The renewal's periods and price, chosen as in renewing.");
|
|
@@ -44,5 +44,5 @@ export const RenewalPrice = zod.strictObject({
|
|
|
44
44
|
currency: zod.string().optional(),
|
|
45
45
|
current: zod
|
|
46
46
|
.boolean()
|
|
47
|
-
.describe("The term
|
|
47
|
+
.describe("The term the subscription renews at now; renewing for it keeps the agreed price."),
|
|
48
48
|
});
|
|
@@ -60,6 +60,15 @@ export declare const RequestResource: zod.ZodObject<{
|
|
|
60
60
|
upstream: "upstream";
|
|
61
61
|
estimated: "estimated";
|
|
62
62
|
}>;
|
|
63
|
+
reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
64
|
+
requested: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
65
|
+
effective: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
66
|
+
translation: zod.ZodOptional<zod.ZodEnum<{
|
|
67
|
+
translate: "translate";
|
|
68
|
+
passthrough: "passthrough";
|
|
69
|
+
strip: "strip";
|
|
70
|
+
}>>;
|
|
71
|
+
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
63
72
|
}, zod.z.core.$strict>;
|
|
64
73
|
export type RequestResource = zod.input<typeof RequestResource>;
|
|
65
74
|
export type RequestResourceOutput = zod.output<typeof RequestResource>;
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
+
import { ReasoningDiagnostics } from "./reasoningDiagnostics.zod.js";
|
|
34
35
|
export const RequestResource = zod.strictObject({
|
|
35
36
|
api_key_id: zod
|
|
36
37
|
.uuid()
|
|
@@ -61,4 +62,5 @@ export const RequestResource = zod.strictObject({
|
|
|
61
62
|
usage_source: zod
|
|
62
63
|
.enum(["none", "upstream", "estimated"])
|
|
63
64
|
.describe("upstream means the figures were reported by the provider; estimated means they were derived from the character classes of the payload"),
|
|
65
|
+
reasoning: zod.union([ReasoningDiagnostics, zod.null()]),
|
|
64
66
|
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export declare const responseCreateStoreDefault = false;
|
|
35
|
+
export declare const responseCreateStreamDefault = false;
|
|
36
|
+
export declare const ResponseCreate: zod.ZodObject<{
|
|
37
|
+
model: zod.ZodOptional<zod.ZodString>;
|
|
38
|
+
input: zod.ZodOptional<zod.ZodUnknown>;
|
|
39
|
+
instructions: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
40
|
+
store: zod.ZodDefault<zod.ZodBoolean>;
|
|
41
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
42
|
+
previous_response_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
43
|
+
reasoning: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
44
|
+
tools: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
45
|
+
max_output_tokens: zod.ZodOptional<zod.ZodInt>;
|
|
46
|
+
}, zod.z.core.$strict>;
|
|
47
|
+
export type ResponseCreate = zod.input<typeof ResponseCreate>;
|
|
48
|
+
export type ResponseCreateOutput = zod.output<typeof ResponseCreate>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export const responseCreateStoreDefault = false;
|
|
35
|
+
export const responseCreateStreamDefault = false;
|
|
36
|
+
export const ResponseCreate = zod
|
|
37
|
+
.strictObject({
|
|
38
|
+
model: zod.string().optional(),
|
|
39
|
+
input: zod.unknown().optional(),
|
|
40
|
+
instructions: zod.string().nullish(),
|
|
41
|
+
store: zod.boolean().default(responseCreateStoreDefault),
|
|
42
|
+
stream: zod.boolean().default(responseCreateStreamDefault),
|
|
43
|
+
previous_response_id: zod.string().nullish(),
|
|
44
|
+
reasoning: zod.record(zod.string(), zod.unknown()).optional(),
|
|
45
|
+
tools: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
|
|
46
|
+
max_output_tokens: zod.int().min(1).optional(),
|
|
47
|
+
})
|
|
48
|
+
.describe("Native Responses request. model may be omitted when continuing a project-owned stored response. store defaults to false. Only caller-executed function and custom tools are supported. background, conversation and WebSocket-only fields are rejected over HTTP.");
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Canopy API
|
|
5
|
+
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
|
|
8
|
+
* `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
|
|
9
|
+
* as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
|
|
10
|
+
*
|
|
11
|
+
* Management operations use `/api/v1`. The management model catalogue includes pricing;
|
|
12
|
+
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
13
|
+
*
|
|
14
|
+
* ## Authentication
|
|
15
|
+
*
|
|
16
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
17
|
+
*
|
|
18
|
+
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
19
|
+
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
20
|
+
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
21
|
+
* accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
|
|
22
|
+
*
|
|
23
|
+
* ## Conventions
|
|
24
|
+
*
|
|
25
|
+
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
26
|
+
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
27
|
+
* - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
28
|
+
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
29
|
+
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
30
|
+
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
|
|
31
|
+
* OpenAPI spec version: 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
import * as zod from "zod";
|
|
34
|
+
export declare const ResponseDeleted: zod.ZodObject<{
|
|
35
|
+
id: zod.ZodString;
|
|
36
|
+
object: zod.ZodString;
|
|
37
|
+
deleted: zod.ZodBoolean;
|
|
38
|
+
}, zod.z.core.$strict>;
|
|
39
|
+
export type ResponseDeleted = zod.input<typeof ResponseDeleted>;
|
|
40
|
+
export type ResponseDeletedOutput = zod.output<typeof ResponseDeleted>;
|