@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
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,176 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @distilled.cloud/scaleway
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Effect-native Scaleway SDK, generated from the OpenAPI documents Scaleway
|
|
4
|
+
publishes on its [developer portal](https://www.scaleway.com/en/developers/api/)
|
|
5
|
+
(one per API version, e.g.
|
|
6
|
+
[Instance v1](https://www.scaleway.com/en/developers/api/instance/v1/schema.yml)).
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @distilled.cloud/scaleway effect
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Quick start
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { Config, Effect, Layer } from "effect";
|
|
18
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
19
|
+
import * as Scaleway from "@distilled.cloud/scaleway";
|
|
20
|
+
import * as VpcV2 from "@distilled.cloud/scaleway/vpc_v2";
|
|
21
|
+
|
|
22
|
+
const program = Effect.gen(function* () {
|
|
23
|
+
const project_id = yield* Config.String("SCW_DEFAULT_PROJECT_ID");
|
|
24
|
+
|
|
25
|
+
// `region` is optional: it defaults to SCW_DEFAULT_REGION (fr-par).
|
|
26
|
+
const vpc = yield* VpcV2.createVPC({ name: "distilled-example", project_id });
|
|
27
|
+
const { private_networks } = yield* VpcV2.listPrivateNetworks({ vpc_id: vpc.id });
|
|
28
|
+
yield* VpcV2.deleteVPC({ vpc_id: vpc.id! });
|
|
29
|
+
|
|
30
|
+
return { vpc: vpc.id, privateNetworks: private_networks?.length };
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const Live = Layer.mergeAll(
|
|
34
|
+
FetchHttpClient.layer,
|
|
35
|
+
Scaleway.CredentialsFromEnv,
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
program.pipe(Effect.provide(Live), Effect.runPromise);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Modules
|
|
42
|
+
|
|
43
|
+
One module per Scaleway API and version, named after it: `instanceV1`,
|
|
44
|
+
`instanceV2alpha1`, `blockV1`, `k8sV1`, `lbZonedV1`, `rdbV1`, `vpcV2`,
|
|
45
|
+
`iamV1alpha1`, `accountProjectV3`, `containersV1`, `functionsV1beta1`,
|
|
46
|
+
`secretManagerV1beta1`, `domainV2beta1`, … — every document on the developer
|
|
47
|
+
portal except the `test` API, which `api.scaleway.com` does not serve.
|
|
48
|
+
Operations deprecated upstream are not generated. Member names are
|
|
49
|
+
Scaleway's wire names (`project_id`, `commercial_type`, `page_size`).
|
|
50
|
+
|
|
51
|
+
Alpha and beta API versions (the version in the document's `info.version`,
|
|
52
|
+
such as `v1alpha1` or `v2beta1`) are under `unstable/`; GA versions (`v1`,
|
|
53
|
+
`v2`, `v3`) are not:
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import * as InstanceV1 from "@distilled.cloud/scaleway/instance_v1";
|
|
57
|
+
import * as DomainV2beta1 from "@distilled.cloud/scaleway/unstable/domain_v2beta1";
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Some APIs have no document on the portal and are **derived from Scaleway's
|
|
61
|
+
official JS SDK** (its generated client, built from the same API
|
|
62
|
+
definitions); their docs say so, and the mirror switches to a portal
|
|
63
|
+
document automatically once one is published:
|
|
64
|
+
|
|
65
|
+
- `billingV2` (budgets, budget alerts and notifications) and
|
|
66
|
+
`billingElectronicBillingV2` (e-invoicing addresses);
|
|
67
|
+
- `searchV1alpha1.searchResources` — find any resource across products;
|
|
68
|
+
- Dedibox's other API groups: `dediboxBillingV1` (invoices, refunds, with
|
|
69
|
+
`…Raw` PDF downloads), `dediboxIpv6BlockV1`, `dediboxRpnV1`,
|
|
70
|
+
`dediboxRpnSanV1`, `dediboxRpnV1V1`, `dediboxRpnV2V1` — they need Dedibox
|
|
71
|
+
enabled on the Organization;
|
|
72
|
+
- `datavizV1alpha1` — not served yet (every region answers
|
|
73
|
+
`501 unknown service`);
|
|
74
|
+
- the VPC endpoint operations in `edgeServicesV1beta1` (`createVPCEndpoint`, …).
|
|
75
|
+
|
|
76
|
+
## Auth
|
|
77
|
+
|
|
78
|
+
`SCW_SECRET_KEY` as `X-Auth-Token` (and as `Authorization: Bearer` for
|
|
79
|
+
Generative APIs on `api.scaleway.ai`). Optional: `SCW_DEFAULT_REGION`
|
|
80
|
+
(default `fr-par`) and `SCW_DEFAULT_ZONE` (default `fr-par-1`) fill a call's
|
|
81
|
+
`region` / `zone` when it leaves them out; `SCW_API_URL` replaces
|
|
82
|
+
`https://api.scaleway.com`. `SCW_DEFAULT_PROJECT_ID` and
|
|
83
|
+
`SCW_DEFAULT_ORGANIZATION_ID` are read into the credentials for callers but
|
|
84
|
+
never added to a request. The `~/.config/scw/config.yaml` profile file is not
|
|
85
|
+
read — export its values instead.
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import * as Redacted from "effect/Redacted";
|
|
89
|
+
|
|
90
|
+
Scaleway.credentials({
|
|
91
|
+
secretKey: Redacted.make(process.env.SCW_SECRET_KEY!),
|
|
92
|
+
region: "nl-ams",
|
|
93
|
+
zone: "nl-ams-1",
|
|
94
|
+
});
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Pagination
|
|
98
|
+
|
|
99
|
+
List operations stream every page with `.pages(input)` or every item with
|
|
100
|
+
`.items(input)`: `page` / `page_size` lists stop once `total_count` items are
|
|
101
|
+
read (Instance v1's `X-Total-Count` header is folded into `total_count`), and
|
|
102
|
+
`page_token` lists follow `next_page_token`.
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import * as Stream from "effect/Stream";
|
|
106
|
+
import * as InstanceV1 from "@distilled.cloud/scaleway/instance_v1";
|
|
107
|
+
|
|
108
|
+
const servers = InstanceV1.listServers.items({ zone: "fr-par-1" }).pipe(Stream.runCollect);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Errors
|
|
112
|
+
|
|
113
|
+
Failures are dispatched on Scaleway's error `type`, as the official SDKs do:
|
|
114
|
+
`InvalidArgumentsError`, `DeniedAuthenticationError`,
|
|
115
|
+
`PermissionsDeniedError`, `QuotasExceededError`, `ResourceNotFoundError`,
|
|
116
|
+
`ResourceExpiredError`, `ResourceLockedError`, `TransientStateError`
|
|
117
|
+
(retried by the default policy), `AlreadyExistsError`,
|
|
118
|
+
`PreconditionFailedError` and `OutOfStockError`; `too_many_requests` is
|
|
119
|
+
core's `TooManyRequests`. A failure without a recognised `type` falls back
|
|
120
|
+
to the HTTP status class, then `UnknownScalewayError`.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
import * as InstanceV1 from "@distilled.cloud/scaleway/instance_v1";
|
|
124
|
+
|
|
125
|
+
InstanceV1.getServer({ server_id }).pipe(
|
|
126
|
+
Effect.catchTag("ResourceNotFoundError", () => Effect.succeed(undefined)),
|
|
127
|
+
);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## File downloads
|
|
131
|
+
|
|
132
|
+
Operations that answer a file (kubeconfigs, database certificates, invoices,
|
|
133
|
+
DNS zone exports, contract PDFs) return Scaleway's JSON file object —
|
|
134
|
+
`{ name, content_type, content }`, `content` base64 — as the Go SDK and CLI
|
|
135
|
+
read it. Each also has a `…Raw` twin that asks for the file itself
|
|
136
|
+
(`?dl=1`, as the JS SDK does) and answers `{ body, contentType }`: the file as a
|
|
137
|
+
`Stream<Uint8Array>` read as it arrives and the response's `Content-Type`:
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import * as Stream from "effect/Stream";
|
|
141
|
+
import * as AccountContractV3 from "@distilled.cloud/scaleway/account_contract_v3";
|
|
142
|
+
|
|
143
|
+
const { body } = yield* AccountContractV3.downloadContractSignatureRaw({
|
|
144
|
+
contract_signature_id,
|
|
145
|
+
locale: "en_US",
|
|
146
|
+
});
|
|
147
|
+
const pdf = yield* Stream.mkUint8Array(body);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Instance volumes
|
|
151
|
+
|
|
152
|
+
`instanceV1.serverAction({ action: "terminate" })` deletes the server but
|
|
153
|
+
not its Block Storage (SBS) volumes — delete them with
|
|
154
|
+
`blockV1.deleteVolume` (observed live, 2026-10-12).
|
|
155
|
+
|
|
156
|
+
## Responses and `null`
|
|
157
|
+
|
|
158
|
+
Scaleway writes unset fields as `null`; the protocol drops `null` properties
|
|
159
|
+
before decoding, as the official SDKs do, so an unset field is absent.
|
|
160
|
+
|
|
161
|
+
## Known limits
|
|
162
|
+
|
|
163
|
+
- `generativeApisOpenaiV1.createAudioTranscription`: the spec declares a JSON
|
|
164
|
+
body with `file` as an object, but the OpenAI-compatible endpoint takes a
|
|
165
|
+
multipart upload, so the generated call cannot send audio.
|
|
166
|
+
- Some parameters the API requires are optional in the types: one-of
|
|
167
|
+
groups (`marketplaceV2.listLocalImages` needs one of `image_id` /
|
|
168
|
+
`image_label` / `version_id`) and `locale` on
|
|
169
|
+
`accountContractV3.downloadContractSignature`, which the spec marks
|
|
170
|
+
optional. The API answers `InvalidArgumentsError` naming the field.
|
|
171
|
+
- Not generated: the regional Load Balancer API (`/lb/v1/regions/…` — use
|
|
172
|
+
`lbZonedV1`, which covers the same resources) and console-only APIs no
|
|
173
|
+
official SDK covers (Data Orchestrator, Payment, Support, Notification
|
|
174
|
+
Center).
|
|
175
|
+
- Edge Services VPC endpoints answer an empty object and create nothing
|
|
176
|
+
unless the feature is enabled on the Organization.
|
package/lib/.lazy.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"serviceDirs":["unstable-services","services"],"twins":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{errors$API_ERRORS as e,errors$BadGateway as t,errors$BadRequest as n,errors$ConfigError as r,errors$Conflict as i,errors$DEFAULT_ERRORS as a,errors$Forbidden as o,errors$GatewayTimeout as s,errors$HTTP_STATUS_MAP as c,errors$InternalServerError as l,errors$Locked as u,errors$NotFound as d,errors$ServiceUnavailable as ee,errors$TooManyRequests as f,errors$Unauthorized as p,errors$UnprocessableEntity as m,protocol_http$buildRequest as te,protocol_http$getAnn as ne,protocol_http$mapKeys as re,protocol_http$matchTypedError as ie,protocol_rest$BinaryResponse as ae,protocol_rest$BinaryStream as oe,protocol_rest$RawResponse as se,protocol_rest$RawResponseRoot as ce,protocol_rest$SensitiveValue as le,protocol_rest$binaryResponseSymbol as ue,protocol_rest$declaredStatusClass as de,protocol_rest$rawResponseRootSymbol as fe,protocol_rest$rawResponseSymbol as pe,protocol_rest$readBinaryResponse as me,protocol_rest$sensitiveValueSymbol as he,protocol_rest$unwrapRedactedDeep as ge,protocol_rest$validateSuccess as _e,retry_after$parseRetryAfterForStatus as h,schema_lite$Array as ve,schema_lite$Boolean as ye,schema_lite$NullOr as be,schema_lite$Number as g,schema_lite$Record as _,schema_lite$String as v,schema_lite$Struct as y,schema_lite$Unknown as b,schema_lite$at as x,schema_lite$optional as S,schema_lite$suspend as C}from"@distilled.cloud/core/_bundle/rest";import{api$D as w,api$call as T,api$named as E,api$op as D,api$opPaginated as O,category$withAlreadyExistsError as k,category$withAuthError as A,category$withBadRequestError as j,category$withConflictError as M,category$withLockedError as N,category$withNotFoundError as P,category$withParseError as xe,category$withQuotaError as F,category$withRetryable as Se,category$withServerError as Ce,pagination$getPath as I,pagination$missingPaginationConfig as we,pagination$paginateToken as Te,retry$capped as Ee,retry$jittered as De,retry$makeDefault as Oe,retry$throttlingFactory as L,retry$throttlingOptions as ke,retry$transientFactory as R,retry$transientOptions as Ae,sdk_error$SdkError as z,trait$Body as je,trait$FormDataFile as Me,trait$Header as Ne,trait$HttpBody as Pe,trait$KeyDictionary as Fe,trait$Label as Ie,trait$Query as Le,trait$ResponseCode as Re,trait$UnionCases as ze,trait$applyErrorMatchers as Be,trait$bodySymbol as Ve,trait$errorMatchersSymbol as He,trait$formDataFileSymbol as Ue,trait$getErrorMatchers as We,trait$headerSymbol as Ge,trait$httpBodySymbol as Ke,trait$httpSymbol as B,trait$keyDictionarySymbol as qe,trait$labelSymbol as Je,trait$makeAnnotation as V,trait$querySymbol as Ye,trait$responseCodeSymbol as Xe,trait$unionCasesSymbol as Ze}from"@distilled.cloud/core/_bundle/base";import*as H from"effect/Config";import*as U from"effect/Context";import*as W from"effect/Effect";import*as G from"effect/Layer";import*as K from"effect/Option";import*as Qe from"effect/Redacted";import*as q from"effect/Schema";import*as $e from"effect/Stream";import{setOwnKey as et}from"@distilled.cloud/core/plain-values";import*as tt from"effect/Duration";import*as nt from"effect/http/HttpClientRequest";const rt=`https://api.scaleway.com`;const J=`fr-par`;const Y=`fr-par-1`;var Credentials=class extends U.Service()(`ScalewayCredentials`){};const optional$1=e=>H.String(e).pipe(H.option);const it=H.all({secretKey:H.Redacted(`SCW_SECRET_KEY`),region:H.String(`SCW_DEFAULT_REGION`).pipe(H.withDefault(J)),zone:H.String(`SCW_DEFAULT_ZONE`).pipe(H.withDefault(Y)),organizationId:optional$1(`SCW_DEFAULT_ORGANIZATION_ID`),projectId:optional$1(`SCW_DEFAULT_PROJECT_ID`),apiUrl:optional$1(`SCW_API_URL`)});const X=G.effect(Credentials,/*@__PURE__*/ W.map(it.pipe(W.mapError(()=>new r({message:`SCW_SECRET_KEY environment variable is required`})),W.map(e=>({secretKey:e.secretKey,region:e.region,zone:e.zone,organizationId:K.getOrUndefined(e.organizationId),projectId:K.getOrUndefined(e.projectId),apiUrl:K.getOrUndefined(e.apiUrl)}))),e=>W.succeed(e)));const credentials=e=>G.succeed(Credentials,W.succeed({...e,region:e.region??`fr-par`,zone:e.zone??`fr-par-1`}));const Z=q.Struct({argument_name:q.String,reason:q.String,help_message:q.optional(q.String)});const Q=q.Struct({resource:q.String,quota:q.Number,current:q.Number});const $=q.Struct({resource:q.String,action:q.String});var InvalidArgumentsError=class extends q.TaggedError()(`InvalidArgumentsError`,{message:q.String,details:q.Array(Z),body:q.Unknown}).pipe(j){};var DeniedAuthenticationError=class extends q.TaggedError()(`DeniedAuthenticationError`,{message:q.String,method:q.optional(q.String),reason:q.optional(q.String),body:q.Unknown}).pipe(A){};var PermissionsDeniedError=class extends q.TaggedError()(`PermissionsDeniedError`,{message:q.String,details:q.Array($),body:q.Unknown}).pipe(A){};var QuotasExceededError=class extends q.TaggedError()(`QuotasExceededError`,{message:q.String,details:q.Array(Q),body:q.Unknown}).pipe(F){};var ResourceNotFoundError=class extends q.TaggedError()(`ResourceNotFoundError`,{message:q.String,resource:q.optional(q.String),resource_id:q.optional(q.String),body:q.Unknown}).pipe(P){};var ResourceExpiredError=class extends q.TaggedError()(`ResourceExpiredError`,{message:q.String,resource:q.optional(q.String),resource_id:q.optional(q.String),expired_since:q.optional(q.String),body:q.Unknown}).pipe(P){};var ResourceLockedError=class extends q.TaggedError()(`ResourceLockedError`,{message:q.String,resource:q.optional(q.String),resource_id:q.optional(q.String),body:q.Unknown}).pipe(N){};var TransientStateError=class extends q.TaggedError()(`TransientStateError`,{message:q.String,resource:q.optional(q.String),resource_id:q.optional(q.String),current_state:q.optional(q.String),body:q.Unknown}).pipe(M,Se()){};var AlreadyExistsError=class extends q.TaggedError()(`AlreadyExistsError`,{message:q.String,resource:q.optional(q.String),resource_id:q.optional(q.String),help_message:q.optional(q.String),body:q.Unknown}).pipe(k){};var PreconditionFailedError=class extends q.TaggedError()(`PreconditionFailedError`,{message:q.String,precondition:q.optional(q.String),help_message:q.optional(q.String),body:q.Unknown}).pipe(M){};var OutOfStockError=class extends q.TaggedError()(`OutOfStockError`,{message:q.String,resource:q.optional(q.String),body:q.Unknown}).pipe(F){};var UnknownScalewayError=class extends q.TaggedError()(`UnknownScalewayError`,{code:q.optional(q.String),message:q.optional(q.String),body:q.Unknown}).pipe(Ce){};var ScalewayParseError=class extends q.TaggedError()(`ScalewayParseError`,{body:q.Unknown,cause:q.Unknown}).pipe(xe){};const at=[...e,InvalidArgumentsError,DeniedAuthenticationError,PermissionsDeniedError,QuotasExceededError,ResourceNotFoundError,ResourceExpiredError,ResourceLockedError,TransientStateError,AlreadyExistsError,PreconditionFailedError,OutOfStockError];const paginateByTotalCount=(e,t,n)=>{const r=n.inputToken;const i=n.outputToken;const a=n.items;if(!r||!i||!a)return we(`Total-count pagination requires inputToken, outputToken and items`);const o=typeof t[r]===`number`?t[r]:1;return $e.unfold({page:o,lastPage:void 0,done:false},n=>W.gen(function*(){if(n.done)return void 0;const o=yield*e({...t,[r]:n.page});const s=I(o,a);const c=Array.isArray(s)?s.length:0;let l=n.lastPage;if(l===void 0){const e=I(o,i);l=typeof e===`number`&&c>0?Math.ceil(e/c):n.page}const u=c===0||n.page>=l;return[o,{page:n.page+1,lastPage:l,done:u}]}))};const ot=`https://api.scaleway.ai`;const isObject=e=>e!==null&&typeof e===`object`&&!Array.isArray(e);const str=e=>typeof e===`string`?e:void 0;const records=e=>Array.isArray(e)?e.filter(isObject):[];const st=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;const envelopeError=(e,t,n,r,i)=>{if(!isObject(t)||typeof t.type!==`string`)return void 0;const a=str(t.resource);const o=str(t.resource_id);switch(t.type){case`invalid_arguments`:return e(InvalidArgumentsError,{message:n,details:records(t.details).flatMap(e=>typeof e.argument_name===`string`&&typeof e.reason===`string`?[{argument_name:e.argument_name,reason:e.reason,help_message:str(e.help_message)}]:[]),body:t});case`denied_authentication`:return e(DeniedAuthenticationError,{message:n,method:str(t.method),reason:str(t.reason),body:t});case`permissions_denied`:return e(PermissionsDeniedError,{message:n,details:records(t.details).flatMap(e=>typeof e.resource===`string`&&typeof e.action===`string`?[{resource:e.resource,action:e.action}]:[]),body:t});case`quotas_exceeded`:return e(QuotasExceededError,{message:n,details:records(t.details).flatMap(e=>typeof e.resource===`string`&&typeof e.quota===`number`&&typeof e.current===`number`?[{resource:e.resource,quota:e.quota,current:e.current}]:[]),body:t});case`not_found`:return e(ResourceNotFoundError,{message:n,resource:a,resource_id:o,body:t});case`expired`:return e(ResourceExpiredError,{message:n,resource:a,resource_id:o,expired_since:str(t.expired_since),body:t});case`locked`:return e(ResourceLockedError,{message:n,resource:a,resource_id:o,body:t});case`transient_state`:return e(TransientStateError,{message:n,resource:a,resource_id:o,current_state:str(t.current_state),body:t});case`already_exists`:return e(AlreadyExistsError,{message:n,resource:a,resource_id:o,help_message:str(t.help_message),body:t});case`precondition_failed`:return e(PreconditionFailedError,{message:n,precondition:str(t.precondition),help_message:str(t.help_message),body:t});case`out_of_stock`:return e(OutOfStockError,{message:n,resource:a,body:t});case`too_many_requests`:{const i=typeof t.reset_seconds===`number`?t.reset_seconds:void 0;return e(f,{message:n,retryAfter:h(429,r)??(i!==void 0?tt.seconds(i):void 0)})}case`unknown_resource`:{const r=(str(t.message)??``).split(/["']/);if(r.length===3&&st.test(r[1]))return e(ResourceNotFoundError,{message:n,resource:r[0].trim().toLowerCase().split(` `).join(`_`)||void 0,resource_id:r[1],body:t});return i===404?e(ResourceNotFoundError,{message:n,body:t}):void 0}case`invalid_request_error`:{if((str(t.message)??``).toLowerCase().includes(`quota exceeded for this resource`))return e(QuotasExceededError,{message:n,details:[{resource:a??``,quota:0,current:0}],body:t});const r=(isObject(t.fields)?Object.entries(t.fields):[]).flatMap(([e,t])=>(Array.isArray(t)?t:[]).filter(e=>typeof e===`string`).map(t=>({argument_name:e,reason:`constraint`,help_message:t})));return r.length>0?e(InvalidArgumentsError,{message:n,details:r,body:t}):void 0}default:return}};const scalewayError=(e,t,n,r)=>envelopeError((e,t)=>new e(t),e,t,n,r);const declaredError=(e,t,n)=>{const r=t;const i=e.find(e=>e===r);return i===void 0?void 0:new i(n)};const failureMessage=(e,t,n)=>{if(!isObject(e))return n.trim()!==``?n.trim():`HTTP ${t}`;const r=str(e.message)??str(e.help_message)??str(e.type)??`HTTP ${t}`;const i=records(e.details).map(e=>typeof e.argument_name===`string`?`${e.argument_name}: ${str(e.help_message)??str(e.reason)??`invalid`}`:void 0).filter(e=>e!==void 0);return i.length>0?`${r} (${i.join(`; `)})`:r};const httpTraitOf=e=>{const t=ne(e,B);if(t===void 0||typeof t.baseUrl!==`string`||t.baseUrl===``)return new z({message:`Scaleway operation is missing T.Http({ baseUrl }) -- regenerate from convert`});return t};const baseUrlFor=(e,t)=>t.baseUrl===`https://api.scaleway.com`&&e.apiUrl!==void 0&&e.apiUrl!==``?e.apiUrl.replace(/\/+$/,``):t.baseUrl;const withLocality=(e,t,n)=>{const r=isObject(e)?e:{};const missing=e=>t.includes(`{${e}}`)&&(r[e]===void 0||r[e]===null||r[e]===``);if(!missing(`region`)&&!missing(`zone`))return e;return{...r,...missing(`region`)?{region:n.region}:{},...missing(`zone`)?{zone:n.zone}:{}}};const stripNulls=e=>{if(Array.isArray(e))return e.map(stripNulls);if(isObject(e)){const t={};for(const[n,r]of Object.entries(e))if(r!==null)et(t,n,stripNulls(r));return t}return e};const isJsonContentType=e=>e===void 0||e===``||/[/+]json\b/i.test(e);const encodeRequest=(e,t,n={})=>W.gen(function*(){const r=yield*yield*Credentials;const i=httpTraitOf(t);if(i instanceof z)return yield*i;const a=Qe.value(r.secretKey);const o=yield*te({input:withLocality(ge(e),i.uri,r),inputAst:t,baseUrl:baseUrlFor(r,i),headers:{"X-Auth-Token":a,...i.baseUrl===ot?{Authorization:`Bearer ${a}`}:{},...n}});return i.rawDownload===true?nt.appendUrlParam(o,`dl`,`1`):o});const failureFor=(e,t,n,r=[])=>{let i;let a=false;if(t.trim().length>0)try{i=JSON.parse(t)}catch{a=true}const o=a?t:i;const s=failureMessage(i,e,t);const c=ie(r,e,[{code:void 0,message:s}],{body:o,headers:n});if(c!==void 0)return c;const u=a?void 0:envelopeError((e,t)=>declaredError(r,e,t),i,s,n,e);if(u!==void 0)return u;const d=de(e,r);if(d)return new d({message:s,retryAfter:h(e,n)});if(e>=500)return new l({message:s,retryAfter:h(e,n)});return new UnknownScalewayError({code:isObject(i)?str(i.type):void 0,message:s,body:o})};const ct={encode:({input:e,inputAst:t})=>encodeRequest(e,t),decode:({response:e,outputAst:t,errors:n})=>W.gen(function*(){const r=e.status;const i=e.headers;const a=r>=200&&r<300?me(e,t):void 0;if(a!==void 0)return yield*a;const o=(yield*e.text)??``;if(r>=400)return yield*W.fail(failureFor(r,o,i,n));let s;let c=false;if(o.trim().length>0){if(isJsonContentType(i[`content-type`]))try{s=JSON.parse(o)}catch{c=true}else c=true}let l=c?o:stripNulls(s??{});const u=i[`x-total-count`];if(isObject(l)&&!(`total_count`in l)&&u!==void 0){const e=Math.trunc(Number(u));if(!Number.isNaN(e))l={...l,total_count:e}}return yield*_e(t,{value:re(t,l,`decode`),body:c?o:s,nonJson:c},e=>new ScalewayParseError(e))})};const lt=ct;var Retry=class extends U.Service()(`ScalewayRetry`){};const policy=e=>W.provide(G.succeed(Retry,e));const ut=W.provide(G.succeed(Retry,{while:()=>false}));const dt=policy(L);const ft=policy(R);const Http=e=>V(B,e);export{ve as Tc,ye as Uc,w as a,T as b,be as bd,oe as cc,g as cd,Credentials as credentials$Credentials,X as credentials$CredentialsFromEnv,rt as credentials$DEFAULT_API_URL,J as credentials$DEFAULT_REGION,Y as credentials$DEFAULT_ZONE,credentials as credentials$credentials,_ as dd,e as errors$API_ERRORS,AlreadyExistsError as errors$AlreadyExistsError,t as errors$BadGateway,n as errors$BadRequest,r as errors$ConfigError,i as errors$Conflict,a as errors$DEFAULT_ERRORS,DeniedAuthenticationError as errors$DeniedAuthenticationError,o as errors$Forbidden,s as errors$GatewayTimeout,c as errors$HTTP_STATUS_MAP,l as errors$InternalServerError,Z as errors$InvalidArgumentDetail,InvalidArgumentsError as errors$InvalidArgumentsError,u as errors$Locked,d as errors$NotFound,OutOfStockError as errors$OutOfStockError,$ as errors$PermissionDetail,PermissionsDeniedError as errors$PermissionsDeniedError,PreconditionFailedError as errors$PreconditionFailedError,Q as errors$QuotaDetail,QuotasExceededError as errors$QuotasExceededError,ResourceExpiredError as errors$ResourceExpiredError,ResourceLockedError as errors$ResourceLockedError,ResourceNotFoundError as errors$ResourceNotFoundError,ScalewayParseError as errors$ScalewayParseError,at as errors$ScalewayServiceErrors,ee as errors$ServiceUnavailable,f as errors$TooManyRequests,TransientStateError as errors$TransientStateError,p as errors$Unauthorized,UnknownScalewayError as errors$UnknownScalewayError,m as errors$UnprocessableEntity,v as fd,y as gd,E as l,b as ld,D as n,x as nd,O as o,paginateByTotalCount as pagination$paginateByTotalCount,Te as pagination$paginateToken,lt as protocol$ScalewayProtocol,encodeRequest as protocol$encodeRequest,failureFor as protocol$failureFor,scalewayError as protocol$scalewayError,stripNulls as protocol$stripNulls,Retry as retry$Retry,Ee as retry$capped,De as retry$jittered,Oe as retry$makeDefault,ut as retry$none,policy as retry$policy,dt as retry$throttling,L as retry$throttlingFactory,ke as retry$throttlingOptions,ft as retry$transient,R as retry$transientFactory,Ae as retry$transientOptions,S as sd,C as td,ae as traits$BinaryResponse,je as traits$Body,Me as traits$FormDataFile,Ne as traits$Header,Http as traits$Http,Pe as traits$HttpBody,Fe as traits$KeyDictionary,Ie as traits$Label,Le as traits$Query,se as traits$RawResponse,ce as traits$RawResponseRoot,Re as traits$ResponseCode,le as traits$SensitiveValue,ze as traits$UnionCases,Be as traits$applyErrorMatchers,ue as traits$binaryResponseSymbol,Ve as traits$bodySymbol,He as traits$errorMatchersSymbol,Ue as traits$formDataFileSymbol,We as traits$getErrorMatchers,Ge as traits$headerSymbol,Ke as traits$httpBodySymbol,B as traits$httpSymbol,qe as traits$keyDictionarySymbol,Je as traits$labelSymbol,V as traits$makeAnnotation,Ye as traits$querySymbol,fe as traits$rawResponseRootSymbol,pe as traits$rawResponseSymbol,Xe as traits$responseCodeSymbol,he as traits$sensitiveValueSymbol,Ze as traits$unionCasesSymbol};
|
|
2
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","names":["optional","Category.withBadRequestError","Category.withAuthError","Category.withQuotaError","Category.withNotFoundError","Category.withLockedError","Category.withConflictError","Category.withRetryable","Category.withAlreadyExistsError","Category.withServerError","Category.withParseError","API_ERRORS","BadGateway","BadRequest","ConfigError","Conflict","DEFAULT_ERRORS","Forbidden","GatewayTimeout","HTTP_STATUS_MAP","InternalServerError","Locked","NotFound","ServiceUnavailable","TooManyRequests","Unauthorized","UnprocessableEntity","buildRequest","getAnn","mapKeys","matchTypedError","BinaryResponse","BinaryStream","RawResponse","RawResponseRoot","SensitiveValue","binaryResponseSymbol","declaredStatusClass","rawResponseRootSymbol","rawResponseSymbol","readBinaryResponse","sensitiveValueSymbol","unwrapRedactedDeep","validateSuccess","parseRetryAfterForStatus","Array$1","Boolean","NullOr","Number$1","Record","String","Struct","Unknown","at","optional","suspend","D","call","named","op","opPaginated","withAlreadyExistsError","withAuthError","withBadRequestError","withConflictError","withLockedError","withNotFoundError","withParseError","withQuotaError","withRetryable","withServerError","getPath","missingPaginationConfig","paginateToken","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","SdkError","Body","FormDataFile","Header","HttpBody","KeyDictionary","Label","Query","ResponseCode","UnionCases","applyErrorMatchers","bodySymbol","errorMatchersSymbol","formDataFileSymbol","getErrorMatchers","headerSymbol","httpBodySymbol","httpSymbol","keyDictionarySymbol","labelSymbol","makeAnnotation","querySymbol","responseCodeSymbol","unionCasesSymbol","EffectConfig","Context","Effect","Layer","Option","Redacted","Schema","Stream","Duration","HttpClientRequest","DEFAULT_API_URL","DEFAULT_REGION","DEFAULT_ZONE","name","envConfig","CredentialsFromEnv","env","config","InvalidArgumentDetail","QuotaDetail","PermissionDetail","ScalewayServiceErrors","inputToken","pagination","totalCountPath","itemsPath","startPage","input","state","response","operation","items","length","lastPage","total","done","GENERATIVE_APIS_HOST","value","UUID","body","resource","resource_id","build","d","reset","headers","parts","status","details","argument_name","messages","m","cls","props","message","known","Declared","errors","declared","text","base","help","s","http","inputAst","creds","obj","uri","key","out","k","v","setOwnKey","contentType","secretKey","request","extraHeaders","json","nonJson","typed","errorClasses","scw","StatusErrorClass","scalewayProtocolMethods","binary","outputAst","totalCount","n","info","ScalewayProtocol","optionsOrFactory","none","throttling","transient","trait"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/pagination.ts","../../src/protocol.ts","../../src/retry.ts","../../src/traits.ts"],"mappings":"shGAwBA,MAAamH,GAAkB,2BAE/B,MAAaC,EAAiB,SAE9B,MAAaC,EAAe,WAiB5B,IAAa,YAAb,cAAiCX,EAAQ,QAA4C,CAAC,CACpF,qBACF,CAAC,AAAC,CAAC,EAEH,MAAM1G,WAAY,GAAi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6BsB,EAAeH,EAAYqG,CAAK"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
2
|
+
import * as Context from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
|
+
/** Scaleway's API host -- what `SCW_API_URL` overrides. */
|
|
7
|
+
export declare const DEFAULT_API_URL = "https://api.scaleway.com";
|
|
8
|
+
/** Region used when neither the call nor `SCW_DEFAULT_REGION` names one (the CLI's and Terraform's default). */
|
|
9
|
+
export declare const DEFAULT_REGION = "fr-par";
|
|
10
|
+
/** Zone used when neither the call nor `SCW_DEFAULT_ZONE` names one (the CLI's and Terraform's default). */
|
|
11
|
+
export declare const DEFAULT_ZONE = "fr-par-1";
|
|
12
|
+
export interface Config {
|
|
13
|
+
/** API secret key (a UUID), sent as `X-Auth-Token`. */
|
|
14
|
+
readonly secretKey: Redacted.Redacted<string>;
|
|
15
|
+
/** Region filled into `{region}` when a call omits `region`. */
|
|
16
|
+
readonly region: string;
|
|
17
|
+
/** Zone filled into `{zone}` when a call omits `zone`. */
|
|
18
|
+
readonly zone: string;
|
|
19
|
+
/** Default Organization ID (`SCW_DEFAULT_ORGANIZATION_ID`), for callers building requests. */
|
|
20
|
+
readonly organizationId?: string;
|
|
21
|
+
/** Default Project ID (`SCW_DEFAULT_PROJECT_ID`), for callers building requests. */
|
|
22
|
+
readonly projectId?: string;
|
|
23
|
+
/** Replaces {@link DEFAULT_API_URL} for every `api.scaleway.com` operation. */
|
|
24
|
+
readonly apiUrl?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "ScalewayCredentials", Effect.Effect<Config, never, never>>;
|
|
27
|
+
export declare class Credentials extends Credentials_base {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Its configuration is read and checked once, when the layer is built: a
|
|
31
|
+
* problem there fails the layer with `ConfigError`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CredentialsFromEnv: Layer.Layer<Credentials, ConfigError, never>;
|
|
34
|
+
/** Convenience layer from a redacted secret key and optional defaults. */
|
|
35
|
+
export declare const credentials: (config: {
|
|
36
|
+
readonly secretKey: Redacted.Redacted<string>;
|
|
37
|
+
readonly region?: string;
|
|
38
|
+
readonly zone?: string;
|
|
39
|
+
readonly organizationId?: string;
|
|
40
|
+
readonly projectId?: string;
|
|
41
|
+
readonly apiUrl?: string;
|
|
42
|
+
}) => Layer.Layer<Credentials>;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAiB3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,2DAA2D;AAC3D,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,gHAAgH;AAChH,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,4GAA4G;AAC5G,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,MAAM,WAAW,MAAM;IACrB,uDAAuD;IACvD,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9C,gEAAgE;IAChE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,oFAAoF;IACpF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAaJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,8CAqB9B,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,WAAW,WAAY;IAClC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,KAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAQxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { credentials$Credentials as Credentials, credentials$CredentialsFromEnv as CredentialsFromEnv, credentials$DEFAULT_API_URL as DEFAULT_API_URL, credentials$DEFAULT_REGION as DEFAULT_REGION, credentials$DEFAULT_ZONE as DEFAULT_ZONE, credentials$credentials as credentials } from "./_bundle/sdk.js";
|