@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +175 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +94 -3
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,1203 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { ScalewayServiceErrors } from "../errors.ts";
|
|
7
|
+
import { paginateByTotalCount } from "../pagination.ts";
|
|
8
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
9
|
+
import * as Retry from "../retry.ts";
|
|
10
|
+
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
13
|
+
|
|
14
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
15
|
+
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "scaleway-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Scaleway",
|
|
24
|
+
service: "BillingV2beta1",
|
|
25
|
+
labels: "scaleway",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type DownloadInvoiceRequestFileType = "pdf";
|
|
30
|
+
export interface DownloadInvoiceRequest {
|
|
31
|
+
/** Invoice ID. (UUID format) */
|
|
32
|
+
invoice_id: string;
|
|
33
|
+
/** File type. PDF by default. */
|
|
34
|
+
file_type?: DownloadInvoiceRequestFileType | (string & {}) | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface ScalewayStdFile {
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
content_type?: string | undefined;
|
|
39
|
+
content?: string | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface DownloadInvoiceRawRequest {
|
|
42
|
+
/** Invoice ID. (UUID format) */
|
|
43
|
+
invoice_id: string;
|
|
44
|
+
/** File type. PDF by default. */
|
|
45
|
+
file_type?: DownloadInvoiceRequestFileType | (string & {}) | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface DownloadInvoiceRawResponse {
|
|
48
|
+
body: BinaryStream;
|
|
49
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
50
|
+
contentType?: string | undefined;
|
|
51
|
+
}
|
|
52
|
+
export type InvoiceType = "unknown_type" | "periodic" | "purchase" | "credit_note";
|
|
53
|
+
export type ExportInvoicesRequestOrderBy =
|
|
54
|
+
| "invoice_number_desc"
|
|
55
|
+
| "invoice_number_asc"
|
|
56
|
+
| "start_date_desc"
|
|
57
|
+
| "start_date_asc"
|
|
58
|
+
| "issued_date_desc"
|
|
59
|
+
| "issued_date_asc"
|
|
60
|
+
| "due_date_desc"
|
|
61
|
+
| "due_date_asc"
|
|
62
|
+
| "total_untaxed_desc"
|
|
63
|
+
| "total_untaxed_asc"
|
|
64
|
+
| "total_taxed_desc"
|
|
65
|
+
| "total_taxed_asc"
|
|
66
|
+
| "invoice_type_desc"
|
|
67
|
+
| "invoice_type_asc";
|
|
68
|
+
export type ExportInvoicesRequestFileType = "csv";
|
|
69
|
+
export interface ExportInvoicesRequest {
|
|
70
|
+
/** Organization ID. If specified, only invoices from this Organization will be returned. (UUID format) */
|
|
71
|
+
organization_id?: string | undefined;
|
|
72
|
+
/** Return only invoice with start date greater than billing_period_start. (RFC 3339 format) */
|
|
73
|
+
billing_period_start_after?: string | undefined;
|
|
74
|
+
/** Return only invoice with start date less than billing_period_start. (RFC 3339 format) */
|
|
75
|
+
billing_period_start_before?: string | undefined;
|
|
76
|
+
/** Invoice type. It can either be `periodic`, `purchase` or `credit_note`. */
|
|
77
|
+
invoice_type?: InvoiceType | (string & {}) | undefined;
|
|
78
|
+
/** Page number. */
|
|
79
|
+
page?: number | undefined;
|
|
80
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
81
|
+
page_size?: number | undefined;
|
|
82
|
+
/** How invoices are ordered in the response. */
|
|
83
|
+
order_by?: ExportInvoicesRequestOrderBy | (string & {}) | undefined;
|
|
84
|
+
/** File format for exporting the invoice list. */
|
|
85
|
+
file_type?: ExportInvoicesRequestFileType | (string & {}) | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface ExportInvoicesRawRequest {
|
|
88
|
+
/** Organization ID. If specified, only invoices from this Organization will be returned. (UUID format) */
|
|
89
|
+
organization_id?: string | undefined;
|
|
90
|
+
/** Return only invoice with start date greater than billing_period_start. (RFC 3339 format) */
|
|
91
|
+
billing_period_start_after?: string | undefined;
|
|
92
|
+
/** Return only invoice with start date less than billing_period_start. (RFC 3339 format) */
|
|
93
|
+
billing_period_start_before?: string | undefined;
|
|
94
|
+
/** Invoice type. It can either be `periodic`, `purchase` or `credit_note`. */
|
|
95
|
+
invoice_type?: InvoiceType | (string & {}) | undefined;
|
|
96
|
+
/** Page number. */
|
|
97
|
+
page?: number | undefined;
|
|
98
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
99
|
+
page_size?: number | undefined;
|
|
100
|
+
/** How invoices are ordered in the response. */
|
|
101
|
+
order_by?: ExportInvoicesRequestOrderBy | (string & {}) | undefined;
|
|
102
|
+
/** File format for exporting the invoice list. */
|
|
103
|
+
file_type?: ExportInvoicesRequestFileType | (string & {}) | undefined;
|
|
104
|
+
}
|
|
105
|
+
export interface ExportInvoicesRawResponse {
|
|
106
|
+
body: BinaryStream;
|
|
107
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
108
|
+
contentType?: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface GetInvoiceRequest {
|
|
111
|
+
/** Invoice ID. (UUID format) */
|
|
112
|
+
invoice_id: string;
|
|
113
|
+
}
|
|
114
|
+
export interface GoogleTypeMoney {
|
|
115
|
+
currency_code?: string | undefined;
|
|
116
|
+
units?: number | undefined;
|
|
117
|
+
nanos?: number | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface Invoice {
|
|
120
|
+
/** Invoice ID. (UUID format) */
|
|
121
|
+
id?: string | undefined;
|
|
122
|
+
/** (UUID format) */
|
|
123
|
+
organization_id?: string | undefined;
|
|
124
|
+
organization_name?: string | undefined;
|
|
125
|
+
/** Start date of the billing period. (RFC 3339 format) */
|
|
126
|
+
start_date?: string | null | undefined;
|
|
127
|
+
/** (RFC 3339 format) */
|
|
128
|
+
stop_date?: string | null | undefined;
|
|
129
|
+
/** The billing period of the invoice in the YYYY-MM format. (RFC 3339 format) */
|
|
130
|
+
billing_period?: string | null | undefined;
|
|
131
|
+
/** Date when the invoice was sent to the customer. (RFC 3339 format) */
|
|
132
|
+
issued_date?: string | null | undefined;
|
|
133
|
+
/** Payment time limit, set according to the Organization's payment conditions. (RFC 3339 format) */
|
|
134
|
+
due_date?: string | null | undefined;
|
|
135
|
+
/** Total amount, untaxed. */
|
|
136
|
+
total_untaxed?: GoogleTypeMoney | undefined;
|
|
137
|
+
/** Total amount, taxed. */
|
|
138
|
+
total_taxed?: GoogleTypeMoney | undefined;
|
|
139
|
+
/** The total tax amount of the invoice. */
|
|
140
|
+
total_tax?: GoogleTypeMoney | undefined;
|
|
141
|
+
/** The total discount amount of the invoice. */
|
|
142
|
+
total_discount?: GoogleTypeMoney | undefined;
|
|
143
|
+
/** The total amount of the invoice before applying the discount. */
|
|
144
|
+
total_undiscount?: GoogleTypeMoney | undefined;
|
|
145
|
+
/** Type of invoice, either periodic or purchase. */
|
|
146
|
+
type?: InvoiceType | undefined;
|
|
147
|
+
/** The state of the Invoice. */
|
|
148
|
+
state?: string | undefined;
|
|
149
|
+
/** Invoice number. */
|
|
150
|
+
number?: number | undefined;
|
|
151
|
+
/** The name of the seller (Scaleway). */
|
|
152
|
+
seller_name?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
export type ListConsumptionsRequestOrderBy =
|
|
155
|
+
| "updated_at_desc"
|
|
156
|
+
| "updated_at_asc"
|
|
157
|
+
| "category_name_desc"
|
|
158
|
+
| "category_name_asc";
|
|
159
|
+
export interface ListConsumptionsRequest {
|
|
160
|
+
/** Order consumptions list in the response by their update date. */
|
|
161
|
+
order_by?: ListConsumptionsRequestOrderBy | (string & {}) | undefined;
|
|
162
|
+
/** Positive integer to choose the page to return. */
|
|
163
|
+
page?: number | undefined;
|
|
164
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
165
|
+
page_size?: number | undefined;
|
|
166
|
+
/** Filter by name of a Category as they are shown in the invoice (Compute, Network, Observability). */
|
|
167
|
+
category_name?: string | undefined;
|
|
168
|
+
/** Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default. */
|
|
169
|
+
billing_period?: string | undefined;
|
|
170
|
+
/** Filter by Organization ID. One-of `filter`: at most one of `organization_id`, `project_id`. */
|
|
171
|
+
organization_id?: string | undefined;
|
|
172
|
+
/** Filter by Project ID. One-of `filter`: at most one of `organization_id`, `project_id`. */
|
|
173
|
+
project_id?: string | undefined;
|
|
174
|
+
}
|
|
175
|
+
export interface ListConsumptionsResponseConsumption {
|
|
176
|
+
/** Monetary value of the consumption. */
|
|
177
|
+
value?: GoogleTypeMoney | undefined;
|
|
178
|
+
/** The product name. For example, "VPC Public Gateway S", "VPC Public Gateway M" for the VPC product. */
|
|
179
|
+
product_name?: string | undefined;
|
|
180
|
+
/** Identifies the reference based on the category. */
|
|
181
|
+
resource_name?: string | undefined;
|
|
182
|
+
/** Unique identifier of the product. */
|
|
183
|
+
sku?: string | undefined;
|
|
184
|
+
/** Project ID of the consumption. */
|
|
185
|
+
project_id?: string | undefined;
|
|
186
|
+
/** Name of consumption category. */
|
|
187
|
+
category_name?: string | undefined;
|
|
188
|
+
/** Unit of consumed quantity. */
|
|
189
|
+
unit?: string | undefined;
|
|
190
|
+
/** Consumed quantity. */
|
|
191
|
+
billed_quantity?: string | undefined;
|
|
192
|
+
/** Organization ID of the consumer for this consumption. */
|
|
193
|
+
consumer_id?: string | undefined;
|
|
194
|
+
/** Project name of the consumpiton. */
|
|
195
|
+
project_name?: string | undefined;
|
|
196
|
+
/** Organization name of the consumer for this consumption. */
|
|
197
|
+
organization_name?: string | undefined;
|
|
198
|
+
}
|
|
199
|
+
/** Detailed consumption list. */
|
|
200
|
+
export type ListConsumptionsResponseConsumptionsList = Array<ListConsumptionsResponseConsumption>;
|
|
201
|
+
export interface ListConsumptionsResponse {
|
|
202
|
+
/** Detailed consumption list. */
|
|
203
|
+
consumptions: ListConsumptionsResponseConsumptionsList;
|
|
204
|
+
/** Total number of returned items. */
|
|
205
|
+
total_count?: number | undefined;
|
|
206
|
+
/** Sum of all discounts, displayed only when no category or project ID filter is applied. */
|
|
207
|
+
total_discount_untaxed_value?: number | undefined;
|
|
208
|
+
/** Last consumption update date. (RFC 3339 format) */
|
|
209
|
+
updated_at?: string | null | undefined;
|
|
210
|
+
}
|
|
211
|
+
export interface ListDiscountLinesRequest {
|
|
212
|
+
/** Invoice ID. (UUID format) */
|
|
213
|
+
invoice_id: string;
|
|
214
|
+
/** Positive integer to choose the page to return. */
|
|
215
|
+
page?: number | undefined;
|
|
216
|
+
/** Positive integer lower or equal to 1000 to select the number of items to return. */
|
|
217
|
+
page_size?: number | undefined;
|
|
218
|
+
}
|
|
219
|
+
export type DiscountLineOrigin =
|
|
220
|
+
| "unknown_origin"
|
|
221
|
+
| "discount"
|
|
222
|
+
| "contractual_commitment_range"
|
|
223
|
+
| "savings_plan_activation"
|
|
224
|
+
| "credit_note_rebate"
|
|
225
|
+
| "reserved_resource_activation"
|
|
226
|
+
| "offer_included";
|
|
227
|
+
export interface DiscountLine {
|
|
228
|
+
/** Discount line ID. */
|
|
229
|
+
id?: string | undefined;
|
|
230
|
+
/** ID of the invoice line the discount applies to. (UUID format) */
|
|
231
|
+
invoice_line_id?: string | undefined;
|
|
232
|
+
/** The origin of the discount line. */
|
|
233
|
+
origin?: DiscountLineOrigin | undefined;
|
|
234
|
+
/** The value of the discount. */
|
|
235
|
+
value?: GoogleTypeMoney | undefined;
|
|
236
|
+
}
|
|
237
|
+
/** Paginated returned discount lines. */
|
|
238
|
+
export type ListDiscountLinesResponseDiscountLinesList = Array<DiscountLine>;
|
|
239
|
+
export interface ListDiscountLinesResponse {
|
|
240
|
+
/** Total number of discount lines. */
|
|
241
|
+
total_count?: number | undefined;
|
|
242
|
+
/** Paginated returned discount lines. */
|
|
243
|
+
discount_lines: ListDiscountLinesResponseDiscountLinesList;
|
|
244
|
+
}
|
|
245
|
+
export type ListDiscountsRequestOrderBy =
|
|
246
|
+
| "creation_date_desc"
|
|
247
|
+
| "creation_date_asc"
|
|
248
|
+
| "start_date_desc"
|
|
249
|
+
| "start_date_asc"
|
|
250
|
+
| "stop_date_desc"
|
|
251
|
+
| "stop_date_asc";
|
|
252
|
+
export interface ListDiscountsRequest {
|
|
253
|
+
/** Order discounts in the response by their description. */
|
|
254
|
+
order_by?: ListDiscountsRequestOrderBy | (string & {}) | undefined;
|
|
255
|
+
/** Positive integer to choose the page to return. */
|
|
256
|
+
page?: number | undefined;
|
|
257
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
258
|
+
page_size?: number | undefined;
|
|
259
|
+
/** ID of the organization. (UUID format) */
|
|
260
|
+
organization_id?: string | undefined;
|
|
261
|
+
}
|
|
262
|
+
export type DiscountDiscountMode =
|
|
263
|
+
| "unknown_discount_mode"
|
|
264
|
+
| "discount_mode_rate"
|
|
265
|
+
| "discount_mode_value"
|
|
266
|
+
| "discount_mode_splittable";
|
|
267
|
+
export interface DiscountCoupon {
|
|
268
|
+
/** The description of the coupon. */
|
|
269
|
+
description?: string | null | undefined;
|
|
270
|
+
}
|
|
271
|
+
export type DiscountFilterType =
|
|
272
|
+
| "unknown_type"
|
|
273
|
+
| "category_name"
|
|
274
|
+
| "product_name"
|
|
275
|
+
| "product_range"
|
|
276
|
+
| "resource_name"
|
|
277
|
+
| "region"
|
|
278
|
+
| "zone";
|
|
279
|
+
export interface DiscountFilter {
|
|
280
|
+
/** Type of the filter (category name, product name, product range, resource name, region or zone). */
|
|
281
|
+
type?: DiscountFilterType | undefined;
|
|
282
|
+
/** Value of filter. */
|
|
283
|
+
value?: string | undefined;
|
|
284
|
+
/** Boolean to describe if filter is an excluding filter. */
|
|
285
|
+
exclude?: boolean | undefined;
|
|
286
|
+
}
|
|
287
|
+
/** List of the discount scopes. */
|
|
288
|
+
export type DiscountFiltersList = Array<DiscountFilter>;
|
|
289
|
+
export interface Discount {
|
|
290
|
+
/** The ID of the discount. */
|
|
291
|
+
id?: string | undefined;
|
|
292
|
+
/** The creation date of the discount. (RFC 3339 format) */
|
|
293
|
+
creation_date?: string | null | undefined;
|
|
294
|
+
/** The Organization ID of the discount. */
|
|
295
|
+
organization_id?: string | undefined;
|
|
296
|
+
/** The description of the discount. */
|
|
297
|
+
description?: string | undefined;
|
|
298
|
+
/** The initial value of the discount. */
|
|
299
|
+
value?: number | undefined;
|
|
300
|
+
/** The value indicating how much of the discount has been used. */
|
|
301
|
+
value_used?: number | undefined;
|
|
302
|
+
/** The remaining value of the discount. */
|
|
303
|
+
value_remaining?: number | undefined;
|
|
304
|
+
/** The mode of the discount. */
|
|
305
|
+
mode?: DiscountDiscountMode | undefined;
|
|
306
|
+
/** The start date of the discount. (RFC 3339 format) */
|
|
307
|
+
start_date?: string | null | undefined;
|
|
308
|
+
/** The stop date of the discount. (RFC 3339 format) */
|
|
309
|
+
stop_date?: string | null | undefined;
|
|
310
|
+
/** The description of the coupon. */
|
|
311
|
+
coupon?: DiscountCoupon | undefined;
|
|
312
|
+
/** List of the discount scopes. */
|
|
313
|
+
filters?: DiscountFiltersList | undefined;
|
|
314
|
+
}
|
|
315
|
+
/** Paginated returned discounts. */
|
|
316
|
+
export type ListDiscountsResponseDiscountsList = Array<Discount>;
|
|
317
|
+
export interface ListDiscountsResponse {
|
|
318
|
+
/** Total number of discounts. */
|
|
319
|
+
total_count?: number | undefined;
|
|
320
|
+
/** Paginated returned discounts. */
|
|
321
|
+
discounts: ListDiscountsResponseDiscountsList;
|
|
322
|
+
}
|
|
323
|
+
export interface ListInvoiceLinesRequest {
|
|
324
|
+
/** Invoice ID. (UUID format) */
|
|
325
|
+
invoice_id: string;
|
|
326
|
+
/** Positive integer to choose the page to return. */
|
|
327
|
+
page?: number | undefined;
|
|
328
|
+
/** Positive integer lower or equal to 1000 to select the number of items to return. */
|
|
329
|
+
page_size?: number | undefined;
|
|
330
|
+
}
|
|
331
|
+
export interface InvoiceLine {
|
|
332
|
+
/** Invoice line ID. (UUID format) */
|
|
333
|
+
id?: string | undefined;
|
|
334
|
+
/** ID of the invoice the line belongs to. (UUID format) */
|
|
335
|
+
invoice_id?: string | undefined;
|
|
336
|
+
/** Organization ID of the consumer for this line. (UUID format) */
|
|
337
|
+
organization_id?: string | undefined;
|
|
338
|
+
/** Organization name of the consumer for this line. */
|
|
339
|
+
organization_name?: string | undefined;
|
|
340
|
+
/** Project ID of the line. (UUID format) */
|
|
341
|
+
project_id?: string | undefined;
|
|
342
|
+
/** Project name of the line. */
|
|
343
|
+
project_name?: string | undefined;
|
|
344
|
+
/** Unique identifier of the product. */
|
|
345
|
+
sku?: string | undefined;
|
|
346
|
+
/** Name of consumption category. */
|
|
347
|
+
category_name?: string | undefined;
|
|
348
|
+
/** The product name. */
|
|
349
|
+
product_name?: string | undefined;
|
|
350
|
+
/** Identifies the reference based on the category. */
|
|
351
|
+
resource_name?: string | undefined;
|
|
352
|
+
/** Start date of the line. (RFC 3339 format) */
|
|
353
|
+
start_date?: string | null | undefined;
|
|
354
|
+
/** Stop date of the line. (RFC 3339 format) */
|
|
355
|
+
stop_date?: string | null | undefined;
|
|
356
|
+
/** Unit price of the reference. */
|
|
357
|
+
unit_price?: GoogleTypeMoney | undefined;
|
|
358
|
+
/** Untaxed value of the line. */
|
|
359
|
+
untaxed_value?: GoogleTypeMoney | undefined;
|
|
360
|
+
/** Unit of consumed quantity. */
|
|
361
|
+
unit?: string | undefined;
|
|
362
|
+
/** Quantity per unit. */
|
|
363
|
+
unit_quantity?: string | undefined;
|
|
364
|
+
/** Billed quantity. */
|
|
365
|
+
billed_quantity?: string | undefined;
|
|
366
|
+
/** Number of unique resources billed on this line. */
|
|
367
|
+
resource_count?: number | undefined;
|
|
368
|
+
}
|
|
369
|
+
/** Paginated returned invoice lines. */
|
|
370
|
+
export type ListInvoiceLinesResponseInvoiceLinesList = Array<InvoiceLine>;
|
|
371
|
+
export interface ListInvoiceLinesResponse {
|
|
372
|
+
/** Total number of invoice lines. */
|
|
373
|
+
total_count?: number | undefined;
|
|
374
|
+
/** Paginated returned invoice lines. */
|
|
375
|
+
invoice_lines: ListInvoiceLinesResponseInvoiceLinesList;
|
|
376
|
+
}
|
|
377
|
+
export type ListInvoicesRequestOrderBy =
|
|
378
|
+
| "invoice_number_desc"
|
|
379
|
+
| "invoice_number_asc"
|
|
380
|
+
| "start_date_desc"
|
|
381
|
+
| "start_date_asc"
|
|
382
|
+
| "issued_date_desc"
|
|
383
|
+
| "issued_date_asc"
|
|
384
|
+
| "due_date_desc"
|
|
385
|
+
| "due_date_asc"
|
|
386
|
+
| "total_untaxed_desc"
|
|
387
|
+
| "total_untaxed_asc"
|
|
388
|
+
| "total_taxed_desc"
|
|
389
|
+
| "total_taxed_asc"
|
|
390
|
+
| "invoice_type_desc"
|
|
391
|
+
| "invoice_type_asc";
|
|
392
|
+
export interface ListInvoicesRequest {
|
|
393
|
+
/** Organization ID. If specified, only invoices from this Organization will be returned. (UUID format) */
|
|
394
|
+
organization_id?: string | undefined;
|
|
395
|
+
/** Return only invoice with start date greater than billing_period_start. (RFC 3339 format) */
|
|
396
|
+
billing_period_start_after?: string | undefined;
|
|
397
|
+
/** Return only invoice with start date less than billing_period_start. (RFC 3339 format) */
|
|
398
|
+
billing_period_start_before?: string | undefined;
|
|
399
|
+
/** Invoice type. It can either be `periodic`, `purchase` or `credit_note`. */
|
|
400
|
+
invoice_type?: InvoiceType | (string & {}) | undefined;
|
|
401
|
+
/** Page number. */
|
|
402
|
+
page?: number | undefined;
|
|
403
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
404
|
+
page_size?: number | undefined;
|
|
405
|
+
/** How invoices are ordered in the response. */
|
|
406
|
+
order_by?: ListInvoicesRequestOrderBy | (string & {}) | undefined;
|
|
407
|
+
}
|
|
408
|
+
/** Paginated returned invoices. */
|
|
409
|
+
export type ListInvoicesResponseInvoicesList = Array<Invoice>;
|
|
410
|
+
export interface ListInvoicesResponse {
|
|
411
|
+
/** Total number of invoices. */
|
|
412
|
+
total_count?: number | undefined;
|
|
413
|
+
/** Paginated returned invoices. */
|
|
414
|
+
invoices: ListInvoicesResponseInvoicesList;
|
|
415
|
+
}
|
|
416
|
+
export type ListTaxesRequestOrderBy =
|
|
417
|
+
| "updated_at_desc"
|
|
418
|
+
| "updated_at_asc"
|
|
419
|
+
| "category_name_desc"
|
|
420
|
+
| "category_name_asc";
|
|
421
|
+
export interface ListTaxesRequest {
|
|
422
|
+
/** Order consumed taxes list in the response by their update date. */
|
|
423
|
+
order_by?: ListTaxesRequestOrderBy | (string & {}) | undefined;
|
|
424
|
+
/** Page number. */
|
|
425
|
+
page?: number | undefined;
|
|
426
|
+
/** Positive integer lower or equal to 100 to select the number of items to return. */
|
|
427
|
+
page_size?: number | undefined;
|
|
428
|
+
/** Filter by Organization ID. (UUID format) */
|
|
429
|
+
organization_id: string;
|
|
430
|
+
/** Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default. */
|
|
431
|
+
billing_period?: string | undefined;
|
|
432
|
+
}
|
|
433
|
+
export interface ListTaxesResponseTax {
|
|
434
|
+
/** Description of the tax applied. */
|
|
435
|
+
description?: string | undefined;
|
|
436
|
+
/** The three-letter currency code. */
|
|
437
|
+
currency?: string | undefined;
|
|
438
|
+
/** Applied tax rate (0.2 means a VAT of 20%). */
|
|
439
|
+
rate?: number | null | undefined;
|
|
440
|
+
/** The total tax value of the consumption. */
|
|
441
|
+
total_tax_value?: number | null | undefined;
|
|
442
|
+
}
|
|
443
|
+
/** Detailed consumption tax. */
|
|
444
|
+
export type ListTaxesResponseTaxesList = Array<ListTaxesResponseTax>;
|
|
445
|
+
export interface ListTaxesResponse {
|
|
446
|
+
/** Detailed consumption tax. */
|
|
447
|
+
taxes: ListTaxesResponseTaxesList;
|
|
448
|
+
/** Total number of returned items. */
|
|
449
|
+
total_count?: number | undefined;
|
|
450
|
+
/** Last consumption update date. (RFC 3339 format) */
|
|
451
|
+
updated_at?: string | null | undefined;
|
|
452
|
+
}
|
|
453
|
+
export interface RedeemCouponRequest {
|
|
454
|
+
/** The Organization ID of the discount. (UUID format) */
|
|
455
|
+
organization_id: string;
|
|
456
|
+
/** The code of the coupon to redeem. */
|
|
457
|
+
code: string;
|
|
458
|
+
}
|
|
459
|
+
export type DownloadInvoiceError = ScalewayOpError;
|
|
460
|
+
/** Download an invoice Download a specific invoice, specified by its ID. */
|
|
461
|
+
export const downloadInvoice: API.OperationMethod<
|
|
462
|
+
DownloadInvoiceRequest,
|
|
463
|
+
ScalewayStdFile,
|
|
464
|
+
DownloadInvoiceError,
|
|
465
|
+
ScalewayOpContext
|
|
466
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
467
|
+
input: __S(0, __c0, 0) as any as S.Schema<DownloadInvoiceRequest>,
|
|
468
|
+
output: __S(4, __c1, 0) as any as S.Schema<ScalewayStdFile>,
|
|
469
|
+
errors: [],
|
|
470
|
+
serviceErrors: ScalewayServiceErrors,
|
|
471
|
+
protocol: ScalewayProtocol,
|
|
472
|
+
retry: Retry.Retry,
|
|
473
|
+
telemetry: TELEMETRY,
|
|
474
|
+
span: "DownloadInvoice",
|
|
475
|
+
}));
|
|
476
|
+
|
|
477
|
+
export type DownloadInvoiceRawError = ScalewayOpError;
|
|
478
|
+
/** The file `downloadInvoice` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
479
|
+
export const downloadInvoiceRaw: API.OperationMethod<
|
|
480
|
+
DownloadInvoiceRawRequest,
|
|
481
|
+
DownloadInvoiceRawResponse,
|
|
482
|
+
DownloadInvoiceRawError,
|
|
483
|
+
ScalewayOpContext
|
|
484
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
485
|
+
input: __S(8, __c2, 0) as any as S.Schema<DownloadInvoiceRawRequest>,
|
|
486
|
+
output: __S(12, __c3, 0) as any as S.Schema<DownloadInvoiceRawResponse>,
|
|
487
|
+
errors: [],
|
|
488
|
+
serviceErrors: ScalewayServiceErrors,
|
|
489
|
+
protocol: ScalewayProtocol,
|
|
490
|
+
retry: Retry.Retry,
|
|
491
|
+
telemetry: TELEMETRY,
|
|
492
|
+
span: "DownloadInvoiceRaw",
|
|
493
|
+
}));
|
|
494
|
+
|
|
495
|
+
export type ExportInvoicesError = ScalewayOpError;
|
|
496
|
+
/** Export invoices Export invoices in a CSV file. */
|
|
497
|
+
export const exportInvoices: API.OperationMethod<
|
|
498
|
+
ExportInvoicesRequest,
|
|
499
|
+
ScalewayStdFile,
|
|
500
|
+
ExportInvoicesError,
|
|
501
|
+
ScalewayOpContext
|
|
502
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
503
|
+
input: __S(24, __c6, 0) as any as S.Schema<ExportInvoicesRequest>,
|
|
504
|
+
output: __S(4, __c1, 0) as any as S.Schema<ScalewayStdFile>,
|
|
505
|
+
errors: [],
|
|
506
|
+
serviceErrors: ScalewayServiceErrors,
|
|
507
|
+
protocol: ScalewayProtocol,
|
|
508
|
+
retry: Retry.Retry,
|
|
509
|
+
telemetry: TELEMETRY,
|
|
510
|
+
span: "ExportInvoices",
|
|
511
|
+
}));
|
|
512
|
+
|
|
513
|
+
export type ExportInvoicesRawError = ScalewayOpError;
|
|
514
|
+
/** The file `exportInvoices` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
515
|
+
export const exportInvoicesRaw: API.OperationMethod<
|
|
516
|
+
ExportInvoicesRawRequest,
|
|
517
|
+
ExportInvoicesRawResponse,
|
|
518
|
+
ExportInvoicesRawError,
|
|
519
|
+
ScalewayOpContext
|
|
520
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
521
|
+
input: __S(28, __c7, 0) as any as S.Schema<ExportInvoicesRawRequest>,
|
|
522
|
+
output: __S(12, __c3, 0) as any as S.Schema<ExportInvoicesRawResponse>,
|
|
523
|
+
errors: [],
|
|
524
|
+
serviceErrors: ScalewayServiceErrors,
|
|
525
|
+
protocol: ScalewayProtocol,
|
|
526
|
+
retry: Retry.Retry,
|
|
527
|
+
telemetry: TELEMETRY,
|
|
528
|
+
span: "ExportInvoicesRaw",
|
|
529
|
+
}));
|
|
530
|
+
|
|
531
|
+
export type GetInvoiceError = ScalewayOpError;
|
|
532
|
+
/** Get an invoice Get a specific invoice, specified by its ID. */
|
|
533
|
+
export const getInvoice: API.OperationMethod<
|
|
534
|
+
GetInvoiceRequest,
|
|
535
|
+
Invoice,
|
|
536
|
+
GetInvoiceError,
|
|
537
|
+
ScalewayOpContext
|
|
538
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
539
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetInvoiceRequest>,
|
|
540
|
+
output: __S(40, __c10, 0) as any as S.Schema<Invoice>,
|
|
541
|
+
errors: [],
|
|
542
|
+
serviceErrors: ScalewayServiceErrors,
|
|
543
|
+
protocol: ScalewayProtocol,
|
|
544
|
+
retry: Retry.Retry,
|
|
545
|
+
telemetry: TELEMETRY,
|
|
546
|
+
span: "GetInvoice",
|
|
547
|
+
}));
|
|
548
|
+
|
|
549
|
+
export type ListConsumptionsError = ScalewayOpError;
|
|
550
|
+
/** Get monthly consumption Consumption allows you to retrieve your past or current consumption cost, by project or category. */
|
|
551
|
+
export const listConsumptions: API.PaginatedOperationMethod<
|
|
552
|
+
ListConsumptionsRequest,
|
|
553
|
+
ListConsumptionsResponse,
|
|
554
|
+
ListConsumptionsError,
|
|
555
|
+
ScalewayOpContext,
|
|
556
|
+
ListConsumptionsResponseConsumption
|
|
557
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
558
|
+
() => ({
|
|
559
|
+
input: __S(44, __c11, 0) as any as S.Schema<ListConsumptionsRequest>,
|
|
560
|
+
output: __S(47, __c11, 3) as any as S.Schema<ListConsumptionsResponse>,
|
|
561
|
+
errors: [],
|
|
562
|
+
serviceErrors: ScalewayServiceErrors,
|
|
563
|
+
protocol: ScalewayProtocol,
|
|
564
|
+
retry: Retry.Retry,
|
|
565
|
+
telemetry: TELEMETRY,
|
|
566
|
+
span: "ListConsumptions",
|
|
567
|
+
pagination: {
|
|
568
|
+
mode: "page",
|
|
569
|
+
inputToken: "page",
|
|
570
|
+
outputToken: "total_count",
|
|
571
|
+
items: "consumptions",
|
|
572
|
+
pageSize: "page_size",
|
|
573
|
+
} as const,
|
|
574
|
+
}),
|
|
575
|
+
paginateByTotalCount,
|
|
576
|
+
) as any;
|
|
577
|
+
|
|
578
|
+
export type ListDiscountLinesError = ScalewayOpError;
|
|
579
|
+
/** List discount lines List all discount lines of a given invoice, specified by its ID. */
|
|
580
|
+
export const listDiscountLines: API.PaginatedOperationMethod<
|
|
581
|
+
ListDiscountLinesRequest,
|
|
582
|
+
ListDiscountLinesResponse,
|
|
583
|
+
ListDiscountLinesError,
|
|
584
|
+
ScalewayOpContext,
|
|
585
|
+
DiscountLine
|
|
586
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
587
|
+
() => ({
|
|
588
|
+
input: __S(48, __c12, 0) as any as S.Schema<ListDiscountLinesRequest>,
|
|
589
|
+
output: __S(51, __c12, 3) as any as S.Schema<ListDiscountLinesResponse>,
|
|
590
|
+
errors: [],
|
|
591
|
+
serviceErrors: ScalewayServiceErrors,
|
|
592
|
+
protocol: ScalewayProtocol,
|
|
593
|
+
retry: Retry.Retry,
|
|
594
|
+
telemetry: TELEMETRY,
|
|
595
|
+
span: "ListDiscountLines",
|
|
596
|
+
pagination: {
|
|
597
|
+
mode: "page",
|
|
598
|
+
inputToken: "page",
|
|
599
|
+
outputToken: "total_count",
|
|
600
|
+
items: "discount_lines",
|
|
601
|
+
pageSize: "page_size",
|
|
602
|
+
} as const,
|
|
603
|
+
}),
|
|
604
|
+
paginateByTotalCount,
|
|
605
|
+
) as any;
|
|
606
|
+
|
|
607
|
+
export type ListDiscountsError = ScalewayOpError;
|
|
608
|
+
/** List discounts List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller: - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers - If you indicate your `organization_id` you will list only the discounts applied to your Organization - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization. */
|
|
609
|
+
export const listDiscounts: API.PaginatedOperationMethod<
|
|
610
|
+
ListDiscountsRequest,
|
|
611
|
+
ListDiscountsResponse,
|
|
612
|
+
ListDiscountsError,
|
|
613
|
+
ScalewayOpContext,
|
|
614
|
+
Discount
|
|
615
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
616
|
+
() => ({
|
|
617
|
+
input: __S(52, __c13, 0) as any as S.Schema<ListDiscountsRequest>,
|
|
618
|
+
output: __S(54, __c13, 2) as any as S.Schema<ListDiscountsResponse>,
|
|
619
|
+
errors: [],
|
|
620
|
+
serviceErrors: ScalewayServiceErrors,
|
|
621
|
+
protocol: ScalewayProtocol,
|
|
622
|
+
retry: Retry.Retry,
|
|
623
|
+
telemetry: TELEMETRY,
|
|
624
|
+
span: "ListDiscounts",
|
|
625
|
+
pagination: {
|
|
626
|
+
mode: "page",
|
|
627
|
+
inputToken: "page",
|
|
628
|
+
outputToken: "total_count",
|
|
629
|
+
items: "discounts",
|
|
630
|
+
pageSize: "page_size",
|
|
631
|
+
} as const,
|
|
632
|
+
}),
|
|
633
|
+
paginateByTotalCount,
|
|
634
|
+
) as any;
|
|
635
|
+
|
|
636
|
+
export type ListInvoiceLinesError = ScalewayOpError;
|
|
637
|
+
/** List invoice lines List all lines of a given invoice, specified by its ID. */
|
|
638
|
+
export const listInvoiceLines: API.PaginatedOperationMethod<
|
|
639
|
+
ListInvoiceLinesRequest,
|
|
640
|
+
ListInvoiceLinesResponse,
|
|
641
|
+
ListInvoiceLinesError,
|
|
642
|
+
ScalewayOpContext,
|
|
643
|
+
InvoiceLine
|
|
644
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
645
|
+
() => ({
|
|
646
|
+
input: __S(60, __c15, 0) as any as S.Schema<ListInvoiceLinesRequest>,
|
|
647
|
+
output: __S(63, __c15, 3) as any as S.Schema<ListInvoiceLinesResponse>,
|
|
648
|
+
errors: [],
|
|
649
|
+
serviceErrors: ScalewayServiceErrors,
|
|
650
|
+
protocol: ScalewayProtocol,
|
|
651
|
+
retry: Retry.Retry,
|
|
652
|
+
telemetry: TELEMETRY,
|
|
653
|
+
span: "ListInvoiceLines",
|
|
654
|
+
pagination: {
|
|
655
|
+
mode: "page",
|
|
656
|
+
inputToken: "page",
|
|
657
|
+
outputToken: "total_count",
|
|
658
|
+
items: "invoice_lines",
|
|
659
|
+
pageSize: "page_size",
|
|
660
|
+
} as const,
|
|
661
|
+
}),
|
|
662
|
+
paginateByTotalCount,
|
|
663
|
+
) as any;
|
|
664
|
+
|
|
665
|
+
export type ListInvoicesError = ScalewayOpError;
|
|
666
|
+
/** List invoices List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID. */
|
|
667
|
+
export const listInvoices: API.PaginatedOperationMethod<
|
|
668
|
+
ListInvoicesRequest,
|
|
669
|
+
ListInvoicesResponse,
|
|
670
|
+
ListInvoicesError,
|
|
671
|
+
ScalewayOpContext,
|
|
672
|
+
Invoice
|
|
673
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
674
|
+
() => ({
|
|
675
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListInvoicesRequest>,
|
|
676
|
+
output: __S(66, __c16, 2) as any as S.Schema<ListInvoicesResponse>,
|
|
677
|
+
errors: [],
|
|
678
|
+
serviceErrors: ScalewayServiceErrors,
|
|
679
|
+
protocol: ScalewayProtocol,
|
|
680
|
+
retry: Retry.Retry,
|
|
681
|
+
telemetry: TELEMETRY,
|
|
682
|
+
span: "ListInvoices",
|
|
683
|
+
pagination: {
|
|
684
|
+
mode: "page",
|
|
685
|
+
inputToken: "page",
|
|
686
|
+
outputToken: "total_count",
|
|
687
|
+
items: "invoices",
|
|
688
|
+
pageSize: "page_size",
|
|
689
|
+
} as const,
|
|
690
|
+
}),
|
|
691
|
+
paginateByTotalCount,
|
|
692
|
+
) as any;
|
|
693
|
+
|
|
694
|
+
export type ListTaxesError = ScalewayOpError;
|
|
695
|
+
/** Get monthly consumption taxes Consumption Tax allows you to retrieve your past or current tax charges, by project or category. */
|
|
696
|
+
export const listTaxes: API.PaginatedOperationMethod<
|
|
697
|
+
ListTaxesRequest,
|
|
698
|
+
ListTaxesResponse,
|
|
699
|
+
ListTaxesError,
|
|
700
|
+
ScalewayOpContext,
|
|
701
|
+
ListTaxesResponseTax
|
|
702
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
703
|
+
() => ({
|
|
704
|
+
input: __S(16, __c4, 0) as any as S.Schema<ListTaxesRequest>,
|
|
705
|
+
output: __S(19, __c4, 3) as any as S.Schema<ListTaxesResponse>,
|
|
706
|
+
errors: [],
|
|
707
|
+
serviceErrors: ScalewayServiceErrors,
|
|
708
|
+
protocol: ScalewayProtocol,
|
|
709
|
+
retry: Retry.Retry,
|
|
710
|
+
telemetry: TELEMETRY,
|
|
711
|
+
span: "ListTaxes",
|
|
712
|
+
pagination: {
|
|
713
|
+
mode: "page",
|
|
714
|
+
inputToken: "page",
|
|
715
|
+
outputToken: "total_count",
|
|
716
|
+
items: "taxes",
|
|
717
|
+
pageSize: "page_size",
|
|
718
|
+
} as const,
|
|
719
|
+
}),
|
|
720
|
+
paginateByTotalCount,
|
|
721
|
+
) as any;
|
|
722
|
+
|
|
723
|
+
export type RedeemCouponError = ScalewayOpError;
|
|
724
|
+
/** Redeem coupon Redeem a coupon given the related code. */
|
|
725
|
+
export const redeemCoupon: API.OperationMethod<
|
|
726
|
+
RedeemCouponRequest,
|
|
727
|
+
Discount,
|
|
728
|
+
RedeemCouponError,
|
|
729
|
+
ScalewayOpContext
|
|
730
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
731
|
+
input: __S(20, __c5, 0) as any as S.Schema<RedeemCouponRequest>,
|
|
732
|
+
output: __S(59, __c14, 3) as any as S.Schema<Discount>,
|
|
733
|
+
errors: [],
|
|
734
|
+
serviceErrors: ScalewayServiceErrors,
|
|
735
|
+
protocol: ScalewayProtocol,
|
|
736
|
+
retry: Retry.Retry,
|
|
737
|
+
telemetry: TELEMETRY,
|
|
738
|
+
span: "RedeemCoupon",
|
|
739
|
+
}));
|
|
740
|
+
|
|
741
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
742
|
+
function __c0(j: number): any {
|
|
743
|
+
switch (j) {
|
|
744
|
+
case 0:
|
|
745
|
+
return S.suspend(() =>
|
|
746
|
+
S.Struct({
|
|
747
|
+
invoice_id: S.String.pipe(T.Label()),
|
|
748
|
+
file_type: S.optional(S.String.pipe(T.Query())),
|
|
749
|
+
}).pipe(
|
|
750
|
+
T.Http({
|
|
751
|
+
method: "GET",
|
|
752
|
+
uri: "/billing/v2beta1/invoices/{invoice_id}/download",
|
|
753
|
+
code: 200,
|
|
754
|
+
baseUrl: "https://api.scaleway.com",
|
|
755
|
+
}),
|
|
756
|
+
),
|
|
757
|
+
).annotate({ identifier: "DownloadInvoiceRequest" });
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
function __c1(j: number): any {
|
|
761
|
+
switch (j) {
|
|
762
|
+
case 0:
|
|
763
|
+
return S.suspend(() =>
|
|
764
|
+
S.Struct({
|
|
765
|
+
name: S.optional(S.String),
|
|
766
|
+
content_type: S.optional(S.String),
|
|
767
|
+
content: S.optional(S.String),
|
|
768
|
+
}),
|
|
769
|
+
).annotate({ identifier: "ScalewayStdFile" });
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
function __c2(j: number): any {
|
|
773
|
+
switch (j) {
|
|
774
|
+
case 0:
|
|
775
|
+
return S.suspend(() =>
|
|
776
|
+
S.Struct({
|
|
777
|
+
invoice_id: S.String.pipe(T.Label()),
|
|
778
|
+
file_type: S.optional(S.String.pipe(T.Query())),
|
|
779
|
+
}).pipe(
|
|
780
|
+
T.Http({
|
|
781
|
+
method: "GET",
|
|
782
|
+
uri: "/billing/v2beta1/invoices/{invoice_id}/download",
|
|
783
|
+
code: 200,
|
|
784
|
+
baseUrl: "https://api.scaleway.com",
|
|
785
|
+
rawDownload: true,
|
|
786
|
+
}),
|
|
787
|
+
),
|
|
788
|
+
).annotate({ identifier: "DownloadInvoiceRawRequest" });
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function __c3(j: number): any {
|
|
792
|
+
switch (j) {
|
|
793
|
+
case 0:
|
|
794
|
+
return S.suspend(() =>
|
|
795
|
+
S.Struct({
|
|
796
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
797
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
798
|
+
}),
|
|
799
|
+
).annotate({ identifier: "DownloadInvoiceRawResponse" });
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function __c4(j: number): any {
|
|
803
|
+
switch (j) {
|
|
804
|
+
case 0:
|
|
805
|
+
return S.suspend(() =>
|
|
806
|
+
S.Struct({
|
|
807
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
808
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
809
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
810
|
+
organization_id: S.String.pipe(T.Query()),
|
|
811
|
+
billing_period: S.optional(S.String.pipe(T.Query())),
|
|
812
|
+
}).pipe(
|
|
813
|
+
T.Http({
|
|
814
|
+
method: "GET",
|
|
815
|
+
uri: "/billing/v2beta1/taxes",
|
|
816
|
+
code: 200,
|
|
817
|
+
baseUrl: "https://api.scaleway.com",
|
|
818
|
+
}),
|
|
819
|
+
),
|
|
820
|
+
).annotate({ identifier: "ListTaxesRequest" });
|
|
821
|
+
case 1:
|
|
822
|
+
return S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
description: S.optional(S.String),
|
|
825
|
+
currency: S.optional(S.String),
|
|
826
|
+
rate: S.optional(S.NullOr(S.Number)),
|
|
827
|
+
total_tax_value: S.optional(S.NullOr(S.Number)),
|
|
828
|
+
}),
|
|
829
|
+
).annotate({ identifier: "ListTaxesResponseTax" });
|
|
830
|
+
case 2:
|
|
831
|
+
return S.Array(__S(17, __c4, 1));
|
|
832
|
+
case 3:
|
|
833
|
+
return S.suspend(() =>
|
|
834
|
+
S.Struct({
|
|
835
|
+
taxes: __S(18, __c4, 2),
|
|
836
|
+
total_count: S.optional(S.Number),
|
|
837
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
838
|
+
}),
|
|
839
|
+
).annotate({ identifier: "ListTaxesResponse" });
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
function __c5(j: number): any {
|
|
843
|
+
switch (j) {
|
|
844
|
+
case 0:
|
|
845
|
+
return S.suspend(() =>
|
|
846
|
+
S.Struct({
|
|
847
|
+
organization_id: S.String.pipe(T.Query()),
|
|
848
|
+
code: S.String.pipe(T.Query()),
|
|
849
|
+
}).pipe(
|
|
850
|
+
T.Http({
|
|
851
|
+
method: "POST",
|
|
852
|
+
uri: "/billing/v2beta1/redeem-coupon",
|
|
853
|
+
code: 200,
|
|
854
|
+
baseUrl: "https://api.scaleway.com",
|
|
855
|
+
}),
|
|
856
|
+
),
|
|
857
|
+
).annotate({ identifier: "RedeemCouponRequest" });
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function __c6(j: number): any {
|
|
861
|
+
switch (j) {
|
|
862
|
+
case 0:
|
|
863
|
+
return S.suspend(() =>
|
|
864
|
+
S.Struct({
|
|
865
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
866
|
+
billing_period_start_after: S.optional(S.String.pipe(T.Query())),
|
|
867
|
+
billing_period_start_before: S.optional(S.String.pipe(T.Query())),
|
|
868
|
+
invoice_type: S.optional(S.String.pipe(T.Query())),
|
|
869
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
870
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
871
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
872
|
+
file_type: S.optional(S.String.pipe(T.Query())),
|
|
873
|
+
}).pipe(
|
|
874
|
+
T.Http({
|
|
875
|
+
method: "GET",
|
|
876
|
+
uri: "/billing/v2beta1/export-invoices",
|
|
877
|
+
code: 200,
|
|
878
|
+
baseUrl: "https://api.scaleway.com",
|
|
879
|
+
}),
|
|
880
|
+
),
|
|
881
|
+
).annotate({ identifier: "ExportInvoicesRequest" });
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
function __c7(j: number): any {
|
|
885
|
+
switch (j) {
|
|
886
|
+
case 0:
|
|
887
|
+
return S.suspend(() =>
|
|
888
|
+
S.Struct({
|
|
889
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
890
|
+
billing_period_start_after: S.optional(S.String.pipe(T.Query())),
|
|
891
|
+
billing_period_start_before: S.optional(S.String.pipe(T.Query())),
|
|
892
|
+
invoice_type: S.optional(S.String.pipe(T.Query())),
|
|
893
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
894
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
895
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
896
|
+
file_type: S.optional(S.String.pipe(T.Query())),
|
|
897
|
+
}).pipe(
|
|
898
|
+
T.Http({
|
|
899
|
+
method: "GET",
|
|
900
|
+
uri: "/billing/v2beta1/export-invoices",
|
|
901
|
+
code: 200,
|
|
902
|
+
baseUrl: "https://api.scaleway.com",
|
|
903
|
+
rawDownload: true,
|
|
904
|
+
}),
|
|
905
|
+
),
|
|
906
|
+
).annotate({ identifier: "ExportInvoicesRawRequest" });
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function __c8(j: number): any {
|
|
910
|
+
switch (j) {
|
|
911
|
+
case 0:
|
|
912
|
+
return S.suspend(() =>
|
|
913
|
+
S.Struct({
|
|
914
|
+
invoice_id: S.String.pipe(T.Label()),
|
|
915
|
+
}).pipe(
|
|
916
|
+
T.Http({
|
|
917
|
+
method: "GET",
|
|
918
|
+
uri: "/billing/v2beta1/invoices/{invoice_id}",
|
|
919
|
+
code: 200,
|
|
920
|
+
baseUrl: "https://api.scaleway.com",
|
|
921
|
+
}),
|
|
922
|
+
),
|
|
923
|
+
).annotate({ identifier: "GetInvoiceRequest" });
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
function __c9(j: number): any {
|
|
927
|
+
switch (j) {
|
|
928
|
+
case 0:
|
|
929
|
+
return S.suspend(() =>
|
|
930
|
+
S.Struct({
|
|
931
|
+
currency_code: S.optional(S.String),
|
|
932
|
+
units: S.optional(S.Number),
|
|
933
|
+
nanos: S.optional(S.Number),
|
|
934
|
+
}),
|
|
935
|
+
).annotate({ identifier: "GoogleTypeMoney" });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
function __c10(j: number): any {
|
|
939
|
+
switch (j) {
|
|
940
|
+
case 0:
|
|
941
|
+
return S.suspend(() =>
|
|
942
|
+
S.Struct({
|
|
943
|
+
id: S.optional(S.String),
|
|
944
|
+
organization_id: S.optional(S.String),
|
|
945
|
+
organization_name: S.optional(S.String),
|
|
946
|
+
start_date: S.optional(S.NullOr(S.String)),
|
|
947
|
+
stop_date: S.optional(S.NullOr(S.String)),
|
|
948
|
+
billing_period: S.optional(S.NullOr(S.String)),
|
|
949
|
+
issued_date: S.optional(S.NullOr(S.String)),
|
|
950
|
+
due_date: S.optional(S.NullOr(S.String)),
|
|
951
|
+
total_untaxed: S.optional(__S(36, __c9, 0)),
|
|
952
|
+
total_taxed: S.optional(__S(36, __c9, 0)),
|
|
953
|
+
total_tax: S.optional(__S(36, __c9, 0)),
|
|
954
|
+
total_discount: S.optional(__S(36, __c9, 0)),
|
|
955
|
+
total_undiscount: S.optional(__S(36, __c9, 0)),
|
|
956
|
+
type: S.optional(S.String),
|
|
957
|
+
state: S.optional(S.String),
|
|
958
|
+
number: S.optional(S.Number),
|
|
959
|
+
seller_name: S.optional(S.String),
|
|
960
|
+
}),
|
|
961
|
+
).annotate({ identifier: "Invoice" });
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
function __c11(j: number): any {
|
|
965
|
+
switch (j) {
|
|
966
|
+
case 0:
|
|
967
|
+
return S.suspend(() =>
|
|
968
|
+
S.Struct({
|
|
969
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
970
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
971
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
972
|
+
category_name: S.optional(S.String.pipe(T.Query())),
|
|
973
|
+
billing_period: S.optional(S.String.pipe(T.Query())),
|
|
974
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
975
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
976
|
+
}).pipe(
|
|
977
|
+
T.Http({
|
|
978
|
+
method: "GET",
|
|
979
|
+
uri: "/billing/v2beta1/consumptions",
|
|
980
|
+
code: 200,
|
|
981
|
+
baseUrl: "https://api.scaleway.com",
|
|
982
|
+
}),
|
|
983
|
+
),
|
|
984
|
+
).annotate({ identifier: "ListConsumptionsRequest" });
|
|
985
|
+
case 1:
|
|
986
|
+
return S.suspend(() =>
|
|
987
|
+
S.Struct({
|
|
988
|
+
value: S.optional(__S(36, __c9, 0)),
|
|
989
|
+
product_name: S.optional(S.String),
|
|
990
|
+
resource_name: S.optional(S.String),
|
|
991
|
+
sku: S.optional(S.String),
|
|
992
|
+
project_id: S.optional(S.String),
|
|
993
|
+
category_name: S.optional(S.String),
|
|
994
|
+
unit: S.optional(S.String),
|
|
995
|
+
billed_quantity: S.optional(S.String),
|
|
996
|
+
consumer_id: S.optional(S.String),
|
|
997
|
+
project_name: S.optional(S.String),
|
|
998
|
+
organization_name: S.optional(S.String),
|
|
999
|
+
}),
|
|
1000
|
+
).annotate({ identifier: "ListConsumptionsResponseConsumption" });
|
|
1001
|
+
case 2:
|
|
1002
|
+
return S.Array(__S(45, __c11, 1));
|
|
1003
|
+
case 3:
|
|
1004
|
+
return S.suspend(() =>
|
|
1005
|
+
S.Struct({
|
|
1006
|
+
consumptions: __S(46, __c11, 2),
|
|
1007
|
+
total_count: S.optional(S.Number),
|
|
1008
|
+
total_discount_untaxed_value: S.optional(S.Number),
|
|
1009
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1010
|
+
}),
|
|
1011
|
+
).annotate({ identifier: "ListConsumptionsResponse" });
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function __c12(j: number): any {
|
|
1015
|
+
switch (j) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
return S.suspend(() =>
|
|
1018
|
+
S.Struct({
|
|
1019
|
+
invoice_id: S.String.pipe(T.Label()),
|
|
1020
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1021
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1022
|
+
}).pipe(
|
|
1023
|
+
T.Http({
|
|
1024
|
+
method: "GET",
|
|
1025
|
+
uri: "/billing/v2beta1/invoices/{invoice_id}/discount-lines",
|
|
1026
|
+
code: 200,
|
|
1027
|
+
baseUrl: "https://api.scaleway.com",
|
|
1028
|
+
}),
|
|
1029
|
+
),
|
|
1030
|
+
).annotate({ identifier: "ListDiscountLinesRequest" });
|
|
1031
|
+
case 1:
|
|
1032
|
+
return S.suspend(() =>
|
|
1033
|
+
S.Struct({
|
|
1034
|
+
id: S.optional(S.String),
|
|
1035
|
+
invoice_line_id: S.optional(S.String),
|
|
1036
|
+
origin: S.optional(S.String),
|
|
1037
|
+
value: S.optional(__S(36, __c9, 0)),
|
|
1038
|
+
}),
|
|
1039
|
+
).annotate({ identifier: "DiscountLine" });
|
|
1040
|
+
case 2:
|
|
1041
|
+
return S.Array(__S(49, __c12, 1));
|
|
1042
|
+
case 3:
|
|
1043
|
+
return S.suspend(() =>
|
|
1044
|
+
S.Struct({
|
|
1045
|
+
total_count: S.optional(S.Number),
|
|
1046
|
+
discount_lines: __S(50, __c12, 2),
|
|
1047
|
+
}),
|
|
1048
|
+
).annotate({ identifier: "ListDiscountLinesResponse" });
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
function __c13(j: number): any {
|
|
1052
|
+
switch (j) {
|
|
1053
|
+
case 0:
|
|
1054
|
+
return S.suspend(() =>
|
|
1055
|
+
S.Struct({
|
|
1056
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1057
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1058
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1059
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1060
|
+
}).pipe(
|
|
1061
|
+
T.Http({
|
|
1062
|
+
method: "GET",
|
|
1063
|
+
uri: "/billing/v2beta1/discounts",
|
|
1064
|
+
code: 200,
|
|
1065
|
+
baseUrl: "https://api.scaleway.com",
|
|
1066
|
+
}),
|
|
1067
|
+
),
|
|
1068
|
+
).annotate({ identifier: "ListDiscountsRequest" });
|
|
1069
|
+
case 1:
|
|
1070
|
+
return S.Array(__S(59, __c14, 3));
|
|
1071
|
+
case 2:
|
|
1072
|
+
return S.suspend(() =>
|
|
1073
|
+
S.Struct({
|
|
1074
|
+
total_count: S.optional(S.Number),
|
|
1075
|
+
discounts: __S(53, __c13, 1),
|
|
1076
|
+
}),
|
|
1077
|
+
).annotate({ identifier: "ListDiscountsResponse" });
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function __c14(j: number): any {
|
|
1081
|
+
switch (j) {
|
|
1082
|
+
case 0:
|
|
1083
|
+
return S.suspend(() =>
|
|
1084
|
+
S.Struct({
|
|
1085
|
+
description: S.optional(S.NullOr(S.String)),
|
|
1086
|
+
}),
|
|
1087
|
+
).annotate({ identifier: "DiscountCoupon" });
|
|
1088
|
+
case 1:
|
|
1089
|
+
return S.suspend(() =>
|
|
1090
|
+
S.Struct({
|
|
1091
|
+
type: S.optional(S.String),
|
|
1092
|
+
value: S.optional(S.String),
|
|
1093
|
+
exclude: S.optional(S.Boolean),
|
|
1094
|
+
}),
|
|
1095
|
+
).annotate({ identifier: "DiscountFilter" });
|
|
1096
|
+
case 2:
|
|
1097
|
+
return S.Array(__S(57, __c14, 1));
|
|
1098
|
+
case 3:
|
|
1099
|
+
return S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
id: S.optional(S.String),
|
|
1102
|
+
creation_date: S.optional(S.NullOr(S.String)),
|
|
1103
|
+
organization_id: S.optional(S.String),
|
|
1104
|
+
description: S.optional(S.String),
|
|
1105
|
+
value: S.optional(S.Number),
|
|
1106
|
+
value_used: S.optional(S.Number),
|
|
1107
|
+
value_remaining: S.optional(S.Number),
|
|
1108
|
+
mode: S.optional(S.String),
|
|
1109
|
+
start_date: S.optional(S.NullOr(S.String)),
|
|
1110
|
+
stop_date: S.optional(S.NullOr(S.String)),
|
|
1111
|
+
coupon: S.optional(__S(56, __c14, 0)),
|
|
1112
|
+
filters: S.optional(__S(58, __c14, 2)),
|
|
1113
|
+
}),
|
|
1114
|
+
).annotate({ identifier: "Discount" });
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
function __c15(j: number): any {
|
|
1118
|
+
switch (j) {
|
|
1119
|
+
case 0:
|
|
1120
|
+
return S.suspend(() =>
|
|
1121
|
+
S.Struct({
|
|
1122
|
+
invoice_id: S.String.pipe(T.Label()),
|
|
1123
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1124
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1125
|
+
}).pipe(
|
|
1126
|
+
T.Http({
|
|
1127
|
+
method: "GET",
|
|
1128
|
+
uri: "/billing/v2beta1/invoices/{invoice_id}/lines",
|
|
1129
|
+
code: 200,
|
|
1130
|
+
baseUrl: "https://api.scaleway.com",
|
|
1131
|
+
}),
|
|
1132
|
+
),
|
|
1133
|
+
).annotate({ identifier: "ListInvoiceLinesRequest" });
|
|
1134
|
+
case 1:
|
|
1135
|
+
return S.suspend(() =>
|
|
1136
|
+
S.Struct({
|
|
1137
|
+
id: S.optional(S.String),
|
|
1138
|
+
invoice_id: S.optional(S.String),
|
|
1139
|
+
organization_id: S.optional(S.String),
|
|
1140
|
+
organization_name: S.optional(S.String),
|
|
1141
|
+
project_id: S.optional(S.String),
|
|
1142
|
+
project_name: S.optional(S.String),
|
|
1143
|
+
sku: S.optional(S.String),
|
|
1144
|
+
category_name: S.optional(S.String),
|
|
1145
|
+
product_name: S.optional(S.String),
|
|
1146
|
+
resource_name: S.optional(S.String),
|
|
1147
|
+
start_date: S.optional(S.NullOr(S.String)),
|
|
1148
|
+
stop_date: S.optional(S.NullOr(S.String)),
|
|
1149
|
+
unit_price: S.optional(__S(36, __c9, 0)),
|
|
1150
|
+
untaxed_value: S.optional(__S(36, __c9, 0)),
|
|
1151
|
+
unit: S.optional(S.String),
|
|
1152
|
+
unit_quantity: S.optional(S.String),
|
|
1153
|
+
billed_quantity: S.optional(S.String),
|
|
1154
|
+
resource_count: S.optional(S.Number),
|
|
1155
|
+
}),
|
|
1156
|
+
).annotate({ identifier: "InvoiceLine" });
|
|
1157
|
+
case 2:
|
|
1158
|
+
return S.Array(__S(61, __c15, 1));
|
|
1159
|
+
case 3:
|
|
1160
|
+
return S.suspend(() =>
|
|
1161
|
+
S.Struct({
|
|
1162
|
+
total_count: S.optional(S.Number),
|
|
1163
|
+
invoice_lines: __S(62, __c15, 2),
|
|
1164
|
+
}),
|
|
1165
|
+
).annotate({ identifier: "ListInvoiceLinesResponse" });
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
function __c16(j: number): any {
|
|
1169
|
+
switch (j) {
|
|
1170
|
+
case 0:
|
|
1171
|
+
return S.suspend(() =>
|
|
1172
|
+
S.Struct({
|
|
1173
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1174
|
+
billing_period_start_after: S.optional(S.String.pipe(T.Query())),
|
|
1175
|
+
billing_period_start_before: S.optional(S.String.pipe(T.Query())),
|
|
1176
|
+
invoice_type: S.optional(S.String.pipe(T.Query())),
|
|
1177
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1178
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1179
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1180
|
+
}).pipe(
|
|
1181
|
+
T.Http({
|
|
1182
|
+
method: "GET",
|
|
1183
|
+
uri: "/billing/v2beta1/invoices",
|
|
1184
|
+
code: 200,
|
|
1185
|
+
baseUrl: "https://api.scaleway.com",
|
|
1186
|
+
}),
|
|
1187
|
+
),
|
|
1188
|
+
).annotate({ identifier: "ListInvoicesRequest" });
|
|
1189
|
+
case 1:
|
|
1190
|
+
return S.Array(__S(40, __c10, 0));
|
|
1191
|
+
case 2:
|
|
1192
|
+
return S.suspend(() =>
|
|
1193
|
+
S.Struct({
|
|
1194
|
+
total_count: S.optional(S.Number),
|
|
1195
|
+
invoices: __S(65, __c16, 1),
|
|
1196
|
+
}),
|
|
1197
|
+
).annotate({ identifier: "ListInvoicesResponse" });
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1201
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1202
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1203
|
+
}
|