@leaflow/sdk 0.0.0-dev.393.g846cd9d → 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/v1/generated/functions.d.ts +3 -52
- package/dist/billing/v1/generated/functions.js +2 -79
- package/dist/billing/v1/generated/models.d.ts +61 -112
- 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/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/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 +1 -1
- package/dist/compute/v1/generated/models.d.ts +2 -2
- package/dist/compute/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/compute/v1/generated/schemas.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/cancellationMode.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.js +1 -1
- 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 +1 -1
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.js +1 -1
- 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 +1 -1
- 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/listRatesHeaders.zod.d.ts +0 -13
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.js +0 -11
- 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
|
@@ -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]) => {
|
|
@@ -2462,6 +2462,25 @@ export declare const PriceInterval: {
|
|
|
2462
2462
|
readonly month: "month";
|
|
2463
2463
|
readonly year: "year";
|
|
2464
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
|
+
};
|
|
2465
2484
|
export interface Tier {
|
|
2466
2485
|
/**
|
|
2467
2486
|
* The band's inclusive upper bound; null for the last band.
|
|
@@ -2472,8 +2491,44 @@ export interface Tier {
|
|
|
2472
2491
|
/** Charged once when this band is reached, in addition to the per-unit amount. */
|
|
2473
2492
|
flat_amount?: Money;
|
|
2474
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
|
+
}
|
|
2475
2526
|
export interface Price {
|
|
2476
|
-
|
|
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;
|
|
2477
2532
|
lookup_key?: string;
|
|
2478
2533
|
product: Product;
|
|
2479
2534
|
plan: ObjectIdentity;
|
|
@@ -2503,8 +2558,6 @@ export interface Price {
|
|
|
2503
2558
|
tiers_mode?: PriceTiersMode;
|
|
2504
2559
|
/** Present for `tiered`, in ascending order. */
|
|
2505
2560
|
tiers?: Tier[];
|
|
2506
|
-
/** Present when the price delegates to a rate card, the price list its rates are read from. */
|
|
2507
|
-
rate_card_id?: string;
|
|
2508
2561
|
/** The smallest quantity that can be bought. Absent means no lower bound. */
|
|
2509
2562
|
min_quantity?: string;
|
|
2510
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`. */
|
|
@@ -2520,61 +2573,6 @@ export interface PriceList {
|
|
|
2520
2573
|
items: Price[];
|
|
2521
2574
|
pagination: OffsetPagination;
|
|
2522
2575
|
}
|
|
2523
|
-
/**
|
|
2524
|
-
* The dimension values this rate applies to, such as region and machine type.
|
|
2525
|
-
*/
|
|
2526
|
-
export type RateDimensions = {
|
|
2527
|
-
[key: string]: string;
|
|
2528
|
-
};
|
|
2529
|
-
/**
|
|
2530
|
-
* Licensed rates only, the period the amount buys; `none` for metered rates.
|
|
2531
|
-
*/
|
|
2532
|
-
export type RateInterval = (typeof RateInterval)[keyof typeof RateInterval];
|
|
2533
|
-
export declare const RateInterval: {
|
|
2534
|
-
readonly none: "none";
|
|
2535
|
-
readonly day: "day";
|
|
2536
|
-
readonly month: "month";
|
|
2537
|
-
readonly year: "year";
|
|
2538
|
-
};
|
|
2539
|
-
/**
|
|
2540
|
-
* `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.
|
|
2541
|
-
*/
|
|
2542
|
-
export type RateTiersMode = (typeof RateTiersMode)[keyof typeof RateTiersMode];
|
|
2543
|
-
export declare const RateTiersMode: {
|
|
2544
|
-
readonly none: "none";
|
|
2545
|
-
readonly graduated: "graduated";
|
|
2546
|
-
readonly volume: "volume";
|
|
2547
|
-
};
|
|
2548
|
-
export interface Rate {
|
|
2549
|
-
meter: ObjectIdentity;
|
|
2550
|
-
/** The unit readings are reported in, such as `core-second`. */
|
|
2551
|
-
unit?: string;
|
|
2552
|
-
/** The dimension values this rate applies to, such as region and machine type. */
|
|
2553
|
-
dimensions: RateDimensions;
|
|
2554
|
-
billing_scheme: BillingScheme;
|
|
2555
|
-
/** `metered` prices usage; `licensed` prices holding a quantity for one period. */
|
|
2556
|
-
usage_type: UsageType;
|
|
2557
|
-
/** Licensed rates only, the period the amount buys; `none` for metered rates. */
|
|
2558
|
-
interval: RateInterval;
|
|
2559
|
-
/** @nullable */
|
|
2560
|
-
interval_count?: number | null;
|
|
2561
|
-
/** `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. */
|
|
2562
|
-
tiers_mode: RateTiersMode;
|
|
2563
|
-
/** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
|
|
2564
|
-
unit_amount?: Money;
|
|
2565
|
-
/** Present for a tiered rate, in ascending order. */
|
|
2566
|
-
tiers?: Tier[];
|
|
2567
|
-
/** How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`. */
|
|
2568
|
-
unit_quantity?: string;
|
|
2569
|
-
currency: string;
|
|
2570
|
-
effective_from: string;
|
|
2571
|
-
/** @nullable */
|
|
2572
|
-
effective_to?: string | null;
|
|
2573
|
-
}
|
|
2574
|
-
export interface RateList {
|
|
2575
|
-
items: Rate[];
|
|
2576
|
-
pagination: OffsetPagination;
|
|
2577
|
-
}
|
|
2578
2576
|
export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
|
|
2579
2577
|
export declare const QuoteItemInputInterval: {
|
|
2580
2578
|
readonly none: "none";
|
|
@@ -3154,6 +3152,9 @@ export interface ContactList {
|
|
|
3154
3152
|
items: Contact[];
|
|
3155
3153
|
pagination: OffsetPagination;
|
|
3156
3154
|
}
|
|
3155
|
+
export type PriceSearchDimensionsItem = {
|
|
3156
|
+
[key: string]: string;
|
|
3157
|
+
};
|
|
3157
3158
|
/**
|
|
3158
3159
|
* Conditions combined with AND.
|
|
3159
3160
|
*/
|
|
@@ -3182,35 +3183,11 @@ export interface PriceSearch {
|
|
|
3182
3183
|
/** Narrows to one usage type. */
|
|
3183
3184
|
usage_type?: UsageType;
|
|
3184
3185
|
/**
|
|
3185
|
-
*
|
|
3186
|
-
* @minimum 1
|
|
3187
|
-
* @maximum 2147483647
|
|
3188
|
-
*/
|
|
3189
|
-
page?: number;
|
|
3190
|
-
/**
|
|
3191
|
-
* Items per page. Defaults to 50; at most 200.
|
|
3192
|
-
* @minimum 1
|
|
3193
|
-
* @maximum 200
|
|
3194
|
-
*/
|
|
3195
|
-
page_size?: number;
|
|
3196
|
-
}
|
|
3197
|
-
export type RateSearchDimensionsItem = {
|
|
3198
|
-
[key: string]: string;
|
|
3199
|
-
};
|
|
3200
|
-
/**
|
|
3201
|
-
* Conditions combined with AND.
|
|
3202
|
-
*/
|
|
3203
|
-
export interface RateSearch {
|
|
3204
|
-
/** Only rates on this meter. */
|
|
3205
|
-
meter_id?: string;
|
|
3206
|
-
/** Rates in effect at this moment; defaults to now. */
|
|
3207
|
-
at?: string;
|
|
3208
|
-
/**
|
|
3209
|
-
* 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.
|
|
3210
3187
|
* @minItems 1
|
|
3211
3188
|
* @maxItems 200
|
|
3212
3189
|
*/
|
|
3213
|
-
dimensions?:
|
|
3190
|
+
dimensions?: PriceSearchDimensionsItem[];
|
|
3214
3191
|
/**
|
|
3215
3192
|
* 1-based page number. Defaults to 1.
|
|
3216
3193
|
* @minimum 1
|
|
@@ -4106,34 +4083,6 @@ export type ListPricesByPlanHeaders = {
|
|
|
4106
4083
|
*/
|
|
4107
4084
|
"If-None-Match"?: IfNoneMatchParameter;
|
|
4108
4085
|
};
|
|
4109
|
-
export type ListRatesParams = {
|
|
4110
|
-
/**
|
|
4111
|
-
* 1-based page number. Defaults to 1.
|
|
4112
|
-
* @minimum 1
|
|
4113
|
-
* @maximum 2147483647
|
|
4114
|
-
*/
|
|
4115
|
-
page?: number;
|
|
4116
|
-
/**
|
|
4117
|
-
* Items per page. Defaults to 50; at most 200.
|
|
4118
|
-
* @minimum 1
|
|
4119
|
-
* @maximum 200
|
|
4120
|
-
*/
|
|
4121
|
-
page_size?: number;
|
|
4122
|
-
/**
|
|
4123
|
-
* Filter by the meter UUID.
|
|
4124
|
-
*/
|
|
4125
|
-
meter_id?: string;
|
|
4126
|
-
/**
|
|
4127
|
-
* Rates in effect at this moment; defaults to now.
|
|
4128
|
-
*/
|
|
4129
|
-
at?: string;
|
|
4130
|
-
};
|
|
4131
|
-
export type ListRatesHeaders = {
|
|
4132
|
-
/**
|
|
4133
|
-
* The `ETag` of an earlier response. When the catalogue has not changed since, the response is `304` with no body.
|
|
4134
|
-
*/
|
|
4135
|
-
"If-None-Match"?: IfNoneMatchParameter;
|
|
4136
|
-
};
|
|
4137
4086
|
export type ListActiveResourcesParams = {
|
|
4138
4087
|
/**
|
|
4139
4088
|
* 1-based page number. Defaults to 1.
|
|
@@ -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
|
|
@@ -1525,52 +1525,6 @@ export const ListPricesByPlanHeader = zod.strictObject({
|
|
|
1525
1525
|
.optional()
|
|
1526
1526
|
.describe("The `ETag` of an earlier response. When the catalogue has not changed since, the response is `304` with no body."),
|
|
1527
1527
|
});
|
|
1528
|
-
/**
|
|
1529
|
-
* Rules of a public rate card; contract cards are not readable here.
|
|
1530
|
-
* @summary List catalog rates
|
|
1531
|
-
*/
|
|
1532
|
-
export const ListRatesParams = zod.strictObject({
|
|
1533
|
-
rateCardId: zod.uuid(),
|
|
1534
|
-
});
|
|
1535
|
-
export const listRatesQueryPageDefault = 1;
|
|
1536
|
-
export const listRatesQueryPageMax = 2147483647;
|
|
1537
|
-
export const listRatesQueryPageSizeDefault = 50;
|
|
1538
|
-
export const listRatesQueryPageSizeMax = 200;
|
|
1539
|
-
export const ListRatesQueryParams = zod.strictObject({
|
|
1540
|
-
page: zod
|
|
1541
|
-
.int()
|
|
1542
|
-
.min(1)
|
|
1543
|
-
.max(listRatesQueryPageMax)
|
|
1544
|
-
.default(listRatesQueryPageDefault)
|
|
1545
|
-
.describe("1-based page number. Defaults to 1."),
|
|
1546
|
-
page_size: zod
|
|
1547
|
-
.int()
|
|
1548
|
-
.min(1)
|
|
1549
|
-
.max(listRatesQueryPageSizeMax)
|
|
1550
|
-
.default(listRatesQueryPageSizeDefault)
|
|
1551
|
-
.describe("Items per page. Defaults to 50; at most 200."),
|
|
1552
|
-
meter_id: zod.uuid().optional().describe("Filter by the meter UUID."),
|
|
1553
|
-
at: zod.iso
|
|
1554
|
-
.datetime({ offset: true })
|
|
1555
|
-
.optional()
|
|
1556
|
-
.describe("Rates in effect at this moment; defaults to now."),
|
|
1557
|
-
});
|
|
1558
|
-
export const ListRatesHeader = zod.strictObject({
|
|
1559
|
-
"If-None-Match": zod
|
|
1560
|
-
.string()
|
|
1561
|
-
.optional()
|
|
1562
|
-
.describe("The `ETag` of an earlier response. When the catalogue has not changed since, the response is `304` with no body."),
|
|
1563
|
-
});
|
|
1564
|
-
/**
|
|
1565
|
-
* Rules of a public rate card that meet every condition in the body, as `list-rates` lists them, for anyone,
|
|
1566
|
-
* signed in or not; contract cards are not readable here. Use it to read the rates at the dimension values of the
|
|
1567
|
-
* items on a page, such as each region and machine type offered, and match each rate to its price by meter,
|
|
1568
|
-
* usage type, interval and dimensions.
|
|
1569
|
-
* @summary Search catalog rates
|
|
1570
|
-
*/
|
|
1571
|
-
export const SearchRatesParams = zod.strictObject({
|
|
1572
|
-
rateCardId: zod.uuid(),
|
|
1573
|
-
});
|
|
1574
1528
|
/**
|
|
1575
1529
|
* 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.
|
|
1576
1530
|
* @summary List active resources
|
|
@@ -7,11 +7,45 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const Price: zod.ZodObject<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
rates: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
meter: zod.ZodObject<{
|
|
12
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
13
|
+
id: zod.ZodUUID;
|
|
14
|
+
name: zod.ZodString;
|
|
15
|
+
}, zod.z.core.$strict>;
|
|
16
|
+
unit: zod.ZodOptional<zod.ZodString>;
|
|
17
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
18
|
+
billing_scheme: zod.ZodEnum<{
|
|
19
|
+
per_unit: "per_unit";
|
|
20
|
+
tiered: "tiered";
|
|
21
|
+
}>;
|
|
22
|
+
usage_type: zod.ZodEnum<{
|
|
23
|
+
licensed: "licensed";
|
|
24
|
+
metered: "metered";
|
|
25
|
+
}>;
|
|
26
|
+
interval: zod.ZodEnum<{
|
|
27
|
+
none: "none";
|
|
28
|
+
day: "day";
|
|
29
|
+
month: "month";
|
|
30
|
+
year: "year";
|
|
31
|
+
}>;
|
|
32
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
33
|
+
tiers_mode: zod.ZodEnum<{
|
|
34
|
+
none: "none";
|
|
35
|
+
graduated: "graduated";
|
|
36
|
+
volume: "volume";
|
|
37
|
+
}>;
|
|
38
|
+
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
39
|
+
tiers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
40
|
+
up_to: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
41
|
+
unit_amount: zod.ZodString;
|
|
42
|
+
flat_amount: zod.ZodOptional<zod.ZodString>;
|
|
43
|
+
}, zod.z.core.$strict>>>;
|
|
44
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
45
|
+
currency: zod.ZodString;
|
|
46
|
+
effective_from: zod.z.ZodISODateTime;
|
|
47
|
+
effective_to: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
48
|
+
}, zod.z.core.$strict>>>>;
|
|
15
49
|
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
16
50
|
product: zod.ZodObject<{
|
|
17
51
|
id: zod.ZodString;
|
|
@@ -69,7 +103,6 @@ export declare const Price: zod.ZodObject<{
|
|
|
69
103
|
unit_amount: zod.ZodString;
|
|
70
104
|
flat_amount: zod.ZodOptional<zod.ZodString>;
|
|
71
105
|
}, zod.z.core.$strict>>>;
|
|
72
|
-
rate_card_id: zod.ZodOptional<zod.ZodUUID>;
|
|
73
106
|
min_quantity: zod.ZodOptional<zod.ZodString>;
|
|
74
107
|
max_quantity: zod.ZodOptional<zod.ZodString>;
|
|
75
108
|
quantity_step: zod.ZodOptional<zod.ZodString>;
|
|
@@ -13,11 +13,15 @@ import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
|
13
13
|
import { PriceType } from "./priceType.zod.js";
|
|
14
14
|
import { Product } from "./product.zod.js";
|
|
15
15
|
import { ProductID } from "./productID.zod.js";
|
|
16
|
+
import { Rate } from "./rate.zod.js";
|
|
16
17
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
17
18
|
import { Tier } from "./tier.zod.js";
|
|
18
19
|
import { UsageType } from "./usageType.zod.js";
|
|
19
20
|
export const Price = zod.strictObject({
|
|
20
|
-
|
|
21
|
+
rates: zod
|
|
22
|
+
.array(Rate)
|
|
23
|
+
.nullish()
|
|
24
|
+
.describe("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."),
|
|
21
25
|
lookup_key: zod.string().optional(),
|
|
22
26
|
product: Product,
|
|
23
27
|
plan: ObjectIdentity,
|
|
@@ -53,10 +57,6 @@ export const Price = zod.strictObject({
|
|
|
53
57
|
.optional()
|
|
54
58
|
.describe("How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered."),
|
|
55
59
|
tiers: zod.array(Tier).optional().describe("Present for `tiered`, in ascending order."),
|
|
56
|
-
rate_card_id: zod
|
|
57
|
-
.uuid()
|
|
58
|
-
.optional()
|
|
59
|
-
.describe("Present when the price delegates to a rate card, the price list its rates are read from."),
|
|
60
60
|
min_quantity: zod
|
|
61
61
|
.string()
|
|
62
62
|
.optional()
|
|
@@ -8,11 +8,45 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const PriceList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
rates: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
12
|
+
meter: zod.ZodObject<{
|
|
13
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
id: zod.ZodUUID;
|
|
15
|
+
name: zod.ZodString;
|
|
16
|
+
}, zod.z.core.$strict>;
|
|
17
|
+
unit: zod.ZodOptional<zod.ZodString>;
|
|
18
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
19
|
+
billing_scheme: zod.ZodEnum<{
|
|
20
|
+
per_unit: "per_unit";
|
|
21
|
+
tiered: "tiered";
|
|
22
|
+
}>;
|
|
23
|
+
usage_type: zod.ZodEnum<{
|
|
24
|
+
licensed: "licensed";
|
|
25
|
+
metered: "metered";
|
|
26
|
+
}>;
|
|
27
|
+
interval: zod.ZodEnum<{
|
|
28
|
+
none: "none";
|
|
29
|
+
day: "day";
|
|
30
|
+
month: "month";
|
|
31
|
+
year: "year";
|
|
32
|
+
}>;
|
|
33
|
+
interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
34
|
+
tiers_mode: zod.ZodEnum<{
|
|
35
|
+
none: "none";
|
|
36
|
+
graduated: "graduated";
|
|
37
|
+
volume: "volume";
|
|
38
|
+
}>;
|
|
39
|
+
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
tiers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
41
|
+
up_to: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
42
|
+
unit_amount: zod.ZodString;
|
|
43
|
+
flat_amount: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
}, zod.z.core.$strict>>>;
|
|
45
|
+
unit_quantity: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
currency: zod.ZodString;
|
|
47
|
+
effective_from: zod.z.ZodISODateTime;
|
|
48
|
+
effective_to: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
49
|
+
}, zod.z.core.$strict>>>>;
|
|
16
50
|
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
17
51
|
product: zod.ZodObject<{
|
|
18
52
|
id: zod.ZodString;
|
|
@@ -70,7 +104,6 @@ export declare const PriceList: zod.ZodObject<{
|
|
|
70
104
|
unit_amount: zod.ZodString;
|
|
71
105
|
flat_amount: zod.ZodOptional<zod.ZodString>;
|
|
72
106
|
}, zod.z.core.$strict>>>;
|
|
73
|
-
rate_card_id: zod.ZodOptional<zod.ZodUUID>;
|
|
74
107
|
min_quantity: zod.ZodOptional<zod.ZodString>;
|
|
75
108
|
max_quantity: zod.ZodOptional<zod.ZodString>;
|
|
76
109
|
quantity_step: zod.ZodOptional<zod.ZodString>;
|
|
@@ -10,6 +10,7 @@ export declare const priceSearchCurrencyMin = 3;
|
|
|
10
10
|
export declare const priceSearchCurrencyMax = 3;
|
|
11
11
|
export declare const priceSearchIdsMax = 200;
|
|
12
12
|
export declare const priceSearchPlanIdsMax = 200;
|
|
13
|
+
export declare const priceSearchDimensionsMax = 200;
|
|
13
14
|
export declare const priceSearchPageMax = 2147483647;
|
|
14
15
|
export declare const priceSearchPageSizeMax = 200;
|
|
15
16
|
export declare const PriceSearch: zod.ZodObject<{
|
|
@@ -25,6 +26,7 @@ export declare const PriceSearch: zod.ZodObject<{
|
|
|
25
26
|
licensed: "licensed";
|
|
26
27
|
metered: "metered";
|
|
27
28
|
}>>;
|
|
29
|
+
dimensions: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
28
30
|
page: zod.ZodOptional<zod.ZodInt>;
|
|
29
31
|
page_size: zod.ZodOptional<zod.ZodInt>;
|
|
30
32
|
}, zod.z.core.$strict>;
|