@leaflow/sdk 0.0.0-dev.391.g0aed14e → 0.0.0-dev.395.g9e4c334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/type/cancellation/v1/generated/functions.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/functions.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/models.d.ts +19 -0
- package/dist/billing/type/cancellation/v1/generated/models.js +4 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/functions.d.ts +3 -52
- package/dist/billing/v1/generated/functions.js +2 -79
- package/dist/billing/v1/generated/models.d.ts +79 -123
- package/dist/billing/v1/generated/models.js +4 -4
- package/dist/billing/v1/generated/schemas.zod.d.ts +0 -30
- package/dist/billing/v1/generated/schemas.zod.js +0 -46
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/billing/v1/generated/validators/{listRatesHeaders.zod.js → cancellationMode.zod.d.ts} +6 -3
- package/dist/billing/v1/generated/validators/{listRatesHeaders.zod.d.ts → cancellationMode.zod.js} +3 -5
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +2 -2
- package/dist/billing/v1/generated/validators/price.zod.d.ts +39 -6
- package/dist/billing/v1/generated/validators/price.zod.js +5 -5
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +39 -6
- package/dist/billing/v1/generated/validators/priceSearch.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/priceSearch.zod.js +7 -0
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -1
- package/dist/canopy/v1/generated/functions.d.ts +1 -1
- package/dist/canopy/v1/generated/functions.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/modelBilling.zod.js +1 -1
- package/dist/compute/v1/generated/functions.d.ts +26 -26
- package/dist/compute/v1/generated/functions.js +101 -38
- package/dist/compute/v1/generated/models.d.ts +87 -12
- package/dist/compute/v1/generated/models.js +4 -4
- package/dist/compute/v1/generated/schemas.zod.d.ts +53 -11
- package/dist/compute/v1/generated/schemas.zod.js +53 -11
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.js +1 -1
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +1 -1
- package/dist/compute/v1/generated/validators/billingComponent.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingComponent.zod.js +2 -2
- package/dist/compute/v1/generated/validators/billingMeter.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingMeter.zod.js +1 -1
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +1 -1
- package/dist/compute/v1/generated/validators/billingQuantity.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingQuantity.zod.js +1 -1
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/cancellationMode.zod.d.ts +30 -0
- package/dist/compute/v1/generated/validators/cancellationMode.zod.js +27 -0
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteDiskResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/deleteDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteImageResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/deleteImageResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/error.zod.js +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/money.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resourceCancellation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resourceCancellation.zod.js +3 -4
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +1 -1
- package/dist/routes.d.ts +0 -16
- package/dist/routes.js +0 -18
- package/package.json +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.d.ts +0 -20
- package/dist/billing/v1/generated/validators/listRatesParams.zod.js +0 -22
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +0 -56
- package/dist/billing/v1/generated/validators/rateList.zod.js +0 -14
- package/dist/billing/v1/generated/validators/rateSearch.zod.d.ts +0 -20
- package/dist/billing/v1/generated/validators/rateSearch.zod.js +0 -38
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
10
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
11
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
12
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
13
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
14
|
+
*/
|
|
15
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
16
|
+
export declare const CancellationMode: {
|
|
17
|
+
readonly immediate: "immediate";
|
|
18
|
+
readonly period_end: "period_end";
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CancellationMode: zod.ZodEnum<{
|
|
10
|
+
immediate: "immediate";
|
|
11
|
+
period_end: "period_end";
|
|
12
|
+
}>;
|
|
13
|
+
export type CancellationMode = zod.input<typeof CancellationMode>;
|
|
14
|
+
export type CancellationModeOutput = zod.output<typeof CancellationMode>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CancellationMode = zod
|
|
10
|
+
.enum(["immediate", "period_end"])
|
|
11
|
+
.describe("When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end\nends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which\nmodes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the\nend of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422\nBILLING_CANCELLATION_MODE_FIXED.");
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
|
-
import type { AccountBalance, AccountDeletionReadiness, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, CancellationPreviewRequest, CancellationRefundPreview, CheckoutSession, CheckoutSessionConfirm, CheckoutSessionCreate, CheckoutSessionItemList, CheckoutSessionList, CheckoutSessionResult, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetCheckoutSessionQuoteParams, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListCheckoutSessionItemsParams, ListCheckoutSessionsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams,
|
|
8
|
+
import type { AccountBalance, AccountDeletionReadiness, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, CancellationPreviewRequest, CancellationRefundPreview, CheckoutSession, CheckoutSessionConfirm, CheckoutSessionCreate, CheckoutSessionItemList, CheckoutSessionList, CheckoutSessionResult, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetCheckoutSessionQuoteParams, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListCheckoutSessionItemsParams, ListCheckoutSessionsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, OrderRefundPreview, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, PreviewOrderRefundParams, Price, PriceList, PriceSearch, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RefundList, RenewRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, UsageEstimate, UsageEstimateRequest, Withdrawal, WithdrawalCreate, WithdrawalItemList, WithdrawalList, WithdrawalPreview, WithdrawalPreviewRequest } from "./models.js";
|
|
9
9
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
10
10
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
11
11
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -1847,8 +1847,8 @@ export declare const getSearchPricesUrl: () => string;
|
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Lists the active prices in `currency` that meet every condition in the body, as `list-prices` lists them, for
|
|
1849
1849
|
* anyone, signed in or not. Use it for conditions a query string cannot hold, such as the plans of a whole
|
|
1850
|
-
* catalog page. A price that delegates to a rate card has no amount of its own
|
|
1851
|
-
* `
|
|
1850
|
+
* catalog page. A price that delegates to a rate card has no amount of its own and carries its `rates`, which
|
|
1851
|
+
* `dimensions` narrows to the dimension values of the items on the page.
|
|
1852
1852
|
* @summary Search what is on sale, with prices
|
|
1853
1853
|
*/
|
|
1854
1854
|
export declare const searchPrices: (priceSearch: PriceSearch, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchPricesResponse>;
|
|
@@ -2002,55 +2002,6 @@ export declare const getListPricesByPlanUrl: (planId: string, params?: ListPrice
|
|
|
2002
2002
|
* @summary List catalog prices
|
|
2003
2003
|
*/
|
|
2004
2004
|
export declare const listPricesByPlan: (planId: string, params?: ListPricesByPlanParams, headers?: ListPricesByPlanHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listPricesByPlanResponse>;
|
|
2005
|
-
export type listRatesResponse200 = {
|
|
2006
|
-
data: RateList;
|
|
2007
|
-
status: 200;
|
|
2008
|
-
};
|
|
2009
|
-
export type listRatesResponse304 = {
|
|
2010
|
-
data: NotModifiedResponse;
|
|
2011
|
-
status: 304;
|
|
2012
|
-
};
|
|
2013
|
-
export type listRatesResponseDefault = {
|
|
2014
|
-
data: ErrorResponse;
|
|
2015
|
-
status: Exclude<HTTPStatusCodes, 200 | 304>;
|
|
2016
|
-
};
|
|
2017
|
-
export type listRatesResponseSuccess = listRatesResponse200 & {
|
|
2018
|
-
headers: Headers;
|
|
2019
|
-
};
|
|
2020
|
-
export type listRatesResponseError = (listRatesResponse304 | listRatesResponseDefault) & {
|
|
2021
|
-
headers: Headers;
|
|
2022
|
-
};
|
|
2023
|
-
export type listRatesResponse = listRatesResponseSuccess | listRatesResponseError;
|
|
2024
|
-
export declare const getListRatesUrl: (rateCardId: string, params?: ListRatesParams) => string;
|
|
2025
|
-
/**
|
|
2026
|
-
* Rules of a public rate card; contract cards are not readable here.
|
|
2027
|
-
* @summary List catalog rates
|
|
2028
|
-
*/
|
|
2029
|
-
export declare const listRates: (rateCardId: string, params?: ListRatesParams, headers?: ListRatesHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listRatesResponse>;
|
|
2030
|
-
export type searchRatesResponse200 = {
|
|
2031
|
-
data: RateList;
|
|
2032
|
-
status: 200;
|
|
2033
|
-
};
|
|
2034
|
-
export type searchRatesResponseDefault = {
|
|
2035
|
-
data: ErrorResponse;
|
|
2036
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
2037
|
-
};
|
|
2038
|
-
export type searchRatesResponseSuccess = searchRatesResponse200 & {
|
|
2039
|
-
headers: Headers;
|
|
2040
|
-
};
|
|
2041
|
-
export type searchRatesResponseError = searchRatesResponseDefault & {
|
|
2042
|
-
headers: Headers;
|
|
2043
|
-
};
|
|
2044
|
-
export type searchRatesResponse = searchRatesResponseSuccess | searchRatesResponseError;
|
|
2045
|
-
export declare const getSearchRatesUrl: (rateCardId: string) => string;
|
|
2046
|
-
/**
|
|
2047
|
-
* Rules of a public rate card that meet every condition in the body, as `list-rates` lists them, for anyone,
|
|
2048
|
-
* signed in or not; contract cards are not readable here. Use it to read the rates at the dimension values of the
|
|
2049
|
-
* items on a page, such as each region and machine type offered, and match each rate to its price by meter,
|
|
2050
|
-
* usage type, interval and dimensions.
|
|
2051
|
-
* @summary Search catalog rates
|
|
2052
|
-
*/
|
|
2053
|
-
export declare const searchRates: (rateCardId: string, rateSearch: RateSearch, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchRatesResponse>;
|
|
2054
2005
|
export type listActiveResourcesResponse200 = {
|
|
2055
2006
|
data: ActiveResourceList;
|
|
2056
2007
|
status: 200;
|
|
@@ -2081,8 +2081,8 @@ export const getSearchPricesUrl = () => {
|
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Lists the active prices in `currency` that meet every condition in the body, as `list-prices` lists them, for
|
|
2083
2083
|
* anyone, signed in or not. Use it for conditions a query string cannot hold, such as the plans of a whole
|
|
2084
|
-
* catalog page. A price that delegates to a rate card has no amount of its own
|
|
2085
|
-
* `
|
|
2084
|
+
* catalog page. A price that delegates to a rate card has no amount of its own and carries its `rates`, which
|
|
2085
|
+
* `dimensions` narrows to the dimension values of the items on the page.
|
|
2086
2086
|
* @summary Search what is on sale, with prices
|
|
2087
2087
|
*/
|
|
2088
2088
|
export const searchPrices = async (priceSearch, options, fetchFn) => {
|
|
@@ -2330,83 +2330,6 @@ export const listPricesByPlan = async (planId, params, headers, options, fetchFn
|
|
|
2330
2330
|
const data = body ? JSON.parse(body) : {};
|
|
2331
2331
|
return { data, status: res.status, headers: res.headers };
|
|
2332
2332
|
};
|
|
2333
|
-
export const getListRatesUrl = (rateCardId, params) => {
|
|
2334
|
-
const normalizedParams = new URLSearchParams();
|
|
2335
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2336
|
-
if (value !== undefined) {
|
|
2337
|
-
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2338
|
-
}
|
|
2339
|
-
});
|
|
2340
|
-
const stringifiedParams = normalizedParams.toString();
|
|
2341
|
-
return stringifiedParams.length > 0
|
|
2342
|
-
? `https://billing.leaflow.cloud/api/v1/rate-cards/${encodeURIComponent(String(rateCardId))}/rules?${stringifiedParams}`
|
|
2343
|
-
: `https://billing.leaflow.cloud/api/v1/rate-cards/${encodeURIComponent(String(rateCardId))}/rules`;
|
|
2344
|
-
};
|
|
2345
|
-
/**
|
|
2346
|
-
* Rules of a public rate card; contract cards are not readable here.
|
|
2347
|
-
* @summary List catalog rates
|
|
2348
|
-
*/
|
|
2349
|
-
export const listRates = async (rateCardId, params, headers, options, fetchFn) => {
|
|
2350
|
-
const getHeaders = (h) => {
|
|
2351
|
-
if (!h)
|
|
2352
|
-
return {};
|
|
2353
|
-
if (h instanceof Headers)
|
|
2354
|
-
return Object.fromEntries(h.entries());
|
|
2355
|
-
if (Symbol.iterator in h) {
|
|
2356
|
-
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2357
|
-
}
|
|
2358
|
-
const headers = {};
|
|
2359
|
-
for (const [name, value] of Object.entries(h)) {
|
|
2360
|
-
if (value !== undefined)
|
|
2361
|
-
headers[name] = value;
|
|
2362
|
-
}
|
|
2363
|
-
return headers;
|
|
2364
|
-
};
|
|
2365
|
-
const res = await (fetchFn ?? fetch)(getListRatesUrl(rateCardId, params), {
|
|
2366
|
-
...options,
|
|
2367
|
-
method: "GET",
|
|
2368
|
-
headers: { ...headers, ...getHeaders(options?.headers) },
|
|
2369
|
-
});
|
|
2370
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2371
|
-
const data = body ? JSON.parse(body) : {};
|
|
2372
|
-
return { data, status: res.status, headers: res.headers };
|
|
2373
|
-
};
|
|
2374
|
-
export const getSearchRatesUrl = (rateCardId) => {
|
|
2375
|
-
return `https://billing.leaflow.cloud/api/v1/rate-cards/${encodeURIComponent(String(rateCardId))}/rules`;
|
|
2376
|
-
};
|
|
2377
|
-
/**
|
|
2378
|
-
* Rules of a public rate card that meet every condition in the body, as `list-rates` lists them, for anyone,
|
|
2379
|
-
* signed in or not; contract cards are not readable here. Use it to read the rates at the dimension values of the
|
|
2380
|
-
* items on a page, such as each region and machine type offered, and match each rate to its price by meter,
|
|
2381
|
-
* usage type, interval and dimensions.
|
|
2382
|
-
* @summary Search catalog rates
|
|
2383
|
-
*/
|
|
2384
|
-
export const searchRates = async (rateCardId, rateSearch, options, fetchFn) => {
|
|
2385
|
-
const getHeaders = (h) => {
|
|
2386
|
-
if (!h)
|
|
2387
|
-
return {};
|
|
2388
|
-
if (h instanceof Headers)
|
|
2389
|
-
return Object.fromEntries(h.entries());
|
|
2390
|
-
if (Symbol.iterator in h) {
|
|
2391
|
-
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2392
|
-
}
|
|
2393
|
-
const headers = {};
|
|
2394
|
-
for (const [name, value] of Object.entries(h)) {
|
|
2395
|
-
if (value !== undefined)
|
|
2396
|
-
headers[name] = value;
|
|
2397
|
-
}
|
|
2398
|
-
return headers;
|
|
2399
|
-
};
|
|
2400
|
-
const res = await (fetchFn ?? fetch)(getSearchRatesUrl(rateCardId), {
|
|
2401
|
-
...options,
|
|
2402
|
-
method: "QUERY",
|
|
2403
|
-
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
2404
|
-
body: JSON.stringify(rateSearch),
|
|
2405
|
-
});
|
|
2406
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2407
|
-
const data = body ? JSON.parse(body) : {};
|
|
2408
|
-
return { data, status: res.status, headers: res.headers };
|
|
2409
|
-
};
|
|
2410
2333
|
export const getListActiveResourcesUrl = (params) => {
|
|
2411
2334
|
const normalizedParams = new URLSearchParams();
|
|
2412
2335
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -313,6 +313,18 @@ export interface Quote {
|
|
|
313
313
|
/** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
314
314
|
tax_status: QuoteTaxStatus;
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
318
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
319
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
320
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
321
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
322
|
+
*/
|
|
323
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
324
|
+
export declare const CancellationMode: {
|
|
325
|
+
readonly immediate: "immediate";
|
|
326
|
+
readonly period_end: "period_end";
|
|
327
|
+
};
|
|
316
328
|
/**
|
|
317
329
|
* What ending these subscriptions together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
|
|
318
330
|
*/
|
|
@@ -328,7 +340,7 @@ export interface CancellationPreviewRequest {
|
|
|
328
340
|
* @maxItems 50
|
|
329
341
|
*/
|
|
330
342
|
subscription_ids: string[];
|
|
331
|
-
mode:
|
|
343
|
+
mode: CancellationMode;
|
|
332
344
|
}
|
|
333
345
|
/**
|
|
334
346
|
* Which object this is, together with what a person currently calls it.
|
|
@@ -383,7 +395,7 @@ export interface CancellationRefundPreviewItem {
|
|
|
383
395
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
384
396
|
*/
|
|
385
397
|
export interface CancellationRefundPreview {
|
|
386
|
-
mode:
|
|
398
|
+
mode: CancellationMode;
|
|
387
399
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
388
400
|
scheduled_at?: string;
|
|
389
401
|
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
@@ -405,7 +417,7 @@ export interface CancellationCreate {
|
|
|
405
417
|
* @maxItems 50
|
|
406
418
|
*/
|
|
407
419
|
subscription_ids: string[];
|
|
408
|
-
mode:
|
|
420
|
+
mode: CancellationMode;
|
|
409
421
|
/** For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
|
|
410
422
|
proration_date?: string;
|
|
411
423
|
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
@@ -485,7 +497,7 @@ export interface CancellationItem {
|
|
|
485
497
|
export interface Cancellation {
|
|
486
498
|
id: string;
|
|
487
499
|
status: CancellationStatus;
|
|
488
|
-
mode:
|
|
500
|
+
mode: CancellationMode;
|
|
489
501
|
scheduled_at?: string;
|
|
490
502
|
/** For `immediate`, the second the refund is computed as of. */
|
|
491
503
|
proration_date?: string;
|
|
@@ -527,11 +539,6 @@ export declare const SubscriptionCancellationStatus: {
|
|
|
527
539
|
readonly completed: "completed";
|
|
528
540
|
readonly canceled: "canceled";
|
|
529
541
|
};
|
|
530
|
-
export type SubscriptionCancellationMode = (typeof SubscriptionCancellationMode)[keyof typeof SubscriptionCancellationMode];
|
|
531
|
-
export declare const SubscriptionCancellationMode: {
|
|
532
|
-
readonly immediate: "immediate";
|
|
533
|
-
readonly period_end: "period_end";
|
|
534
|
-
};
|
|
535
542
|
/**
|
|
536
543
|
* The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
|
|
537
544
|
*/
|
|
@@ -542,7 +549,7 @@ export interface SubscriptionCancellation {
|
|
|
542
549
|
id: string;
|
|
543
550
|
subscription_id: string;
|
|
544
551
|
status: SubscriptionCancellationStatus;
|
|
545
|
-
mode:
|
|
552
|
+
mode: CancellationMode;
|
|
546
553
|
requested_at: string;
|
|
547
554
|
scheduled_at?: string;
|
|
548
555
|
effective_at?: string;
|
|
@@ -2455,6 +2462,25 @@ export declare const PriceInterval: {
|
|
|
2455
2462
|
readonly month: "month";
|
|
2456
2463
|
readonly year: "year";
|
|
2457
2464
|
};
|
|
2465
|
+
/**
|
|
2466
|
+
* Licensed rates only, the period the amount buys; `none` for metered rates.
|
|
2467
|
+
*/
|
|
2468
|
+
export type RateInterval = (typeof RateInterval)[keyof typeof RateInterval];
|
|
2469
|
+
export declare const RateInterval: {
|
|
2470
|
+
readonly none: "none";
|
|
2471
|
+
readonly day: "day";
|
|
2472
|
+
readonly month: "month";
|
|
2473
|
+
readonly year: "year";
|
|
2474
|
+
};
|
|
2475
|
+
/**
|
|
2476
|
+
* `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate.
|
|
2477
|
+
*/
|
|
2478
|
+
export type RateTiersMode = (typeof RateTiersMode)[keyof typeof RateTiersMode];
|
|
2479
|
+
export declare const RateTiersMode: {
|
|
2480
|
+
readonly none: "none";
|
|
2481
|
+
readonly graduated: "graduated";
|
|
2482
|
+
readonly volume: "volume";
|
|
2483
|
+
};
|
|
2458
2484
|
export interface Tier {
|
|
2459
2485
|
/**
|
|
2460
2486
|
* The band's inclusive upper bound; null for the last band.
|
|
@@ -2465,8 +2491,44 @@ export interface Tier {
|
|
|
2465
2491
|
/** Charged once when this band is reached, in addition to the per-unit amount. */
|
|
2466
2492
|
flat_amount?: Money;
|
|
2467
2493
|
}
|
|
2494
|
+
/**
|
|
2495
|
+
* The dimension values this rate applies to, such as region and machine type.
|
|
2496
|
+
*/
|
|
2497
|
+
export type RateDimensions = {
|
|
2498
|
+
[key: string]: string;
|
|
2499
|
+
};
|
|
2500
|
+
export interface Rate {
|
|
2501
|
+
meter: ObjectIdentity;
|
|
2502
|
+
/** The unit readings are reported in, such as `core-second`. */
|
|
2503
|
+
unit?: string;
|
|
2504
|
+
/** The dimension values this rate applies to, such as region and machine type. */
|
|
2505
|
+
dimensions: RateDimensions;
|
|
2506
|
+
billing_scheme: BillingScheme;
|
|
2507
|
+
/** `metered` prices usage; `licensed` prices holding a quantity for one period. */
|
|
2508
|
+
usage_type: UsageType;
|
|
2509
|
+
/** Licensed rates only, the period the amount buys; `none` for metered rates. */
|
|
2510
|
+
interval: RateInterval;
|
|
2511
|
+
/** @nullable */
|
|
2512
|
+
interval_count?: number | null;
|
|
2513
|
+
/** `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate. */
|
|
2514
|
+
tiers_mode: RateTiersMode;
|
|
2515
|
+
/** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
|
|
2516
|
+
unit_amount?: Money;
|
|
2517
|
+
/** Present for a tiered rate, in ascending order. */
|
|
2518
|
+
tiers?: Tier[];
|
|
2519
|
+
/** How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`. */
|
|
2520
|
+
unit_quantity?: string;
|
|
2521
|
+
currency: string;
|
|
2522
|
+
effective_from: string;
|
|
2523
|
+
/** @nullable */
|
|
2524
|
+
effective_to?: string | null;
|
|
2525
|
+
}
|
|
2468
2526
|
export interface Price {
|
|
2469
|
-
|
|
2527
|
+
/**
|
|
2528
|
+
* For a price that delegates to a rate card, the rates in effect now that it charges at, one for each meter, dimension values and period; metered rates for a metered price, and rates on its own meter and period for a licensed one. `search-prices` narrows them with `dimensions`. Null for a price with its own amounts.
|
|
2529
|
+
* @nullable
|
|
2530
|
+
*/
|
|
2531
|
+
rates?: Rate[] | null;
|
|
2470
2532
|
lookup_key?: string;
|
|
2471
2533
|
product: Product;
|
|
2472
2534
|
plan: ObjectIdentity;
|
|
@@ -2496,8 +2558,6 @@ export interface Price {
|
|
|
2496
2558
|
tiers_mode?: PriceTiersMode;
|
|
2497
2559
|
/** Present for `tiered`, in ascending order. */
|
|
2498
2560
|
tiers?: Tier[];
|
|
2499
|
-
/** Present when the price delegates to a rate card, the price list its rates are read from. */
|
|
2500
|
-
rate_card_id?: string;
|
|
2501
2561
|
/** The smallest quantity that can be bought. Absent means no lower bound. */
|
|
2502
2562
|
min_quantity?: string;
|
|
2503
2563
|
/** The largest quantity that may be bought; absent when there is no limit. A larger quantity is refused with `BILLING_PRICE_INVALID` and `field` `max_quantity`. */
|
|
@@ -2513,61 +2573,6 @@ export interface PriceList {
|
|
|
2513
2573
|
items: Price[];
|
|
2514
2574
|
pagination: OffsetPagination;
|
|
2515
2575
|
}
|
|
2516
|
-
/**
|
|
2517
|
-
* The dimension values this rate applies to, such as region and machine type.
|
|
2518
|
-
*/
|
|
2519
|
-
export type RateDimensions = {
|
|
2520
|
-
[key: string]: string;
|
|
2521
|
-
};
|
|
2522
|
-
/**
|
|
2523
|
-
* Licensed rates only, the period the amount buys; `none` for metered rates.
|
|
2524
|
-
*/
|
|
2525
|
-
export type RateInterval = (typeof RateInterval)[keyof typeof RateInterval];
|
|
2526
|
-
export declare const RateInterval: {
|
|
2527
|
-
readonly none: "none";
|
|
2528
|
-
readonly day: "day";
|
|
2529
|
-
readonly month: "month";
|
|
2530
|
-
readonly year: "year";
|
|
2531
|
-
};
|
|
2532
|
-
/**
|
|
2533
|
-
* `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate.
|
|
2534
|
-
*/
|
|
2535
|
-
export type RateTiersMode = (typeof RateTiersMode)[keyof typeof RateTiersMode];
|
|
2536
|
-
export declare const RateTiersMode: {
|
|
2537
|
-
readonly none: "none";
|
|
2538
|
-
readonly graduated: "graduated";
|
|
2539
|
-
readonly volume: "volume";
|
|
2540
|
-
};
|
|
2541
|
-
export interface Rate {
|
|
2542
|
-
meter: ObjectIdentity;
|
|
2543
|
-
/** The unit readings are reported in, such as `core-second`. */
|
|
2544
|
-
unit?: string;
|
|
2545
|
-
/** The dimension values this rate applies to, such as region and machine type. */
|
|
2546
|
-
dimensions: RateDimensions;
|
|
2547
|
-
billing_scheme: BillingScheme;
|
|
2548
|
-
/** `metered` prices usage; `licensed` prices holding a quantity for one period. */
|
|
2549
|
-
usage_type: UsageType;
|
|
2550
|
-
/** Licensed rates only, the period the amount buys; `none` for metered rates. */
|
|
2551
|
-
interval: RateInterval;
|
|
2552
|
-
/** @nullable */
|
|
2553
|
-
interval_count?: number | null;
|
|
2554
|
-
/** `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate. */
|
|
2555
|
-
tiers_mode: RateTiersMode;
|
|
2556
|
-
/** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
|
|
2557
|
-
unit_amount?: Money;
|
|
2558
|
-
/** Present for a tiered rate, in ascending order. */
|
|
2559
|
-
tiers?: Tier[];
|
|
2560
|
-
/** How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`. */
|
|
2561
|
-
unit_quantity?: string;
|
|
2562
|
-
currency: string;
|
|
2563
|
-
effective_from: string;
|
|
2564
|
-
/** @nullable */
|
|
2565
|
-
effective_to?: string | null;
|
|
2566
|
-
}
|
|
2567
|
-
export interface RateList {
|
|
2568
|
-
items: Rate[];
|
|
2569
|
-
pagination: OffsetPagination;
|
|
2570
|
-
}
|
|
2571
2576
|
export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
|
|
2572
2577
|
export declare const QuoteItemInputInterval: {
|
|
2573
2578
|
readonly none: "none";
|
|
@@ -3147,6 +3152,9 @@ export interface ContactList {
|
|
|
3147
3152
|
items: Contact[];
|
|
3148
3153
|
pagination: OffsetPagination;
|
|
3149
3154
|
}
|
|
3155
|
+
export type PriceSearchDimensionsItem = {
|
|
3156
|
+
[key: string]: string;
|
|
3157
|
+
};
|
|
3150
3158
|
/**
|
|
3151
3159
|
* Conditions combined with AND.
|
|
3152
3160
|
*/
|
|
@@ -3175,35 +3183,11 @@ export interface PriceSearch {
|
|
|
3175
3183
|
/** Narrows to one usage type. */
|
|
3176
3184
|
usage_type?: UsageType;
|
|
3177
3185
|
/**
|
|
3178
|
-
*
|
|
3179
|
-
* @minimum 1
|
|
3180
|
-
* @maximum 2147483647
|
|
3181
|
-
*/
|
|
3182
|
-
page?: number;
|
|
3183
|
-
/**
|
|
3184
|
-
* Items per page. Defaults to 50; at most 200.
|
|
3185
|
-
* @minimum 1
|
|
3186
|
-
* @maximum 200
|
|
3187
|
-
*/
|
|
3188
|
-
page_size?: number;
|
|
3189
|
-
}
|
|
3190
|
-
export type RateSearchDimensionsItem = {
|
|
3191
|
-
[key: string]: string;
|
|
3192
|
-
};
|
|
3193
|
-
/**
|
|
3194
|
-
* Conditions combined with AND.
|
|
3195
|
-
*/
|
|
3196
|
-
export interface RateSearch {
|
|
3197
|
-
/** Only rates on this meter. */
|
|
3198
|
-
meter_id?: string;
|
|
3199
|
-
/** Rates in effect at this moment; defaults to now. */
|
|
3200
|
-
at?: string;
|
|
3201
|
-
/**
|
|
3202
|
-
* Only rates whose dimension values are exactly one of these sets, given as on order lines and usage. A set no rate has matches nothing.
|
|
3186
|
+
* Narrows each price's `rates` to these dimension value sets, given as on order lines and usage; prices are not filtered by it. A set no rate has adds nothing.
|
|
3203
3187
|
* @minItems 1
|
|
3204
3188
|
* @maxItems 200
|
|
3205
3189
|
*/
|
|
3206
|
-
dimensions?:
|
|
3190
|
+
dimensions?: PriceSearchDimensionsItem[];
|
|
3207
3191
|
/**
|
|
3208
3192
|
* 1-based page number. Defaults to 1.
|
|
3209
3193
|
* @minimum 1
|
|
@@ -3218,7 +3202,7 @@ export interface RateSearch {
|
|
|
3218
3202
|
page_size?: number;
|
|
3219
3203
|
}
|
|
3220
3204
|
export interface CancelSubscriptionRequest {
|
|
3221
|
-
mode:
|
|
3205
|
+
mode: CancellationMode;
|
|
3222
3206
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
3223
3207
|
proration_date?: string;
|
|
3224
3208
|
/** The cancellation quote's refundable amount, including an explicit zero. */
|
|
@@ -4099,34 +4083,6 @@ export type ListPricesByPlanHeaders = {
|
|
|
4099
4083
|
*/
|
|
4100
4084
|
"If-None-Match"?: IfNoneMatchParameter;
|
|
4101
4085
|
};
|
|
4102
|
-
export type ListRatesParams = {
|
|
4103
|
-
/**
|
|
4104
|
-
* 1-based page number. Defaults to 1.
|
|
4105
|
-
* @minimum 1
|
|
4106
|
-
* @maximum 2147483647
|
|
4107
|
-
*/
|
|
4108
|
-
page?: number;
|
|
4109
|
-
/**
|
|
4110
|
-
* Items per page. Defaults to 50; at most 200.
|
|
4111
|
-
* @minimum 1
|
|
4112
|
-
* @maximum 200
|
|
4113
|
-
*/
|
|
4114
|
-
page_size?: number;
|
|
4115
|
-
/**
|
|
4116
|
-
* Filter by the meter UUID.
|
|
4117
|
-
*/
|
|
4118
|
-
meter_id?: string;
|
|
4119
|
-
/**
|
|
4120
|
-
* Rates in effect at this moment; defaults to now.
|
|
4121
|
-
*/
|
|
4122
|
-
at?: string;
|
|
4123
|
-
};
|
|
4124
|
-
export type ListRatesHeaders = {
|
|
4125
|
-
/**
|
|
4126
|
-
* The `ETag` of an earlier response. When the catalogue has not changed since, the response is `304` with no body.
|
|
4127
|
-
*/
|
|
4128
|
-
"If-None-Match"?: IfNoneMatchParameter;
|
|
4129
|
-
};
|
|
4130
4086
|
export type ListActiveResourcesParams = {
|
|
4131
4087
|
/**
|
|
4132
4088
|
* 1-based page number. Defaults to 1.
|
|
@@ -48,6 +48,10 @@ export const QuotedDiscountEligibility = {
|
|
|
48
48
|
confirmed: "confirmed",
|
|
49
49
|
unverified: "unverified",
|
|
50
50
|
};
|
|
51
|
+
export const CancellationMode = {
|
|
52
|
+
immediate: "immediate",
|
|
53
|
+
period_end: "period_end",
|
|
54
|
+
};
|
|
51
55
|
export const CancellationStatus = {
|
|
52
56
|
requested: "requested",
|
|
53
57
|
scheduled: "scheduled",
|
|
@@ -77,10 +81,6 @@ export const SubscriptionCancellationStatus = {
|
|
|
77
81
|
completed: "completed",
|
|
78
82
|
canceled: "canceled",
|
|
79
83
|
};
|
|
80
|
-
export const SubscriptionCancellationMode = {
|
|
81
|
-
immediate: "immediate",
|
|
82
|
-
period_end: "period_end",
|
|
83
|
-
};
|
|
84
84
|
export const BillingAccountStatus = {
|
|
85
85
|
active: "active",
|
|
86
86
|
suspended: "suspended",
|
|
@@ -1161,36 +1161,6 @@ export declare const ListPricesByPlanQueryParams: zod.ZodObject<{
|
|
|
1161
1161
|
export declare const ListPricesByPlanHeader: zod.ZodObject<{
|
|
1162
1162
|
"If-None-Match": zod.ZodOptional<zod.ZodString>;
|
|
1163
1163
|
}, zod.z.core.$strict>;
|
|
1164
|
-
/**
|
|
1165
|
-
* Rules of a public rate card; contract cards are not readable here.
|
|
1166
|
-
* @summary List catalog rates
|
|
1167
|
-
*/
|
|
1168
|
-
export declare const ListRatesParams: zod.ZodObject<{
|
|
1169
|
-
rateCardId: zod.ZodUUID;
|
|
1170
|
-
}, zod.z.core.$strict>;
|
|
1171
|
-
export declare const listRatesQueryPageDefault = 1;
|
|
1172
|
-
export declare const listRatesQueryPageMax = 2147483647;
|
|
1173
|
-
export declare const listRatesQueryPageSizeDefault = 50;
|
|
1174
|
-
export declare const listRatesQueryPageSizeMax = 200;
|
|
1175
|
-
export declare const ListRatesQueryParams: zod.ZodObject<{
|
|
1176
|
-
page: zod.ZodDefault<zod.ZodInt>;
|
|
1177
|
-
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
1178
|
-
meter_id: zod.ZodOptional<zod.ZodUUID>;
|
|
1179
|
-
at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
1180
|
-
}, zod.z.core.$strict>;
|
|
1181
|
-
export declare const ListRatesHeader: zod.ZodObject<{
|
|
1182
|
-
"If-None-Match": zod.ZodOptional<zod.ZodString>;
|
|
1183
|
-
}, zod.z.core.$strict>;
|
|
1184
|
-
/**
|
|
1185
|
-
* Rules of a public rate card that meet every condition in the body, as `list-rates` lists them, for anyone,
|
|
1186
|
-
* signed in or not; contract cards are not readable here. Use it to read the rates at the dimension values of the
|
|
1187
|
-
* items on a page, such as each region and machine type offered, and match each rate to its price by meter,
|
|
1188
|
-
* usage type, interval and dimensions.
|
|
1189
|
-
* @summary Search catalog rates
|
|
1190
|
-
*/
|
|
1191
|
-
export declare const SearchRatesParams: zod.ZodObject<{
|
|
1192
|
-
rateCardId: zod.ZodUUID;
|
|
1193
|
-
}, zod.z.core.$strict>;
|
|
1194
1164
|
/**
|
|
1195
1165
|
* Continuous metering registrations paid for by your billing accounts; members of a project list its registrations with `project_ids`. Their state does not describe the resource's runtime.
|
|
1196
1166
|
* @summary List active resources
|