@leaflow/sdk 0.0.0-dev.529.g6a1b7de → 0.0.0-dev.535.g1eeb8a5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/type/checkout/v1/generated/models.d.ts +5 -0
- package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
- package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +5 -0
- package/dist/billing/v1/generated/functions.d.ts +105 -90
- package/dist/billing/v1/generated/functions.js +107 -92
- package/dist/billing/v1/generated/models.d.ts +338 -164
- package/dist/billing/v1/generated/models.js +16 -10
- package/dist/billing/v1/generated/schemas.zod.d.ts +93 -70
- package/dist/billing/v1/generated/schemas.zod.js +98 -72
- package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/activeResource.zod.js +3 -2
- package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/allowance.zod.js +5 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +4 -2
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +5 -4
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +5 -4
- package/dist/billing/v1/generated/validators/cancellationItemInput.zod.d.ts +13 -0
- package/dist/billing/v1/generated/validators/{autoRenewSet.zod.d.ts → cancellationItemInput.zod.js} +5 -5
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationPreview.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationPreview.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.js +4 -3
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +4 -2
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +8 -7
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +5 -0
- package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +6 -0
- package/dist/billing/v1/generated/validators/checkoutSession.zod.js +7 -3
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +8 -2
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +3 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +7 -2
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +2 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +6 -0
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.d.ts +15 -0
- package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.js +24 -0
- package/dist/billing/v1/generated/validators/checkoutSessionSubscriptionInput.zod.d.ts +13 -0
- package/dist/billing/v1/generated/validators/{autoRenewSet.zod.js → checkoutSessionSubscriptionInput.zod.js} +5 -3
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -0
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/{listRenewalPricesParams.zod.d.ts → listRenewalOptionsParams.zod.d.ts} +7 -7
- package/dist/billing/v1/generated/validators/{listRenewalPricesParams.zod.js → listRenewalOptionsParams.zod.js} +9 -9
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +4 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +7 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +2 -2
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/order.zod.js +2 -2
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItem.zod.js +8 -4
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/plan.zod.js +2 -2
- package/dist/billing/v1/generated/validators/price.zod.js +2 -2
- package/dist/billing/v1/generated/validators/priceSearch.zod.js +2 -2
- package/dist/billing/v1/generated/validators/product.zod.js +2 -2
- package/dist/billing/v1/generated/validators/{productID.zod.d.ts → productId.zod.d.ts} +5 -5
- package/dist/billing/v1/generated/validators/{productID.zod.js → productId.zod.js} +5 -5
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +8 -1
- package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +7 -7
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +7 -3
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +6 -2
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +2 -3
- package/dist/billing/v1/generated/validators/quoteRenewalItem.zod.d.ts +17 -0
- package/dist/billing/v1/generated/validators/quoteRenewalItem.zod.js +18 -0
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +7 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +6 -3
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +3 -3
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +3 -3
- package/dist/billing/v1/generated/validators/{renewalPriceList.zod.d.ts → renewalOption.zod.d.ts} +15 -18
- package/dist/billing/v1/generated/validators/renewalOption.zod.js +22 -0
- package/dist/billing/v1/generated/validators/{renewalPrice.zod.d.ts → renewalOptionItem.zod.d.ts} +6 -13
- package/dist/billing/v1/generated/validators/{renewalPrice.zod.js → renewalOptionItem.zod.js} +10 -10
- package/dist/billing/v1/generated/validators/renewalOptionList.zod.d.ts +44 -0
- package/dist/billing/v1/generated/validators/{renewalPriceList.zod.js → renewalOptionList.zod.js} +3 -3
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +131 -112
- package/dist/billing/v1/generated/validators/subscription.zod.js +39 -73
- package/dist/billing/v1/generated/validators/subscriptionItem.zod.d.ts +104 -0
- package/dist/billing/v1/generated/validators/subscriptionItem.zod.js +74 -0
- package/dist/billing/v1/generated/validators/{subscriptionCancellation.zod.d.ts → subscriptionItemCancellation.zod.d.ts} +4 -4
- package/dist/billing/v1/generated/validators/{subscriptionCancellation.zod.js → subscriptionItemCancellation.zod.js} +4 -4
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +131 -111
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.js +2 -2
- package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.d.ts +13 -0
- package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.js +13 -0
- package/dist/billing/v1/generated/validators/trialEndBehavior.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/trialEndBehavior.zod.js +17 -0
- package/dist/billing/v1/generated/validators/trialSettings.zod.d.ts +20 -0
- package/dist/billing/v1/generated/validators/trialSettings.zod.js +14 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +2 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +2 -2
- package/dist/canopy/v1/generated/models.d.ts +5 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +5 -0
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/functions.d.ts +372 -284
- package/dist/compute/v2/generated/functions.js +232 -76
- package/dist/compute/v2/generated/models.d.ts +368 -334
- package/dist/compute/v2/generated/models.js +9 -9
- package/dist/compute/v2/generated/schemas.zod.d.ts +165 -97
- package/dist/compute/v2/generated/schemas.zod.js +156 -84
- package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.d.ts → associateElasticIpRequestBody.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.js → associateElasticIpRequestBody.zod.js} +2 -2
- package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{imageID.zod.d.ts → availabilityZoneId.zod.d.ts} +7 -7
- package/dist/compute/v2/generated/validators/availabilityZoneId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.js +5 -5
- package/dist/compute/v2/generated/validators/billingCancellation.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingCancellation.zod.js +3 -3
- package/dist/compute/v2/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingChoice.zod.js +1 -1
- package/dist/compute/v2/generated/validators/billingComponent.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingComponent.zod.js +1 -1
- package/dist/compute/v2/generated/validators/billingLineQuantity.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingLineQuantity.zod.js +1 -1
- package/dist/compute/v2/generated/validators/billingMeter.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingMeter.zod.js +1 -1
- package/dist/compute/v2/generated/validators/billingPeriod.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingPeriod.zod.js +1 -1
- package/dist/compute/v2/generated/validators/billingQuantity.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/billingQuantity.zod.js +1 -1
- package/dist/compute/v2/generated/validators/bootVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/bootVolume.zod.js +1 -1
- package/dist/compute/v2/generated/validators/cancellationMode.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/cancellationMode.zod.js +1 -1
- package/dist/compute/v2/generated/validators/{updateElasticIPRequestBody.zod.d.ts → changeElasticIpBandwidthRequestBody.zod.d.ts} +6 -9
- package/dist/compute/v2/generated/validators/changeElasticIpBandwidthRequestBody.zod.js +47 -0
- package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.d.ts +43 -0
- package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.js +39 -0
- package/dist/compute/v2/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/compute/v2/generated/validators/checkoutOptions.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +6 -1
- package/dist/compute/v2/generated/validators/consoleResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/consoleResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.d.ts → createElasticIpRequestBody.zod.d.ts} +9 -7
- package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.js → createElasticIpRequestBody.zod.js} +12 -10
- package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.d.ts → createElasticIpResponseBody.zod.d.ts} +8 -6
- package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.js → createElasticIpResponseBody.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +2 -1
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.js +5 -5
- package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.d.ts +2 -1
- package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.js +4 -4
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.d.ts +2 -1
- package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.d.ts +5 -3
- package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.js +10 -8
- package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.d.ts +2 -1
- package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.d.ts → deleteElasticIpResponseBody.zod.d.ts} +8 -6
- package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.js → deleteElasticIpResponseBody.zod.js} +6 -6
- package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{elasticIP.zod.d.ts → elasticIp.zod.d.ts} +8 -6
- package/dist/compute/v2/generated/validators/{elasticIP.zod.js → elasticIp.zod.js} +22 -18
- package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.d.ts → elasticIpAssociation.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.js → elasticIpAssociation.zod.js} +11 -11
- package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/{updateElasticIPResponseBody.zod.d.ts → elasticIpChangeResponseBody.zod.d.ts} +8 -6
- package/dist/compute/v2/generated/validators/elasticIpChangeResponseBody.zod.js +49 -0
- package/dist/compute/v2/generated/validators/elasticIpId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{elasticIPID.zod.js → elasticIpId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/{elasticIPLine.zod.d.ts → elasticIpLine.zod.d.ts} +7 -7
- package/dist/compute/v2/generated/validators/{elasticIPLine.zod.js → elasticIpLine.zod.js} +12 -12
- package/dist/compute/v2/generated/validators/elasticIpLineId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/elasticIpLineId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.d.ts → elasticIpLineListResponseBody.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.js → elasticIpLineListResponseBody.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.d.ts → elasticIpListResponseBody.zod.d.ts} +8 -6
- package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.js → elasticIpListResponseBody.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.d.ts → elasticIpReleaseResource.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.js → elasticIpReleaseResource.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/error.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/error.zod.js +1 -1
- package/dist/compute/v2/generated/validators/errorStatus.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/errorStatus.zod.js +1 -1
- package/dist/compute/v2/generated/validators/existingBootVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/existingBootVolume.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{existingElasticIP.zod.d.ts → existingElasticIp.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{existingElasticIP.zod.js → existingElasticIp.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.js +3 -3
- package/dist/compute/v2/generated/validators/fieldViolation.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/fieldViolation.zod.js +1 -1
- package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.js +1 -1
- package/dist/compute/v2/generated/validators/generatedPassword.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/generatedPassword.zod.js +1 -1
- package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/imageId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{imageID.zod.js → imageId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/instance.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/instance.zod.js +25 -21
- package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.d.ts → instanceElasticIp.zod.d.ts} +4 -4
- package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.js → instanceElasticIp.zod.js} +5 -5
- package/dist/compute/v2/generated/validators/instanceFamily.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceFamily.zod.js +5 -5
- package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.js +1 -1
- package/dist/compute/v2/generated/validators/instanceFamilyId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{instanceFamilyID.zod.js → instanceFamilyId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/instanceId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{instanceID.zod.js → instanceId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/instanceRestriction.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceRestriction.zod.js +4 -4
- package/dist/compute/v2/generated/validators/instanceType.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceType.zod.js +9 -9
- package/dist/compute/v2/generated/validators/instanceTypeId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{instanceTypeID.zod.js → instanceTypeId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/instanceVolumeId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{instanceVolumeID.zod.js → instanceVolumeId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/internetChargeType.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/internetChargeType.zod.js +2 -2
- package/dist/compute/v2/generated/validators/ipv4HostAddress.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{iPv4HostAddress.zod.js → ipv4HostAddress.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/latestOperation.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/latestOperation.zod.js +1 -1
- package/dist/compute/v2/generated/validators/launchTemplate.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplate.zod.js +5 -5
- package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.js +5 -5
- package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.d.ts → launchTemplateElasticIp.zod.d.ts} +5 -5
- package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.js → launchTemplateElasticIp.zod.js} +6 -6
- package/dist/compute/v2/generated/validators/launchTemplateId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{launchTemplateID.zod.js → launchTemplateId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.js +5 -5
- package/dist/compute/v2/generated/validators/launchTemplateReference.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateReference.zod.js +3 -3
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +7 -7
- package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.js +7 -7
- package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listInstancesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listInstancesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listQuotasParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listQuotasParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listRegionsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listRegionsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.js +5 -5
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.js +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.js +3 -3
- package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.js +5 -5
- package/dist/compute/v2/generated/validators/listVolumesParams.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/listVolumesParams.zod.js +5 -5
- package/dist/compute/v2/generated/validators/money.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/money.zod.js +1 -1
- package/dist/compute/v2/generated/validators/networkInterface.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterface.zod.js +7 -7
- package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.js +5 -5
- package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{regionID.zod.d.ts → networkInterfaceAddressId.zod.d.ts} +7 -7
- package/dist/compute/v2/generated/validators/networkInterfaceAddressId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.js +7 -7
- package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.js +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{networkInterfaceID.zod.js → networkInterfaceId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/newBootVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/newBootVolume.zod.js +5 -5
- package/dist/compute/v2/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/newCompute.zod.js +3 -3
- package/dist/compute/v2/generated/validators/newDataVolume.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/newDataVolume.zod.js +3 -3
- package/dist/compute/v2/generated/validators/{newElasticIP.zod.d.ts → newElasticIp.zod.d.ts} +5 -5
- package/dist/compute/v2/generated/validators/{newElasticIP.zod.js → newElasticIp.zod.js} +6 -6
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +5 -5
- package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.js +5 -5
- package/dist/compute/v2/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/compute/v2/generated/validators/operationLogId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{operationLogID.zod.js → operationLogId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/operationLogResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/operationLogResource.zod.js +5 -5
- package/dist/compute/v2/generated/validators/passwordChoice.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/passwordChoice.zod.js +1 -1
- package/dist/compute/v2/generated/validators/performanceFormula.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/performanceFormula.zod.js +1 -1
- package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.js +1 -1
- package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/privateImageResource.zod.js +13 -9
- package/dist/compute/v2/generated/validators/projectQuota.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/projectQuota.zod.js +3 -3
- package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/publicImageResource.zod.js +5 -5
- package/dist/compute/v2/generated/validators/quotaResourceType.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/quotaResourceType.zod.js +1 -1
- package/dist/compute/v2/generated/validators/quotaSource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/quotaSource.zod.js +1 -1
- package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/regionId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{regionID.zod.js → regionId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/regionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/regionListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/regionResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/regionResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/releaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/releaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/releaseSetItem.zod.d.ts +2 -1
- package/dist/compute/v2/generated/validators/releaseSetItem.zod.js +4 -3
- package/dist/compute/v2/generated/validators/replaceNetworkInterfaceSecurityGroupsRequestBody.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/replaceNetworkInterfaceSecurityGroupsRequestBody.zod.js +44 -0
- package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.d.ts +50 -0
- package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.js +45 -0
- package/dist/compute/v2/generated/validators/{updateInstanceResponseBody.zod.d.ts → resizeInstanceResponseBody.zod.d.ts} +7 -5
- package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.js → resizeInstanceResponseBody.zod.js} +14 -10
- package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.d.ts +50 -0
- package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.js +44 -0
- package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.d.ts +50 -0
- package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.js +45 -0
- package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.js +3 -3
- package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/securityGroup.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/securityGroup.zod.js +5 -5
- package/dist/compute/v2/generated/validators/securityGroupId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{securityGroupID.zod.js → securityGroupId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/securityGroupIdOrWildcard.zod.d.ts +39 -0
- package/dist/compute/v2/generated/validators/{securityGroupIDOrWildcard.zod.js → securityGroupIdOrWildcard.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/securityGroupRule.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/securityGroupRule.zod.js +5 -5
- package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.js +1 -1
- package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/subnetId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{subnetID.zod.js → subnetId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/suppliedPassword.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/suppliedPassword.zod.js +1 -1
- package/dist/compute/v2/generated/validators/terminationPolicy.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/compute/v2/generated/validators/trafficUsage.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/trafficUsage.zod.js +1 -1
- package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.d.ts +1 -11
- package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.js +2 -10
- package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.d.ts +1 -3
- package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.js +2 -10
- package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.d.ts +1 -12
- package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.js +2 -15
- package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.js +5 -5
- package/dist/compute/v2/generated/validators/virtualPrivateCloudId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudIdOrWildcard.zod.d.ts +39 -0
- package/dist/compute/v2/generated/validators/{virtualPrivateCloudIDOrWildcard.zod.js → virtualPrivateCloudIdOrWildcard.zod.js} +4 -4
- package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.js +8 -8
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.js +44 -0
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.js +7 -7
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.js +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.js +5 -5
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeAttachment.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeAttachment.zod.js +7 -7
- package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeBackupId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{volumeBackupID.zod.js → volumeBackupId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/volumeBackupResource.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeBackupResource.zod.js +15 -11
- package/dist/compute/v2/generated/validators/{updateVolumeResponseBody.zod.d.ts → volumeChangeResponseBody.zod.d.ts} +7 -5
- package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.d.ts → volumeChangeResponseBody.zod.js} +14 -7
- package/dist/compute/v2/generated/validators/volumeId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{volumeID.zod.js → volumeId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumePerformance.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumePerformance.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/volumeResource.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeResource.zod.js +15 -11
- package/dist/compute/v2/generated/validators/volumeSnapshotId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{volumeSnapshotID.zod.js → volumeSnapshotId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.js +3 -3
- package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.d.ts +3 -1
- package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.js +15 -11
- package/dist/compute/v2/generated/validators/volumeTypeId.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/{volumeTypeID.zod.js → volumeTypeId.zod.js} +8 -8
- package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.js +1 -1
- package/dist/compute/v2/generated/validators/volumeTypeResource.zod.d.ts +1 -1
- package/dist/compute/v2/generated/validators/volumeTypeResource.zod.js +7 -7
- package/dist/membership/v1/generated/models.d.ts +5 -0
- package/dist/membership/v1/generated/schemas.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +5 -0
- package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +1 -0
- package/dist/routes.d.ts +59 -19
- package/dist/routes.js +65 -20
- package/package.json +1 -1
- package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/elasticIPID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/elasticIPLineID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/elasticIPLineID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/iPv4HostAddress.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/instanceFamilyID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/instanceID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/instanceTypeID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/instanceVolumeID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/launchTemplateID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/networkInterfaceID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/operationLogID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/securityGroupID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/securityGroupIDOrWildcard.zod.d.ts +0 -39
- package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/subnetID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/updateElasticIPRequestBody.zod.js +0 -48
- package/dist/compute/v2/generated/validators/updateElasticIPResponseBody.zod.js +0 -49
- package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.js +0 -49
- package/dist/compute/v2/generated/validators/updateVolumeResponseBody.zod.js +0 -49
- package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/virtualPrivateCloudIDOrWildcard.zod.d.ts +0 -39
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.js +0 -44
- package/dist/compute/v2/generated/validators/volumeBackupID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/volumeID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/volumeSnapshotID.zod.d.ts +0 -41
- package/dist/compute/v2/generated/validators/volumeTypeID.zod.d.ts +0 -41
|
@@ -43,12 +43,12 @@ export const Order = zod
|
|
|
43
43
|
currency: zod.string(),
|
|
44
44
|
type: zod
|
|
45
45
|
.enum(["new", "renew", "modify"])
|
|
46
|
-
.describe("`new` buys, `renew` extends
|
|
46
|
+
.describe("`new` buys, `renew` extends subscriptions, `modify` changes subscription items' configuration or billing terms."),
|
|
47
47
|
status: OrderStatus,
|
|
48
48
|
change_effective: zod
|
|
49
49
|
.enum(["none", "immediate", "period_end"])
|
|
50
50
|
.optional()
|
|
51
|
-
.describe("When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the
|
|
51
|
+
.describe("When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the item renews or ends with its subscription as usual."),
|
|
52
52
|
expires_at: zod.iso
|
|
53
53
|
.datetime({ offset: true })
|
|
54
54
|
.nullish()
|
|
@@ -13,6 +13,7 @@ export declare const OrderItem: zod.ZodObject<{
|
|
|
13
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
14
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
15
15
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
16
|
+
subscription_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
16
17
|
interval: zod.ZodEnum<{
|
|
17
18
|
none: "none";
|
|
18
19
|
day: "day";
|
|
@@ -11,7 +11,7 @@ import { Money } from "./money.zod.js";
|
|
|
11
11
|
import { OrderItemStatus } from "./orderItemStatus.zod.js";
|
|
12
12
|
import { PriceType } from "./priceType.zod.js";
|
|
13
13
|
import { Product } from "./product.zod.js";
|
|
14
|
-
import {
|
|
14
|
+
import { ProductId } from "./productId.zod.js";
|
|
15
15
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
16
16
|
import { UsageType } from "./usageType.zod.js";
|
|
17
17
|
export const orderItemPositionMin = 0;
|
|
@@ -30,7 +30,11 @@ export const OrderItem = zod
|
|
|
30
30
|
subscription_id: zod
|
|
31
31
|
.uuid()
|
|
32
32
|
.optional()
|
|
33
|
-
.describe("The Billing subscription
|
|
33
|
+
.describe("The Billing subscription the line belongs to: a new pending one, the existing one an added item joins, or the one renewed or changed, which keeps its ID. Absent for a purchase without a subscription."),
|
|
34
|
+
subscription_item_id: zod
|
|
35
|
+
.uuid()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("The subscription item the line created, renewed or changed, which keeps its ID. Absent for a purchase without a subscription."),
|
|
34
38
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
35
39
|
interval_count: zod.int().min(1).optional(),
|
|
36
40
|
cancellation_policy: CancellationPolicy.optional(),
|
|
@@ -65,7 +69,7 @@ export const OrderItem = zod
|
|
|
65
69
|
id: zod.uuid(),
|
|
66
70
|
order_id: zod.uuid().optional(),
|
|
67
71
|
price_id: zod.uuid(),
|
|
68
|
-
product_id:
|
|
72
|
+
product_id: ProductId.optional(),
|
|
69
73
|
product: Product.optional(),
|
|
70
74
|
plan_id: zod.uuid().describe("Which plan was bought."),
|
|
71
75
|
plan_name: zod.string().describe("The name when bought."),
|
|
@@ -85,4 +89,4 @@ export const OrderItem = zod
|
|
|
85
89
|
.describe("The end of that service period, exclusive."),
|
|
86
90
|
status: OrderItemStatus,
|
|
87
91
|
})
|
|
88
|
-
.describe("The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription from placement.");
|
|
92
|
+
.describe("The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription and subscription item from placement.");
|
|
@@ -13,6 +13,7 @@ export declare const OrderItemList: zod.ZodObject<{
|
|
|
13
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
14
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
15
15
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
16
|
+
subscription_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
16
17
|
interval: zod.ZodEnum<{
|
|
17
18
|
none: "none";
|
|
18
19
|
day: "day";
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export const OrderItemStatus = zod
|
|
10
10
|
.enum(["pending", "completed", "failed", "canceled"])
|
|
11
|
-
.describe("`pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription is canceled.");
|
|
11
|
+
.describe("`pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription item is canceled.");
|
|
@@ -85,6 +85,7 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
85
85
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
86
86
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
87
87
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
88
|
+
subscription_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
88
89
|
interval: zod.ZodEnum<{
|
|
89
90
|
none: "none";
|
|
90
91
|
day: "day";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { PlanFeature } from "./planFeature.zod.js";
|
|
10
10
|
import { Product } from "./product.zod.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ProductId } from "./productId.zod.js";
|
|
12
12
|
export const Plan = zod.strictObject({
|
|
13
13
|
active: zod
|
|
14
14
|
.boolean()
|
|
@@ -17,7 +17,7 @@ export const Plan = zod.strictObject({
|
|
|
17
17
|
product: Product,
|
|
18
18
|
features: zod.array(PlanFeature),
|
|
19
19
|
id: zod.uuid(),
|
|
20
|
-
product_id:
|
|
20
|
+
product_id: ProductId,
|
|
21
21
|
name: zod.string(),
|
|
22
22
|
description: zod.string().optional(),
|
|
23
23
|
});
|
|
@@ -12,7 +12,7 @@ import { Money } from "./money.zod.js";
|
|
|
12
12
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
13
13
|
import { PriceType } from "./priceType.zod.js";
|
|
14
14
|
import { Product } from "./product.zod.js";
|
|
15
|
-
import {
|
|
15
|
+
import { ProductId } from "./productId.zod.js";
|
|
16
16
|
import { Rate } from "./rate.zod.js";
|
|
17
17
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
18
18
|
import { Tier } from "./tier.zod.js";
|
|
@@ -44,7 +44,7 @@ export const Price = zod.strictObject({
|
|
|
44
44
|
.int()
|
|
45
45
|
.optional()
|
|
46
46
|
.describe("Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies."),
|
|
47
|
-
product_id:
|
|
47
|
+
product_id: ProductId.optional(),
|
|
48
48
|
id: zod.uuid(),
|
|
49
49
|
plan_id: zod.uuid(),
|
|
50
50
|
currency: zod.string(),
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { PriceType } from "./priceType.zod.js";
|
|
10
|
-
import {
|
|
10
|
+
import { ProductId } from "./productId.zod.js";
|
|
11
11
|
import { UsageType } from "./usageType.zod.js";
|
|
12
12
|
export const priceSearchCurrencyMin = 3;
|
|
13
13
|
export const priceSearchCurrencyMax = 3;
|
|
@@ -35,7 +35,7 @@ export const PriceSearch = zod
|
|
|
35
35
|
.max(priceSearchPlanIdsMax)
|
|
36
36
|
.optional()
|
|
37
37
|
.describe("Only prices of these plans."),
|
|
38
|
-
product_id:
|
|
38
|
+
product_id: ProductId.optional(),
|
|
39
39
|
type: PriceType.optional().describe("Narrows to one price type."),
|
|
40
40
|
usage_type: UsageType.optional().describe("Narrows to one usage type."),
|
|
41
41
|
dimensions: zod
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
import {
|
|
9
|
+
import { ProductId } from "./productId.zod.js";
|
|
10
10
|
export const Product = zod.strictObject({
|
|
11
|
-
id:
|
|
11
|
+
id: ProductId,
|
|
12
12
|
name: zod.string(),
|
|
13
13
|
description: zod.string().optional(),
|
|
14
14
|
});
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
9
|
+
export declare const ProductIdMax = 64;
|
|
10
|
+
export declare const ProductIdRegExp: RegExp;
|
|
11
|
+
export declare const ProductId: zod.ZodString;
|
|
12
|
+
export type ProductId = zod.input<typeof ProductId>;
|
|
13
|
+
export type ProductIdOutput = zod.output<typeof ProductId>;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
9
|
+
export const ProductIdMax = 64;
|
|
10
|
+
export const ProductIdRegExp = new RegExp("^[a-z][a-z0-9]*(-[a-z0-9]+)*$");
|
|
11
|
+
export const ProductId = zod
|
|
12
12
|
.string()
|
|
13
13
|
.min(1)
|
|
14
|
-
.max(
|
|
15
|
-
.regex(
|
|
14
|
+
.max(ProductIdMax)
|
|
15
|
+
.regex(ProductIdRegExp)
|
|
16
16
|
.describe("The platform service's fixed identifier, such as compute, canopy or assistant.");
|
|
@@ -41,6 +41,7 @@ export declare const Quote: zod.ZodObject<{
|
|
|
41
41
|
tax_included_amount: zod.ZodString;
|
|
42
42
|
index: zod.ZodInt;
|
|
43
43
|
subscription_id: zod.ZodNullable<zod.ZodUUID>;
|
|
44
|
+
subscription_item_id: zod.ZodNullable<zod.ZodUUID>;
|
|
44
45
|
product_id: zod.ZodString;
|
|
45
46
|
plan_id: zod.ZodUUID;
|
|
46
47
|
price_id: zod.ZodUUID;
|
|
@@ -79,7 +80,13 @@ export declare const Quote: zod.ZodObject<{
|
|
|
79
80
|
renewals: zod.ZodArray<zod.ZodObject<{
|
|
80
81
|
index: zod.ZodInt;
|
|
81
82
|
subscription_id: zod.ZodUUID;
|
|
82
|
-
|
|
83
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
84
|
+
subscription_item_id: zod.ZodUUID;
|
|
85
|
+
plan_id: zod.ZodUUID;
|
|
86
|
+
plan_name: zod.ZodString;
|
|
87
|
+
price_id: zod.ZodUUID;
|
|
88
|
+
amount: zod.ZodString;
|
|
89
|
+
}, zod.z.core.$strict>>;
|
|
83
90
|
interval: zod.ZodEnum<{
|
|
84
91
|
day: "day";
|
|
85
92
|
month: "month";
|
|
@@ -29,7 +29,7 @@ export const Quote = zod
|
|
|
29
29
|
proration_date: zod.iso
|
|
30
30
|
.datetime({ offset: true })
|
|
31
31
|
.nullable()
|
|
32
|
-
.describe("Immediate changes only; null otherwise. The instant
|
|
32
|
+
.describe("Immediate changes and items added to an existing subscription only; null otherwise. The instant they are priced from; pass it when confirming the Checkout Session so it is priced from the same instant."),
|
|
33
33
|
tax_status: zod
|
|
34
34
|
.enum(["complete", "requires_location_inputs"])
|
|
35
35
|
.describe("`complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included."),
|
|
@@ -10,7 +10,7 @@ export declare const quoteChangeInputPriceLookupKeyMax = 128;
|
|
|
10
10
|
export declare const quoteChangeInputPlanLookupKeyMax = 128;
|
|
11
11
|
export declare const quoteChangeInputQuantityRegExp: RegExp;
|
|
12
12
|
export declare const QuoteChangeInput: zod.ZodObject<{
|
|
13
|
-
|
|
13
|
+
subscription_item_id: zod.ZodUUID;
|
|
14
14
|
price_lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
15
15
|
plan_lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
16
16
|
price_id: zod.ZodOptional<zod.ZodUUID>;
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
10
10
|
import { PriceType } from "./priceType.zod.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ProductId } from "./productId.zod.js";
|
|
12
12
|
import { UsageType } from "./usageType.zod.js";
|
|
13
13
|
export const quoteChangeInputPriceLookupKeyMax = 128;
|
|
14
14
|
export const quoteChangeInputPlanLookupKeyMax = 128;
|
|
15
15
|
export const quoteChangeInputQuantityRegExp = new RegExp("^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$");
|
|
16
16
|
export const QuoteChangeInput = zod
|
|
17
17
|
.strictObject({
|
|
18
|
-
|
|
18
|
+
subscription_item_id: zod.uuid(),
|
|
19
19
|
price_lookup_key: zod.string().min(1).max(quoteChangeInputPriceLookupKeyMax).optional(),
|
|
20
20
|
plan_lookup_key: zod.string().min(1).max(quoteChangeInputPlanLookupKeyMax).optional(),
|
|
21
21
|
price_id: zod.uuid().optional(),
|
|
22
|
-
product_id:
|
|
22
|
+
product_id: ProductId.optional(),
|
|
23
23
|
plan_id: zod.uuid().optional(),
|
|
24
|
-
price_type: PriceType.optional().describe("Selects the price type instead of keeping the
|
|
25
|
-
usage_type: UsageType.optional().describe("Selects the usage type instead of keeping the
|
|
24
|
+
price_type: PriceType.optional().describe("Selects the price type instead of keeping the item's."),
|
|
25
|
+
usage_type: UsageType.optional().describe("Selects the usage type instead of keeping the item's."),
|
|
26
26
|
interval: zod.enum(["none", "day", "month", "year"]).optional(),
|
|
27
27
|
interval_count: zod.int().min(1).optional(),
|
|
28
28
|
cancellation_policy: CancellationPolicy.optional().describe("Selects among licensed prices with otherwise identical billing terms."),
|
|
@@ -33,6 +33,6 @@ export const QuoteChangeInput = zod
|
|
|
33
33
|
dimensions: zod
|
|
34
34
|
.record(zod.string(), zod.string())
|
|
35
35
|
.optional()
|
|
36
|
-
.describe("The dimension values after the change, given in full; omit to keep the
|
|
36
|
+
.describe("The dimension values after the change, given in full; omit to keep the item's."),
|
|
37
37
|
})
|
|
38
|
-
.describe("The new terms of one subscription. Identify the price, or the plan to select one from, as for a proposed item. Without a price or billing terms, the plan's price with the
|
|
38
|
+
.describe("The new terms of one subscription item. Identify the price, or the plan to select one from, as for a proposed item. Without a price or billing terms, the plan's price with the item's price type, usage type, interval, interval count and cancellation policy is selected. Omitted dimensions keep the item's.");
|
|
@@ -10,6 +10,6 @@ import { Money } from "./money.zod.js";
|
|
|
10
10
|
export const QuoteDowngradeRefund = zod
|
|
11
11
|
.strictObject({
|
|
12
12
|
refundable_amount: Money.describe("Returned to the original payment sources, tax paid on it included."),
|
|
13
|
-
forfeited_amount: Money.describe("Before tax, the part of the excess that the
|
|
13
|
+
forfeited_amount: Money.describe("Before tax, the part of the excess that the item's refund terms do not return."),
|
|
14
14
|
})
|
|
15
15
|
.describe("What an immediate downgrade would refund, estimated as of `proration_date`. The refund itself is determined when the change takes effect.");
|
|
@@ -12,6 +12,7 @@ export declare const QuoteItem: zod.ZodObject<{
|
|
|
12
12
|
tax_included_amount: zod.ZodString;
|
|
13
13
|
index: zod.ZodInt;
|
|
14
14
|
subscription_id: zod.ZodNullable<zod.ZodUUID>;
|
|
15
|
+
subscription_item_id: zod.ZodNullable<zod.ZodUUID>;
|
|
15
16
|
product_id: zod.ZodString;
|
|
16
17
|
plan_id: zod.ZodUUID;
|
|
17
18
|
price_id: zod.ZodUUID;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Money } from "./money.zod.js";
|
|
10
10
|
import { PriceType } from "./priceType.zod.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ProductId } from "./productId.zod.js";
|
|
12
12
|
import { QuoteDowngradeRefund } from "./quoteDowngradeRefund.zod.js";
|
|
13
13
|
import { UsageType } from "./usageType.zod.js";
|
|
14
14
|
export const quoteItemIndexMin = 0;
|
|
@@ -23,8 +23,12 @@ export const QuoteItem = zod
|
|
|
23
23
|
subscription_id: zod
|
|
24
24
|
.uuid()
|
|
25
25
|
.nullable()
|
|
26
|
-
.describe("The subscription
|
|
27
|
-
|
|
26
|
+
.describe("The subscription the line belongs to when it changes an item or is added to an existing subscription; null when it opens a new one."),
|
|
27
|
+
subscription_item_id: zod
|
|
28
|
+
.uuid()
|
|
29
|
+
.nullable()
|
|
30
|
+
.describe("The subscription item changed; null for a new line."),
|
|
31
|
+
product_id: ProductId,
|
|
28
32
|
plan_id: zod.uuid(),
|
|
29
33
|
price_id: zod
|
|
30
34
|
.uuid()
|
|
@@ -36,6 +36,7 @@ export declare const QuoteItemInput: zod.ZodObject<{
|
|
|
36
36
|
}>>;
|
|
37
37
|
quantity: zod.ZodString;
|
|
38
38
|
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
39
|
+
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
39
40
|
}, zod.z.core.$strict>;
|
|
40
41
|
export type QuoteItemInput = zod.input<typeof QuoteItemInput>;
|
|
41
42
|
export type QuoteItemInputOutput = zod.output<typeof QuoteItemInput>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { CancellationPolicy } from "./cancellationPolicy.zod.js";
|
|
10
10
|
import { PriceType } from "./priceType.zod.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ProductId } from "./productId.zod.js";
|
|
12
12
|
import { UsageType } from "./usageType.zod.js";
|
|
13
13
|
export const quoteItemInputPriceLookupKeyMax = 128;
|
|
14
14
|
export const quoteItemInputPlanLookupKeyMax = 128;
|
|
@@ -18,7 +18,7 @@ export const QuoteItemInput = zod
|
|
|
18
18
|
price_lookup_key: zod.string().min(1).max(quoteItemInputPriceLookupKeyMax).optional(),
|
|
19
19
|
plan_lookup_key: zod.string().min(1).max(quoteItemInputPlanLookupKeyMax).optional(),
|
|
20
20
|
price_id: zod.uuid().optional(),
|
|
21
|
-
product_id:
|
|
21
|
+
product_id: ProductId.optional(),
|
|
22
22
|
plan_id: zod.uuid().optional(),
|
|
23
23
|
price_type: PriceType.optional().describe("Narrows the selection when a plan offers more than one price type."),
|
|
24
24
|
usage_type: UsageType.optional().describe("Narrows the selection when a plan offers more than one usage type."),
|
|
@@ -30,5 +30,9 @@ export const QuoteItemInput = zod
|
|
|
30
30
|
.record(zod.string(), zod.string())
|
|
31
31
|
.optional()
|
|
32
32
|
.describe("The dimension values of what is bought, such as region and instance type. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused with `BILLING_PRICE_UNAVAILABLE` rather than priced at zero. Prices are set per currency, and a currency may not offer some combinations at all, for example in a region it does not sell to."),
|
|
33
|
+
subscription_id: zod
|
|
34
|
+
.uuid()
|
|
35
|
+
.optional()
|
|
36
|
+
.describe("Price the line as a new item added to this existing subscription, as the owning service adds it when buying for a resource the subscription pays for. Needs `billing_account_id`, which must currently pay for the subscription. A licensed line is priced up to the subscription's `current_term_end`, the rest of the current period in proportion to the time left from `proration_date`, and must have the subscription's interval and interval count; a metered line has no immediate charge; added to a trialing subscription, the line is free until the trial ends."),
|
|
33
37
|
})
|
|
34
38
|
.describe("Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. A metered item includes only any setup charge; its usage is estimated with `estimate-usage`.");
|
|
@@ -10,7 +10,6 @@ export declare const quoteRenewalPeriodsDefault = 1;
|
|
|
10
10
|
export declare const quoteRenewalPeriodsMax = 100;
|
|
11
11
|
export declare const QuoteRenewal: zod.ZodObject<{
|
|
12
12
|
subscription_id: zod.ZodUUID;
|
|
13
|
-
price_id: zod.ZodOptional<zod.ZodUUID>;
|
|
14
13
|
interval: zod.ZodOptional<zod.ZodEnum<{
|
|
15
14
|
day: "day";
|
|
16
15
|
month: "month";
|
|
@@ -12,10 +12,9 @@ export const quoteRenewalPeriodsMax = 100;
|
|
|
12
12
|
export const QuoteRenewal = zod
|
|
13
13
|
.strictObject({
|
|
14
14
|
subscription_id: zod.uuid(),
|
|
15
|
-
price_id: zod.uuid().optional(),
|
|
16
15
|
interval: zod.enum(["day", "month", "year"]).optional(),
|
|
17
16
|
interval_count: zod.int().min(1).optional(),
|
|
18
|
-
cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`,
|
|
17
|
+
cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`, renews every item at its price of that term with this cancellation policy."),
|
|
19
18
|
periods: zod
|
|
20
19
|
.int()
|
|
21
20
|
.min(1)
|
|
@@ -23,4 +22,4 @@ export const QuoteRenewal = zod
|
|
|
23
22
|
.default(quoteRenewalPeriodsDefault)
|
|
24
23
|
.describe("How many consecutive periods to renew for."),
|
|
25
24
|
})
|
|
26
|
-
.describe("Price renewing a licensed
|
|
25
|
+
.describe("Price renewing a whole subscription: every continuing licensed item. Give `interval` with\n`interval_count` to renew for another term at the price each item currently sells it for, with\nits own cancellation policy or the only price of that term. Naming the current term, or giving\nneither, renews every item at its agreed amount. A term an item does not sell is refused with\n409 `BILLING_RENEWAL_PRICE_UNAVAILABLE` and `meta.subscription_item_id`; prices the rule cannot\nchoose between, with 409 `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const QuoteRenewalItem: zod.ZodObject<{
|
|
10
|
+
subscription_item_id: zod.ZodUUID;
|
|
11
|
+
plan_id: zod.ZodUUID;
|
|
12
|
+
plan_name: zod.ZodString;
|
|
13
|
+
price_id: zod.ZodUUID;
|
|
14
|
+
amount: zod.ZodString;
|
|
15
|
+
}, zod.z.core.$strict>;
|
|
16
|
+
export type QuoteRenewalItem = zod.input<typeof QuoteRenewalItem>;
|
|
17
|
+
export type QuoteRenewalItemOutput = zod.output<typeof QuoteRenewalItem>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { Money } from "./money.zod.js";
|
|
10
|
+
export const QuoteRenewalItem = zod
|
|
11
|
+
.strictObject({
|
|
12
|
+
subscription_item_id: zod.uuid(),
|
|
13
|
+
plan_id: zod.uuid(),
|
|
14
|
+
plan_name: zod.string(),
|
|
15
|
+
price_id: zod.uuid().describe("The price the item is charged under."),
|
|
16
|
+
amount: Money.describe("The price of the periods for this item before the account's discounts."),
|
|
17
|
+
})
|
|
18
|
+
.describe("One item of a quoted renewal.");
|
|
@@ -9,7 +9,13 @@ import * as zod from "zod";
|
|
|
9
9
|
export declare const QuoteRenewalResult: zod.ZodObject<{
|
|
10
10
|
index: zod.ZodInt;
|
|
11
11
|
subscription_id: zod.ZodUUID;
|
|
12
|
-
|
|
12
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
13
|
+
subscription_item_id: zod.ZodUUID;
|
|
14
|
+
plan_id: zod.ZodUUID;
|
|
15
|
+
plan_name: zod.ZodString;
|
|
16
|
+
price_id: zod.ZodUUID;
|
|
17
|
+
amount: zod.ZodString;
|
|
18
|
+
}, zod.z.core.$strict>>;
|
|
13
19
|
interval: zod.ZodEnum<{
|
|
14
20
|
day: "day";
|
|
15
21
|
month: "month";
|
|
@@ -7,18 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Money } from "./money.zod.js";
|
|
10
|
+
import { QuoteRenewalItem } from "./quoteRenewalItem.zod.js";
|
|
10
11
|
export const QuoteRenewalResult = zod
|
|
11
12
|
.strictObject({
|
|
12
13
|
index: zod.int().describe("Which renewal of the request this answers."),
|
|
13
14
|
subscription_id: zod.uuid(),
|
|
14
|
-
|
|
15
|
+
items: zod
|
|
16
|
+
.array(QuoteRenewalItem)
|
|
17
|
+
.describe("Each item the renewal covers, with the price it is charged under."),
|
|
15
18
|
interval: zod.enum(["day", "month", "year"]),
|
|
16
19
|
interval_count: zod.int(),
|
|
17
20
|
periods: zod.int(),
|
|
18
|
-
amount: Money.describe("The price of the periods before the account's discounts, with any discount the
|
|
21
|
+
amount: Money.describe("The price of the periods for every item before the account's discounts, with any discount the items carry already reflected; includes tax only where the price does."),
|
|
19
22
|
discount_amount: Money.describe("The reduction from a discount the account holds."),
|
|
20
23
|
tax_amount: Money.describe("Tax on the discounted amount."),
|
|
21
24
|
tax_included_amount: Money.describe("The part of `tax_amount` already contained in `amount`."),
|
|
22
25
|
total: Money.describe("What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less\n`tax_included_amount`."),
|
|
23
26
|
})
|
|
24
|
-
.describe("What renewing
|
|
27
|
+
.describe("What renewing one subscription would charge as part of the quoted renewal order.");
|
|
@@ -42,10 +42,10 @@ export declare const QuoteRequest: zod.ZodObject<{
|
|
|
42
42
|
}>>;
|
|
43
43
|
quantity: zod.ZodString;
|
|
44
44
|
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
45
|
+
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
45
46
|
}, zod.z.core.$strict>>>;
|
|
46
47
|
renewals: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
47
48
|
subscription_id: zod.ZodUUID;
|
|
48
|
-
price_id: zod.ZodOptional<zod.ZodUUID>;
|
|
49
49
|
interval: zod.ZodOptional<zod.ZodEnum<{
|
|
50
50
|
day: "day";
|
|
51
51
|
month: "month";
|
|
@@ -59,7 +59,7 @@ export declare const QuoteRequest: zod.ZodObject<{
|
|
|
59
59
|
periods: zod.ZodDefault<zod.ZodInt>;
|
|
60
60
|
}, zod.z.core.$strict>>>;
|
|
61
61
|
changes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
62
|
-
|
|
62
|
+
subscription_item_id: zod.ZodUUID;
|
|
63
63
|
price_lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
64
64
|
plan_lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
65
65
|
price_id: zod.ZodOptional<zod.ZodUUID>;
|
|
@@ -40,13 +40,13 @@ export const QuoteRequest = zod
|
|
|
40
40
|
.min(1)
|
|
41
41
|
.max(quoteRequestRenewalsMax)
|
|
42
42
|
.optional()
|
|
43
|
-
.describe("Preview renewing these subscriptions, each at most once;
|
|
43
|
+
.describe("Preview renewing these subscriptions together in one renewal order, as a renewal Checkout Session does, each at most once; `total` is that order's. Each must currently be paid by `billing_account_id`, be yours to read as the owner of that account or a member of the subscription's project, and all must belong to the same project and service. To apply a promotion code, create a renewal Checkout Session and quote it."),
|
|
44
44
|
changes: zod
|
|
45
45
|
.array(QuoteChangeInput)
|
|
46
46
|
.min(1)
|
|
47
47
|
.max(quoteRequestChangesMax)
|
|
48
48
|
.optional()
|
|
49
|
-
.describe("Preview changing these
|
|
49
|
+
.describe("Preview changing these subscription items in one order, each at most once. Each must currently be paid by `billing_account_id` and be yours to read, as the owner of that account or a member of the subscription's project; all must belong to the same project, or all to no project."),
|
|
50
50
|
change_effective: zod
|
|
51
51
|
.enum(["immediate", "period_end"])
|
|
52
52
|
.optional()
|
|
@@ -54,4 +54,4 @@ export const QuoteRequest = zod
|
|
|
54
54
|
address: QuoteAddress.optional().describe("Only with `currency`. Where the customer is, to include the tax that would be added there for a customer who is not tax exempt; `tax_status` is then `complete`. Refused with `billing_account_id`, whose invoice contact decides tax."),
|
|
55
55
|
promotion_code: zod.string().min(1).max(quoteRequestPromotionCodeMax).optional(),
|
|
56
56
|
})
|
|
57
|
-
.describe("Quote proposed items, changes or renewals: exactly one of them. Give exactly one of `billing_account_id` and `currency`; changes and
|
|
57
|
+
.describe("Quote proposed items, changes or renewals: exactly one of them. Give exactly one of `billing_account_id` and `currency`; changes, renewals and items added to an existing subscription need the account. Promotion codes apply to proposed items and changes. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.");
|
|
@@ -20,4 +20,4 @@ export const RefundReason = zod
|
|
|
20
20
|
"payment_not_applied",
|
|
21
21
|
"operator",
|
|
22
22
|
])
|
|
23
|
-
.describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund\n policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining\n time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the\n length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the\n remaining time.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
|
|
23
|
+
.describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription item, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund\n policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining\n time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the\n length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the\n remaining time.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
|
|
@@ -18,17 +18,17 @@ export const RenewRequest = zod.strictObject({
|
|
|
18
18
|
.int()
|
|
19
19
|
.min(1)
|
|
20
20
|
.default(renewRequestPeriodsDefault)
|
|
21
|
-
.describe("How many further periods to buy, each at the price
|
|
21
|
+
.describe("How many further periods to buy for every renewed item, each at the price it already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead."),
|
|
22
22
|
interval_count: zod
|
|
23
23
|
.int()
|
|
24
24
|
.min(1)
|
|
25
25
|
.optional()
|
|
26
|
-
.describe("Renew for a term of this length instead, at the price currently sold for it. Give\n`interval` with it.\n\nLeaving both out renews at the price
|
|
26
|
+
.describe("Renew for a term of this length instead, at the price currently sold for it. Give\n`interval` with it.\n\nLeaving both out renews every item at the price it already bills at, which a later price\nchange does not affect. Naming a term that differs from the current one is a fresh\nchoice, so every item is bought at today's price for that term, with its own cancellation\npolicy or, without one, the only price of that term. Naming the current term changes\nnothing. A term an item does not sell is refused with 409 `BILLING_RENEWAL_PRICE_UNAVAILABLE`\nand `meta.subscription_item_id`; prices the rule cannot choose between, with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.\n\nList the terms on offer with the renewal options operation."),
|
|
27
27
|
interval: zod
|
|
28
28
|
.enum(["day", "month", "year"])
|
|
29
29
|
.optional()
|
|
30
30
|
.describe("The unit interval_count counts in."),
|
|
31
|
-
cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`,
|
|
31
|
+
cancellation_policy: CancellationPolicy.optional().describe("With `interval` and `interval_count`, renews every item at its price of that term with this cancellation policy."),
|
|
32
32
|
payment_method_id: zod.uuid().optional(),
|
|
33
33
|
use_balance: zod
|
|
34
34
|
.boolean()
|
package/dist/billing/v1/generated/validators/{renewalPriceList.zod.d.ts → renewalOption.zod.d.ts}
RENAMED
|
@@ -6,8 +6,20 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const RenewalOption: zod.ZodObject<{
|
|
10
|
+
interval: zod.ZodEnum<{
|
|
11
|
+
day: "day";
|
|
12
|
+
month: "month";
|
|
13
|
+
year: "year";
|
|
14
|
+
}>;
|
|
15
|
+
interval_count: zod.ZodInt;
|
|
16
|
+
current: zod.ZodBoolean;
|
|
17
|
+
amount: zod.ZodString;
|
|
18
|
+
currency: zod.ZodString;
|
|
10
19
|
items: zod.ZodArray<zod.ZodObject<{
|
|
20
|
+
subscription_item_id: zod.ZodUUID;
|
|
21
|
+
price_id: zod.ZodNullable<zod.ZodUUID>;
|
|
22
|
+
amount: zod.ZodString;
|
|
11
23
|
cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
|
|
12
24
|
immediate: "immediate";
|
|
13
25
|
period_end: "period_end";
|
|
@@ -19,22 +31,7 @@ export declare const RenewalPriceList: zod.ZodObject<{
|
|
|
19
31
|
}>>;
|
|
20
32
|
short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
|
|
21
33
|
short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
22
|
-
price_id: zod.ZodUUID;
|
|
23
|
-
interval_count: zod.ZodInt;
|
|
24
|
-
interval: zod.ZodEnum<{
|
|
25
|
-
day: "day";
|
|
26
|
-
month: "month";
|
|
27
|
-
year: "year";
|
|
28
|
-
}>;
|
|
29
|
-
amount: zod.ZodOptional<zod.ZodString>;
|
|
30
|
-
currency: zod.ZodOptional<zod.ZodString>;
|
|
31
|
-
current: zod.ZodBoolean;
|
|
32
34
|
}, zod.z.core.$strict>>;
|
|
33
|
-
pagination: zod.ZodObject<{
|
|
34
|
-
page: zod.ZodInt;
|
|
35
|
-
page_size: zod.ZodInt;
|
|
36
|
-
total_count: zod.ZodOptional<zod.ZodInt>;
|
|
37
|
-
}, zod.z.core.$strict>;
|
|
38
35
|
}, zod.z.core.$strict>;
|
|
39
|
-
export type
|
|
40
|
-
export type
|
|
36
|
+
export type RenewalOption = zod.input<typeof RenewalOption>;
|
|
37
|
+
export type RenewalOptionOutput = zod.output<typeof RenewalOption>;
|