@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
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import * as zod from "zod";
|
|
16
16
|
import { ProjectTraitResource } from "./projectTraitResource.zod.js";
|
|
17
|
+
export const projectResourceSlugMax = 36;
|
|
17
18
|
export const ProjectResource = zod.strictObject({
|
|
18
19
|
traits: zod.array(ProjectTraitResource),
|
|
19
20
|
deletion_requested_at: zod.iso.datetime({ offset: true }).nullable(),
|
|
@@ -25,6 +26,11 @@ export const ProjectResource = zod.strictObject({
|
|
|
25
26
|
.describe("When the project was deleted"),
|
|
26
27
|
description: zod.string(),
|
|
27
28
|
id: zod.uuid(),
|
|
29
|
+
slug: zod
|
|
30
|
+
.string()
|
|
31
|
+
.min(1)
|
|
32
|
+
.max(projectResourceSlugMax)
|
|
33
|
+
.describe("The label naming the project in its address. It equals `id` until a custom slug is chosen. A custom slug does not change once set, and stays with the project after deletion"),
|
|
28
34
|
name: zod.string(),
|
|
29
35
|
updated_at: zod.iso.datetime({ offset: true }),
|
|
30
36
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
export declare const setProjectSlugRequestBodySlugMin = 6;
|
|
17
|
+
export declare const setProjectSlugRequestBodySlugMax = 32;
|
|
18
|
+
export declare const SetProjectSlugRequestBody: zod.ZodObject<{
|
|
19
|
+
slug: zod.ZodString;
|
|
20
|
+
}, zod.z.core.$strict>;
|
|
21
|
+
export type SetProjectSlugRequestBody = zod.input<typeof SetProjectSlugRequestBody>;
|
|
22
|
+
export type SetProjectSlugRequestBodyOutput = zod.output<typeof SetProjectSlugRequestBody>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
export const setProjectSlugRequestBodySlugMin = 6;
|
|
17
|
+
export const setProjectSlugRequestBodySlugMax = 32;
|
|
18
|
+
export const SetProjectSlugRequestBody = zod.strictObject({
|
|
19
|
+
slug: zod
|
|
20
|
+
.string()
|
|
21
|
+
.min(setProjectSlugRequestBodySlugMin)
|
|
22
|
+
.max(setProjectSlugRequestBodySlugMax)
|
|
23
|
+
.describe("6 to 32 characters made of lower-case letters, digits and single hyphens, beginning with a letter and ending with a letter or digit"),
|
|
24
|
+
});
|
|
@@ -575,20 +575,34 @@ export interface WithdrawalItemList {
|
|
|
575
575
|
pagination: OffsetPagination;
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
|
-
* Whether a delivered purchase may
|
|
578
|
+
* 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.
|
|
579
579
|
*/
|
|
580
|
-
export type
|
|
581
|
-
export declare const
|
|
580
|
+
export type CancellationPolicy = (typeof CancellationPolicy)[keyof typeof CancellationPolicy];
|
|
581
|
+
export declare const CancellationPolicy: {
|
|
582
582
|
readonly immediate: "immediate";
|
|
583
583
|
readonly period_end: "period_end";
|
|
584
584
|
};
|
|
585
585
|
/**
|
|
586
|
-
* `none` refunds nothing.
|
|
586
|
+
* `none` refunds nothing.
|
|
587
|
+
*
|
|
588
|
+
* `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero
|
|
589
|
+
* or above what remains unrefunded. Time used runs from the period start to the effective cancellation, by the
|
|
590
|
+
* second. Each whole month from the period start is valued at the order item's `monthly_list_amount`, and the
|
|
591
|
+
* remainder at that amount in proportion to the length of the month it falls in; without `monthly_list_amount`,
|
|
592
|
+
* time used is valued at the amount paid in proportion to the length of the period. A renewal starts a new
|
|
593
|
+
* period, and an immediate change starts one at the change. Discounts and setup fees are not refunded. Refunds
|
|
594
|
+
* return to the original payment sources, with tax refunded in proportion.
|
|
595
|
+
*
|
|
596
|
+
* `short_rate` refunds as `prorated`, except that when the cancellation takes effect less than
|
|
597
|
+
* `short_rate_threshold_seconds` after the period start, the value of the time used is multiplied by
|
|
598
|
+
* `short_rate_multiplier`, up to `monthly_list_amount` for each month begun or, without `monthly_list_amount`,
|
|
599
|
+
* up to the amount paid.
|
|
587
600
|
*/
|
|
588
601
|
export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
|
|
589
602
|
export declare const RefundPolicy: {
|
|
590
603
|
readonly none: "none";
|
|
591
604
|
readonly prorated: "prorated";
|
|
605
|
+
readonly short_rate: "short_rate";
|
|
592
606
|
};
|
|
593
607
|
export interface OrderCancel {
|
|
594
608
|
/**
|
|
@@ -608,8 +622,8 @@ export declare const QuoteRenewalInterval: {
|
|
|
608
622
|
* Price renewing a licensed subscription. Give `price_id`, or `interval` with
|
|
609
623
|
* `interval_count`, to renew for another term at the price currently sold for it. Naming
|
|
610
624
|
* the current term, or giving neither, renews at the agreed amount. A term sold at several
|
|
611
|
-
* prices that differ in
|
|
612
|
-
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `
|
|
625
|
+
* prices that differ in cancellation policy is refused with 409
|
|
626
|
+
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.
|
|
613
627
|
*/
|
|
614
628
|
export interface QuoteRenewal {
|
|
615
629
|
subscription_id: string;
|
|
@@ -617,8 +631,8 @@ export interface QuoteRenewal {
|
|
|
617
631
|
interval?: QuoteRenewalInterval;
|
|
618
632
|
/** @minimum 1 */
|
|
619
633
|
interval_count?: number;
|
|
620
|
-
/** With `interval` and `interval_count`, chooses among prices of that term that differ in
|
|
621
|
-
|
|
634
|
+
/** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
|
|
635
|
+
cancellation_policy?: CancellationPolicy;
|
|
622
636
|
/**
|
|
623
637
|
* How many consecutive periods to renew for.
|
|
624
638
|
* @minimum 1
|
|
@@ -754,6 +768,7 @@ export interface CancellationRefundPreviewItem {
|
|
|
754
768
|
/** 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. */
|
|
755
769
|
auto_renew: boolean;
|
|
756
770
|
unused_amount: Money;
|
|
771
|
+
short_rate_surcharge_amount: Money;
|
|
757
772
|
refundable_amount: Money;
|
|
758
773
|
refund_amount: Money;
|
|
759
774
|
credit_amount: Money;
|
|
@@ -764,8 +779,9 @@ export interface CancellationRefundPreviewItem {
|
|
|
764
779
|
* What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
|
|
765
780
|
* `refundable_amount` when creating the cancellation.
|
|
766
781
|
*
|
|
767
|
-
* - `unused_amount`: before tax, the amount paid for the current periods
|
|
768
|
-
*
|
|
782
|
+
* - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
|
|
783
|
+
* - `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the
|
|
784
|
+
* refund policy.
|
|
769
785
|
* - `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus
|
|
770
786
|
* `credit_amount`.
|
|
771
787
|
* - `refund_amount`: the part returned to the balance or the payment method.
|
|
@@ -776,13 +792,14 @@ export interface CancellationRefundPreviewItem {
|
|
|
776
792
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
777
793
|
*/
|
|
778
794
|
export interface CancellationRefundPreview {
|
|
779
|
-
mode:
|
|
795
|
+
mode: CancellationPolicy;
|
|
780
796
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
781
797
|
scheduled_at?: string;
|
|
782
798
|
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
783
799
|
proration_date?: string;
|
|
784
800
|
currency: string;
|
|
785
801
|
unused_amount: Money;
|
|
802
|
+
short_rate_surcharge_amount: Money;
|
|
786
803
|
refundable_amount: Money;
|
|
787
804
|
refund_amount: Money;
|
|
788
805
|
credit_amount: Money;
|
|
@@ -791,7 +808,7 @@ export interface CancellationRefundPreview {
|
|
|
791
808
|
items: CancellationRefundPreviewItem[];
|
|
792
809
|
}
|
|
793
810
|
/**
|
|
794
|
-
* 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
|
|
811
|
+
* 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.
|
|
795
812
|
*/
|
|
796
813
|
export interface OrderRefundQuote {
|
|
797
814
|
order_id: string;
|
|
@@ -830,7 +847,7 @@ export interface QuoteCancellation {
|
|
|
830
847
|
* @maxItems 50
|
|
831
848
|
*/
|
|
832
849
|
subscription_ids: string[];
|
|
833
|
-
mode:
|
|
850
|
+
mode: CancellationPolicy;
|
|
834
851
|
}
|
|
835
852
|
export interface CancellationCreate {
|
|
836
853
|
/**
|
|
@@ -839,7 +856,7 @@ export interface CancellationCreate {
|
|
|
839
856
|
* @maxItems 50
|
|
840
857
|
*/
|
|
841
858
|
subscription_ids: string[];
|
|
842
|
-
mode:
|
|
859
|
+
mode: CancellationPolicy;
|
|
843
860
|
/** 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. */
|
|
844
861
|
proration_date?: string;
|
|
845
862
|
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
@@ -919,7 +936,7 @@ export interface CancellationItem {
|
|
|
919
936
|
export interface Cancellation {
|
|
920
937
|
id: string;
|
|
921
938
|
status: CancellationStatus;
|
|
922
|
-
mode:
|
|
939
|
+
mode: CancellationPolicy;
|
|
923
940
|
scheduled_at?: string;
|
|
924
941
|
/** For `immediate`, the second the refund is computed as of. */
|
|
925
942
|
proration_date?: string;
|
|
@@ -1687,6 +1704,8 @@ export interface InvoiceItem {
|
|
|
1687
1704
|
/** The part covered by an included allowance, and therefore not charged. */
|
|
1688
1705
|
deducted_quantity?: string;
|
|
1689
1706
|
unit_amount?: Money;
|
|
1707
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`. */
|
|
1708
|
+
unit_quantity?: string;
|
|
1690
1709
|
amount: Money;
|
|
1691
1710
|
currency: string;
|
|
1692
1711
|
/** @nullable */
|
|
@@ -1835,9 +1854,11 @@ export declare const RefundStatus: {
|
|
|
1835
1854
|
* - `change_expired`: a scheduled change could not take effect in time.
|
|
1836
1855
|
* - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
|
|
1837
1856
|
* - `future_period_canceled`: a renewal that had not started was withdrawn.
|
|
1838
|
-
* - `downgrade_difference`: after a downgrade, the remaining paid value, valued
|
|
1839
|
-
*
|
|
1840
|
-
* `
|
|
1857
|
+
* - `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund
|
|
1858
|
+
* policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining
|
|
1859
|
+
* time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the
|
|
1860
|
+
* length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the
|
|
1861
|
+
* remaining time.
|
|
1841
1862
|
* - `usage_true_up`: usage priced over the whole month cost less than was charged.
|
|
1842
1863
|
* - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
|
|
1843
1864
|
* - `operator`: made by the platform operator.
|
|
@@ -1937,6 +1958,8 @@ export interface UsageCharge {
|
|
|
1937
1958
|
/** The quantity charged: gross quantity less the part covered by allowances. */
|
|
1938
1959
|
quantity: string;
|
|
1939
1960
|
unit_amount?: Money;
|
|
1961
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. */
|
|
1962
|
+
unit_quantity?: string;
|
|
1940
1963
|
amount: Money;
|
|
1941
1964
|
currency: string;
|
|
1942
1965
|
/**
|
|
@@ -2056,8 +2079,14 @@ export interface Subscription {
|
|
|
2056
2079
|
interval_count?: number;
|
|
2057
2080
|
/** 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. */
|
|
2058
2081
|
recurring_amount?: string;
|
|
2059
|
-
|
|
2082
|
+
cancellation_policy?: CancellationPolicy;
|
|
2060
2083
|
refund_policy?: RefundPolicy;
|
|
2084
|
+
/** Refund policy `short_rate` only, as on the price bought. */
|
|
2085
|
+
short_rate_multiplier?: string;
|
|
2086
|
+
/** Refund policy `short_rate` only, as on the price bought. */
|
|
2087
|
+
short_rate_threshold_seconds?: number;
|
|
2088
|
+
/** Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item. */
|
|
2089
|
+
monthly_list_amount?: string;
|
|
2061
2090
|
order_item_id?: string;
|
|
2062
2091
|
coupon_id?: string;
|
|
2063
2092
|
coupon?: ObjectIdentity;
|
|
@@ -2130,8 +2159,12 @@ export declare const RenewalPriceInterval: {
|
|
|
2130
2159
|
readonly year: "year";
|
|
2131
2160
|
};
|
|
2132
2161
|
export interface RenewalPrice {
|
|
2133
|
-
|
|
2162
|
+
cancellation_policy?: CancellationPolicy;
|
|
2134
2163
|
refund_policy?: RefundPolicy;
|
|
2164
|
+
/** Refund policy `short_rate` only. */
|
|
2165
|
+
short_rate_multiplier?: string;
|
|
2166
|
+
/** Refund policy `short_rate` only. */
|
|
2167
|
+
short_rate_threshold_seconds?: number;
|
|
2135
2168
|
price_id: string;
|
|
2136
2169
|
/** How many periods one renewal covers. */
|
|
2137
2170
|
interval_count: number;
|
|
@@ -2170,8 +2203,8 @@ export interface RenewRequest {
|
|
|
2170
2203
|
* Leaving both out renews at the price this item already bills at, which a later price
|
|
2171
2204
|
* change does not affect. Naming a term that differs from the current one is a fresh
|
|
2172
2205
|
* choice, so it is bought at today's price. Naming the current term changes nothing. A
|
|
2173
|
-
* term sold at several prices that differ in
|
|
2174
|
-
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `
|
|
2206
|
+
* term sold at several prices that differ in cancellation policy is refused with 409
|
|
2207
|
+
* `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.
|
|
2175
2208
|
*
|
|
2176
2209
|
* List the terms on offer with the renewal prices operation.
|
|
2177
2210
|
* @minimum 1
|
|
@@ -2179,8 +2212,8 @@ export interface RenewRequest {
|
|
|
2179
2212
|
interval_count?: number;
|
|
2180
2213
|
/** The unit interval_count counts in. */
|
|
2181
2214
|
interval?: RenewRequestInterval;
|
|
2182
|
-
/** With `interval` and `interval_count`, chooses among prices of that term that differ in
|
|
2183
|
-
|
|
2215
|
+
/** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
|
|
2216
|
+
cancellation_policy?: CancellationPolicy;
|
|
2184
2217
|
payment_method_id?: string;
|
|
2185
2218
|
/** Whether to pay from the balance, with or without `payment_method_id`. */
|
|
2186
2219
|
use_balance?: boolean;
|
|
@@ -2216,7 +2249,7 @@ export interface RenewalOrderRequest {
|
|
|
2216
2249
|
/** As in renewing. */
|
|
2217
2250
|
interval?: RenewalOrderRequestInterval;
|
|
2218
2251
|
/** As in renewing. */
|
|
2219
|
-
|
|
2252
|
+
cancellation_policy?: CancellationPolicy;
|
|
2220
2253
|
}
|
|
2221
2254
|
export interface AutoRenewSet {
|
|
2222
2255
|
auto_renew: boolean;
|
|
@@ -2297,18 +2330,23 @@ export interface OrderItem {
|
|
|
2297
2330
|
interval: OrderItemInterval;
|
|
2298
2331
|
/** @minimum 1 */
|
|
2299
2332
|
interval_count?: number;
|
|
2300
|
-
|
|
2333
|
+
cancellation_policy?: CancellationPolicy;
|
|
2301
2334
|
refund_policy?: RefundPolicy;
|
|
2302
2335
|
/**
|
|
2303
|
-
* Recurring licensed items only:
|
|
2336
|
+
* 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.
|
|
2337
|
+
* @nullable
|
|
2338
|
+
*/
|
|
2339
|
+
monthly_list_amount?: string | null;
|
|
2340
|
+
/**
|
|
2341
|
+
* Refund policy `short_rate` only, as on the price when bought.
|
|
2304
2342
|
* @nullable
|
|
2305
2343
|
*/
|
|
2306
|
-
|
|
2344
|
+
short_rate_multiplier?: string | null;
|
|
2307
2345
|
/**
|
|
2308
|
-
*
|
|
2346
|
+
* Refund policy `short_rate` only, as on the price when bought.
|
|
2309
2347
|
* @nullable
|
|
2310
2348
|
*/
|
|
2311
|
-
|
|
2349
|
+
short_rate_threshold_seconds?: number | null;
|
|
2312
2350
|
recurring_amount?: string;
|
|
2313
2351
|
setup_amount?: string;
|
|
2314
2352
|
type: PriceType;
|
|
@@ -2640,8 +2678,12 @@ export interface Price {
|
|
|
2640
2678
|
unit_quantity: string;
|
|
2641
2679
|
/** False once archived. An archived price cannot be bought until it is active again. */
|
|
2642
2680
|
active: boolean;
|
|
2643
|
-
|
|
2681
|
+
cancellation_policy?: CancellationPolicy;
|
|
2644
2682
|
refund_policy?: RefundPolicy;
|
|
2683
|
+
/** 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. */
|
|
2684
|
+
short_rate_multiplier?: string;
|
|
2685
|
+
/** Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies. */
|
|
2686
|
+
short_rate_threshold_seconds?: number;
|
|
2645
2687
|
product_id?: ProductID;
|
|
2646
2688
|
id: string;
|
|
2647
2689
|
plan_id: string;
|
|
@@ -2766,7 +2808,7 @@ export interface QuoteItemInput {
|
|
|
2766
2808
|
/** @minimum 1 */
|
|
2767
2809
|
interval_count?: number;
|
|
2768
2810
|
/** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
|
|
2769
|
-
|
|
2811
|
+
cancellation_policy?: CancellationPolicy;
|
|
2770
2812
|
/** @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]))))))))))$ */
|
|
2771
2813
|
quantity: string;
|
|
2772
2814
|
meter_id?: string;
|
|
@@ -2991,7 +3033,7 @@ export interface ContactList {
|
|
|
2991
3033
|
pagination: OffsetPagination;
|
|
2992
3034
|
}
|
|
2993
3035
|
export interface CancelSubscriptionRequest {
|
|
2994
|
-
mode:
|
|
3036
|
+
mode: CancellationPolicy;
|
|
2995
3037
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
2996
3038
|
proration_date?: string;
|
|
2997
3039
|
/** The cancellation quote's refundable amount, including an explicit zero. */
|
|
@@ -59,13 +59,14 @@ export const WithdrawalStatus = {
|
|
|
59
59
|
failed: "failed",
|
|
60
60
|
reversed: "reversed",
|
|
61
61
|
};
|
|
62
|
-
export const
|
|
62
|
+
export const CancellationPolicy = {
|
|
63
63
|
immediate: "immediate",
|
|
64
64
|
period_end: "period_end",
|
|
65
65
|
};
|
|
66
66
|
export const RefundPolicy = {
|
|
67
67
|
none: "none",
|
|
68
68
|
prorated: "prorated",
|
|
69
|
+
short_rate: "short_rate",
|
|
69
70
|
};
|
|
70
71
|
export const QuoteRenewalInterval = {
|
|
71
72
|
day: "day",
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
11
11
|
export const cancelSubscriptionRequestExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
12
12
|
export const cancelSubscriptionRequestReasonMax = 1024;
|
|
13
13
|
export const CancelSubscriptionRequest = zod.strictObject({
|
|
14
|
-
mode:
|
|
14
|
+
mode: CancellationPolicy,
|
|
15
15
|
proration_date: zod.iso
|
|
16
16
|
.datetime({ offset: true })
|
|
17
17
|
.optional()
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { CancellationItem } from "./cancellationItem.zod.js";
|
|
10
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
10
11
|
import { Money } from "./money.zod.js";
|
|
11
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
12
12
|
export const Cancellation = zod
|
|
13
13
|
.strictObject({
|
|
14
14
|
id: zod.uuid(),
|
|
15
15
|
status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
|
|
16
|
-
mode:
|
|
16
|
+
mode: CancellationPolicy,
|
|
17
17
|
scheduled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
18
18
|
proration_date: zod.iso
|
|
19
19
|
.datetime({ offset: true })
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
11
11
|
export const cancellationCreateSubscriptionIdsMax = 50;
|
|
12
12
|
export const cancellationCreateExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
13
13
|
export const cancellationCreateReasonMax = 1024;
|
|
@@ -17,7 +17,7 @@ export const CancellationCreate = zod.strictObject({
|
|
|
17
17
|
.min(1)
|
|
18
18
|
.max(cancellationCreateSubscriptionIdsMax)
|
|
19
19
|
.describe("As in the quote."),
|
|
20
|
-
mode:
|
|
20
|
+
mode: CancellationPolicy,
|
|
21
21
|
proration_date: zod.iso
|
|
22
22
|
.datetime({ offset: true })
|
|
23
23
|
.optional()
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const CancellationPolicy: zod.ZodEnum<{
|
|
10
10
|
immediate: "immediate";
|
|
11
11
|
period_end: "period_end";
|
|
12
12
|
}>;
|
|
13
|
-
export type
|
|
14
|
-
export type
|
|
13
|
+
export type CancellationPolicy = zod.input<typeof CancellationPolicy>;
|
|
14
|
+
export type CancellationPolicyOutput = zod.output<typeof CancellationPolicy>;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export const
|
|
9
|
+
export const CancellationPolicy = zod
|
|
10
10
|
.enum(["immediate", "period_end"])
|
|
11
|
-
.describe("Whether a delivered purchase may
|
|
11
|
+
.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.");
|
|
@@ -15,6 +15,7 @@ export declare const CancellationRefundPreview: zod.ZodObject<{
|
|
|
15
15
|
proration_date: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
16
16
|
currency: zod.ZodString;
|
|
17
17
|
unused_amount: zod.ZodString;
|
|
18
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
18
19
|
refundable_amount: zod.ZodString;
|
|
19
20
|
refund_amount: zod.ZodString;
|
|
20
21
|
credit_amount: zod.ZodString;
|
|
@@ -38,6 +39,7 @@ export declare const CancellationRefundPreview: zod.ZodObject<{
|
|
|
38
39
|
}>;
|
|
39
40
|
auto_renew: zod.ZodBoolean;
|
|
40
41
|
unused_amount: zod.ZodString;
|
|
42
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
41
43
|
refundable_amount: zod.ZodString;
|
|
42
44
|
refund_amount: zod.ZodString;
|
|
43
45
|
credit_amount: zod.ZodString;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
9
10
|
import { CancellationRefundPreviewItem } from "./cancellationRefundPreviewItem.zod.js";
|
|
10
11
|
import { Money } from "./money.zod.js";
|
|
11
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
12
12
|
export const CancellationRefundPreview = zod
|
|
13
13
|
.strictObject({
|
|
14
|
-
mode:
|
|
14
|
+
mode: CancellationPolicy,
|
|
15
15
|
scheduled_at: zod.iso
|
|
16
16
|
.datetime({ offset: true })
|
|
17
17
|
.optional()
|
|
@@ -22,6 +22,7 @@ export const CancellationRefundPreview = zod
|
|
|
22
22
|
.describe("For `immediate`, the second the refund is computed as of. Give it when creating the cancellation."),
|
|
23
23
|
currency: zod.string(),
|
|
24
24
|
unused_amount: Money,
|
|
25
|
+
short_rate_surcharge_amount: Money,
|
|
25
26
|
refundable_amount: Money,
|
|
26
27
|
refund_amount: Money,
|
|
27
28
|
credit_amount: Money,
|
|
@@ -29,4 +30,4 @@ export const CancellationRefundPreview = zod
|
|
|
29
30
|
forfeited_amount: Money,
|
|
30
31
|
items: zod.array(CancellationRefundPreviewItem),
|
|
31
32
|
})
|
|
32
|
-
.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
|
|
33
|
+
.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.");
|
|
@@ -24,6 +24,7 @@ export declare const CancellationRefundPreviewItem: zod.ZodObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
auto_renew: zod.ZodBoolean;
|
|
26
26
|
unused_amount: zod.ZodString;
|
|
27
|
+
short_rate_surcharge_amount: zod.ZodString;
|
|
27
28
|
refundable_amount: zod.ZodString;
|
|
28
29
|
refund_amount: zod.ZodString;
|
|
29
30
|
credit_amount: zod.ZodString;
|
|
@@ -25,6 +25,7 @@ export const CancellationRefundPreviewItem = zod
|
|
|
25
25
|
.boolean()
|
|
26
26
|
.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."),
|
|
27
27
|
unused_amount: Money,
|
|
28
|
+
short_rate_surcharge_amount: Money,
|
|
28
29
|
refundable_amount: Money,
|
|
29
30
|
refund_amount: Money,
|
|
30
31
|
credit_amount: Money,
|
|
@@ -32,6 +32,7 @@ export declare const InvoiceItem: zod.ZodObject<{
|
|
|
32
32
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
35
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
35
36
|
amount: zod.ZodString;
|
|
36
37
|
currency: zod.ZodString;
|
|
37
38
|
period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -38,6 +38,10 @@ export const InvoiceItem = zod.strictObject({
|
|
|
38
38
|
.optional()
|
|
39
39
|
.describe("The part covered by an included allowance, and therefore not charged."),
|
|
40
40
|
unit_amount: Money.optional(),
|
|
41
|
+
unit_quantity: zod
|
|
42
|
+
.string()
|
|
43
|
+
.optional()
|
|
44
|
+
.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`."),
|
|
41
45
|
amount: Money,
|
|
42
46
|
currency: zod.string(),
|
|
43
47
|
period_start: zod.iso.datetime({ offset: true }).nullish(),
|
|
@@ -33,6 +33,7 @@ export declare const InvoiceItemList: zod.ZodObject<{
|
|
|
33
33
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
deducted_quantity: zod.ZodOptional<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
|
period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -92,16 +92,18 @@ export declare const Order: zod.ZodObject<{
|
|
|
92
92
|
year: "year";
|
|
93
93
|
}>;
|
|
94
94
|
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
95
|
-
|
|
95
|
+
cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
96
96
|
immediate: "immediate";
|
|
97
97
|
period_end: "period_end";
|
|
98
98
|
}>>;
|
|
99
99
|
refund_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
100
100
|
none: "none";
|
|
101
101
|
prorated: "prorated";
|
|
102
|
+
short_rate: "short_rate";
|
|
102
103
|
}>>;
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
monthly_list_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
105
|
+
short_rate_multiplier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
106
|
+
short_rate_threshold_seconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
105
107
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
106
108
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
107
109
|
type: zod.ZodEnum<{
|
|
@@ -20,16 +20,18 @@ export declare const OrderItem: zod.ZodObject<{
|
|
|
20
20
|
year: "year";
|
|
21
21
|
}>;
|
|
22
22
|
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
23
|
-
|
|
23
|
+
cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
24
24
|
immediate: "immediate";
|
|
25
25
|
period_end: "period_end";
|
|
26
26
|
}>>;
|
|
27
27
|
refund_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
28
28
|
none: "none";
|
|
29
29
|
prorated: "prorated";
|
|
30
|
+
short_rate: "short_rate";
|
|
30
31
|
}>>;
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
monthly_list_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
33
|
+
short_rate_multiplier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
34
|
+
short_rate_threshold_seconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
33
35
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
34
36
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
35
37
|
type: zod.ZodEnum<{
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
11
|
import { OrderItemStatus } from "./orderItemStatus.zod.js";
|
|
11
12
|
import { PriceType } from "./priceType.zod.js";
|
|
12
13
|
import { Product } from "./product.zod.js";
|
|
13
14
|
import { ProductID } from "./productID.zod.js";
|
|
14
15
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
15
|
-
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
16
16
|
import { UsageType } from "./usageType.zod.js";
|
|
17
17
|
export const orderItemPositionMin = 0;
|
|
18
18
|
export const OrderItem = zod
|
|
@@ -33,16 +33,20 @@ export const OrderItem = zod
|
|
|
33
33
|
.describe("The Billing subscription: the new pending subscription of a recurring purchase, or the existing one renewed or changed, which keeps its ID. Absent for a purchase without a subscription."),
|
|
34
34
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
35
35
|
interval_count: zod.int().min(1).optional(),
|
|
36
|
-
|
|
36
|
+
cancellation_policy: CancellationPolicy.optional(),
|
|
37
37
|
refund_policy: RefundPolicy.optional(),
|
|
38
|
-
|
|
38
|
+
monthly_list_amount: zod
|
|
39
39
|
.string()
|
|
40
40
|
.nullish()
|
|
41
|
-
.describe("Recurring licensed items only:
|
|
42
|
-
|
|
41
|
+
.describe("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."),
|
|
42
|
+
short_rate_multiplier: zod
|
|
43
43
|
.string()
|
|
44
44
|
.nullish()
|
|
45
|
-
.describe("
|
|
45
|
+
.describe("Refund policy `short_rate` only, as on the price when bought."),
|
|
46
|
+
short_rate_threshold_seconds: zod
|
|
47
|
+
.int()
|
|
48
|
+
.nullish()
|
|
49
|
+
.describe("Refund policy `short_rate` only, as on the price when bought."),
|
|
46
50
|
recurring_amount: zod.string().optional(),
|
|
47
51
|
setup_amount: zod.string().optional(),
|
|
48
52
|
type: PriceType,
|