@leaflow/sdk 0.212.0 → 0.213.1
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
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { ActiveResourceStatus } from "./validators/activeResourceStatus.zod.js";
|
|
10
10
|
import { AllowanceStatus } from "./validators/allowanceStatus.zod.js";
|
|
11
|
-
import { AutoRenewSet } from "./validators/autoRenewSet.zod.js";
|
|
12
11
|
import { BillingAccountCreate } from "./validators/billingAccountCreate.zod.js";
|
|
13
12
|
import { BillingAccountStatus } from "./validators/billingAccountStatus.zod.js";
|
|
14
13
|
import { BillingAccountUpdate } from "./validators/billingAccountUpdate.zod.js";
|
|
@@ -34,6 +33,7 @@ import { RenewRequest } from "./validators/renewRequest.zod.js";
|
|
|
34
33
|
import { SetProjectAssignmentRequest } from "./validators/setProjectAssignmentRequest.zod.js";
|
|
35
34
|
import { StatementStatus } from "./validators/statementStatus.zod.js";
|
|
36
35
|
import { SubscriptionStatus } from "./validators/subscriptionStatus.zod.js";
|
|
36
|
+
import { SubscriptionUpdate } from "./validators/subscriptionUpdate.zod.js";
|
|
37
37
|
import { TopUpCreate } from "./validators/topUpCreate.zod.js";
|
|
38
38
|
import { TopUpStatus } from "./validators/topUpStatus.zod.js";
|
|
39
39
|
import { TransactionStatus } from "./validators/transactionStatus.zod.js";
|
|
@@ -861,17 +861,24 @@ export const ListUsageChargesQueryParams = zod.strictObject({
|
|
|
861
861
|
statement_id: zod.uuid().optional(),
|
|
862
862
|
});
|
|
863
863
|
/**
|
|
864
|
-
* Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Deleted subscriptions are not listed.
|
|
864
|
+
* Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Each subscription includes its items. Deleted subscriptions are not listed.
|
|
865
865
|
* @summary List subscriptions
|
|
866
866
|
*/
|
|
867
|
+
export const listSubscriptionsQuerySubscriptionIdsMax = 200;
|
|
867
868
|
export const listSubscriptionsQueryPageDefault = 1;
|
|
868
869
|
export const listSubscriptionsQueryPageMax = 2147483647;
|
|
869
870
|
export const listSubscriptionsQueryPageSizeDefault = 50;
|
|
870
871
|
export const listSubscriptionsQueryPageSizeMax = 200;
|
|
871
872
|
export const listSubscriptionsQueryProjectIdsMax = 100;
|
|
872
|
-
export const listSubscriptionsQueryStatusMax =
|
|
873
|
+
export const listSubscriptionsQueryStatusMax = 7;
|
|
873
874
|
export const ListSubscriptionsQueryParams = zod.strictObject({
|
|
874
875
|
expiring_before: zod.iso.datetime({ offset: true }).optional(),
|
|
876
|
+
subscription_ids: zod
|
|
877
|
+
.array(zod.uuid())
|
|
878
|
+
.min(1)
|
|
879
|
+
.max(listSubscriptionsQuerySubscriptionIdsMax)
|
|
880
|
+
.optional()
|
|
881
|
+
.describe("Only these subscriptions, such as those of the resources shown on one page. Comma-separated."),
|
|
875
882
|
page: zod
|
|
876
883
|
.int()
|
|
877
884
|
.min(1)
|
|
@@ -902,30 +909,47 @@ export const ListSubscriptionsQueryParams = zod.strictObject({
|
|
|
902
909
|
.describe("Only subscriptions in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`."),
|
|
903
910
|
});
|
|
904
911
|
/**
|
|
905
|
-
* A subscription paid by your billing account or of a project you are a member of. Deleted subscriptions are reported as not found.
|
|
912
|
+
* A subscription paid by your billing account or of a project you are a member of, with its items. Deleted subscriptions are reported as not found.
|
|
906
913
|
* @summary Get subscription
|
|
907
914
|
*/
|
|
908
915
|
export const GetSubscriptionParams = zod.strictObject({
|
|
909
916
|
subscriptionId: zod.uuid(),
|
|
910
917
|
});
|
|
911
918
|
/**
|
|
912
|
-
*
|
|
919
|
+
* Changes the subscription's settings given in the request; settings left out keep their values. `auto_renew`
|
|
920
|
+
* turns automatic renewal on or off for the whole subscription, or, on a trialing subscription, whether the trial
|
|
921
|
+
* converts to paid. Turning it off does not shorten current_term_end and still allows manual renewal.
|
|
922
|
+
*
|
|
923
|
+
* `auto_renew` is refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning
|
|
924
|
+
* subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a subscription with only metered items, which
|
|
925
|
+
* continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id`
|
|
926
|
+
* while a cancellation of the whole subscription is open: creating it turned renewal off, and withdrawing it does
|
|
927
|
+
* not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its
|
|
928
|
+
* project with the project permission `billing:finance.manage`.
|
|
929
|
+
* @summary Update subscription
|
|
930
|
+
*/
|
|
931
|
+
export const UpdateSubscriptionParams = zod.strictObject({
|
|
932
|
+
subscriptionId: zod.uuid(),
|
|
933
|
+
});
|
|
934
|
+
export const UpdateSubscriptionBody = SubscriptionUpdate;
|
|
935
|
+
/**
|
|
936
|
+
* Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at, items and history are kept. Only the owner of the subscription's current billing account can delete it. A subscription that has not ended is refused with 409 `BILLING_SUBSCRIPTION_NOT_ENDED` and `status`. Repeating it keeps the original deleted_at. It sends no cleanup command and creates no refund.
|
|
913
937
|
* @summary Delete subscription
|
|
914
938
|
*/
|
|
915
939
|
export const DeleteSubscriptionParams = zod.strictObject({
|
|
916
940
|
subscriptionId: zod.uuid(),
|
|
917
941
|
});
|
|
918
942
|
/**
|
|
919
|
-
* Requests cancellation
|
|
920
|
-
* `proration_date` and `refundable_amount` of preview-cancellation for
|
|
921
|
-
* subscription's current billing account and to members of its project with the
|
|
922
|
-
* `billing:finance.manage`.
|
|
943
|
+
* Requests cancellation of every continuing item of the subscription on their agreed terms, with the same rules
|
|
944
|
+
* as creating a cancellation. Give the `proration_date` and `refundable_amount` of preview-cancellation for these
|
|
945
|
+
* items. Open to the owner of the subscription's current billing account and to members of its project with the
|
|
946
|
+
* project permission `billing:finance.manage`.
|
|
923
947
|
*
|
|
924
948
|
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
925
|
-
* subscription
|
|
926
|
-
* confirms the release; follow the returned cancellation.
|
|
927
|
-
*
|
|
928
|
-
* request while the cancellation is open returns it.
|
|
949
|
+
* subscription in service until its current term ends. The subscription becomes canceled when the service
|
|
950
|
+
* confirms the release; follow the returned cancellation. To cancel some items, or items released together across
|
|
951
|
+
* subscriptions, use create-cancellation; pending or provisioning purchases are canceled through their order.
|
|
952
|
+
* Repeating the request while the cancellation is open returns it.
|
|
929
953
|
* @summary Cancel subscription
|
|
930
954
|
*/
|
|
931
955
|
export const CancelSubscriptionParams = zod.strictObject({
|
|
@@ -933,7 +957,7 @@ export const CancelSubscriptionParams = zod.strictObject({
|
|
|
933
957
|
});
|
|
934
958
|
export const CancelSubscriptionBody = CancelSubscriptionRequest;
|
|
935
959
|
/**
|
|
936
|
-
* Newest first; members of a project list its cancellations with `project_ids`. Filter by `
|
|
960
|
+
* Newest first; members of a project list its cancellations with `project_ids`. Filter by `subscription_item_id` and `status=open` to find an item's cancellation in progress, or by `subscription_id` for every item of a subscription.
|
|
937
961
|
* @summary List cancellations
|
|
938
962
|
*/
|
|
939
963
|
export const listCancellationsQueryPageDefault = 1;
|
|
@@ -962,7 +986,11 @@ export const ListCancellationsQueryParams = zod.strictObject({
|
|
|
962
986
|
subscription_id: zod
|
|
963
987
|
.uuid()
|
|
964
988
|
.optional()
|
|
965
|
-
.describe("Only cancellations that include this subscription."),
|
|
989
|
+
.describe("Only cancellations that include an item of this subscription."),
|
|
990
|
+
subscription_item_id: zod
|
|
991
|
+
.uuid()
|
|
992
|
+
.optional()
|
|
993
|
+
.describe("Only cancellations that include this subscription item."),
|
|
966
994
|
status: zod
|
|
967
995
|
.array(zod.enum(["open", "requested", "scheduled", "releasing", "completed", "canceled", "failed"]))
|
|
968
996
|
.min(1)
|
|
@@ -977,88 +1005,93 @@ export const ListCancellationsQueryParams = zod.strictObject({
|
|
|
977
1005
|
.describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
|
|
978
1006
|
});
|
|
979
1007
|
/**
|
|
980
|
-
* Ends
|
|
981
|
-
*
|
|
982
|
-
* owner of the
|
|
983
|
-
* permission `billing:finance.manage`.
|
|
1008
|
+
* Ends subscription items of one service together, from one subscription or several. Deleting a resource is an
|
|
1009
|
+
* `immediate` cancellation of every item released with it, such as a server with its disks or an address with
|
|
1010
|
+
* its bandwidth. Open to the owner of the items' current billing account and to members of their project with
|
|
1011
|
+
* the project permission `billing:finance.manage`.
|
|
984
1012
|
*
|
|
985
|
-
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the
|
|
986
|
-
* term, for `period_end
|
|
987
|
-
* sources under each
|
|
988
|
-
* and is not reduced by service used during release.
|
|
1013
|
+
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the
|
|
1014
|
+
* subscription's current term, for `period_end`; until then the items are left out of renewals. When release is
|
|
1015
|
+
* confirmed, the unused value is returned to the original payment sources under each item's refund terms. For
|
|
1016
|
+
* `immediate` the refund is computed as of `proration_date` and is not reduced by service used during release.
|
|
1017
|
+
* Metered usage is charged until release. A subscription whose continuing items all end is canceled.
|
|
989
1018
|
*
|
|
990
|
-
* `mode` must be allowed for every
|
|
991
|
-
*
|
|
992
|
-
* the
|
|
1019
|
+
* `mode` must be allowed for every item. Metered and one-time items end only `immediate`. A licensed item ends
|
|
1020
|
+
* `period_end` while its subscription's paid term lasts, and `immediate` unless its terms allow only the end of
|
|
1021
|
+
* the paid term and that term has not ended. For `period_end` the paid terms of all items must end at the same
|
|
993
1022
|
* time.
|
|
994
1023
|
*
|
|
995
1024
|
* Refused with:
|
|
996
1025
|
*
|
|
997
|
-
* - 400 `BILLING_CANCELLATION_INVALID` when `
|
|
998
|
-
*
|
|
999
|
-
* - 409 `BILLING_CANCELLATION_CONFLICT` when
|
|
1026
|
+
* - 400 `BILLING_CANCELLATION_INVALID` when `items` or `proration_date` is invalid (`meta.field`), or the items
|
|
1027
|
+
* do not share one service, project, account and currency;
|
|
1028
|
+
* - 409 `BILLING_CANCELLATION_CONFLICT` when an item has not started or has ended;
|
|
1000
1029
|
* - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed, and `BILLING_CANCELLATION_TERMS_UNSET`
|
|
1001
|
-
* when a licensed
|
|
1030
|
+
* when a licensed item has no cancellation terms, both with `meta.subscription_item_id`;
|
|
1002
1031
|
* - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at different times;
|
|
1003
|
-
* - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when
|
|
1004
|
-
* (`meta.cancellation_id`)
|
|
1005
|
-
* switch (`meta.order_id`);
|
|
1006
|
-
* - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online renewal payment for one of
|
|
1032
|
+
* - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when an item is already being canceled
|
|
1033
|
+
* (`meta.cancellation_id`), its subscription is being reclaimed (`meta.reason` `reclaim_requested`), or the
|
|
1034
|
+
* item has a paid change waiting to switch (`meta.order_id`);
|
|
1035
|
+
* - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online renewal payment for one of their subscriptions is in
|
|
1036
|
+
* progress;
|
|
1007
1037
|
* - 409 `BILLING_CANCELLATION_REFUND_CHANGED` when the refund no longer equals `expected_refundable_amount`.
|
|
1008
1038
|
*
|
|
1009
|
-
* Repeating the request for the same
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1012
|
-
* @summary Cancel
|
|
1039
|
+
* Repeating the request for the same items, mode and amount while the cancellation is open returns it with 200.
|
|
1040
|
+
* When it covers every continuing item of a subscription, unpaid renewal orders of that subscription are
|
|
1041
|
+
* canceled with it and its automatic renewal is turned off.
|
|
1042
|
+
* @summary Cancel subscription items
|
|
1013
1043
|
*/
|
|
1014
1044
|
export const CreateCancellationBody = CancellationCreate;
|
|
1015
1045
|
/**
|
|
1016
|
-
* A cancellation paid by your billing account or of a project you are a member of, with its schedule, expected refundable amount and the outcome for each
|
|
1046
|
+
* A cancellation paid by your billing account or of a project you are a member of, with its schedule, expected refundable amount and the outcome for each item, including partial success.
|
|
1017
1047
|
* @summary Get a cancellation
|
|
1018
1048
|
*/
|
|
1019
1049
|
export const GetCancellationParams = zod.strictObject({
|
|
1020
1050
|
cancellationId: zod.uuid(),
|
|
1021
1051
|
});
|
|
1022
1052
|
/**
|
|
1023
|
-
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The
|
|
1053
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The items continue and renew with their subscriptions again; a subscription's automatic renewal, turned off when the cancellation covered all of its continuing items, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the items' current billing account and to members of their project with the project permission `billing:finance.manage`.
|
|
1024
1054
|
* @summary Withdraw a cancellation
|
|
1025
1055
|
*/
|
|
1026
|
-
export const
|
|
1056
|
+
export const DeleteCancellationParams = zod.strictObject({
|
|
1027
1057
|
cancellationId: zod.uuid(),
|
|
1028
1058
|
});
|
|
1029
1059
|
/**
|
|
1030
|
-
*
|
|
1031
|
-
* @summary List the terms
|
|
1060
|
+
* The current agreement first, then each other term every continuing licensed item sells in the subscription's currency. The current option keeps each item's recurring_amount; other options use current prices, each item taking the price of that term with its own cancellation policy, or the only price of that term. Amounts exclude tax and discounts. Open to the owner of the subscription's current billing account and to members of its project.
|
|
1061
|
+
* @summary List the terms the subscription can be renewed for
|
|
1032
1062
|
*/
|
|
1033
|
-
export const
|
|
1063
|
+
export const ListRenewalOptionsParams = zod.strictObject({
|
|
1034
1064
|
subscriptionId: zod.uuid(),
|
|
1035
1065
|
});
|
|
1036
|
-
export const
|
|
1037
|
-
export const
|
|
1038
|
-
export const
|
|
1039
|
-
export const
|
|
1040
|
-
export const
|
|
1066
|
+
export const listRenewalOptionsQueryPageDefault = 1;
|
|
1067
|
+
export const listRenewalOptionsQueryPageMax = 2147483647;
|
|
1068
|
+
export const listRenewalOptionsQueryPageSizeDefault = 50;
|
|
1069
|
+
export const listRenewalOptionsQueryPageSizeMax = 200;
|
|
1070
|
+
export const ListRenewalOptionsQueryParams = zod.strictObject({
|
|
1041
1071
|
page: zod
|
|
1042
1072
|
.int()
|
|
1043
1073
|
.min(1)
|
|
1044
|
-
.max(
|
|
1045
|
-
.default(
|
|
1074
|
+
.max(listRenewalOptionsQueryPageMax)
|
|
1075
|
+
.default(listRenewalOptionsQueryPageDefault)
|
|
1046
1076
|
.describe("1-based page number. Defaults to 1."),
|
|
1047
1077
|
page_size: zod
|
|
1048
1078
|
.int()
|
|
1049
1079
|
.min(1)
|
|
1050
|
-
.max(
|
|
1051
|
-
.default(
|
|
1080
|
+
.max(listRenewalOptionsQueryPageSizeMax)
|
|
1081
|
+
.default(listRenewalOptionsQueryPageSizeDefault)
|
|
1052
1082
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
1053
1083
|
});
|
|
1054
1084
|
/**
|
|
1055
|
-
* Buys
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1085
|
+
* Buys further periods for the whole subscription from current_term_end and pays for them at once: every
|
|
1086
|
+
* continuing licensed item renews, at its agreed recurring amount or, with a different interval, at the price each
|
|
1087
|
+
* item currently sells that term for, and the new terms are fixed on the order. Items with an open cancellation end
|
|
1088
|
+
* with the current term and are left out. Paid periods keep their value. A trialing subscription converts to paid
|
|
1089
|
+
* this way; renewed after its trial expired, its first paid period starts at payment.
|
|
1058
1090
|
*
|
|
1059
1091
|
* Without `payment_method_id`, the renewal is paid from credit grants and balance as `use_credits` and
|
|
1060
1092
|
* `use_balance` allow; when they cannot cover it, the request fails with `BILLING_INSUFFICIENT_FUNDS` and no
|
|
1061
|
-
* order is left. To apply a promotion code
|
|
1093
|
+
* order is left. To apply a promotion code, pay later, or renew several subscriptions in one order, create a
|
|
1094
|
+
* renewal Checkout Session.
|
|
1062
1095
|
*
|
|
1063
1096
|
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1064
1097
|
* project permission `billing:finance.manage`. Only the owner can pay with `payment_method_id`.
|
|
@@ -1070,14 +1103,6 @@ export const RenewSubscriptionParams = zod.strictObject({
|
|
|
1070
1103
|
subscriptionId: zod.uuid(),
|
|
1071
1104
|
});
|
|
1072
1105
|
export const RenewSubscriptionBody = RenewRequest;
|
|
1073
|
-
/**
|
|
1074
|
-
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:finance.manage`.
|
|
1075
|
-
* @summary Set auto renew
|
|
1076
|
-
*/
|
|
1077
|
-
export const SetAutoRenewParams = zod.strictObject({
|
|
1078
|
-
subscriptionId: zod.uuid(),
|
|
1079
|
-
});
|
|
1080
|
-
export const SetAutoRenewBody = AutoRenewSet;
|
|
1081
1106
|
/**
|
|
1082
1107
|
* Remaining usage quantities, such as bytes, seconds or tokens; members of a project list its allowances with `project_ids`. Applicable allowances are consumed before usage is charged: lower priority values first, then earlier expiry, then earlier issuance. Unused quantity expires without refund or carry-over. Promotional allowances apply to usage paid by their holding account; included allowances apply only to their subscription, also after its project moves to another billing account.
|
|
1083
1108
|
* @summary List allowances
|
|
@@ -1169,13 +1194,14 @@ export const ListCheckoutSessionsQueryParams = zod.strictObject({
|
|
|
1169
1194
|
.describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
|
|
1170
1195
|
});
|
|
1171
1196
|
/**
|
|
1172
|
-
* Opens a Checkout Session renewing
|
|
1173
|
-
*
|
|
1174
|
-
* the
|
|
1175
|
-
*
|
|
1176
|
-
* that
|
|
1197
|
+
* Opens a Checkout Session renewing one or more subscriptions in one order, such as a machine and the separately
|
|
1198
|
+
* bought volumes and elastic IPs attached to it, with periods and price chosen as in renewing. Every subscription
|
|
1199
|
+
* must be paid by the same billing account and belong to the same project and service. Nothing is charged until
|
|
1200
|
+
* you complete it, when a promotion code can be applied; each subscription then renews from its current_term_end
|
|
1201
|
+
* at that time. To renew one subscription at once from credit grants, balance or a payment method, renew the
|
|
1202
|
+
* subscription instead. Purchases and changes of a service's resources are created through that service.
|
|
1177
1203
|
*
|
|
1178
|
-
* Open to the owner of the
|
|
1204
|
+
* Open to the owner of the subscriptions' current billing account and to members of their project with the
|
|
1179
1205
|
* project permission `billing:finance.manage`. Keep `checkout_session_id` and read the session after an
|
|
1180
1206
|
* unknown outcome; creating it again conflicts.
|
|
1181
1207
|
* @summary Create a renewal Checkout Session
|
|
@@ -1334,7 +1360,7 @@ export const PreviewOrderRefundQueryParams = zod.strictObject({
|
|
|
1334
1360
|
* payment waiting for the payer is canceled with the order; one the gateway is processing is refused with
|
|
1335
1361
|
* `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Repeating the cancellation does not refund twice.
|
|
1336
1362
|
*
|
|
1337
|
-
* An accepted order is canceled by its owning service, and delivered items through subscription
|
|
1363
|
+
* An accepted order is canceled by its owning service, and delivered items through cancellation of their subscription items.
|
|
1338
1364
|
* Refunds are previewed with `preview-order-refund`. Open to the owner of the order's billing account and to members of its project.
|
|
1339
1365
|
* @summary Cancel order
|
|
1340
1366
|
*/
|
|
@@ -11,6 +11,7 @@ export declare const ActiveResource: zod.ZodObject<{
|
|
|
11
11
|
ended_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
12
12
|
suspended_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
13
13
|
state_changed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
14
|
+
subscription_item_id: zod.ZodUUID;
|
|
14
15
|
subscription_id: zod.ZodUUID;
|
|
15
16
|
resource_id: zod.ZodString;
|
|
16
17
|
product: zod.ZodObject<{
|
|
@@ -15,9 +15,10 @@ export const ActiveResource = zod
|
|
|
15
15
|
ended_at: zod.iso.datetime({ offset: true }).optional(),
|
|
16
16
|
suspended_at: zod.iso.datetime({ offset: true }).optional(),
|
|
17
17
|
state_changed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
18
|
-
|
|
18
|
+
subscription_item_id: zod
|
|
19
19
|
.uuid()
|
|
20
|
-
.describe("The metered subscription charged for this metering record."),
|
|
20
|
+
.describe("The metered subscription item charged for this metering record."),
|
|
21
|
+
subscription_id: zod.uuid().describe("The subscription the item belongs to."),
|
|
21
22
|
resource_id: zod.string(),
|
|
22
23
|
product: Product,
|
|
23
24
|
resource_type: zod
|
|
@@ -12,6 +12,7 @@ export declare const ActiveResourceList: zod.ZodObject<{
|
|
|
12
12
|
ended_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
13
13
|
suspended_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
14
14
|
state_changed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
15
|
+
subscription_item_id: zod.ZodUUID;
|
|
15
16
|
subscription_id: zod.ZodUUID;
|
|
16
17
|
resource_id: zod.ZodString;
|
|
17
18
|
product: zod.ZodObject<{
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const Allowance: zod.ZodObject<{
|
|
10
10
|
idempotency_key: zod.ZodOptional<zod.ZodString>;
|
|
11
|
+
subscription_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
11
12
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
12
13
|
id: zod.ZodUUID;
|
|
13
14
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
@@ -14,7 +14,11 @@ export const Allowance = zod.strictObject({
|
|
|
14
14
|
.string()
|
|
15
15
|
.optional()
|
|
16
16
|
.describe("Optional issuance key, unique within this billing account."),
|
|
17
|
-
|
|
17
|
+
subscription_item_id: zod
|
|
18
|
+
.uuid()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("The subscription item whose purchase includes the allowance; absent for an allowance not included in a purchase."),
|
|
21
|
+
subscription_id: zod.uuid().optional().describe("The subscription that item belongs to."),
|
|
18
22
|
id: zod.uuid(),
|
|
19
23
|
billing_account_id: zod.int().optional(),
|
|
20
24
|
product: Product,
|
|
@@ -9,6 +9,7 @@ import * as zod from "zod";
|
|
|
9
9
|
export declare const AllowanceList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
11
|
idempotency_key: zod.ZodOptional<zod.ZodString>;
|
|
12
|
+
subscription_item_id: zod.ZodOptional<zod.ZodUUID>;
|
|
12
13
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
13
14
|
id: zod.ZodUUID;
|
|
14
15
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
@@ -36,6 +36,7 @@ export declare const Cancellation: zod.ZodObject<{
|
|
|
36
36
|
canceled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
37
37
|
items: zod.ZodArray<zod.ZodObject<{
|
|
38
38
|
id: zod.ZodUUID;
|
|
39
|
+
subscription_item_id: zod.ZodUUID;
|
|
39
40
|
subscription_id: zod.ZodUUID;
|
|
40
41
|
plan_id: zod.ZodUUID;
|
|
41
42
|
plan_name: zod.ZodString;
|
|
@@ -24,7 +24,7 @@ export const Cancellation = zod
|
|
|
24
24
|
.describe("Who requested it; `project_deletion` means the project was deleted."),
|
|
25
25
|
billing_account_id: zod
|
|
26
26
|
.int()
|
|
27
|
-
.describe("The billing account paying for these
|
|
27
|
+
.describe("The billing account paying for these items when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account."),
|
|
28
28
|
currency: zod.string(),
|
|
29
29
|
expected_refundable_amount: Money.optional().describe("The refund confirmed when the cancellation was created. Absent when the platform created it."),
|
|
30
30
|
failure_code: zod
|
|
@@ -36,4 +36,4 @@ export const Cancellation = zod
|
|
|
36
36
|
canceled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
37
37
|
items: zod.array(CancellationItem),
|
|
38
38
|
})
|
|
39
|
-
.describe("One cancellation of a set of
|
|
39
|
+
.describe("One cancellation of a set of subscription items of one service, released together at one time.\n\n- `requested`: `immediate`, release has not begun.\n- `scheduled`: `period_end`, waiting for `scheduled_at`.\n- `releasing`: release has begun; it can no longer be withdrawn.\n- `completed`: every item has ended and its refund has been made.\n- `canceled`: withdrawn before release began; the items continue.\n- `failed`: the service could not carry it out, for the reason in `failure_code`; the\n items continue and can be canceled again.");
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const cancellationCreateItemsMax = 50;
|
|
10
10
|
export declare const cancellationCreateExpectedRefundableAmountTwoRegExp: RegExp;
|
|
11
11
|
export declare const cancellationCreateReasonMax = 1024;
|
|
12
12
|
export declare const CancellationCreate: zod.ZodObject<{
|
|
13
|
-
|
|
13
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
14
|
+
subscription_item_id: zod.ZodUUID;
|
|
15
|
+
}, zod.z.core.$strict>>;
|
|
14
16
|
mode: zod.ZodEnum<{
|
|
15
17
|
immediate: "immediate";
|
|
16
18
|
period_end: "period_end";
|
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationItemInput } from "./cancellationItemInput.zod.js";
|
|
9
10
|
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
10
11
|
import { Money } from "./money.zod.js";
|
|
11
|
-
export const
|
|
12
|
+
export const cancellationCreateItemsMax = 50;
|
|
12
13
|
export const cancellationCreateExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
13
14
|
export const cancellationCreateReasonMax = 1024;
|
|
14
15
|
export const CancellationCreate = zod.strictObject({
|
|
15
|
-
|
|
16
|
-
.array(
|
|
16
|
+
items: zod
|
|
17
|
+
.array(CancellationItemInput)
|
|
17
18
|
.min(1)
|
|
18
|
-
.max(
|
|
19
|
+
.max(cancellationCreateItemsMax)
|
|
19
20
|
.describe("As in the preview."),
|
|
20
21
|
mode: CancellationMode,
|
|
21
22
|
proration_date: zod.iso
|
|
@@ -13,12 +13,13 @@ export const CancellationItem = zod
|
|
|
13
13
|
.strictObject({
|
|
14
14
|
id: zod
|
|
15
15
|
.uuid()
|
|
16
|
-
.describe("The
|
|
17
|
-
|
|
16
|
+
.describe("The item's entry in the cancellation, the same as `SubscriptionItem.cancellation.id`."),
|
|
17
|
+
subscription_item_id: zod.uuid(),
|
|
18
|
+
subscription_id: zod.uuid().describe("The subscription the item belongs to."),
|
|
18
19
|
plan_id: zod.uuid(),
|
|
19
20
|
plan_name: zod.string(),
|
|
20
21
|
type: PriceType,
|
|
21
|
-
usage_type: UsageType.describe("
|
|
22
|
+
usage_type: UsageType.describe("When the cancellation covers every continuing item of a subscription, creating it turned the\nsubscription's automatic renewal off; withdrawing it turns renewal back on for a subscription with\nonly `metered` items and leaves it off for one with `licensed` items."),
|
|
22
23
|
status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
|
|
23
24
|
failure_code: zod
|
|
24
25
|
.string()
|
|
@@ -33,4 +34,4 @@ export const CancellationItem = zod
|
|
|
33
34
|
credit_amount: Money.optional().describe("Present with `completed`. The part restored to the credit grants that paid."),
|
|
34
35
|
gateway_amount: Money.optional().describe("Present with `completed`. The part returned to the payment method it was paid with."),
|
|
35
36
|
})
|
|
36
|
-
.describe("One subscription of the cancellation.");
|
|
37
|
+
.describe("One subscription item of the cancellation.");
|
|
@@ -0,0 +1,13 @@
|
|
|
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 CancellationItemInput: zod.ZodObject<{
|
|
10
|
+
subscription_item_id: zod.ZodUUID;
|
|
11
|
+
}, zod.z.core.$strict>;
|
|
12
|
+
export type CancellationItemInput = zod.input<typeof CancellationItemInput>;
|
|
13
|
+
export type CancellationItemInputOutput = zod.output<typeof CancellationItemInput>;
|
package/dist/billing/v1/generated/validators/{autoRenewSet.zod.d.ts → cancellationItemInput.zod.js}
RENAMED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export const CancellationItemInput = zod
|
|
10
|
+
.strictObject({
|
|
11
|
+
subscription_item_id: zod.uuid(),
|
|
12
|
+
})
|
|
13
|
+
.describe("One subscription item to end, each at most once.");
|
|
@@ -37,6 +37,7 @@ export declare const CancellationList: zod.ZodObject<{
|
|
|
37
37
|
canceled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
38
38
|
items: zod.ZodArray<zod.ZodObject<{
|
|
39
39
|
id: zod.ZodUUID;
|
|
40
|
+
subscription_item_id: zod.ZodUUID;
|
|
40
41
|
subscription_id: zod.ZodUUID;
|
|
41
42
|
plan_id: zod.ZodUUID;
|
|
42
43
|
plan_name: zod.ZodString;
|
|
@@ -22,6 +22,7 @@ export declare const CancellationPreview: zod.ZodObject<{
|
|
|
22
22
|
tax_amount: zod.ZodString;
|
|
23
23
|
forfeited_amount: zod.ZodString;
|
|
24
24
|
items: zod.ZodArray<zod.ZodObject<{
|
|
25
|
+
subscription_item_id: zod.ZodUUID;
|
|
25
26
|
subscription_id: zod.ZodUUID;
|
|
26
27
|
plan_id: zod.ZodUUID;
|
|
27
28
|
plan_name: zod.ZodString;
|
|
@@ -15,7 +15,7 @@ export const CancellationPreview = zod
|
|
|
15
15
|
scheduled_at: zod.iso
|
|
16
16
|
.datetime({ offset: true })
|
|
17
17
|
.optional()
|
|
18
|
-
.describe("For `period_end`, when release begins, the end of the
|
|
18
|
+
.describe("For `period_end`, when release begins, the end of the subscriptions' current terms."),
|
|
19
19
|
proration_date: zod.iso
|
|
20
20
|
.datetime({ offset: true })
|
|
21
21
|
.optional()
|
|
@@ -30,4 +30,4 @@ export const CancellationPreview = zod
|
|
|
30
30
|
forfeited_amount: Money,
|
|
31
31
|
items: zod.array(CancellationPreviewItem),
|
|
32
32
|
})
|
|
33
|
-
.describe("What the cancellation would return, per
|
|
33
|
+
.describe("What the cancellation would return, per item and in total, as of now. Give `proration_date` and\n`refundable_amount` when creating the cancellation.\n\n- `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.\n- `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the\n refund policy.\n- `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus\n `credit_amount`.\n- `refund_amount`: the part returned to the balance or the payment method.\n- `credit_amount`: the part restored to the credit grants that paid.\n- `tax_amount`: the tax included in `refundable_amount`.\n- `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.\n\nMetered and one-time items show zero; their usage until release is charged as usual.");
|
|
@@ -12,7 +12,8 @@ import { PriceType } from "./priceType.zod.js";
|
|
|
12
12
|
import { UsageType } from "./usageType.zod.js";
|
|
13
13
|
export const CancellationPreviewItem = zod
|
|
14
14
|
.strictObject({
|
|
15
|
-
|
|
15
|
+
subscription_item_id: zod.uuid(),
|
|
16
|
+
subscription_id: zod.uuid().describe("The subscription the item belongs to."),
|
|
16
17
|
plan_id: zod.uuid(),
|
|
17
18
|
plan_name: zod.string(),
|
|
18
19
|
project: zod
|
|
@@ -23,7 +24,7 @@ export const CancellationPreviewItem = zod
|
|
|
23
24
|
usage_type: UsageType,
|
|
24
25
|
auto_renew: zod
|
|
25
26
|
.boolean()
|
|
26
|
-
.describe("Whether
|
|
27
|
+
.describe("Whether the item's subscription renews automatically now. Creating a cancellation of every continuing item of the subscription turns it off; withdrawing it turns it back on for a subscription with only metered items but not for one with licensed items."),
|
|
27
28
|
unused_amount: Money,
|
|
28
29
|
short_rate_surcharge_amount: Money,
|
|
29
30
|
refundable_amount: Money,
|
|
@@ -32,4 +33,4 @@ export const CancellationPreviewItem = zod
|
|
|
32
33
|
tax_amount: Money,
|
|
33
34
|
forfeited_amount: Money,
|
|
34
35
|
})
|
|
35
|
-
.describe("One subscription of the previewed cancellation.");
|
|
36
|
+
.describe("One subscription item of the previewed cancellation.");
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const cancellationPreviewRequestItemsMax = 50;
|
|
10
10
|
export declare const CancellationPreviewRequest: zod.ZodObject<{
|
|
11
11
|
billing_account_id: zod.ZodInt;
|
|
12
|
-
|
|
12
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
13
|
+
subscription_item_id: zod.ZodUUID;
|
|
14
|
+
}, zod.z.core.$strict>>;
|
|
13
15
|
mode: zod.ZodEnum<{
|
|
14
16
|
immediate: "immediate";
|
|
15
17
|
period_end: "period_end";
|