@leaflow/sdk 0.143.0 → 0.145.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/account/v1/generated/functions.d.ts +92 -1
- package/dist/account/v1/generated/functions.js +70 -0
- package/dist/account/v1/generated/models.d.ts +33 -1
- package/dist/account/v1/generated/models.js +5 -0
- package/dist/account/v1/generated/schemas.zod.d.ts +52 -0
- package/dist/account/v1/generated/schemas.zod.js +52 -1
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +7 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/accountResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/accountResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/consentBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/consentBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/consentResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/consentResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/countryOption.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/countryOption.zod.js +6 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +8 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +12 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.js +6 -0
- package/dist/account/v1/generated/validators/error.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/error.zod.js +6 -0
- package/dist/account/v1/generated/validators/grantResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/grantResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/languageOption.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/languageOption.zod.js +6 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +7 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +6 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.js +7 -1
- package/dist/account/v1/generated/validators/locale.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/locale.zod.js +6 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.js +6 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +6 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +7 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/projectResource.zod.d.ts +8 -0
- package/dist/account/v1/generated/validators/projectResource.zod.js +12 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +36 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +32 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +7 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.js +6 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +6 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +6 -0
- package/dist/billing/type/order/v1/generated/models.d.ts +75 -33
- package/dist/billing/type/order/v1/generated/models.js +2 -1
- package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
- package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +5 -3
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +5 -3
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +10 -6
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +5 -3
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +5 -3
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +4 -1
- package/dist/billing/type/order/v1/generated/validators/price.zod.js +10 -2
- package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +4 -1
- package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +2 -0
- package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
- package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +4 -2
- package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +5 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +14 -2
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/functions.d.ts +1 -1
- package/dist/billing/v1/generated/functions.js +1 -1
- package/dist/billing/v1/generated/models.d.ts +75 -33
- package/dist/billing/v1/generated/models.js +2 -1
- package/dist/billing/v1/generated/schemas.zod.d.ts +3 -3
- package/dist/billing/v1/generated/schemas.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/billing/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
- package/dist/billing/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/order.zod.d.ts +5 -3
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +5 -3
- package/dist/billing/v1/generated/validators/orderItem.zod.js +10 -6
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +5 -3
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +5 -3
- package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/price.zod.js +10 -2
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +3 -3
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +2 -2
- 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 +3 -3
- package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +4 -2
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +5 -1
- package/dist/billing/v1/generated/validators/subscription.zod.js +14 -2
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/functions.d.ts +1 -1
- package/dist/canopy/v1/generated/functions.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +75 -33
- package/dist/canopy/v1/generated/models.js +2 -1
- package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/schemas.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
- package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +5 -3
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +5 -3
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +10 -6
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +5 -3
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +5 -3
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +4 -1
- package/dist/canopy/v1/generated/validators/price.zod.js +10 -2
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +4 -1
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +2 -0
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +2 -0
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +4 -2
- package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +5 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.js +14 -2
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
- package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/compute/v1/generated/functions.d.ts +15 -15
- package/dist/compute/v1/generated/functions.js +13 -13
- package/dist/compute/v1/generated/models.d.ts +33 -25
- package/dist/compute/v1/generated/models.js +6 -6
- package/dist/compute/v1/generated/schemas.zod.d.ts +69 -69
- package/dist/compute/v1/generated/schemas.zod.js +15 -15
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +3 -3
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/backupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +10 -10
- package/dist/compute/v1/generated/validators/backupService.zod.js +7 -7
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +6 -4
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +9 -9
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/diskResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/error.zod.js +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.js +2 -2
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/imageResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/money.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/money.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newCompute.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAddress.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/portResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricing.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricingOption.zod.js +12 -10
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +2 -2
- package/dist/iam/v1/generated/functions.d.ts +32 -1
- package/dist/iam/v1/generated/functions.js +43 -0
- package/dist/iam/v1/generated/models.d.ts +14 -0
- package/dist/iam/v1/generated/schemas.zod.d.ts +17 -0
- package/dist/iam/v1/generated/schemas.zod.js +16 -0
- package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +2 -0
- package/dist/iam/v1/generated/validators/projectResource.zod.js +6 -0
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.d.ts +22 -0
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.js +24 -0
- package/dist/membership/v1/generated/models.d.ts +75 -33
- package/dist/membership/v1/generated/models.js +2 -1
- package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/membership/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
- package/dist/membership/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/order.zod.d.ts +5 -3
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +5 -3
- package/dist/membership/v1/generated/validators/orderItem.zod.js +10 -6
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +5 -3
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +5 -3
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/membership/v1/generated/validators/price.zod.d.ts +4 -1
- package/dist/membership/v1/generated/validators/price.zod.js +10 -2
- package/dist/membership/v1/generated/validators/priceList.zod.d.ts +4 -1
- package/dist/membership/v1/generated/validators/quote.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +3 -3
- package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/refundPolicy.zod.js +2 -2
- package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/renewRequest.zod.js +3 -3
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
- package/dist/membership/v1/generated/validators/renewalPrice.zod.js +4 -2
- package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +5 -1
- package/dist/membership/v1/generated/validators/subscription.zod.js +14 -2
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
- package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/routes.d.ts +32 -0
- package/dist/routes.js +36 -0
- package/dist/type/resource/v1/generated/validators/attachment.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/attachmentList.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/resourceUsage.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/resourceUsageList.zod.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { AccountIdentity } from "./accountIdentity.zod.js";
|
|
10
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
10
11
|
import { NamedIdentity } from "./namedIdentity.zod.js";
|
|
11
12
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
12
13
|
import { PriceType } from "./priceType.zod.js";
|
|
@@ -16,7 +17,6 @@ import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
|
16
17
|
import { ScheduledChange } from "./scheduledChange.zod.js";
|
|
17
18
|
import { SubscriptionCancellation } from "./subscriptionCancellation.zod.js";
|
|
18
19
|
import { SubscriptionRestriction } from "./subscriptionRestriction.zod.js";
|
|
19
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
20
20
|
import { UsageType } from "./usageType.zod.js";
|
|
21
21
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
22
22
|
export const Subscription = zod
|
|
@@ -37,8 +37,20 @@ export const Subscription = zod
|
|
|
37
37
|
.string()
|
|
38
38
|
.optional()
|
|
39
39
|
.describe("The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions."),
|
|
40
|
-
|
|
40
|
+
cancellation_policy: CancellationPolicy.optional(),
|
|
41
41
|
refund_policy: RefundPolicy.optional(),
|
|
42
|
+
short_rate_multiplier: zod
|
|
43
|
+
.string()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("Refund policy `short_rate` only, as on the price bought."),
|
|
46
|
+
short_rate_threshold_seconds: zod
|
|
47
|
+
.int()
|
|
48
|
+
.optional()
|
|
49
|
+
.describe("Refund policy `short_rate` only, as on the price bought."),
|
|
50
|
+
monthly_list_amount: zod
|
|
51
|
+
.string()
|
|
52
|
+
.optional()
|
|
53
|
+
.describe("Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item."),
|
|
42
54
|
order_item_id: zod.uuid().optional(),
|
|
43
55
|
coupon_id: zod.uuid().optional(),
|
|
44
56
|
coupon: ObjectIdentity.optional(),
|
|
@@ -27,14 +27,18 @@ export declare const SubscriptionList: zod.ZodObject<{
|
|
|
27
27
|
}>;
|
|
28
28
|
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
29
29
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
30
|
-
|
|
30
|
+
cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
31
31
|
immediate: "immediate";
|
|
32
32
|
period_end: "period_end";
|
|
33
33
|
}>>;
|
|
34
34
|
refund_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
35
35
|
none: "none";
|
|
36
36
|
prorated: "prorated";
|
|
37
|
+
short_rate: "short_rate";
|
|
37
38
|
}>>;
|
|
39
|
+
short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
41
|
+
monthly_list_amount: zod.ZodOptional<zod.ZodString>;
|
|
38
42
|
order_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
39
43
|
coupon_id: zod.ZodOptional<zod.ZodUUID>;
|
|
40
44
|
coupon: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -33,6 +33,7 @@ export declare const UsageCharge: zod.ZodObject<{
|
|
|
33
33
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
quantity: zod.ZodString;
|
|
35
35
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
36
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
36
37
|
amount: zod.ZodString;
|
|
37
38
|
currency: zod.ZodString;
|
|
38
39
|
invoice_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
@@ -40,6 +40,10 @@ export const UsageCharge = zod.strictObject({
|
|
|
40
40
|
.string()
|
|
41
41
|
.describe("The quantity charged: gross quantity less the part covered by allowances."),
|
|
42
42
|
unit_amount: Money.optional(),
|
|
43
|
+
unit_quantity: zod
|
|
44
|
+
.string()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`."),
|
|
43
47
|
amount: Money,
|
|
44
48
|
currency: zod.string(),
|
|
45
49
|
invoice_id: zod
|
|
@@ -34,6 +34,7 @@ export declare const UsageChargeList: zod.ZodObject<{
|
|
|
34
34
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
35
35
|
quantity: zod.ZodString;
|
|
36
36
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
37
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
37
38
|
amount: zod.ZodString;
|
|
38
39
|
currency: zod.ZodString;
|
|
39
40
|
invoice_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
@@ -480,7 +480,7 @@ export type createServiceResponseError = (createServiceResponse409 | createServi
|
|
|
480
480
|
export type createServiceResponse = createServiceResponseSuccess | createServiceResponseError;
|
|
481
481
|
export declare const getCreateServiceUrl: () => string;
|
|
482
482
|
/**
|
|
483
|
-
* Purchases the model platform service for this project. The service itself has no charge; requests are
|
|
483
|
+
* Purchases the model platform service for this project. The service itself has no charge; requests are metered under it by the tokens they use. It takes no billing choice. Returns the service as `pending` with its order; it becomes `active` once the order is accepted, which for an order with nothing to pay happens without further action.
|
|
484
484
|
*
|
|
485
485
|
* Refused with 409 `SERVICE_ALREADY_ENABLED` while an enablement is pending or the service is active. A refusal of the order by Billing is returned with Billing's code, such as `BILLING_PRICE_UNAVAILABLE` when the service has no price in the currency of the project's billing account.
|
|
486
486
|
* @summary Enable the model platform service
|
|
@@ -432,7 +432,7 @@ export const getCreateServiceUrl = () => {
|
|
|
432
432
|
return `https://canopy.leaflow.cloud/api/v1/service`;
|
|
433
433
|
};
|
|
434
434
|
/**
|
|
435
|
-
* Purchases the model platform service for this project. The service itself has no charge; requests are
|
|
435
|
+
* Purchases the model platform service for this project. The service itself has no charge; requests are metered under it by the tokens they use. It takes no billing choice. Returns the service as `pending` with its order; it becomes `active` once the order is accepted, which for an order with nothing to pay happens without further action.
|
|
436
436
|
*
|
|
437
437
|
* Refused with 409 `SERVICE_ALREADY_ENABLED` while an enablement is pending or the service is active. A refusal of the order by Billing is returned with Billing's code, such as `BILLING_PRICE_UNAVAILABLE` when the service has no price in the currency of the project's billing account.
|
|
438
438
|
* @summary Enable the model platform service
|
|
@@ -958,20 +958,34 @@ export interface WithdrawalItemList {
|
|
|
958
958
|
pagination: OffsetPagination;
|
|
959
959
|
}
|
|
960
960
|
/**
|
|
961
|
-
* Whether a delivered purchase may
|
|
961
|
+
* Whether a cancellation of a delivered purchase may take effect immediately or only at the end of its paid term; refunds follow the refund policy. When absent, no cancellation terms were agreed.
|
|
962
962
|
*/
|
|
963
|
-
export type
|
|
964
|
-
export declare const
|
|
963
|
+
export type CancellationPolicy = (typeof CancellationPolicy)[keyof typeof CancellationPolicy];
|
|
964
|
+
export declare const CancellationPolicy: {
|
|
965
965
|
readonly immediate: "immediate";
|
|
966
966
|
readonly period_end: "period_end";
|
|
967
967
|
};
|
|
968
968
|
/**
|
|
969
|
-
* `none` refunds nothing.
|
|
969
|
+
* `none` refunds nothing.
|
|
970
|
+
*
|
|
971
|
+
* `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero
|
|
972
|
+
* or above what remains unrefunded. Time used runs from the period start to the effective cancellation, by the
|
|
973
|
+
* second. Each whole month from the period start is valued at the order item's `monthly_list_amount`, and the
|
|
974
|
+
* remainder at that amount in proportion to the length of the month it falls in; without `monthly_list_amount`,
|
|
975
|
+
* time used is valued at the amount paid in proportion to the length of the period. A renewal starts a new
|
|
976
|
+
* period, and an immediate change starts one at the change. Discounts and setup fees are not refunded. Refunds
|
|
977
|
+
* return to the original payment sources, with tax refunded in proportion.
|
|
978
|
+
*
|
|
979
|
+
* `short_rate` refunds as `prorated`, except that when the cancellation takes effect less than
|
|
980
|
+
* `short_rate_threshold_seconds` after the period start, the value of the time used is multiplied by
|
|
981
|
+
* `short_rate_multiplier`, up to `monthly_list_amount` for each month begun or, without `monthly_list_amount`,
|
|
982
|
+
* up to the amount paid.
|
|
970
983
|
*/
|
|
971
984
|
export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
|
|
972
985
|
export declare const RefundPolicy: {
|
|
973
986
|
readonly none: "none";
|
|
974
987
|
readonly prorated: "prorated";
|
|
988
|
+
readonly short_rate: "short_rate";
|
|
975
989
|
};
|
|
976
990
|
export interface OrderCancel {
|
|
977
991
|
/**
|
|
@@ -991,8 +1005,8 @@ export declare const QuoteRenewalInterval: {
|
|
|
991
1005
|
* Price renewing a licensed subscription. Give `price_id`, or `interval` with
|
|
992
1006
|
* `interval_count`, to renew for another term at the price currently sold for it. Naming
|
|
993
1007
|
* the current term, or giving neither, renews at the agreed amount. A term sold at several
|
|
994
|
-
* prices that differ in
|
|
995
|
-
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `
|
|
1008
|
+
* prices that differ in cancellation policy is refused with 409
|
|
1009
|
+
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.
|
|
996
1010
|
*/
|
|
997
1011
|
export interface QuoteRenewal {
|
|
998
1012
|
subscription_id: string;
|
|
@@ -1000,8 +1014,8 @@ export interface QuoteRenewal {
|
|
|
1000
1014
|
interval?: QuoteRenewalInterval;
|
|
1001
1015
|
/** @minimum 1 */
|
|
1002
1016
|
interval_count?: number;
|
|
1003
|
-
/** With `interval` and `interval_count`, chooses among prices of that term that differ in
|
|
1004
|
-
|
|
1017
|
+
/** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
|
|
1018
|
+
cancellation_policy?: CancellationPolicy;
|
|
1005
1019
|
/**
|
|
1006
1020
|
* How many consecutive periods to renew for.
|
|
1007
1021
|
* @minimum 1
|
|
@@ -1133,6 +1147,7 @@ export interface CancellationRefundPreviewItem {
|
|
|
1133
1147
|
/** Whether automatic renewal is on now. Creating the cancellation turns it off; withdrawing it turns it back on for a metered subscription but not for a licensed one. */
|
|
1134
1148
|
auto_renew: boolean;
|
|
1135
1149
|
unused_amount: Money;
|
|
1150
|
+
short_rate_surcharge_amount: Money;
|
|
1136
1151
|
refundable_amount: Money;
|
|
1137
1152
|
refund_amount: Money;
|
|
1138
1153
|
credit_amount: Money;
|
|
@@ -1143,8 +1158,9 @@ export interface CancellationRefundPreviewItem {
|
|
|
1143
1158
|
* What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
|
|
1144
1159
|
* `refundable_amount` when creating the cancellation.
|
|
1145
1160
|
*
|
|
1146
|
-
* - `unused_amount`: before tax, the amount paid for the current periods
|
|
1147
|
-
*
|
|
1161
|
+
* - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
|
|
1162
|
+
* - `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the
|
|
1163
|
+
* refund policy.
|
|
1148
1164
|
* - `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus
|
|
1149
1165
|
* `credit_amount`.
|
|
1150
1166
|
* - `refund_amount`: the part returned to the balance or the payment method.
|
|
@@ -1155,13 +1171,14 @@ export interface CancellationRefundPreviewItem {
|
|
|
1155
1171
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
1156
1172
|
*/
|
|
1157
1173
|
export interface CancellationRefundPreview {
|
|
1158
|
-
mode:
|
|
1174
|
+
mode: CancellationPolicy;
|
|
1159
1175
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
1160
1176
|
scheduled_at?: string;
|
|
1161
1177
|
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
1162
1178
|
proration_date?: string;
|
|
1163
1179
|
currency: string;
|
|
1164
1180
|
unused_amount: Money;
|
|
1181
|
+
short_rate_surcharge_amount: Money;
|
|
1165
1182
|
refundable_amount: Money;
|
|
1166
1183
|
refund_amount: Money;
|
|
1167
1184
|
credit_amount: Money;
|
|
@@ -1170,7 +1187,7 @@ export interface CancellationRefundPreview {
|
|
|
1170
1187
|
items: CancellationRefundPreviewItem[];
|
|
1171
1188
|
}
|
|
1172
1189
|
/**
|
|
1173
|
-
* An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed
|
|
1190
|
+
* An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed cancellation terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.
|
|
1174
1191
|
*/
|
|
1175
1192
|
export interface OrderRefundQuote {
|
|
1176
1193
|
order_id: string;
|
|
@@ -1210,7 +1227,7 @@ export interface QuoteCancellation {
|
|
|
1210
1227
|
* @maxItems 50
|
|
1211
1228
|
*/
|
|
1212
1229
|
subscription_ids: string[];
|
|
1213
|
-
mode:
|
|
1230
|
+
mode: CancellationPolicy;
|
|
1214
1231
|
}
|
|
1215
1232
|
export interface CancellationCreate {
|
|
1216
1233
|
/**
|
|
@@ -1219,7 +1236,7 @@ export interface CancellationCreate {
|
|
|
1219
1236
|
* @maxItems 50
|
|
1220
1237
|
*/
|
|
1221
1238
|
subscription_ids: string[];
|
|
1222
|
-
mode:
|
|
1239
|
+
mode: CancellationPolicy;
|
|
1223
1240
|
/** 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. */
|
|
1224
1241
|
proration_date?: string;
|
|
1225
1242
|
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
@@ -1299,7 +1316,7 @@ export interface CancellationItem {
|
|
|
1299
1316
|
export interface Cancellation {
|
|
1300
1317
|
id: string;
|
|
1301
1318
|
status: CancellationStatus;
|
|
1302
|
-
mode:
|
|
1319
|
+
mode: CancellationPolicy;
|
|
1303
1320
|
scheduled_at?: string;
|
|
1304
1321
|
/** For `immediate`, the second the refund is computed as of. */
|
|
1305
1322
|
proration_date?: string;
|
|
@@ -2066,6 +2083,8 @@ export interface InvoiceItem {
|
|
|
2066
2083
|
/** The part covered by an included allowance, and therefore not charged. */
|
|
2067
2084
|
deducted_quantity?: string;
|
|
2068
2085
|
unit_amount?: Money;
|
|
2086
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`. */
|
|
2087
|
+
unit_quantity?: string;
|
|
2069
2088
|
amount: Money;
|
|
2070
2089
|
currency: string;
|
|
2071
2090
|
/** @nullable */
|
|
@@ -2214,9 +2233,11 @@ export declare const RefundStatus: {
|
|
|
2214
2233
|
* - `change_expired`: a scheduled change could not take effect in time.
|
|
2215
2234
|
* - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
|
|
2216
2235
|
* - `future_period_canceled`: a renewal that had not started was withdrawn.
|
|
2217
|
-
* - `downgrade_difference`: after a downgrade, the remaining paid value, valued
|
|
2218
|
-
*
|
|
2219
|
-
* `
|
|
2236
|
+
* - `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund
|
|
2237
|
+
* policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining
|
|
2238
|
+
* time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the
|
|
2239
|
+
* length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the
|
|
2240
|
+
* remaining time.
|
|
2220
2241
|
* - `usage_true_up`: usage priced over the whole month cost less than was charged.
|
|
2221
2242
|
* - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
|
|
2222
2243
|
* - `operator`: made by the platform operator.
|
|
@@ -2316,6 +2337,8 @@ export interface UsageCharge {
|
|
|
2316
2337
|
/** The quantity charged: gross quantity less the part covered by allowances. */
|
|
2317
2338
|
quantity: string;
|
|
2318
2339
|
unit_amount?: Money;
|
|
2340
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. */
|
|
2341
|
+
unit_quantity?: string;
|
|
2319
2342
|
amount: Money;
|
|
2320
2343
|
currency: string;
|
|
2321
2344
|
/**
|
|
@@ -2435,8 +2458,14 @@ export interface Subscription {
|
|
|
2435
2458
|
interval_count?: number;
|
|
2436
2459
|
/** The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions. */
|
|
2437
2460
|
recurring_amount?: string;
|
|
2438
|
-
|
|
2461
|
+
cancellation_policy?: CancellationPolicy;
|
|
2439
2462
|
refund_policy?: RefundPolicy;
|
|
2463
|
+
/** Refund policy `short_rate` only, as on the price bought. */
|
|
2464
|
+
short_rate_multiplier?: string;
|
|
2465
|
+
/** Refund policy `short_rate` only, as on the price bought. */
|
|
2466
|
+
short_rate_threshold_seconds?: number;
|
|
2467
|
+
/** Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item. */
|
|
2468
|
+
monthly_list_amount?: string;
|
|
2440
2469
|
order_item_id?: string;
|
|
2441
2470
|
coupon_id?: string;
|
|
2442
2471
|
coupon?: ObjectIdentity;
|
|
@@ -2509,8 +2538,12 @@ export declare const RenewalPriceInterval: {
|
|
|
2509
2538
|
readonly year: "year";
|
|
2510
2539
|
};
|
|
2511
2540
|
export interface RenewalPrice {
|
|
2512
|
-
|
|
2541
|
+
cancellation_policy?: CancellationPolicy;
|
|
2513
2542
|
refund_policy?: RefundPolicy;
|
|
2543
|
+
/** Refund policy `short_rate` only. */
|
|
2544
|
+
short_rate_multiplier?: string;
|
|
2545
|
+
/** Refund policy `short_rate` only. */
|
|
2546
|
+
short_rate_threshold_seconds?: number;
|
|
2514
2547
|
price_id: string;
|
|
2515
2548
|
/** How many periods one renewal covers. */
|
|
2516
2549
|
interval_count: number;
|
|
@@ -2549,8 +2582,8 @@ export interface RenewRequest {
|
|
|
2549
2582
|
* Leaving both out renews at the price this item already bills at, which a later price
|
|
2550
2583
|
* change does not affect. Naming a term that differs from the current one is a fresh
|
|
2551
2584
|
* choice, so it is bought at today's price. Naming the current term changes nothing. A
|
|
2552
|
-
* term sold at several prices that differ in
|
|
2553
|
-
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `
|
|
2585
|
+
* term sold at several prices that differ in cancellation policy is refused with 409
|
|
2586
|
+
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.
|
|
2554
2587
|
*
|
|
2555
2588
|
* List the terms on offer with the renewal prices operation.
|
|
2556
2589
|
* @minimum 1
|
|
@@ -2558,8 +2591,8 @@ export interface RenewRequest {
|
|
|
2558
2591
|
interval_count?: number;
|
|
2559
2592
|
/** The unit interval_count counts in. */
|
|
2560
2593
|
interval?: RenewRequestInterval;
|
|
2561
|
-
/** With `interval` and `interval_count`, chooses among prices of that term that differ in
|
|
2562
|
-
|
|
2594
|
+
/** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
|
|
2595
|
+
cancellation_policy?: CancellationPolicy;
|
|
2563
2596
|
payment_method_id?: string;
|
|
2564
2597
|
/** Whether to pay from the balance, with or without `payment_method_id`. */
|
|
2565
2598
|
use_balance?: boolean;
|
|
@@ -2595,7 +2628,7 @@ export interface RenewalOrderRequest {
|
|
|
2595
2628
|
/** As in renewing. */
|
|
2596
2629
|
interval?: RenewalOrderRequestInterval;
|
|
2597
2630
|
/** As in renewing. */
|
|
2598
|
-
|
|
2631
|
+
cancellation_policy?: CancellationPolicy;
|
|
2599
2632
|
}
|
|
2600
2633
|
export interface AutoRenewSet {
|
|
2601
2634
|
auto_renew: boolean;
|
|
@@ -2676,18 +2709,23 @@ export interface OrderItem {
|
|
|
2676
2709
|
interval: OrderItemInterval;
|
|
2677
2710
|
/** @minimum 1 */
|
|
2678
2711
|
interval_count?: number;
|
|
2679
|
-
|
|
2712
|
+
cancellation_policy?: CancellationPolicy;
|
|
2680
2713
|
refund_policy?: RefundPolicy;
|
|
2681
2714
|
/**
|
|
2682
|
-
* Recurring licensed items only:
|
|
2715
|
+
* Recurring licensed items only: a month at list price for this item's quantity, before tax and discounts, which values time under a refund or a downgrade. It is the monthly amount of the shortest period the plan sells, not longer than the one bought, at the item's dimensions, fixed at purchase; a renewal at the agreed amount keeps the previous value. Null when time used is valued at the amount paid, as for a daily period.
|
|
2716
|
+
* @nullable
|
|
2717
|
+
*/
|
|
2718
|
+
monthly_list_amount?: string | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* Refund policy `short_rate` only, as on the price when bought.
|
|
2683
2721
|
* @nullable
|
|
2684
2722
|
*/
|
|
2685
|
-
|
|
2723
|
+
short_rate_multiplier?: string | null;
|
|
2686
2724
|
/**
|
|
2687
|
-
*
|
|
2725
|
+
* Refund policy `short_rate` only, as on the price when bought.
|
|
2688
2726
|
* @nullable
|
|
2689
2727
|
*/
|
|
2690
|
-
|
|
2728
|
+
short_rate_threshold_seconds?: number | null;
|
|
2691
2729
|
recurring_amount?: string;
|
|
2692
2730
|
setup_amount?: string;
|
|
2693
2731
|
type: PriceType;
|
|
@@ -3017,8 +3055,12 @@ export interface Price {
|
|
|
3017
3055
|
unit_quantity: string;
|
|
3018
3056
|
/** False once archived. An archived price cannot be bought until it is active again. */
|
|
3019
3057
|
active: boolean;
|
|
3020
|
-
|
|
3058
|
+
cancellation_policy?: CancellationPolicy;
|
|
3021
3059
|
refund_policy?: RefundPolicy;
|
|
3060
|
+
/** Refund policy `short_rate` only, the factor applied to the value of the time used when a cancellation takes effect less than `short_rate_threshold_seconds` after the period start. */
|
|
3061
|
+
short_rate_multiplier?: string;
|
|
3062
|
+
/** Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies. */
|
|
3063
|
+
short_rate_threshold_seconds?: number;
|
|
3022
3064
|
product_id?: ProductID;
|
|
3023
3065
|
id: string;
|
|
3024
3066
|
plan_id: string;
|
|
@@ -3143,7 +3185,7 @@ export interface QuoteItemInput {
|
|
|
3143
3185
|
/** @minimum 1 */
|
|
3144
3186
|
interval_count?: number;
|
|
3145
3187
|
/** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
|
|
3146
|
-
|
|
3188
|
+
cancellation_policy?: CancellationPolicy;
|
|
3147
3189
|
/** @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$ */
|
|
3148
3190
|
quantity: string;
|
|
3149
3191
|
meter_id?: string;
|
|
@@ -3368,7 +3410,7 @@ export interface ContactList {
|
|
|
3368
3410
|
pagination: OffsetPagination;
|
|
3369
3411
|
}
|
|
3370
3412
|
export interface CancelSubscriptionRequest {
|
|
3371
|
-
mode:
|
|
3413
|
+
mode: CancellationPolicy;
|
|
3372
3414
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
3373
3415
|
proration_date?: string;
|
|
3374
3416
|
/** The cancellation quote's refundable amount, including an explicit zero. */
|
|
@@ -95,13 +95,14 @@ export const WithdrawalStatus = {
|
|
|
95
95
|
failed: "failed",
|
|
96
96
|
reversed: "reversed",
|
|
97
97
|
};
|
|
98
|
-
export const
|
|
98
|
+
export const CancellationPolicy = {
|
|
99
99
|
immediate: "immediate",
|
|
100
100
|
period_end: "period_end",
|
|
101
101
|
};
|
|
102
102
|
export const RefundPolicy = {
|
|
103
103
|
none: "none",
|
|
104
104
|
prorated: "prorated",
|
|
105
|
+
short_rate: "short_rate",
|
|
105
106
|
};
|
|
106
107
|
export const QuoteRenewalInterval = {
|
|
107
108
|
day: "day",
|
|
@@ -212,7 +212,7 @@ export declare const GetRequestParams: zod.ZodObject<{
|
|
|
212
212
|
requestId: zod.ZodUUID;
|
|
213
213
|
}, zod.z.core.$strict>;
|
|
214
214
|
/**
|
|
215
|
-
* Purchases the model platform service for this project. The service itself has no charge; requests are
|
|
215
|
+
* Purchases the model platform service for this project. The service itself has no charge; requests are metered under it by the tokens they use. It takes no billing choice. Returns the service as `pending` with its order; it becomes `active` once the order is accepted, which for an order with nothing to pay happens without further action.
|
|
216
216
|
*
|
|
217
217
|
* Refused with 409 `SERVICE_ALREADY_ENABLED` while an enablement is pending or the service is active. A refusal of the order by Billing is returned with Billing's code, such as `BILLING_PRICE_UNAVAILABLE` when the service has no price in the currency of the project's billing account.
|
|
218
218
|
* @summary Enable the model platform service
|
|
@@ -205,7 +205,7 @@ export const GetRequestParams = zod.strictObject({
|
|
|
205
205
|
requestId: zod.uuid(),
|
|
206
206
|
});
|
|
207
207
|
/**
|
|
208
|
-
* Purchases the model platform service for this project. The service itself has no charge; requests are
|
|
208
|
+
* Purchases the model platform service for this project. The service itself has no charge; requests are metered under it by the tokens they use. It takes no billing choice. Returns the service as `pending` with its order; it becomes `active` once the order is accepted, which for an order with nothing to pay happens without further action.
|
|
209
209
|
*
|
|
210
210
|
* Refused with 409 `SERVICE_ALREADY_ENABLED` while an enablement is pending or the service is active. A refusal of the order by Billing is returned with Billing's code, such as `BILLING_PRICE_UNAVAILABLE` when the service has no price in the currency of the project's billing account.
|
|
211
211
|
* @summary Enable the model platform service
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
34
35
|
import { Money } from "./money.zod.js";
|
|
35
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
36
36
|
export const cancelSubscriptionRequestExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
37
37
|
export const cancelSubscriptionRequestReasonMax = 1024;
|
|
38
38
|
export const CancelSubscriptionRequest = zod.strictObject({
|
|
39
|
-
mode:
|
|
39
|
+
mode: CancellationPolicy,
|
|
40
40
|
proration_date: zod.iso
|
|
41
41
|
.datetime({ offset: true })
|
|
42
42
|
.optional()
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
import { CancellationItem } from "./cancellationItem.zod.js";
|
|
35
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
35
36
|
import { Money } from "./money.zod.js";
|
|
36
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
37
37
|
export const Cancellation = zod
|
|
38
38
|
.strictObject({
|
|
39
39
|
id: zod.uuid(),
|
|
40
40
|
status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
|
|
41
|
-
mode:
|
|
41
|
+
mode: CancellationPolicy,
|
|
42
42
|
scheduled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
43
43
|
proration_date: zod.iso
|
|
44
44
|
.datetime({ offset: true })
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
34
35
|
import { Money } from "./money.zod.js";
|
|
35
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
36
36
|
export const cancellationCreateSubscriptionIdsMax = 50;
|
|
37
37
|
export const cancellationCreateExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
38
38
|
export const cancellationCreateReasonMax = 1024;
|
|
@@ -42,7 +42,7 @@ export const CancellationCreate = zod.strictObject({
|
|
|
42
42
|
.min(1)
|
|
43
43
|
.max(cancellationCreateSubscriptionIdsMax)
|
|
44
44
|
.describe("As in the quote."),
|
|
45
|
-
mode:
|
|
45
|
+
mode: CancellationPolicy,
|
|
46
46
|
proration_date: zod.iso
|
|
47
47
|
.datetime({ offset: true })
|
|
48
48
|
.optional()
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const CancellationPolicy: zod.ZodEnum<{
|
|
35
35
|
immediate: "immediate";
|
|
36
36
|
period_end: "period_end";
|
|
37
37
|
}>;
|
|
38
|
-
export type
|
|
39
|
-
export type
|
|
38
|
+
export type CancellationPolicy = zod.input<typeof CancellationPolicy>;
|
|
39
|
+
export type CancellationPolicyOutput = zod.output<typeof CancellationPolicy>;
|
package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js}
RENAMED
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
-
export const
|
|
34
|
+
export const CancellationPolicy = zod
|
|
35
35
|
.enum(["immediate", "period_end"])
|
|
36
|
-
.describe("Whether a delivered purchase may
|
|
36
|
+
.describe("Whether a cancellation of a delivered purchase may take effect immediately or only at the end of its paid term; refunds follow the refund policy. When absent, no cancellation terms were agreed.");
|
|
@@ -40,6 +40,7 @@ export declare const CancellationRefundPreview: zod.ZodObject<{
|
|
|
40
40
|
proration_date: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
41
41
|
currency: zod.ZodString;
|
|
42
42
|
unused_amount: zod.ZodString;
|
|
43
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
43
44
|
refundable_amount: zod.ZodString;
|
|
44
45
|
refund_amount: zod.ZodString;
|
|
45
46
|
credit_amount: zod.ZodString;
|
|
@@ -63,6 +64,7 @@ export declare const CancellationRefundPreview: zod.ZodObject<{
|
|
|
63
64
|
}>;
|
|
64
65
|
auto_renew: zod.ZodBoolean;
|
|
65
66
|
unused_amount: zod.ZodString;
|
|
67
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
66
68
|
refundable_amount: zod.ZodString;
|
|
67
69
|
refund_amount: zod.ZodString;
|
|
68
70
|
credit_amount: zod.ZodString;
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
* OpenAPI spec version: 1.0.0
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
34
35
|
import { CancellationRefundPreviewItem } from "./cancellationRefundPreviewItem.zod.js";
|
|
35
36
|
import { Money } from "./money.zod.js";
|
|
36
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
37
37
|
export const CancellationRefundPreview = zod
|
|
38
38
|
.strictObject({
|
|
39
|
-
mode:
|
|
39
|
+
mode: CancellationPolicy,
|
|
40
40
|
scheduled_at: zod.iso
|
|
41
41
|
.datetime({ offset: true })
|
|
42
42
|
.optional()
|
|
@@ -47,6 +47,7 @@ export const CancellationRefundPreview = zod
|
|
|
47
47
|
.describe("For `immediate`, the second the refund is computed as of. Give it when creating the cancellation."),
|
|
48
48
|
currency: zod.string(),
|
|
49
49
|
unused_amount: Money,
|
|
50
|
+
short_rate_surcharge_amount: Money,
|
|
50
51
|
refundable_amount: Money,
|
|
51
52
|
refund_amount: Money,
|
|
52
53
|
credit_amount: Money,
|
|
@@ -54,4 +55,4 @@ export const CancellationRefundPreview = zod
|
|
|
54
55
|
forfeited_amount: Money,
|
|
55
56
|
items: zod.array(CancellationRefundPreviewItem),
|
|
56
57
|
})
|
|
57
|
-
.describe("What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and\n`refundable_amount` when creating the cancellation.\n\n- `unused_amount`: before tax, the amount paid for the current periods
|
|
58
|
+
.describe("What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and\n`refundable_amount` when creating the cancellation.\n\n- `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.\n- `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the\n refund policy.\n- `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus\n `credit_amount`.\n- `refund_amount`: the part returned to the balance or the payment method.\n- `credit_amount`: the part restored to the credit grants that paid.\n- `tax_amount`: the tax included in `refundable_amount`.\n- `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.\n\nMetered and one-time subscriptions show zero; their usage until release is charged as usual.");
|
|
@@ -49,6 +49,7 @@ export declare const CancellationRefundPreviewItem: zod.ZodObject<{
|
|
|
49
49
|
}>;
|
|
50
50
|
auto_renew: zod.ZodBoolean;
|
|
51
51
|
unused_amount: zod.ZodString;
|
|
52
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
52
53
|
refundable_amount: zod.ZodString;
|
|
53
54
|
refund_amount: zod.ZodString;
|
|
54
55
|
credit_amount: zod.ZodString;
|
|
@@ -50,6 +50,7 @@ export const CancellationRefundPreviewItem = zod
|
|
|
50
50
|
.boolean()
|
|
51
51
|
.describe("Whether automatic renewal is on now. Creating the cancellation turns it off; withdrawing it turns it back on for a metered subscription but not for a licensed one."),
|
|
52
52
|
unused_amount: Money,
|
|
53
|
+
short_rate_surcharge_amount: Money,
|
|
53
54
|
refundable_amount: Money,
|
|
54
55
|
refund_amount: Money,
|
|
55
56
|
credit_amount: Money,
|
|
@@ -57,6 +57,7 @@ export declare const InvoiceItem: zod.ZodObject<{
|
|
|
57
57
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
58
58
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
60
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
60
61
|
amount: zod.ZodString;
|
|
61
62
|
currency: zod.ZodString;
|
|
62
63
|
period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -63,6 +63,10 @@ export const InvoiceItem = zod.strictObject({
|
|
|
63
63
|
.optional()
|
|
64
64
|
.describe("The part covered by an included allowance, and therefore not charged."),
|
|
65
65
|
unit_amount: Money.optional(),
|
|
66
|
+
unit_quantity: zod
|
|
67
|
+
.string()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe("The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`."),
|
|
66
70
|
amount: Money,
|
|
67
71
|
currency: zod.string(),
|
|
68
72
|
period_start: zod.iso.datetime({ offset: true }).nullish(),
|
|
@@ -58,6 +58,7 @@ export declare const InvoiceItemList: zod.ZodObject<{
|
|
|
58
58
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
60
60
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
61
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
61
62
|
amount: zod.ZodString;
|
|
62
63
|
currency: zod.ZodString;
|
|
63
64
|
period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -117,16 +117,18 @@ export declare const Order: zod.ZodObject<{
|
|
|
117
117
|
year: "year";
|
|
118
118
|
}>;
|
|
119
119
|
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
120
|
-
|
|
120
|
+
cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
121
121
|
immediate: "immediate";
|
|
122
122
|
period_end: "period_end";
|
|
123
123
|
}>>;
|
|
124
124
|
refund_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
125
125
|
none: "none";
|
|
126
126
|
prorated: "prorated";
|
|
127
|
+
short_rate: "short_rate";
|
|
127
128
|
}>>;
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
monthly_list_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
130
|
+
short_rate_multiplier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
131
|
+
short_rate_threshold_seconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
130
132
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
131
133
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
132
134
|
type: zod.ZodEnum<{
|