@distilled.cloud/scaleway 0.0.0 → 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 +171 -4
- 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 +89 -2
- 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
package/lib/errors.d.ts
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scaleway error types.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the common HTTP errors from core and adds Scaleway's own.
|
|
5
|
+
* Every Scaleway API answers a failure with one JSON envelope --
|
|
6
|
+
* `{ "type": "...", "message": "...", ... }` -- whose `type` names the
|
|
7
|
+
* failure and decides which fields come with it (`resource` /
|
|
8
|
+
* `resource_id` for `not_found`, `current_state` for `transient_state`,
|
|
9
|
+
* `details[]` for `invalid_arguments` / `quotas_exceeded` /
|
|
10
|
+
* `permissions_denied`, ...). The protocol dispatches on `type` first, the
|
|
11
|
+
* same table the official SDKs use (scaleway-sdk-js
|
|
12
|
+
* `packages/client/src/scw/errors/error-parser.ts`, scaleway-sdk-go
|
|
13
|
+
* `scw/errors.go`), then on the HTTP status, so a `409` is a
|
|
14
|
+
* {@link TransientStateError} or an {@link AlreadyExistsError} rather than
|
|
15
|
+
* a bare `Conflict`.
|
|
16
|
+
*
|
|
17
|
+
* The specs declare no error responses at all, so these classes ride every
|
|
18
|
+
* operation's `ScalewayOpError` instead of per-operation error lists.
|
|
19
|
+
*/
|
|
20
|
+
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
21
|
+
import * as Category from "@distilled.cloud/core/category";
|
|
22
|
+
import type { BadRequest as CoreBadRequest, Conflict as CoreConflict, DefaultErrors as CoreDefaultErrors, Forbidden as CoreForbidden, Locked as CoreLocked, NotFound as CoreNotFound, UnprocessableEntity as CoreUnprocessableEntity } from "@distilled.cloud/core/errors";
|
|
23
|
+
import * as Schema from "effect/Schema";
|
|
24
|
+
/** One rejected argument of an `invalid_arguments` failure. */
|
|
25
|
+
export declare const InvalidArgumentDetail: Schema.Struct<{
|
|
26
|
+
readonly argument_name: Schema.String;
|
|
27
|
+
/** `required`, `format` or `constraint`. */
|
|
28
|
+
readonly reason: Schema.String;
|
|
29
|
+
readonly help_message: Schema.optional<Schema.String>;
|
|
30
|
+
}>;
|
|
31
|
+
/** One exceeded quota of a `quotas_exceeded` failure. */
|
|
32
|
+
export declare const QuotaDetail: Schema.Struct<{
|
|
33
|
+
readonly resource: Schema.String;
|
|
34
|
+
readonly quota: Schema.Number;
|
|
35
|
+
readonly current: Schema.Number;
|
|
36
|
+
}>;
|
|
37
|
+
/** One missing permission of a `permissions_denied` failure. */
|
|
38
|
+
export declare const PermissionDetail: Schema.Struct<{
|
|
39
|
+
readonly resource: Schema.String;
|
|
40
|
+
readonly action: Schema.String;
|
|
41
|
+
}>;
|
|
42
|
+
declare const InvalidArgumentsError_base: Schema.Class<InvalidArgumentsError, Schema.TaggedStruct<"InvalidArgumentsError", {
|
|
43
|
+
readonly message: Schema.String;
|
|
44
|
+
readonly details: Schema.$Array<Schema.Struct<{
|
|
45
|
+
readonly argument_name: Schema.String;
|
|
46
|
+
/** `required`, `format` or `constraint`. */
|
|
47
|
+
readonly reason: Schema.String;
|
|
48
|
+
readonly help_message: Schema.optional<Schema.String>;
|
|
49
|
+
}>>;
|
|
50
|
+
readonly body: Schema.Unknown;
|
|
51
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
52
|
+
"@distilled.cloud/error/categories": {
|
|
53
|
+
BadRequestError: true;
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* `invalid_arguments` (400) -- one or more request fields were missing,
|
|
58
|
+
* malformed or out of range; `details` names each one. Also raised for the
|
|
59
|
+
* legacy `invalid_request_error` envelope (Instance v1) when it lists
|
|
60
|
+
* `fields`.
|
|
61
|
+
*/
|
|
62
|
+
export declare class InvalidArgumentsError extends InvalidArgumentsError_base {
|
|
63
|
+
}
|
|
64
|
+
declare const DeniedAuthenticationError_base: Schema.Class<DeniedAuthenticationError, Schema.TaggedStruct<"DeniedAuthenticationError", {
|
|
65
|
+
readonly message: Schema.String;
|
|
66
|
+
readonly method: Schema.optional<Schema.String>;
|
|
67
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
68
|
+
readonly body: Schema.Unknown;
|
|
69
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
70
|
+
"@distilled.cloud/error/categories": {
|
|
71
|
+
AuthError: true;
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* `denied_authentication` (401) -- the secret key is missing, unknown,
|
|
76
|
+
* expired or the wrong kind for this API. `method` is the authentication
|
|
77
|
+
* method tried, `reason` why it failed (`invalid_argument`, `not_found`,
|
|
78
|
+
* `expired`, ...).
|
|
79
|
+
*/
|
|
80
|
+
export declare class DeniedAuthenticationError extends DeniedAuthenticationError_base {
|
|
81
|
+
}
|
|
82
|
+
declare const PermissionsDeniedError_base: Schema.Class<PermissionsDeniedError, Schema.TaggedStruct<"PermissionsDeniedError", {
|
|
83
|
+
readonly message: Schema.String;
|
|
84
|
+
readonly details: Schema.$Array<Schema.Struct<{
|
|
85
|
+
readonly resource: Schema.String;
|
|
86
|
+
readonly action: Schema.String;
|
|
87
|
+
}>>;
|
|
88
|
+
readonly body: Schema.Unknown;
|
|
89
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
90
|
+
"@distilled.cloud/error/categories": {
|
|
91
|
+
AuthError: true;
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* `permissions_denied` (403) -- the key authenticated, but its IAM policy
|
|
96
|
+
* does not grant the listed actions.
|
|
97
|
+
*/
|
|
98
|
+
export declare class PermissionsDeniedError extends PermissionsDeniedError_base {
|
|
99
|
+
}
|
|
100
|
+
declare const QuotasExceededError_base: Schema.Class<QuotasExceededError, Schema.TaggedStruct<"QuotasExceededError", {
|
|
101
|
+
readonly message: Schema.String;
|
|
102
|
+
readonly details: Schema.$Array<Schema.Struct<{
|
|
103
|
+
readonly resource: Schema.String;
|
|
104
|
+
readonly quota: Schema.Number;
|
|
105
|
+
readonly current: Schema.Number;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly body: Schema.Unknown;
|
|
108
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
109
|
+
"@distilled.cloud/error/categories": {
|
|
110
|
+
QuotaError: true;
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* `quotas_exceeded` (403) -- creating the resource would exceed an
|
|
115
|
+
* Organization quota (`details[].quota` vs `details[].current`). Raise the
|
|
116
|
+
* quota in the console or free capacity; retrying does not help.
|
|
117
|
+
*/
|
|
118
|
+
export declare class QuotasExceededError extends QuotasExceededError_base {
|
|
119
|
+
}
|
|
120
|
+
declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
121
|
+
readonly message: Schema.String;
|
|
122
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
123
|
+
readonly resource_id: Schema.optional<Schema.String>;
|
|
124
|
+
readonly body: Schema.Unknown;
|
|
125
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
126
|
+
"@distilled.cloud/error/categories": {
|
|
127
|
+
NotFoundError: true;
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* `not_found` (404) -- no `resource` with `resource_id` is visible to this
|
|
132
|
+
* key. Also raised for the legacy `unknown_resource` envelope when its
|
|
133
|
+
* message names the missing UUID.
|
|
134
|
+
*/
|
|
135
|
+
export declare class ResourceNotFoundError extends ResourceNotFoundError_base {
|
|
136
|
+
}
|
|
137
|
+
declare const ResourceExpiredError_base: Schema.Class<ResourceExpiredError, Schema.TaggedStruct<"ResourceExpiredError", {
|
|
138
|
+
readonly message: Schema.String;
|
|
139
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
140
|
+
readonly resource_id: Schema.optional<Schema.String>;
|
|
141
|
+
readonly expired_since: Schema.optional<Schema.String>;
|
|
142
|
+
readonly body: Schema.Unknown;
|
|
143
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
144
|
+
"@distilled.cloud/error/categories": {
|
|
145
|
+
NotFoundError: true;
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
/** `expired` (410) -- the resource existed but expired at `expired_since`. */
|
|
149
|
+
export declare class ResourceExpiredError extends ResourceExpiredError_base {
|
|
150
|
+
}
|
|
151
|
+
declare const ResourceLockedError_base: Schema.Class<ResourceLockedError, Schema.TaggedStruct<"ResourceLockedError", {
|
|
152
|
+
readonly message: Schema.String;
|
|
153
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
154
|
+
readonly resource_id: Schema.optional<Schema.String>;
|
|
155
|
+
readonly body: Schema.Unknown;
|
|
156
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
157
|
+
"@distilled.cloud/error/categories": {
|
|
158
|
+
LockedError: true;
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* `locked` (423) -- Scaleway has locked the resource (abuse, billing or
|
|
163
|
+
* legal hold); it cannot be changed until the lock is lifted.
|
|
164
|
+
*/
|
|
165
|
+
export declare class ResourceLockedError extends ResourceLockedError_base {
|
|
166
|
+
}
|
|
167
|
+
declare const TransientStateError_base: Schema.Class<TransientStateError, Schema.TaggedStruct<"TransientStateError", {
|
|
168
|
+
readonly message: Schema.String;
|
|
169
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
170
|
+
readonly resource_id: Schema.optional<Schema.String>;
|
|
171
|
+
readonly current_state: Schema.optional<Schema.String>;
|
|
172
|
+
readonly body: Schema.Unknown;
|
|
173
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
174
|
+
"@distilled.cloud/error/categories": {
|
|
175
|
+
ConflictError: true;
|
|
176
|
+
};
|
|
177
|
+
}) & (new (...args: any[]) => {
|
|
178
|
+
"@distilled.cloud/error/retryable": Category.RetryableInfo;
|
|
179
|
+
});
|
|
180
|
+
/**
|
|
181
|
+
* `transient_state` (409) -- the resource is mid-transition
|
|
182
|
+
* (`current_state`: `starting`, `stopping`, `deleting`, ...) and refuses the
|
|
183
|
+
* change until it settles. Retryable: the default policy retries it with
|
|
184
|
+
* backoff, the way the official SDKs' `waitFor*` helpers poll.
|
|
185
|
+
*/
|
|
186
|
+
export declare class TransientStateError extends TransientStateError_base {
|
|
187
|
+
}
|
|
188
|
+
declare const AlreadyExistsError_base: Schema.Class<AlreadyExistsError, Schema.TaggedStruct<"AlreadyExistsError", {
|
|
189
|
+
readonly message: Schema.String;
|
|
190
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
191
|
+
readonly resource_id: Schema.optional<Schema.String>;
|
|
192
|
+
readonly help_message: Schema.optional<Schema.String>;
|
|
193
|
+
readonly body: Schema.Unknown;
|
|
194
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
195
|
+
"@distilled.cloud/error/categories": {
|
|
196
|
+
AlreadyExistsError: true;
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* `already_exists` (409) -- a `resource` with that identity (name, domain,
|
|
201
|
+
* key) already exists, as `resource_id`.
|
|
202
|
+
*/
|
|
203
|
+
export declare class AlreadyExistsError extends AlreadyExistsError_base {
|
|
204
|
+
}
|
|
205
|
+
declare const PreconditionFailedError_base: Schema.Class<PreconditionFailedError, Schema.TaggedStruct<"PreconditionFailedError", {
|
|
206
|
+
readonly message: Schema.String;
|
|
207
|
+
readonly precondition: Schema.optional<Schema.String>;
|
|
208
|
+
readonly help_message: Schema.optional<Schema.String>;
|
|
209
|
+
readonly body: Schema.Unknown;
|
|
210
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
211
|
+
"@distilled.cloud/error/categories": {
|
|
212
|
+
ConflictError: true;
|
|
213
|
+
};
|
|
214
|
+
});
|
|
215
|
+
/**
|
|
216
|
+
* `precondition_failed` (412) -- the resource is in a state that forbids the
|
|
217
|
+
* call (`precondition`, e.g. `resource_still_in_use`, `attribute_must_be_set`)
|
|
218
|
+
* and will stay that way until the caller changes something.
|
|
219
|
+
*/
|
|
220
|
+
export declare class PreconditionFailedError extends PreconditionFailedError_base {
|
|
221
|
+
}
|
|
222
|
+
declare const OutOfStockError_base: Schema.Class<OutOfStockError, Schema.TaggedStruct<"OutOfStockError", {
|
|
223
|
+
readonly message: Schema.String;
|
|
224
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
225
|
+
readonly body: Schema.Unknown;
|
|
226
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
227
|
+
"@distilled.cloud/error/categories": {
|
|
228
|
+
QuotaError: true;
|
|
229
|
+
};
|
|
230
|
+
});
|
|
231
|
+
/**
|
|
232
|
+
* `out_of_stock` -- the zone has no capacity left for `resource` (an
|
|
233
|
+
* Instance or Elastic Metal offer). Try another zone or offer.
|
|
234
|
+
*/
|
|
235
|
+
export declare class OutOfStockError extends OutOfStockError_base {
|
|
236
|
+
}
|
|
237
|
+
declare const UnknownScalewayError_base: Schema.Class<UnknownScalewayError, Schema.TaggedStruct<"UnknownScalewayError", {
|
|
238
|
+
readonly code: Schema.optional<Schema.String>;
|
|
239
|
+
readonly message: Schema.optional<Schema.String>;
|
|
240
|
+
readonly body: Schema.Unknown;
|
|
241
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
242
|
+
"@distilled.cloud/error/categories": {
|
|
243
|
+
ServerError: true;
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
/**
|
|
247
|
+
* Unknown Scaleway error -- returned when nothing else matches the failure.
|
|
248
|
+
* `code` is the envelope's `type` when it had one.
|
|
249
|
+
*/
|
|
250
|
+
export declare class UnknownScalewayError extends UnknownScalewayError_base {
|
|
251
|
+
}
|
|
252
|
+
declare const ScalewayParseError_base: Schema.Class<ScalewayParseError, Schema.TaggedStruct<"ScalewayParseError", {
|
|
253
|
+
readonly body: Schema.Unknown;
|
|
254
|
+
readonly cause: Schema.Unknown;
|
|
255
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
256
|
+
"@distilled.cloud/error/categories": {
|
|
257
|
+
ParseError: true;
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
/** Schema parse error wrapper. */
|
|
261
|
+
export declare class ScalewayParseError extends ScalewayParseError_base {
|
|
262
|
+
}
|
|
263
|
+
/** The errors Scaleway's `type` envelope can name. */
|
|
264
|
+
export type ScalewayErrors = InvalidArgumentsError | DeniedAuthenticationError | PermissionsDeniedError | QuotasExceededError | ResourceNotFoundError | ResourceExpiredError | ResourceLockedError | TransientStateError | AlreadyExistsError | PreconditionFailedError | OutOfStockError;
|
|
265
|
+
/**
|
|
266
|
+
* Default Scaleway operation errors.
|
|
267
|
+
*
|
|
268
|
+
* EVERY operation carries the whole set: the specs declare no failures, and
|
|
269
|
+
* any Scaleway API can answer with any `type` -- the error channel says so
|
|
270
|
+
* rather than pretending a `404` is impossible on a route that never
|
|
271
|
+
* declared one. The status classes cover failures whose body has no
|
|
272
|
+
* recognised `type` (a proxy error page, a gateway timeout).
|
|
273
|
+
*/
|
|
274
|
+
export type DefaultErrors = CoreDefaultErrors | CoreBadRequest | CoreForbidden | CoreNotFound | CoreConflict | CoreUnprocessableEntity | CoreLocked | ScalewayErrors | UnknownScalewayError | ScalewayParseError;
|
|
275
|
+
/**
|
|
276
|
+
* The errors declared on the Scaleway services: any operation can return
|
|
277
|
+
* them, and every generated operation lists them as its `serviceErrors`.
|
|
278
|
+
* The specs declare no failures, and any Scaleway API can answer with any
|
|
279
|
+
* `type`: each class the `type` envelope names ({@link ScalewayErrors}), and
|
|
280
|
+
* each of core's status classes, for a failure whose body has no recognised
|
|
281
|
+
* `type` (and `TooManyRequests` for `too_many_requests`).
|
|
282
|
+
*/
|
|
283
|
+
export declare const ScalewayServiceErrors: readonly [typeof import("@distilled.cloud/core/errors").Unauthorized, typeof CoreForbidden, typeof CoreNotFound, typeof CoreBadRequest, typeof CoreConflict, typeof CoreUnprocessableEntity, typeof import("@distilled.cloud/core/errors").TooManyRequests, typeof CoreLocked, typeof import("@distilled.cloud/core/errors").InternalServerError, typeof import("@distilled.cloud/core/errors").BadGateway, typeof import("@distilled.cloud/core/errors").ServiceUnavailable, typeof import("@distilled.cloud/core/errors").GatewayTimeout, typeof InvalidArgumentsError, typeof DeniedAuthenticationError, typeof PermissionsDeniedError, typeof QuotasExceededError, typeof ResourceNotFoundError, typeof ResourceExpiredError, typeof ResourceLockedError, typeof TransientStateError, typeof AlreadyExistsError, typeof PreconditionFailedError, typeof OutOfStockError];
|
|
284
|
+
export type ScalewayServiceError = InstanceType<(typeof ScalewayServiceErrors)[number]>;
|
|
285
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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oBAAqB,SAAQ,yBASR;CAAG;;;;;;;;;;;AAErC;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,wBAQT;CAAG;;;;;;;;;;;;;;AAEnC;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,wBASmB;CAAG;;;;;;;;;;;;AAE/D;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,uBASD;CAAG;;;;;;;;;;;AAE1C;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,4BAQX;CAAG;;;;;;;;;;AAErC;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAIL;CAAG;;;;;;;;;;AAEnC;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,yBAOV;CAAG;;;;;;;;;AAEnC,kCAAkC;AAClC,qBAAa,kBAAmB,SAAQ,uBAMT;CAAG;AAElC,sDAAsD;AACtD,MAAM,MAAM,cAAc,GACtB,qBAAqB,GACrB,yBAAyB,GACzB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,CAAC;AAEpB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,UAAU,GACV,cAAc,GACd,oBAAoB,GACpB,kBAAkB,CAAC;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,80BAaxB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
package/lib/errors.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errors$API_ERRORS as API_ERRORS, errors$AlreadyExistsError as AlreadyExistsError, errors$BadGateway as BadGateway, errors$BadRequest as BadRequest, errors$ConfigError as ConfigError, errors$Conflict as Conflict, errors$DEFAULT_ERRORS as DEFAULT_ERRORS, errors$DeniedAuthenticationError as DeniedAuthenticationError, errors$Forbidden as Forbidden, errors$GatewayTimeout as GatewayTimeout, errors$HTTP_STATUS_MAP as HTTP_STATUS_MAP, errors$InternalServerError as InternalServerError, errors$InvalidArgumentDetail as InvalidArgumentDetail, errors$InvalidArgumentsError as InvalidArgumentsError, errors$Locked as Locked, errors$NotFound as NotFound, errors$OutOfStockError as OutOfStockError, errors$PermissionDetail as PermissionDetail, errors$PermissionsDeniedError as PermissionsDeniedError, errors$PreconditionFailedError as PreconditionFailedError, errors$QuotaDetail as QuotaDetail, errors$QuotasExceededError as QuotasExceededError, errors$ResourceExpiredError as ResourceExpiredError, errors$ResourceLockedError as ResourceLockedError, errors$ResourceNotFoundError as ResourceNotFoundError, errors$ScalewayParseError as ScalewayParseError, errors$ScalewayServiceErrors as ScalewayServiceErrors, errors$ServiceUnavailable as ServiceUnavailable, errors$TooManyRequests as TooManyRequests, errors$TransientStateError as TransientStateError, errors$Unauthorized as Unauthorized, errors$UnknownScalewayError as UnknownScalewayError, errors$UnprocessableEntity as UnprocessableEntity } from "./_bundle/sdk.js";
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @distilled.cloud/scaleway -- Scaleway API SDK for Effect.
|
|
3
|
+
*
|
|
4
|
+
* `./services` and `./unstable-services` are generated by
|
|
5
|
+
* `scripts/generate.ts` from the Smithy models in `.generated-specs`
|
|
6
|
+
* (written by `scripts/convert.ts` from the OpenAPI documents mirrored at
|
|
7
|
+
* `specs/spec-mirror-scaleway/specs/`). Everything else in this folder is
|
|
8
|
+
* hand-written.
|
|
9
|
+
*
|
|
10
|
+
* One module per Scaleway API service and version, named after it
|
|
11
|
+
* (`instanceV1`, `k8sV1`, `lbZonedV1`, `accountProjectV3`, ...), imported
|
|
12
|
+
* as `@distilled.cloud/scaleway/<slug>` (`instance_v1`). Alpha and beta
|
|
13
|
+
* versions are imported as `@distilled.cloud/scaleway/unstable/<slug>`
|
|
14
|
+
* (`instance_v2alpha1`, `domain_v2beta1`). Auth is an
|
|
15
|
+
* API secret key (`SCW_SECRET_KEY`) sent as `X-Auth-Token`; a call that
|
|
16
|
+
* omits `region` / `zone` uses `SCW_DEFAULT_REGION` / `SCW_DEFAULT_ZONE`
|
|
17
|
+
* (default `fr-par` / `fr-par-1`).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { Effect, Layer } from "effect";
|
|
22
|
+
* import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
23
|
+
* import * as Scaleway from "@distilled.cloud/scaleway";
|
|
24
|
+
* import * as InstanceV1 from "@distilled.cloud/scaleway/instance_v1";
|
|
25
|
+
*
|
|
26
|
+
* const program = Effect.gen(function* () {
|
|
27
|
+
* const { servers } = yield* InstanceV1.listServers({ zone: "fr-par-1" });
|
|
28
|
+
* return servers;
|
|
29
|
+
* });
|
|
30
|
+
*
|
|
31
|
+
* program.pipe(
|
|
32
|
+
* Effect.provide(
|
|
33
|
+
* Layer.mergeAll(
|
|
34
|
+
* FetchHttpClient.layer,
|
|
35
|
+
* Scaleway.CredentialsFromEnv,
|
|
36
|
+
* ),
|
|
37
|
+
* ),
|
|
38
|
+
* Effect.runPromise,
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export * from "./credentials.ts";
|
|
43
|
+
export * from "./errors.ts";
|
|
44
|
+
export * as T from "./traits.ts";
|
|
45
|
+
export { ScalewayProtocol, scalewayError, type ScalewayOpError, type ScalewayOpContext, } from "./protocol.ts";
|
|
46
|
+
export { paginateByTotalCount, paginateToken } from "./pagination.ts";
|
|
47
|
+
export * as Retry from "./retry.ts";
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./credentials.js";
|
|
2
|
+
export * from "./errors.js";
|
|
3
|
+
export * as T from "./traits.js";
|
|
4
|
+
export { ScalewayProtocol, scalewayError } from "./protocol.js";
|
|
5
|
+
export { paginateByTotalCount, paginateToken } from "./pagination.js";
|
|
6
|
+
export * as Retry from "./retry.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type PaginationStrategy } from "@distilled.cloud/core/pagination";
|
|
2
|
+
export type { PaginatedTrait, PaginationStrategy } from "@distilled.cloud/core/pagination";
|
|
3
|
+
export { paginateToken } from "@distilled.cloud/core/pagination";
|
|
4
|
+
/**
|
|
5
|
+
* Stream of pages using Scaleway's `page` / `total_count` envelope: request
|
|
6
|
+
* `page`, `page+1`, ... until the pages read cover `total_count` or a page
|
|
7
|
+
* comes back empty.
|
|
8
|
+
*/
|
|
9
|
+
export declare const paginateByTotalCount: PaginationStrategy;
|
|
10
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sources":["../src/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAsBpF,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,kBAiClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pagination$paginateByTotalCount as paginateByTotalCount, pagination$paginateToken as paginateToken } from "./_bundle/sdk.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { InternalServerError, TooManyRequests, type InvalidInput } from "@distilled.cloud/core/errors";
|
|
2
|
+
import type { DeclaredError, DeclaredErrorClass, DecodeArgs, EncodeArgs, ErrorOf, ProtocolOf } from "@distilled.cloud/core/protocol";
|
|
3
|
+
import { SdkError } from "@distilled.cloud/core/sdk-error";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import type * as HttpClient from "effect/http/HttpClient";
|
|
6
|
+
import * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
7
|
+
import type * as AST from "effect/SchemaAST";
|
|
8
|
+
import { Credentials } from "./credentials.ts";
|
|
9
|
+
import { ScalewayParseError, UnknownScalewayError } from "./errors.ts";
|
|
10
|
+
import type { ScalewayErrors, ScalewayServiceError } from "./errors.ts";
|
|
11
|
+
/**
|
|
12
|
+
* What every generated Scaleway operation fails with besides its own
|
|
13
|
+
* errors: the service's errors, the protocol's, and what resolving the
|
|
14
|
+
* credentials fails with. Generated service files annotate operations with
|
|
15
|
+
* `API.OperationMethod<I, O, ScalewayOpError, ScalewayOpContext>` explicitly
|
|
16
|
+
* so the compiler never infers these back out of the schema generics.
|
|
17
|
+
*/
|
|
18
|
+
export type ScalewayOpError = ScalewayServiceError | ErrorOf<typeof ScalewayProtocol>;
|
|
19
|
+
/** Context (requirements) shared by every generated Scaleway operation. */
|
|
20
|
+
export type ScalewayOpContext = Credentials | HttpClient.HttpClient;
|
|
21
|
+
/** An error Scaleway's `type` envelope names: one of its classes, or core's `TooManyRequests`. */
|
|
22
|
+
type EnvelopeError = ScalewayErrors | TooManyRequests;
|
|
23
|
+
/**
|
|
24
|
+
* Scaleway's typed error for a failure body, or undefined when its `type`
|
|
25
|
+
* is not one the official SDKs recognise. See {@link envelopeError}.
|
|
26
|
+
*/
|
|
27
|
+
export declare const scalewayError: (body: unknown, message: string, headers: Record<string, string | undefined>, status: number) => EnvelopeError | undefined;
|
|
28
|
+
/** Drop `null` properties, recursively (array elements are kept). */
|
|
29
|
+
export declare const stripNulls: (value: unknown) => unknown;
|
|
30
|
+
/**
|
|
31
|
+
* The HTTP request for an operation input. Resolves credentials, fills the
|
|
32
|
+
* default region / zone, picks the host and sets the auth headers; a `...Raw`
|
|
33
|
+
* download also asks for the file itself with `dl=1`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const encodeRequest: (input: unknown, inputAst: AST.AST, extraHeaders?: Record<string, string>) => Effect.Effect<HttpClientRequest.HttpClientRequest, InvalidInput | SdkError, Credentials>;
|
|
36
|
+
/**
|
|
37
|
+
* The typed error for a failed response: per-operation matchers (from
|
|
38
|
+
* patches), then Scaleway's `type` envelope, then the HTTP status, then
|
|
39
|
+
* {@link UnknownScalewayError}.
|
|
40
|
+
*/
|
|
41
|
+
export declare const failureFor: (status: number, text: string, headers: Record<string, string | undefined>, errorClasses?: ReadonlyArray<DeclaredErrorClass>) => DeclaredError | InternalServerError | UnknownScalewayError;
|
|
42
|
+
declare const scalewayProtocolMethods: {
|
|
43
|
+
encode: ({ input, inputAst }: EncodeArgs) => Effect.Effect<HttpClientRequest.HttpClientRequest, InvalidInput | SdkError, Credentials>;
|
|
44
|
+
decode: ({ response, outputAst, errors: errorClasses }: DecodeArgs) => Effect.Effect<unknown, DeclaredError | import("effect/http/HttpClientError").HttpClientError | InternalServerError | ScalewayParseError | UnknownScalewayError, never>;
|
|
45
|
+
};
|
|
46
|
+
export declare const ScalewayProtocol: ProtocolOf<typeof scalewayProtocolMethods>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol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AM,CAAC,MAAM,EAAE,MAAM,CAAC,KACnC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,YAAY,GAAG,QAAQ,EAAE,WAAW,CAoBtF,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,QACR,MAAM,WACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,iBAC7B,aAAa,CAAC,kBAAkB,CAAC,KAC9C,aAAa,GAAG,mBAAmB,GAAG,oBAkDxC,CAAC;AAEF,QAAA,MAAM,uBAAuB;kCACG,UAAU;4DACgB,UAAU;CA+C9B,CAAC;AAEvC,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAA2B,CAAC"}
|
package/lib/protocol.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { protocol$ScalewayProtocol as ScalewayProtocol, protocol$encodeRequest as encodeRequest, protocol$failureFor as failureFor, protocol$scalewayError as scalewayError, protocol$stripNulls as stripNulls } from "./_bundle/sdk.js";
|
package/lib/retry.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type Policy } from "@distilled.cloud/core/retry";
|
|
2
|
+
/**
|
|
3
|
+
* Scaleway retry configuration.
|
|
4
|
+
*
|
|
5
|
+
* Defines the per-SDK `Retry` Context.Service tag that generated operations
|
|
6
|
+
* wire into `API.make`. Callers can install a blanket retry policy at the
|
|
7
|
+
* layer level and have every Scaleway API call below it pick it up:
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import * as Scaleway from "@distilled.cloud/scaleway";
|
|
12
|
+
*
|
|
13
|
+
* myEffect.pipe(Scaleway.Retry.transient);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import * as Context from "effect/Context";
|
|
17
|
+
import * as Effect from "effect/Effect";
|
|
18
|
+
export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, throttlingFactory, transientFactory, } from "@distilled.cloud/core/retry";
|
|
19
|
+
declare const Retry_base: Context.ServiceClass<Retry, "ScalewayRetry", Policy>;
|
|
20
|
+
/** Context tag for configuring retry behavior of Scaleway API calls. */
|
|
21
|
+
export declare class Retry extends Retry_base {
|
|
22
|
+
}
|
|
23
|
+
/** Provides a custom retry policy to every Scaleway API call below it. */
|
|
24
|
+
export declare const policy: (optionsOrFactory: Policy) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
25
|
+
/** Disables all automatic retries. */
|
|
26
|
+
export declare const none: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
27
|
+
/** Apply the throttling retry policy (retries throttling errors indefinitely). */
|
|
28
|
+
export declare const throttling: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
29
|
+
/** Apply the transient retry policy (retries all transient errors indefinitely). */
|
|
30
|
+
export declare const transient: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
|
31
|
+
//# sourceMappingURL=retry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,6BAA6B,CAAC;AAC/F;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;;AAErC,wEAAwE;AACxE,qBAAa,KAAM,SAAQ,UAAiD;CAAG;AAE/E,0EAA0E;AAC1E,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD,sCAAsC;AACtC,eAAO,MAAM,IAAI,mFAA+D,CAAC;AAEjF,kFAAkF;AAClF,eAAO,MAAM,UAAU,mFAA4B,CAAC;AAEpD,oFAAoF;AACpF,eAAO,MAAM,SAAS,mFAA2B,CAAC"}
|
package/lib/retry.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { retry$Retry as Retry, retry$capped as capped, retry$jittered as jittered, retry$makeDefault as makeDefault, retry$none as none, retry$policy as policy, retry$throttling as throttling, retry$throttlingFactory as throttlingFactory, retry$throttlingOptions as throttlingOptions, retry$transient as transient, retry$transientFactory as transientFactory, retry$transientOptions as transientOptions } from "./_bundle/sdk.js";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
3
|
+
import { type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
4
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
5
|
+
export type ContractType = "unknown_type" | "global" | "k8s" | "instance" | "container" | "baremetal" | "network" | "core" | "vps" | "storage" | "transactional_email";
|
|
6
|
+
export interface CheckContractSignatureRequest {
|
|
7
|
+
/** ID of the Organization to check the contract signature for. (UUID format) */
|
|
8
|
+
organization_id?: string | undefined;
|
|
9
|
+
/** Filter on contract type. */
|
|
10
|
+
contract_type?: ContractType | (string & {}) | undefined;
|
|
11
|
+
/** Filter on contract name. */
|
|
12
|
+
contract_name?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface CheckContractSignatureResponse {
|
|
15
|
+
/** Whether a signature has been requested for this contract. */
|
|
16
|
+
created?: boolean | undefined;
|
|
17
|
+
/** Whether the signature for this contract has been validated. */
|
|
18
|
+
validated?: boolean | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateContractSignatureRequest {
|
|
21
|
+
/** The type of the contract. */
|
|
22
|
+
contract_type?: ContractType | (string & {}) | undefined;
|
|
23
|
+
/** The name of the contract. */
|
|
24
|
+
contract_name?: string | undefined;
|
|
25
|
+
/** Whether the contract is validated at creation. */
|
|
26
|
+
validated?: boolean | undefined;
|
|
27
|
+
/** ID of the Organization. (UUID format) */
|
|
28
|
+
organization_id?: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface Contract {
|
|
31
|
+
/** ID of the contract. (UUID format) */
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
/** The type of the contract. */
|
|
34
|
+
type?: ContractType | undefined;
|
|
35
|
+
/** The name of the contract. */
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
/** The version of the contract. */
|
|
38
|
+
version?: number | undefined;
|
|
39
|
+
/** The creation date of the contract. (RFC 3339 format) */
|
|
40
|
+
created_at?: string | null | undefined;
|
|
41
|
+
/** The last modification date of the contract. (RFC 3339 format) */
|
|
42
|
+
updated_at?: string | null | undefined;
|
|
43
|
+
/** The SRN of the contract. */
|
|
44
|
+
srn?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface ContractSignature {
|
|
47
|
+
/** ID of the contract signature. (UUID format) */
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
/** The Organization ID which signed the contract. (UUID format) */
|
|
50
|
+
organization_id?: string | undefined;
|
|
51
|
+
/** The creation date of the contract signature. (RFC 3339 format) */
|
|
52
|
+
created_at?: string | null | undefined;
|
|
53
|
+
/** The signing date of the contract signature. (RFC 3339 format) */
|
|
54
|
+
signed_at?: string | null | undefined;
|
|
55
|
+
/** The expiration date of the contract signature. (RFC 3339 format) */
|
|
56
|
+
expires_at?: string | null | undefined;
|
|
57
|
+
/** The contract signed. */
|
|
58
|
+
contract?: Contract | undefined;
|
|
59
|
+
}
|
|
60
|
+
export type ScalewayStdLanguageCode = "unknown_language_code" | "en_US" | "fr_FR" | "de_DE";
|
|
61
|
+
export interface DownloadContractSignatureRequest {
|
|
62
|
+
/** The contract signature ID. (UUID format) */
|
|
63
|
+
contract_signature_id: string;
|
|
64
|
+
/** The locale requested for the content of the contract. */
|
|
65
|
+
locale?: ScalewayStdLanguageCode | (string & {}) | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface ScalewayStdFile {
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
content_type?: string | undefined;
|
|
70
|
+
content?: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface DownloadContractSignatureRawRequest {
|
|
73
|
+
/** The contract signature ID. (UUID format) */
|
|
74
|
+
contract_signature_id: string;
|
|
75
|
+
/** The locale requested for the content of the contract. */
|
|
76
|
+
locale?: ScalewayStdLanguageCode | (string & {}) | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface DownloadContractSignatureRawResponse {
|
|
79
|
+
body: BinaryStream;
|
|
80
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
81
|
+
contentType?: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
export type ListContractSignaturesRequestOrderBy = "signed_at_asc" | "signed_at_desc" | "expires_at_asc" | "expires_at_desc" | "name_asc" | "name_desc";
|
|
84
|
+
export interface ListContractSignaturesRequest {
|
|
85
|
+
/** The page number for the returned contracts. */
|
|
86
|
+
page?: number | undefined;
|
|
87
|
+
/** The maximum number of contracts per page. */
|
|
88
|
+
page_size?: number | undefined;
|
|
89
|
+
/** How the contracts are ordered in the response. */
|
|
90
|
+
order_by?: ListContractSignaturesRequestOrderBy | (string & {}) | undefined;
|
|
91
|
+
/** Filter on Organization ID. (UUID format) */
|
|
92
|
+
organization_id: string;
|
|
93
|
+
}
|
|
94
|
+
/** The paginated returned contract signatures. */
|
|
95
|
+
export type ListContractSignaturesResponseContractSignaturesList = Array<ContractSignature>;
|
|
96
|
+
export interface ListContractSignaturesResponse {
|
|
97
|
+
/** The total number of contract signatures. */
|
|
98
|
+
total_count?: number | undefined;
|
|
99
|
+
/** The paginated returned contract signatures. */
|
|
100
|
+
contract_signatures: ListContractSignaturesResponseContractSignaturesList;
|
|
101
|
+
}
|
|
102
|
+
export interface ValidateContractSignatureRequest {
|
|
103
|
+
/** The contract linked to your Organization you want to sign. (UUID format) */
|
|
104
|
+
contract_signature_id: string;
|
|
105
|
+
}
|
|
106
|
+
export type CheckContractSignatureError = ScalewayOpError;
|
|
107
|
+
/** Check if a contract is signed for your Organization */
|
|
108
|
+
export declare const checkContractSignature: API.OperationMethod<CheckContractSignatureRequest, CheckContractSignatureResponse, CheckContractSignatureError, ScalewayOpContext>;
|
|
109
|
+
export type CreateContractSignatureError = ScalewayOpError;
|
|
110
|
+
/** Create a signature for your Organization for the latest version of the requested contract */
|
|
111
|
+
export declare const createContractSignature: API.OperationMethod<CreateContractSignatureRequest, ContractSignature, CreateContractSignatureError, ScalewayOpContext>;
|
|
112
|
+
export type DownloadContractSignatureError = ScalewayOpError;
|
|
113
|
+
/** Download a contract content */
|
|
114
|
+
export declare const downloadContractSignature: API.OperationMethod<DownloadContractSignatureRequest, ScalewayStdFile, DownloadContractSignatureError, ScalewayOpContext>;
|
|
115
|
+
export type DownloadContractSignatureRawError = ScalewayOpError;
|
|
116
|
+
/** The file `downloadContractSignature` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
117
|
+
export declare const downloadContractSignatureRaw: API.OperationMethod<DownloadContractSignatureRawRequest, DownloadContractSignatureRawResponse, DownloadContractSignatureRawError, ScalewayOpContext>;
|
|
118
|
+
export type ListContractSignaturesError = ScalewayOpError;
|
|
119
|
+
/** List contract signatures for an Organization */
|
|
120
|
+
export declare const listContractSignatures: API.PaginatedOperationMethod<ListContractSignaturesRequest, ListContractSignaturesResponse, ListContractSignaturesError, ScalewayOpContext, ContractSignature>;
|
|
121
|
+
export type ValidateContractSignatureError = ScalewayOpError;
|
|
122
|
+
/** Sign a contract for your Organization */
|
|
123
|
+
export declare const validateContractSignature: API.OperationMethod<ValidateContractSignatureRequest, ContractSignature, ValidateContractSignatureError, ScalewayOpContext>;
|
|
124
|
+
//# sourceMappingURL=account_contract_v3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account_contract_v3.d.ts","sources":["../../src/services/account_contract_v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAMnE,OAAO,EAAoB,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMhG,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAenD,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,QAAQ,GACR,KAAK,GACL,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,MAAM,GACN,KAAK,GACL,SAAS,GACT,qBAAqB,CAAC;AAC1B,MAAM,WAAW,6BAA6B;IAC5C,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,+BAA+B;IAC/B,aAAa,CAAC,EAAE,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;IACzD,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AACD,MAAM,WAAW,8BAA8B;IAC7C,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC;AACD,MAAM,WAAW,8BAA8B;IAC7C,gCAAgC;IAChC,aAAa,CAAC,EAAE,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;IACzD,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,4CAA4C;IAC5C,eAAe,C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s,fd as c,gd as l,l as u,n as d,nd as f,o as p,pagination$paginateByTotalCount as m,protocol$ScalewayProtocol as h,retry$Retry as g,sd as _,td as v,traits$BinaryResponse as y,traits$Header as b,traits$Http as x,traits$Label as S,traits$Query as C,traits$RawResponse as w}from"../_bundle/sdk.js";const T={system:`scaleway-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Scaleway`,service:`AccountContractV3`,labels:`scaleway`,propagate:`w3c`};const E=/*@__PURE__*/ d(e=>e===n?u(`CheckContractSignature`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({organization_id:$3($2),contract_type:$3($2),contract_name:$3($2)}).pipe($1({method:"POST",uri:"/account/v3/contract-signatures/check",code:200,baseUrl:"https://api.scaleway.com"}));$4({created:$3($6),validated:$3($6)})`,[f,x,c,_,l,v,t,s,h,g,T]):r(E,e));const D=/*@__PURE__*/ d(e=>e===n?u(`CreateContractSignature`,`{input:#1,output:#7:1,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({contract_type:$3($2),contract_name:$3($2),validated:$3($4),organization_id:$3($2)}).pipe($1({method:"POST",uri:"/account/v3/contract-signatures",code:200,baseUrl:"https://api.scaleway.com"}))`,[f,x,c,_,t,l,v,__d0,s,h,g,T]):r(D,e));const O=/*@__PURE__*/ d(e=>e===n?u(`DownloadContractSignature`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$7(>3)@"%Request";$7(>4)@"ScalewayStdFile";$6({contract_signature_id:$3.pipe($2()),locale:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/account/v3/contract-signatures/{contract_signature_id}/download",code:200,baseUrl:"https://api.scaleway.com"}));$6({name:$5($3),content_type:$5($3),content:$5($3)})`,[f,x,S,c,C,_,l,v,s,h,g,T]):r(O,e));const k=/*@__PURE__*/ d(e=>e===n?u(`DownloadContractSignatureRaw`,`{input:#1,output:#2,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$7(>3)@"%Request";$7(>4)@"%Response";$6({contract_signature_id:$3.pipe($2()),locale:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/account/v3/contract-signatures/{contract_signature_id}/download",code:200,baseUrl:"https://api.scaleway.com",rawDownload:true}));$6({body:$10.pipe($8(),$9()),contentType:$5($3.pipe($11("Content-Type")))})`,[f,x,S,c,C,_,l,v,w,y,a,b,s,h,g,T]):r(k,e));const A=/*@__PURE__*/ p(t=>t===n?u(`ListContractSignatures`,`{input:#1,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"page",inputToken:"page",outputToken:"total_count",items:"contract_signatures",pageSize:"page_size"},strategy:$14};$7(>4)@"%Request";$9(#8:1);$7(>5)@"%Response";$6({page:$4($3.pipe($2())),page_size:$4($3.pipe($2())),order_by:$4($5.pipe($2())),organization_id:$5.pipe($2())}).pipe($1({method:"GET",uri:"/account/v3/contract-signatures",code:200,baseUrl:"https://api.scaleway.com"}));$6({total_count:$4($3),contract_signatures:#2})`,[f,x,C,o,_,c,l,v,__d0,e,s,h,g,T,m]):r(A,t));const j=/*@__PURE__*/ d(e=>e===n?u(`ValidateContractSignature`,`{input:#1,output:#6:1,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({contract_signature_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/account/v3/contract-signatures/{contract_signature_id}/validate",code:200,baseUrl:"https://api.scaleway.com"}))`,[f,x,S,c,l,v,__d0,s,h,g,T]):r(j,e));function __d0(){return[`$6(>2)@"Contract";$6(>3)@"ContractSignature";$5({id:$2($1),type:$2($1),name:$2($1),version:$2($3),created_at:$2($4($1)),updated_at:$2($4($1)),srn:$2($1)});$5({id:$2($1),organization_id:$2($1),created_at:$2($4($1)),signed_at:$2($4($1)),expires_at:$2($4($1)),contract:$2(#0)})`,[f,c,_,o,i,l,v]]}export{E as checkContractSignature,D as createContractSignature,O as downloadContractSignature,k as downloadContractSignatureRaw,A as listContractSignatures,j as validateContractSignature};
|
|
2
|
+
//# sourceMappingURL=account_contract_v3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account_contract_v3.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","T.Label","T.Query","T.RawResponse","T.BinaryResponse","T.Header","S.Number","S.Array","S.NullOr","Array","Boolean","D","call","NullOr","BinaryStream","Number","ScalewayServiceErrors","String","Struct","named","op","at","opPaginated","paginateByTotalCount","ScalewayProtocol","Retry","optional","suspend","BinaryResponse","Header","Http","Label","Query","RawResponse","TELEMETRY","checkContractSignature","i","createContractSignature","downloadContractSignature","downloadContractSignatureRaw","listContractSignatures","validateContractSignature"],"sources":["../../src/services/account_contract_v3.ts"],"mappings":"oYAcA,MAAM4C,EAAY,CAChB,OAAQ,eACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,WACR,QAAS,oBACT,OAAQ,WACR,UAAW,KACb,EA0HA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM9C,EAAQC,EAAU,yBAA0B,kWAAmW,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAWkB,EAAuBQ,EAAkBzB,EAAamC,CAAS,CAAC,EAAIlC,EAASmC,EAAwBC,CAAC,CAAC,EAI7mB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM9C,EAAQC,EAAU,0BAA2B,uTAAwT,CAACC,EAAQC,EAAQC,EAAUC,EAAYG,EAAWF,EAAUC,EAAW,KA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