@leaflow/sdk 0.160.0 → 0.162.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/cancellation/v1/generated/functions.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/functions.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/models.d.ts +19 -0
- package/dist/billing/type/cancellation/v1/generated/models.js +4 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/functions.d.ts +13 -13
- package/dist/billing/v1/generated/functions.js +12 -12
- package/dist/billing/v1/generated/models.d.ts +26 -13
- package/dist/billing/v1/generated/models.js +4 -4
- package/dist/billing/v1/generated/schemas.zod.d.ts +12 -12
- package/dist/billing/v1/generated/schemas.zod.js +12 -12
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.js +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/error.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/money.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/order.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/price.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceSearch.zod.d.ts +3 -1
- package/dist/billing/v1/generated/validators/priceSearch.zod.js +8 -1
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/product.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/product.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteAddress.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteAddress.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rateSearch.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rateSearch.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +3 -2
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/canopy/v1/generated/functions.d.ts +4 -4
- package/dist/canopy/v1/generated/functions.js +2 -2
- package/dist/canopy/v1/generated/models.d.ts +35 -30
- package/dist/canopy/v1/generated/models.js +1 -1
- package/dist/canopy/v1/generated/schemas.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/schemas.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/error.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modality.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modality.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/model.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/{modelPricing.zod.d.ts → modelBilling.zod.d.ts} +9 -9
- package/dist/canopy/v1/generated/validators/{modelPricing.zod.js → modelBilling.zod.js} +11 -8
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelList.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +8 -8
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/{tokenPrice.zod.d.ts → modelMeter.zod.d.ts} +7 -7
- package/dist/canopy/v1/generated/validators/{tokenPrice.zod.js → modelMeter.zod.js} +7 -11
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +8 -8
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +4 -6
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/money.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/functions.d.ts +72 -265
- package/dist/compute/v1/generated/functions.js +120 -356
- package/dist/compute/v1/generated/models.d.ts +829 -1076
- package/dist/compute/v1/generated/models.js +121 -135
- package/dist/compute/v1/generated/schemas.zod.d.ts +70 -284
- package/dist/compute/v1/generated/schemas.zod.js +72 -86
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -57
- package/dist/compute/v1/generated/validators/backupService.zod.js +1 -8
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{quoteItem.zod.d.ts → billingComponent.zod.d.ts} +28 -33
- package/dist/compute/v1/generated/validators/billingComponent.zod.js +43 -0
- package/dist/compute/v1/generated/validators/billingMeter.zod.d.ts +36 -0
- package/dist/compute/v1/generated/validators/{pricing.zod.js → billingMeter.zod.js} +11 -10
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{createImageQuoteRequestBody.zod.js → billingQuantity.zod.d.ts} +9 -8
- package/dist/compute/v1/generated/validators/{resizeDiskQuoteRequestBody.zod.d.ts → billingQuantity.zod.js} +4 -6
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{resizeDiskQuoteRequestBody.zod.js → cancellationMode.zod.d.ts} +7 -6
- package/dist/compute/v1/generated/validators/cancellationMode.zod.js +27 -0
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -57
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/{setFloatingIPBandwidthQuoteRequestBody.zod.d.ts → deleteDiskParams.zod.d.ts} +8 -5
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteDiskResponseBody.zod.d.ts +121 -0
- package/dist/compute/v1/generated/validators/{createBackupCapacityPackQuoteRequestBody.zod.js → deleteDiskResponseBody.zod.js} +9 -8
- package/dist/compute/v1/generated/validators/{resizeInstanceQuoteRequestBody.zod.d.ts → deleteImageParams.zod.d.ts} +8 -6
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/{allocateFloatingIPQuoteRequestBody.zod.d.ts → deleteImageResponseBody.zod.d.ts} +78 -23
- package/dist/compute/v1/generated/validators/deleteImageResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/{funds.zod.d.ts → deleteInstanceParams.zod.d.ts} +8 -10
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.d.ts +135 -0
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +3 -5
- package/dist/compute/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/error.zod.js +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +27 -55
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +27 -55
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +3 -8
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +3 -5
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/money.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +109 -25
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +109 -25
- package/dist/compute/v1/generated/validators/regionResource.zod.js +10 -5
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.d.ts +111 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resourceCancellation.zod.d.ts +40 -0
- package/dist/compute/v1/generated/validators/{createDiskQuoteRequestBody.zod.js → resourceCancellation.zod.js} +14 -17
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -29
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -29
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +1 -5
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +1 -1
- package/dist/membership/v1/generated/models.d.ts +1 -3
- package/dist/membership/v1/generated/validators/plan.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planList.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planPrice.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planPrice.zod.js +1 -3
- package/dist/routes.d.ts +9 -73
- package/dist/routes.js +9 -81
- package/package.json +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +0 -44
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/funds.zod.js +0 -35
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +0 -113
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +0 -71
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +0 -54
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/pricingOption.zod.js +0 -62
- package/dist/compute/v1/generated/validators/quote.zod.d.ts +0 -81
- package/dist/compute/v1/generated/validators/quote.zod.js +0 -53
- package/dist/compute/v1/generated/validators/quoteItem.zod.js +0 -67
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +0 -33
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +0 -43
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +0 -29
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +0 -34
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
10
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
11
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
12
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
13
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
14
|
+
*/
|
|
15
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
16
|
+
export declare const CancellationMode: {
|
|
17
|
+
readonly immediate: "immediate";
|
|
18
|
+
readonly period_end: "period_end";
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CancellationMode: zod.ZodEnum<{
|
|
10
|
+
immediate: "immediate";
|
|
11
|
+
period_end: "period_end";
|
|
12
|
+
}>;
|
|
13
|
+
export type CancellationMode = zod.input<typeof CancellationMode>;
|
|
14
|
+
export type CancellationModeOutput = zod.output<typeof CancellationMode>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CancellationMode = zod
|
|
10
|
+
.enum(["immediate", "period_end"])
|
|
11
|
+
.describe("When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end\nends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which\nmodes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the\nend of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422\nBILLING_CANCELLATION_MODE_FIXED.");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import type { AccountBalance, AccountDeletionReadiness, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, CancellationPreviewRequest, CancellationRefundPreview, CheckoutSession, CheckoutSessionConfirm, CheckoutSessionCreate, CheckoutSessionItemList, CheckoutSessionList, CheckoutSessionResult, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetCheckoutSessionQuoteParams, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListCheckoutSessionItemsParams, ListCheckoutSessionsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRatesHeaders, ListRatesParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, OrderRefundPreview, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, PreviewOrderRefundParams, Price, PriceList, PriceSearch, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RateList, RateSearch, RefundList, RenewRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, UsageEstimate, UsageEstimateRequest, Withdrawal, WithdrawalCreate, WithdrawalItemList, WithdrawalList, WithdrawalPreview, WithdrawalPreviewRequest } from "./models.js";
|
|
@@ -502,7 +502,7 @@ export type setProjectAssignmentResponse = setProjectAssignmentResponseSuccess |
|
|
|
502
502
|
export declare const getSetProjectAssignmentUrl: (projectId: string) => string;
|
|
503
503
|
/**
|
|
504
504
|
* Links the project to a billing account you own; you need the project permission
|
|
505
|
-
* `billing:
|
|
505
|
+
* `billing:finance.manage`. A project without one is linked directly. Moving it to another
|
|
506
506
|
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
507
507
|
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
508
508
|
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
@@ -529,7 +529,7 @@ export type unlinkProjectBillingAccountResponseError = unlinkProjectBillingAccou
|
|
|
529
529
|
export type unlinkProjectBillingAccountResponse = unlinkProjectBillingAccountResponseSuccess | unlinkProjectBillingAccountResponseError;
|
|
530
530
|
export declare const getUnlinkProjectBillingAccountUrl: (projectId: string) => string;
|
|
531
531
|
/**
|
|
532
|
-
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:
|
|
532
|
+
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:finance.manage`. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
533
533
|
* @summary Unlink project billing account
|
|
534
534
|
*/
|
|
535
535
|
export declare const unlinkProjectBillingAccount: (projectId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<unlinkProjectBillingAccountResponse>;
|
|
@@ -1060,7 +1060,7 @@ export type listUsageChargesResponseError = listUsageChargesResponseDefault & {
|
|
|
1060
1060
|
export type listUsageChargesResponse = listUsageChargesResponseSuccess | listUsageChargesResponseError;
|
|
1061
1061
|
export declare const getListUsageChargesUrl: (params?: ListUsageChargesParams) => string;
|
|
1062
1062
|
/**
|
|
1063
|
-
* Priced usage charges in the requested scope; members with the project permission `billing:
|
|
1063
|
+
* Priced usage charges in the requested scope; members with the project permission `billing:finance.manage` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
|
|
1064
1064
|
* @summary List usage charges
|
|
1065
1065
|
*/
|
|
1066
1066
|
export declare const listUsageCharges: (params?: ListUsageChargesParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listUsageChargesResponse>;
|
|
@@ -1147,7 +1147,7 @@ export declare const getCancelSubscriptionUrl: (subscriptionId: string) => strin
|
|
|
1147
1147
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1148
1148
|
* refund amount from a quote with this subscription in `cancellation.subscription_ids`. Open to the owner of the
|
|
1149
1149
|
* subscription's current billing account and to members of its project with the project permission
|
|
1150
|
-
* `billing:
|
|
1150
|
+
* `billing:finance.manage`.
|
|
1151
1151
|
*
|
|
1152
1152
|
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
1153
1153
|
* subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
|
|
@@ -1261,7 +1261,7 @@ export declare const getCreateCancellationUrl: () => string;
|
|
|
1261
1261
|
* Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
|
|
1262
1262
|
* subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
|
|
1263
1263
|
* owner of the subscriptions' current billing account and to members of their project with the project
|
|
1264
|
-
* permission `billing:
|
|
1264
|
+
* permission `billing:finance.manage`.
|
|
1265
1265
|
*
|
|
1266
1266
|
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
|
|
1267
1267
|
* term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
|
|
@@ -1310,7 +1310,7 @@ export type previewCancellationResponseError = previewCancellationResponseDefaul
|
|
|
1310
1310
|
export type previewCancellationResponse = previewCancellationResponseSuccess | previewCancellationResponseError;
|
|
1311
1311
|
export declare const getPreviewCancellationUrl: () => string;
|
|
1312
1312
|
/**
|
|
1313
|
-
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the
|
|
1313
|
+
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the owner of the subscriptions' current billing account and to members of their project; refused for the same states as creating it.
|
|
1314
1314
|
* @summary Preview a cancellation
|
|
1315
1315
|
*/
|
|
1316
1316
|
export declare const previewCancellation: (cancellationPreviewRequest: CancellationPreviewRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<previewCancellationResponse>;
|
|
@@ -1352,7 +1352,7 @@ export type withdrawCancellationResponseError = withdrawCancellationResponseDefa
|
|
|
1352
1352
|
export type withdrawCancellationResponse = withdrawCancellationResponseSuccess | withdrawCancellationResponseError;
|
|
1353
1353
|
export declare const getWithdrawCancellationUrl: (cancellationId: string) => string;
|
|
1354
1354
|
/**
|
|
1355
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:
|
|
1355
|
+
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1356
1356
|
* @summary Withdraw a cancellation
|
|
1357
1357
|
*/
|
|
1358
1358
|
export declare const withdrawCancellation: (cancellationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<withdrawCancellationResponse>;
|
|
@@ -1407,7 +1407,7 @@ export declare const getRenewSubscriptionUrl: (subscriptionId: string) => string
|
|
|
1407
1407
|
* order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
|
|
1408
1408
|
*
|
|
1409
1409
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1410
|
-
* project permission `billing:
|
|
1410
|
+
* project permission `billing:finance.manage`. Only the owner can pay with `payment_method_id`.
|
|
1411
1411
|
*
|
|
1412
1412
|
* Keep order_id and read the order after an unknown outcome; creating it again conflicts.
|
|
1413
1413
|
* @summary Renew subscription
|
|
@@ -1430,7 +1430,7 @@ export type setAutoRenewResponseError = setAutoRenewResponseDefault & {
|
|
|
1430
1430
|
export type setAutoRenewResponse = setAutoRenewResponseSuccess | setAutoRenewResponseError;
|
|
1431
1431
|
export declare const getSetAutoRenewUrl: (subscriptionId: string) => string;
|
|
1432
1432
|
/**
|
|
1433
|
-
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:
|
|
1433
|
+
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:finance.manage`.
|
|
1434
1434
|
* @summary Set auto renew
|
|
1435
1435
|
*/
|
|
1436
1436
|
export declare const setAutoRenew: (subscriptionId: string, autoRenewSet: AutoRenewSet, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setAutoRenewResponse>;
|
|
@@ -1504,7 +1504,7 @@ export declare const getCreateCheckoutSessionUrl: () => string;
|
|
|
1504
1504
|
* that service.
|
|
1505
1505
|
*
|
|
1506
1506
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1507
|
-
* project permission `billing:
|
|
1507
|
+
* project permission `billing:finance.manage`. Keep `checkout_session_id` and read the session after an
|
|
1508
1508
|
* unknown outcome; creating it again conflicts.
|
|
1509
1509
|
* @summary Create a renewal Checkout Session
|
|
1510
1510
|
*/
|
|
@@ -2095,7 +2095,7 @@ export declare const getListSpendUrl: (params: ListSpendParams) => string;
|
|
|
2095
2095
|
* Project filters use the account recorded on each charge, including charges for projects later
|
|
2096
2096
|
* assigned to another account. The total covers all matching groups, not just the returned page.
|
|
2097
2097
|
*
|
|
2098
|
-
* Open to the owner of the account and to members with the project permission `billing:
|
|
2098
|
+
* Open to the owner of the account and to members with the project permission `billing:finance.manage` of each
|
|
2099
2099
|
* project in `project_ids`, which must then be given and currently assigned to the account.
|
|
2100
2100
|
* @summary List account spend
|
|
2101
2101
|
*/
|
|
@@ -2180,7 +2180,7 @@ export type getStatementUsageResponseError = getStatementUsageResponseDefault &
|
|
|
2180
2180
|
export type getStatementUsageResponse = getStatementUsageResponseSuccess | getStatementUsageResponseError;
|
|
2181
2181
|
export declare const getGetStatementUsageUrl: (statementId: string, params?: GetStatementUsageParams) => string;
|
|
2182
2182
|
/**
|
|
2183
|
-
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:
|
|
2183
|
+
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:finance.manage` of each project in `project_ids`, which must then be given and currently assigned to that account.
|
|
2184
2184
|
* @summary Get grouped consumption
|
|
2185
2185
|
*/
|
|
2186
2186
|
export declare const getStatementUsage: (statementId: string, params?: GetStatementUsageParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getStatementUsageResponse>;
|
|
@@ -530,7 +530,7 @@ export const getSetProjectAssignmentUrl = (projectId) => {
|
|
|
530
530
|
};
|
|
531
531
|
/**
|
|
532
532
|
* Links the project to a billing account you own; you need the project permission
|
|
533
|
-
* `billing:
|
|
533
|
+
* `billing:finance.manage`. A project without one is linked directly. Moving it to another
|
|
534
534
|
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
535
535
|
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
536
536
|
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
@@ -569,7 +569,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
|
|
|
569
569
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
570
570
|
};
|
|
571
571
|
/**
|
|
572
|
-
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:
|
|
572
|
+
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:finance.manage`. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
573
573
|
* @summary Unlink project billing account
|
|
574
574
|
*/
|
|
575
575
|
export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
|
|
@@ -1174,7 +1174,7 @@ export const getListUsageChargesUrl = (params) => {
|
|
|
1174
1174
|
: `https://billing.leaflow.cloud/api/v1/usage-charges`;
|
|
1175
1175
|
};
|
|
1176
1176
|
/**
|
|
1177
|
-
* Priced usage charges in the requested scope; members with the project permission `billing:
|
|
1177
|
+
* Priced usage charges in the requested scope; members with the project permission `billing:finance.manage` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
|
|
1178
1178
|
* @summary List usage charges
|
|
1179
1179
|
*/
|
|
1180
1180
|
export const listUsageCharges = async (params, options, fetchFn) => {
|
|
@@ -1250,7 +1250,7 @@ export const getCancelSubscriptionUrl = (subscriptionId) => {
|
|
|
1250
1250
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1251
1251
|
* refund amount from a quote with this subscription in `cancellation.subscription_ids`. Open to the owner of the
|
|
1252
1252
|
* subscription's current billing account and to members of its project with the project permission
|
|
1253
|
-
* `billing:
|
|
1253
|
+
* `billing:finance.manage`.
|
|
1254
1254
|
*
|
|
1255
1255
|
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
1256
1256
|
* subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
|
|
@@ -1400,7 +1400,7 @@ export const getCreateCancellationUrl = () => {
|
|
|
1400
1400
|
* Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
|
|
1401
1401
|
* subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
|
|
1402
1402
|
* owner of the subscriptions' current billing account and to members of their project with the project
|
|
1403
|
-
* permission `billing:
|
|
1403
|
+
* permission `billing:finance.manage`.
|
|
1404
1404
|
*
|
|
1405
1405
|
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
|
|
1406
1406
|
* term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
|
|
@@ -1461,7 +1461,7 @@ export const getPreviewCancellationUrl = () => {
|
|
|
1461
1461
|
return `https://billing.leaflow.cloud/api/v1/cancellations/preview`;
|
|
1462
1462
|
};
|
|
1463
1463
|
/**
|
|
1464
|
-
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the
|
|
1464
|
+
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the owner of the subscriptions' current billing account and to members of their project; refused for the same states as creating it.
|
|
1465
1465
|
* @summary Preview a cancellation
|
|
1466
1466
|
*/
|
|
1467
1467
|
export const previewCancellation = async (cancellationPreviewRequest, options, fetchFn) => {
|
|
@@ -1510,7 +1510,7 @@ export const getWithdrawCancellationUrl = (cancellationId) => {
|
|
|
1510
1510
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}/withdraw`;
|
|
1511
1511
|
};
|
|
1512
1512
|
/**
|
|
1513
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:
|
|
1513
|
+
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1514
1514
|
* @summary Withdraw a cancellation
|
|
1515
1515
|
*/
|
|
1516
1516
|
export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1560,7 +1560,7 @@ export const getRenewSubscriptionUrl = (subscriptionId) => {
|
|
|
1560
1560
|
* order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
|
|
1561
1561
|
*
|
|
1562
1562
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1563
|
-
* project permission `billing:
|
|
1563
|
+
* project permission `billing:finance.manage`. Only the owner can pay with `payment_method_id`.
|
|
1564
1564
|
*
|
|
1565
1565
|
* Keep order_id and read the order after an unknown outcome; creating it again conflicts.
|
|
1566
1566
|
* @summary Renew subscription
|
|
@@ -1595,7 +1595,7 @@ export const getSetAutoRenewUrl = (subscriptionId) => {
|
|
|
1595
1595
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/auto-renew`;
|
|
1596
1596
|
};
|
|
1597
1597
|
/**
|
|
1598
|
-
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:
|
|
1598
|
+
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:finance.manage`.
|
|
1599
1599
|
* @summary Set auto renew
|
|
1600
1600
|
*/
|
|
1601
1601
|
export const setAutoRenew = async (subscriptionId, autoRenewSet, options, fetchFn) => {
|
|
@@ -1685,7 +1685,7 @@ export const getCreateCheckoutSessionUrl = () => {
|
|
|
1685
1685
|
* that service.
|
|
1686
1686
|
*
|
|
1687
1687
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1688
|
-
* project permission `billing:
|
|
1688
|
+
* project permission `billing:finance.manage`. Keep `checkout_session_id` and read the session after an
|
|
1689
1689
|
* unknown outcome; creating it again conflicts.
|
|
1690
1690
|
* @summary Create a renewal Checkout Session
|
|
1691
1691
|
*/
|
|
@@ -2451,7 +2451,7 @@ export const getListSpendUrl = (params) => {
|
|
|
2451
2451
|
* Project filters use the account recorded on each charge, including charges for projects later
|
|
2452
2452
|
* assigned to another account. The total covers all matching groups, not just the returned page.
|
|
2453
2453
|
*
|
|
2454
|
-
* Open to the owner of the account and to members with the project permission `billing:
|
|
2454
|
+
* Open to the owner of the account and to members with the project permission `billing:finance.manage` of each
|
|
2455
2455
|
* project in `project_ids`, which must then be given and currently assigned to the account.
|
|
2456
2456
|
* @summary List account spend
|
|
2457
2457
|
*/
|
|
@@ -2550,7 +2550,7 @@ export const getGetStatementUsageUrl = (statementId, params) => {
|
|
|
2550
2550
|
: `https://billing.leaflow.cloud/api/v1/statements/${encodeURIComponent(String(statementId))}/usage-summary`;
|
|
2551
2551
|
};
|
|
2552
2552
|
/**
|
|
2553
|
-
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:
|
|
2553
|
+
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:finance.manage` of each project in `project_ids`, which must then be given and currently assigned to that account.
|
|
2554
2554
|
* @summary Get grouped consumption
|
|
2555
2555
|
*/
|
|
2556
2556
|
export const getStatementUsage = async (statementId, params, options, fetchFn) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
@@ -313,6 +313,18 @@ export interface Quote {
|
|
|
313
313
|
/** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
314
314
|
tax_status: QuoteTaxStatus;
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
318
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
319
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
320
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
321
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
322
|
+
*/
|
|
323
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
324
|
+
export declare const CancellationMode: {
|
|
325
|
+
readonly immediate: "immediate";
|
|
326
|
+
readonly period_end: "period_end";
|
|
327
|
+
};
|
|
316
328
|
/**
|
|
317
329
|
* What ending these subscriptions together would return, for one mode; preview `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`).
|
|
318
330
|
*/
|
|
@@ -328,7 +340,7 @@ export interface CancellationPreviewRequest {
|
|
|
328
340
|
* @maxItems 50
|
|
329
341
|
*/
|
|
330
342
|
subscription_ids: string[];
|
|
331
|
-
mode:
|
|
343
|
+
mode: CancellationMode;
|
|
332
344
|
}
|
|
333
345
|
/**
|
|
334
346
|
* Which object this is, together with what a person currently calls it.
|
|
@@ -383,7 +395,7 @@ export interface CancellationRefundPreviewItem {
|
|
|
383
395
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
384
396
|
*/
|
|
385
397
|
export interface CancellationRefundPreview {
|
|
386
|
-
mode:
|
|
398
|
+
mode: CancellationMode;
|
|
387
399
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
388
400
|
scheduled_at?: string;
|
|
389
401
|
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
@@ -405,7 +417,7 @@ export interface CancellationCreate {
|
|
|
405
417
|
* @maxItems 50
|
|
406
418
|
*/
|
|
407
419
|
subscription_ids: string[];
|
|
408
|
-
mode:
|
|
420
|
+
mode: CancellationMode;
|
|
409
421
|
/** For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
|
|
410
422
|
proration_date?: string;
|
|
411
423
|
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
@@ -485,7 +497,7 @@ export interface CancellationItem {
|
|
|
485
497
|
export interface Cancellation {
|
|
486
498
|
id: string;
|
|
487
499
|
status: CancellationStatus;
|
|
488
|
-
mode:
|
|
500
|
+
mode: CancellationMode;
|
|
489
501
|
scheduled_at?: string;
|
|
490
502
|
/** For `immediate`, the second the refund is computed as of. */
|
|
491
503
|
proration_date?: string;
|
|
@@ -527,11 +539,6 @@ export declare const SubscriptionCancellationStatus: {
|
|
|
527
539
|
readonly completed: "completed";
|
|
528
540
|
readonly canceled: "canceled";
|
|
529
541
|
};
|
|
530
|
-
export type SubscriptionCancellationMode = (typeof SubscriptionCancellationMode)[keyof typeof SubscriptionCancellationMode];
|
|
531
|
-
export declare const SubscriptionCancellationMode: {
|
|
532
|
-
readonly immediate: "immediate";
|
|
533
|
-
readonly period_end: "period_end";
|
|
534
|
-
};
|
|
535
542
|
/**
|
|
536
543
|
* The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
|
|
537
544
|
*/
|
|
@@ -542,7 +549,7 @@ export interface SubscriptionCancellation {
|
|
|
542
549
|
id: string;
|
|
543
550
|
subscription_id: string;
|
|
544
551
|
status: SubscriptionCancellationStatus;
|
|
545
|
-
mode:
|
|
552
|
+
mode: CancellationMode;
|
|
546
553
|
requested_at: string;
|
|
547
554
|
scheduled_at?: string;
|
|
548
555
|
effective_at?: string;
|
|
@@ -2864,7 +2871,7 @@ export interface QuoteRequest {
|
|
|
2864
2871
|
*/
|
|
2865
2872
|
items?: QuoteItemInput[];
|
|
2866
2873
|
/**
|
|
2867
|
-
* Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. To apply a promotion code, create a renewal Checkout Session and quote it.
|
|
2874
|
+
* Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. Each must currently be paid by `billing_account_id` and be yours to read, as the owner of that account or a member of the subscription's project. To apply a promotion code, create a renewal Checkout Session and quote it.
|
|
2868
2875
|
* @minItems 1
|
|
2869
2876
|
* @maxItems 100
|
|
2870
2877
|
*/
|
|
@@ -3157,6 +3164,12 @@ export interface PriceSearch {
|
|
|
3157
3164
|
* @maxLength 3
|
|
3158
3165
|
*/
|
|
3159
3166
|
currency: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* Only these prices, such as the prices another service names.
|
|
3169
|
+
* @minItems 1
|
|
3170
|
+
* @maxItems 200
|
|
3171
|
+
*/
|
|
3172
|
+
ids?: string[];
|
|
3160
3173
|
/**
|
|
3161
3174
|
* Only prices of these plans.
|
|
3162
3175
|
* @minItems 1
|
|
@@ -3212,7 +3225,7 @@ export interface RateSearch {
|
|
|
3212
3225
|
page_size?: number;
|
|
3213
3226
|
}
|
|
3214
3227
|
export interface CancelSubscriptionRequest {
|
|
3215
|
-
mode:
|
|
3228
|
+
mode: CancellationMode;
|
|
3216
3229
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
3217
3230
|
proration_date?: string;
|
|
3218
3231
|
/** The cancellation quote's refundable amount, including an explicit zero. */
|
|
@@ -48,6 +48,10 @@ export const QuotedDiscountEligibility = {
|
|
|
48
48
|
confirmed: "confirmed",
|
|
49
49
|
unverified: "unverified",
|
|
50
50
|
};
|
|
51
|
+
export const CancellationMode = {
|
|
52
|
+
immediate: "immediate",
|
|
53
|
+
period_end: "period_end",
|
|
54
|
+
};
|
|
51
55
|
export const CancellationStatus = {
|
|
52
56
|
requested: "requested",
|
|
53
57
|
scheduled: "scheduled",
|
|
@@ -77,10 +81,6 @@ export const SubscriptionCancellationStatus = {
|
|
|
77
81
|
completed: "completed",
|
|
78
82
|
canceled: "canceled",
|
|
79
83
|
};
|
|
80
|
-
export const SubscriptionCancellationMode = {
|
|
81
|
-
immediate: "immediate",
|
|
82
|
-
period_end: "period_end",
|
|
83
|
-
};
|
|
84
84
|
export const BillingAccountStatus = {
|
|
85
85
|
active: "active",
|
|
86
86
|
suspended: "suspended",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -243,7 +243,7 @@ export declare const GetProjectAssignmentParams: zod.ZodObject<{
|
|
|
243
243
|
}, zod.z.core.$strict>;
|
|
244
244
|
/**
|
|
245
245
|
* Links the project to a billing account you own; you need the project permission
|
|
246
|
-
* `billing:
|
|
246
|
+
* `billing:finance.manage`. A project without one is linked directly. Moving it to another
|
|
247
247
|
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
248
248
|
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
249
249
|
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
@@ -259,7 +259,7 @@ export declare const SetProjectAssignmentBody: zod.ZodObject<{
|
|
|
259
259
|
billing_account_id: zod.ZodInt;
|
|
260
260
|
}, zod.z.core.$strict>;
|
|
261
261
|
/**
|
|
262
|
-
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:
|
|
262
|
+
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:finance.manage`. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
263
263
|
* @summary Unlink project billing account
|
|
264
264
|
*/
|
|
265
265
|
export declare const UnlinkProjectBillingAccountParams: zod.ZodObject<{
|
|
@@ -563,7 +563,7 @@ export declare const ListRefundsQueryParams: zod.ZodObject<{
|
|
|
563
563
|
order_id: zod.ZodOptional<zod.ZodUUID>;
|
|
564
564
|
}, zod.z.core.$strict>;
|
|
565
565
|
/**
|
|
566
|
-
* Priced usage charges in the requested scope; members with the project permission `billing:
|
|
566
|
+
* Priced usage charges in the requested scope; members with the project permission `billing:finance.manage` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
|
|
567
567
|
* @summary List usage charges
|
|
568
568
|
*/
|
|
569
569
|
export declare const listUsageChargesQueryPageDefault = 1;
|
|
@@ -620,7 +620,7 @@ export declare const DeleteSubscriptionParams: zod.ZodObject<{
|
|
|
620
620
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
621
621
|
* refund amount from a quote with this subscription in `cancellation.subscription_ids`. Open to the owner of the
|
|
622
622
|
* subscription's current billing account and to members of its project with the project permission
|
|
623
|
-
* `billing:
|
|
623
|
+
* `billing:finance.manage`.
|
|
624
624
|
*
|
|
625
625
|
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
626
626
|
* subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
|
|
@@ -670,7 +670,7 @@ export declare const ListCancellationsQueryParams: zod.ZodObject<{
|
|
|
670
670
|
* Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
|
|
671
671
|
* subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
|
|
672
672
|
* owner of the subscriptions' current billing account and to members of their project with the project
|
|
673
|
-
* permission `billing:
|
|
673
|
+
* permission `billing:finance.manage`.
|
|
674
674
|
*
|
|
675
675
|
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
|
|
676
676
|
* term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
|
|
@@ -719,7 +719,7 @@ export declare const GetCancellationParams: zod.ZodObject<{
|
|
|
719
719
|
cancellationId: zod.ZodUUID;
|
|
720
720
|
}, zod.z.core.$strict>;
|
|
721
721
|
/**
|
|
722
|
-
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:
|
|
722
|
+
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
723
723
|
* @summary Withdraw a cancellation
|
|
724
724
|
*/
|
|
725
725
|
export declare const WithdrawCancellationParams: zod.ZodObject<{
|
|
@@ -750,7 +750,7 @@ export declare const ListRenewalPricesQueryParams: zod.ZodObject<{
|
|
|
750
750
|
* order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
|
|
751
751
|
*
|
|
752
752
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
753
|
-
* project permission `billing:
|
|
753
|
+
* project permission `billing:finance.manage`. Only the owner can pay with `payment_method_id`.
|
|
754
754
|
*
|
|
755
755
|
* Keep order_id and read the order after an unknown outcome; creating it again conflicts.
|
|
756
756
|
* @summary Renew subscription
|
|
@@ -777,7 +777,7 @@ export declare const RenewSubscriptionBody: zod.ZodObject<{
|
|
|
777
777
|
return_url: zod.ZodOptional<zod.ZodString>;
|
|
778
778
|
}, zod.z.core.$strict>;
|
|
779
779
|
/**
|
|
780
|
-
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:
|
|
780
|
+
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:finance.manage`.
|
|
781
781
|
* @summary Set auto renew
|
|
782
782
|
*/
|
|
783
783
|
export declare const SetAutoRenewParams: zod.ZodObject<{
|
|
@@ -839,7 +839,7 @@ export declare const ListCheckoutSessionsQueryParams: zod.ZodObject<{
|
|
|
839
839
|
* that service.
|
|
840
840
|
*
|
|
841
841
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
842
|
-
* project permission `billing:
|
|
842
|
+
* project permission `billing:finance.manage`. Keep `checkout_session_id` and read the session after an
|
|
843
843
|
* unknown outcome; creating it again conflicts.
|
|
844
844
|
* @summary Create a renewal Checkout Session
|
|
845
845
|
*/
|
|
@@ -1224,7 +1224,7 @@ export declare const ListActiveResourcesQueryParams: zod.ZodObject<{
|
|
|
1224
1224
|
* Project filters use the account recorded on each charge, including charges for projects later
|
|
1225
1225
|
* assigned to another account. The total covers all matching groups, not just the returned page.
|
|
1226
1226
|
*
|
|
1227
|
-
* Open to the owner of the account and to members with the project permission `billing:
|
|
1227
|
+
* Open to the owner of the account and to members with the project permission `billing:finance.manage` of each
|
|
1228
1228
|
* project in `project_ids`, which must then be given and currently assigned to the account.
|
|
1229
1229
|
* @summary List account spend
|
|
1230
1230
|
*/
|
|
@@ -1293,7 +1293,7 @@ export declare const GetStatementParams: zod.ZodObject<{
|
|
|
1293
1293
|
statementId: zod.ZodUUID;
|
|
1294
1294
|
}, zod.z.core.$strict>;
|
|
1295
1295
|
/**
|
|
1296
|
-
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:
|
|
1296
|
+
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:finance.manage` of each project in `project_ids`, which must then be given and currently assigned to that account.
|
|
1297
1297
|
* @summary Get grouped consumption
|
|
1298
1298
|
*/
|
|
1299
1299
|
export declare const GetStatementUsageParams: zod.ZodObject<{
|