@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +175 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +94 -3
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,1445 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
|
+
import { ScalewayServiceErrors } from "../errors.ts";
|
|
7
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
12
|
+
|
|
13
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
14
|
+
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "scaleway-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Scaleway",
|
|
23
|
+
service: "AccountUnauthenticatedUserV3",
|
|
24
|
+
labels: "scaleway",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type OIDCIdentityProvider = "unknown_identity_provider" | "google" | "microsoft" | "github";
|
|
29
|
+
export interface CreateAccountRequestOIDC {
|
|
30
|
+
identity_provider?: OIDCIdentityProvider | (string & {}) | undefined;
|
|
31
|
+
access_token?: string | Redacted.Redacted<string> | undefined;
|
|
32
|
+
}
|
|
33
|
+
export type CreateAccountRequestEmailValidationMethod =
|
|
34
|
+
| "unknown_email_validation_method"
|
|
35
|
+
| "magic_link"
|
|
36
|
+
| "authentication_code";
|
|
37
|
+
export type CreateAccountRequestOrganizationOrigin =
|
|
38
|
+
| "unknown_organization_origin"
|
|
39
|
+
| "direct"
|
|
40
|
+
| "dedibox"
|
|
41
|
+
| "web_cloud"
|
|
42
|
+
| "account"
|
|
43
|
+
| "book_my_name";
|
|
44
|
+
export interface CreateAccountRequest {
|
|
45
|
+
/** Email of the user. Precisely one of email, oidc can be set. */
|
|
46
|
+
email?: string | null | undefined;
|
|
47
|
+
/** OpenID Connect authentication information that allows a user to authenticate through an external identity provider. If this field is used, the `email` field must not be set. Precisely one of email, oidc can be set. */
|
|
48
|
+
oidc?: CreateAccountRequestOIDC | null | undefined;
|
|
49
|
+
/** Captcha. Captcha validation code. This is required as an anti-fraud measure. */
|
|
50
|
+
captcha?: string | undefined;
|
|
51
|
+
/** In case of account creation by email, we can choose to receive a magic_link or an authentication_code by email. By default a magic_link will be sent. */
|
|
52
|
+
email_validation_method?: CreateAccountRequestEmailValidationMethod | (string & {}) | undefined;
|
|
53
|
+
/** Origin of the organization creation request. */
|
|
54
|
+
origin?: CreateAccountRequestOrganizationOrigin | (string & {}) | undefined;
|
|
55
|
+
/** First name of the user. */
|
|
56
|
+
first_name?: string | undefined;
|
|
57
|
+
/** Last name of the user. */
|
|
58
|
+
last_name?: string | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface Account {
|
|
61
|
+
/** Request creation id. (UUID format) */
|
|
62
|
+
id?: string | undefined;
|
|
63
|
+
/** Email used for the account request. */
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
/** Token used to validate the account without email validation. */
|
|
66
|
+
token?: string | Redacted.Redacted<string> | null | undefined;
|
|
67
|
+
/** The SRN of the account. */
|
|
68
|
+
srn?: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface CreateLoginSessionRequestPassword {
|
|
71
|
+
/** Email of the user. */
|
|
72
|
+
email?: string | undefined;
|
|
73
|
+
/** Password of the user. */
|
|
74
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
75
|
+
/** Origin of the login request. */
|
|
76
|
+
redirect_url?: string | undefined;
|
|
77
|
+
/** Captcha response. */
|
|
78
|
+
captcha?: string | null | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface CreateLoginSessionRequestPasswordless {
|
|
81
|
+
/** Email of the user. */
|
|
82
|
+
email?: string | undefined;
|
|
83
|
+
/** Token of the magic link. */
|
|
84
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface CreateLoginSessionRequestOIDC {
|
|
87
|
+
/** Code received from the identity provider. */
|
|
88
|
+
code?: string | undefined;
|
|
89
|
+
/** Identity provider to connect with. */
|
|
90
|
+
identity_provider?: OIDCIdentityProvider | (string & {}) | undefined;
|
|
91
|
+
/** URI to which the identity provider will redirect after the authentication phase. */
|
|
92
|
+
account_redirect_uri?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export interface CreateLoginSessionRequestAuthenticationCode {
|
|
95
|
+
/** Email of the user. */
|
|
96
|
+
email?: string | undefined;
|
|
97
|
+
/** 6 digits code sent by email. */
|
|
98
|
+
code?: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
export interface CreateLoginSessionRequest {
|
|
101
|
+
/** Log in with password. One of password, passwordless, oidc, authentication_code is required. */
|
|
102
|
+
password?: CreateLoginSessionRequestPassword | null | undefined;
|
|
103
|
+
/** Log in with passwordless. One of password, passwordless, oidc, authentication_code is required. */
|
|
104
|
+
passwordless?: CreateLoginSessionRequestPasswordless | null | undefined;
|
|
105
|
+
/** Log in with OpenID Connect. One of password, passwordless, oidc, authentication_code is required. */
|
|
106
|
+
oidc?: CreateLoginSessionRequestOIDC | null | undefined;
|
|
107
|
+
/** One of password, passwordless, oidc, authentication_code is required. */
|
|
108
|
+
authentication_code?: CreateLoginSessionRequestAuthenticationCode | null | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface LoginSession {
|
|
111
|
+
/** ID of the login session. */
|
|
112
|
+
id?: string | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface AuthenticatorAssertionResponse {
|
|
115
|
+
/** JSON representation of the client data. */
|
|
116
|
+
client_data_json?: string | undefined;
|
|
117
|
+
/** Data about the authenticator that performed the authentication. */
|
|
118
|
+
authenticator_data?: string | undefined;
|
|
119
|
+
/** Signature by the authenticator key of the authentication ceremony data. */
|
|
120
|
+
signature?: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export interface AuthenticationResponse {
|
|
123
|
+
/** Unique identifier of the key used by the authenticator. */
|
|
124
|
+
raw_id?: string | undefined;
|
|
125
|
+
/** Response provided by the authenticator to the authentication challenge. */
|
|
126
|
+
response: AuthenticatorAssertionResponse;
|
|
127
|
+
}
|
|
128
|
+
export interface FinishWebAuthnAuthenticationRequest {
|
|
129
|
+
/** ID of the authentication ceremony to finish. */
|
|
130
|
+
ceremony_id?: string | undefined;
|
|
131
|
+
/** WebAuthn response to the authentication ceremony. */
|
|
132
|
+
authentication_response: AuthenticationResponse;
|
|
133
|
+
/** The domain on which the authentication is occurring. */
|
|
134
|
+
origin?: string | undefined;
|
|
135
|
+
}
|
|
136
|
+
export interface JWT {
|
|
137
|
+
/** JTI of the JWT. */
|
|
138
|
+
jti?: string | undefined;
|
|
139
|
+
/** IAM user ID of the JWT issuer. */
|
|
140
|
+
issuer_id?: string | undefined;
|
|
141
|
+
/** IAM user ID of the JWT audience. */
|
|
142
|
+
audience_id?: string | undefined;
|
|
143
|
+
/** Creation date of the JWT. (RFC 3339 format) */
|
|
144
|
+
created_at?: string | null | undefined;
|
|
145
|
+
/** Renewal date of the JWT. (RFC 3339 format) */
|
|
146
|
+
updated_at?: string | null | undefined;
|
|
147
|
+
/** Expiration date of the JWT. (RFC 3339 format) */
|
|
148
|
+
expires_at?: string | null | undefined;
|
|
149
|
+
/** Source IP address for the JWT creation. (IP address) */
|
|
150
|
+
ip?: string | undefined;
|
|
151
|
+
/** User agent for the JWT creation. */
|
|
152
|
+
user_agent?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface OrganizationLogin {
|
|
155
|
+
/** ID of the organization. (UUID format) */
|
|
156
|
+
organization_id?: string | undefined;
|
|
157
|
+
/** Name of the organization. */
|
|
158
|
+
organization_name?: string | undefined;
|
|
159
|
+
/** Data of the JWT created by the login request. */
|
|
160
|
+
jwt?: JWT | undefined;
|
|
161
|
+
/** Encoded JWT token. */
|
|
162
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
163
|
+
/** Encoded JWT renew token. */
|
|
164
|
+
renew_token?: string | Redacted.Redacted<string> | undefined;
|
|
165
|
+
}
|
|
166
|
+
/** List of organizations and their associated login information. */
|
|
167
|
+
export type LogInOrganizationsResponseOrganizationsLoginInformationList = Array<OrganizationLogin>;
|
|
168
|
+
export interface LogInOrganizationsResponseWebAuthnMetadata {
|
|
169
|
+
uv_verified_set?: boolean | undefined;
|
|
170
|
+
}
|
|
171
|
+
export interface LogInOrganizationsResponse {
|
|
172
|
+
/** List of organizations and their associated login information. */
|
|
173
|
+
organizations_login_information?:
|
|
174
|
+
| LogInOrganizationsResponseOrganizationsLoginInformationList
|
|
175
|
+
| undefined;
|
|
176
|
+
/** Precisely one of webauthn can be set. */
|
|
177
|
+
webauthn?: LogInOrganizationsResponseWebAuthnMetadata | null | undefined;
|
|
178
|
+
}
|
|
179
|
+
export interface InitiateOIDCSignupRequest {
|
|
180
|
+
/** Identity provider to connect with. */
|
|
181
|
+
identity_provider?: OIDCIdentityProvider | (string & {}) | undefined;
|
|
182
|
+
/** URL to redirect the user to after login. */
|
|
183
|
+
redirect_url?: string | undefined;
|
|
184
|
+
/** URI to which the identity provider will redirect after the authentication phase. */
|
|
185
|
+
account_redirect_uri?: string | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface InitiateOIDCSignupResponse {
|
|
188
|
+
/** URL to redirect the user to. */
|
|
189
|
+
url?: string | undefined;
|
|
190
|
+
/** Security token to check when receiving a code from the identity provider. */
|
|
191
|
+
security_token?: string | Redacted.Redacted<string> | undefined;
|
|
192
|
+
}
|
|
193
|
+
export interface FinishWebAuthnAuthenticationRequest2 {
|
|
194
|
+
/** ID of the authentication ceremony to finish. */
|
|
195
|
+
ceremony_id?: string | undefined;
|
|
196
|
+
/** WebAuthn response to the authentication ceremony. */
|
|
197
|
+
authentication_response: AuthenticationResponse;
|
|
198
|
+
/** The domain on which the authentication is occurring. */
|
|
199
|
+
origin?: string | undefined;
|
|
200
|
+
}
|
|
201
|
+
export interface LogInRequest {
|
|
202
|
+
/** ID of the login session. */
|
|
203
|
+
login_session_id?: string | undefined;
|
|
204
|
+
/** OTP of the user. Precisely one of otp, webauthn can be set. */
|
|
205
|
+
otp?: string | Redacted.Redacted<string> | null | undefined;
|
|
206
|
+
/** Optional organization_id to specify the organization we want to log in. */
|
|
207
|
+
organization_id?: string | null | undefined;
|
|
208
|
+
/** WebAuthn response to the authentication ceremony. Precisely one of otp, webauthn can be set. */
|
|
209
|
+
webauthn?: FinishWebAuthnAuthenticationRequest2 | null | undefined;
|
|
210
|
+
}
|
|
211
|
+
export interface LogInResponse {
|
|
212
|
+
/** Data of the JWT created by the login request. */
|
|
213
|
+
jwt?: JWT | undefined;
|
|
214
|
+
/** Encoded JWT token. */
|
|
215
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
216
|
+
/** Encoded JWT renew token. */
|
|
217
|
+
renew_token?: string | Redacted.Redacted<string> | undefined;
|
|
218
|
+
}
|
|
219
|
+
export interface LoginInitiateAuthenticationCodeRequest {
|
|
220
|
+
/** Email of the user to login. */
|
|
221
|
+
email?: string | undefined;
|
|
222
|
+
}
|
|
223
|
+
export type LoginInitiateAuthenticationCodeResponse = unknown;
|
|
224
|
+
export interface LoginInitiateOIDCRequest {
|
|
225
|
+
/** Identity provider to connect with. */
|
|
226
|
+
identity_provider?: OIDCIdentityProvider | (string & {}) | undefined;
|
|
227
|
+
/** URL to redirect to after login. */
|
|
228
|
+
redirect_url?: string | undefined;
|
|
229
|
+
/** URI to which the identity provider will redirect after the authentication phase. */
|
|
230
|
+
account_redirect_uri?: string | undefined;
|
|
231
|
+
}
|
|
232
|
+
export interface InitiateOIDCLoginResponse {
|
|
233
|
+
/** URL to redirect the user to. */
|
|
234
|
+
url?: string | undefined;
|
|
235
|
+
/** Security token to check when receiving a code from the identity provider. */
|
|
236
|
+
security_token?: string | Redacted.Redacted<string> | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface LoginInitiatePasswordlessRequest {
|
|
239
|
+
/** Email of the user. */
|
|
240
|
+
email?: string | undefined;
|
|
241
|
+
/** Origin of the login request. */
|
|
242
|
+
redirect_url?: string | undefined;
|
|
243
|
+
}
|
|
244
|
+
export interface LoginInitiatePasswordlessResponse {}
|
|
245
|
+
export interface LogInOrganizationsRequest {
|
|
246
|
+
/** ID of the login session. */
|
|
247
|
+
login_session_id?: string | undefined;
|
|
248
|
+
/** OTP of the user. Precisely one of otp, webauthn can be set. */
|
|
249
|
+
otp?: string | Redacted.Redacted<string> | null | undefined;
|
|
250
|
+
/** WebAuthn response to the authentication ceremony. Precisely one of otp, webauthn can be set. */
|
|
251
|
+
webauthn?: FinishWebAuthnAuthenticationRequest2 | null | undefined;
|
|
252
|
+
}
|
|
253
|
+
export interface NotifyAccountRequest {
|
|
254
|
+
/** Email associated to the user account. */
|
|
255
|
+
email: string;
|
|
256
|
+
}
|
|
257
|
+
export interface NotifyAccountResponse {}
|
|
258
|
+
export interface RejectEmailUpdateRequest {
|
|
259
|
+
/** ID of the user. */
|
|
260
|
+
account_root_user_id: string;
|
|
261
|
+
/** Token received to reject the email update. */
|
|
262
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
263
|
+
}
|
|
264
|
+
export interface RejectEmailUpdateResponse {}
|
|
265
|
+
export type ResendAuthenticationCodeRequestOperation = "unknown_operation" | "sign_up" | "sign_in";
|
|
266
|
+
export interface ResendAuthenticationCodeRequest {
|
|
267
|
+
/** Email of the user. */
|
|
268
|
+
email?: string | undefined;
|
|
269
|
+
/** Sign up or sign in operation. */
|
|
270
|
+
operation?: ResendAuthenticationCodeRequestOperation | (string & {}) | undefined;
|
|
271
|
+
}
|
|
272
|
+
export interface ResendAuthenticationCodeResponse {}
|
|
273
|
+
export interface ResetPasswordRequest {
|
|
274
|
+
/** Token received to reset the password. */
|
|
275
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
276
|
+
/** New password. */
|
|
277
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
278
|
+
}
|
|
279
|
+
export interface ResetPasswordResponse {}
|
|
280
|
+
export interface SendResetPasswordEmailRequest {
|
|
281
|
+
/** Email associated to the user account. */
|
|
282
|
+
email?: string | undefined;
|
|
283
|
+
/** Captcha response. */
|
|
284
|
+
captcha?: string | undefined;
|
|
285
|
+
}
|
|
286
|
+
export interface SendResetPasswordEmailResponse {}
|
|
287
|
+
export interface StartWebAuthnAuthenticationRequest {
|
|
288
|
+
/** ID of the login session. */
|
|
289
|
+
login_session_id?: string | null | undefined;
|
|
290
|
+
/** The domain on which the authentication is occurring. */
|
|
291
|
+
origin?: string | undefined;
|
|
292
|
+
}
|
|
293
|
+
export interface PublicKeyCredentialDescriptor {
|
|
294
|
+
/** Unique identifier of the key. */
|
|
295
|
+
id?: string | undefined;
|
|
296
|
+
}
|
|
297
|
+
/** List of credentials, if any, which can be used to perform the ceremony. */
|
|
298
|
+
export type PublicKeyCredentialRequestOptionsAllowCredentialsList =
|
|
299
|
+
Array<PublicKeyCredentialDescriptor>;
|
|
300
|
+
export type UserVerificationRequirement =
|
|
301
|
+
| "user_verification_requirement_unknown"
|
|
302
|
+
| "user_verification_requirement_required"
|
|
303
|
+
| "user_verification_requirement_preferred"
|
|
304
|
+
| "user_verification_requirement_discouraged";
|
|
305
|
+
export interface PublicKeyCredentialRequestOptions {
|
|
306
|
+
/** Random bytes constituting the challenge to solve for the credentials assertion. */
|
|
307
|
+
challenge?: string | undefined;
|
|
308
|
+
/** Maximum duration of the authentication ceremony (milliseconds). */
|
|
309
|
+
timeout?: number | undefined;
|
|
310
|
+
/** List of credentials, if any, which can be used to perform the ceremony. */
|
|
311
|
+
allow_credentials?: PublicKeyCredentialRequestOptionsAllowCredentialsList | undefined;
|
|
312
|
+
/** User verification requirement for this authentication ceremony. */
|
|
313
|
+
user_verification?: UserVerificationRequirement | undefined;
|
|
314
|
+
}
|
|
315
|
+
export interface StartWebAuthnAuthenticationResponse {
|
|
316
|
+
/** ID of the ceremony which will be needed for completion. */
|
|
317
|
+
id?: string | undefined;
|
|
318
|
+
/** WebAuthn challenge to solve to finish the ceremony. */
|
|
319
|
+
public_key_credential_request?: PublicKeyCredentialRequestOptions | undefined;
|
|
320
|
+
}
|
|
321
|
+
export type OrganizationCorporateIndustry =
|
|
322
|
+
| "unknown_corporate_industry"
|
|
323
|
+
| "consulting_services"
|
|
324
|
+
| "cybersecurity_software"
|
|
325
|
+
| "ecommerce_retail"
|
|
326
|
+
| "education"
|
|
327
|
+
| "energy"
|
|
328
|
+
| "financial_services_insurance"
|
|
329
|
+
| "gaming_entertainment"
|
|
330
|
+
| "hospitality_leisure"
|
|
331
|
+
| "lifescience_healthcare_pharmaceuticals"
|
|
332
|
+
| "manufacturing"
|
|
333
|
+
| "media_press_tv"
|
|
334
|
+
| "public_sector"
|
|
335
|
+
| "telecommunications"
|
|
336
|
+
| "technology"
|
|
337
|
+
| "other";
|
|
338
|
+
export interface ProfessionalOrganization {
|
|
339
|
+
/** Main industry the organization is associated with. */
|
|
340
|
+
corporate_industry?: OrganizationCorporateIndustry | (string & {}) | undefined;
|
|
341
|
+
}
|
|
342
|
+
export interface PersonalOrganization {
|
|
343
|
+
/** Defines whether the user wants to be subscribed to the Scaleway mailing list. */
|
|
344
|
+
newsletter_subscription?: boolean | undefined;
|
|
345
|
+
}
|
|
346
|
+
export type AccountType =
|
|
347
|
+
| "unknown_type"
|
|
348
|
+
| "personal"
|
|
349
|
+
| "corporate"
|
|
350
|
+
| "startup"
|
|
351
|
+
| "consultant"
|
|
352
|
+
| "association";
|
|
353
|
+
export interface ValidateAccountRequest {
|
|
354
|
+
/** Email used for the account request. */
|
|
355
|
+
email?: string | undefined;
|
|
356
|
+
/** Token received to validate the account. */
|
|
357
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
358
|
+
/** Details of the professional organization. Precisely one of professional_organization, personal_organization can be set. */
|
|
359
|
+
professional_organization?: ProfessionalOrganization | null | undefined;
|
|
360
|
+
/** Details of the personal organization. Precisely one of professional_organization, personal_organization can be set. */
|
|
361
|
+
personal_organization?: PersonalOrganization | null | undefined;
|
|
362
|
+
/** Type of the account. */
|
|
363
|
+
account_type?: AccountType | (string & {}) | undefined;
|
|
364
|
+
/** Name of the organization. */
|
|
365
|
+
organization_name?: string | undefined;
|
|
366
|
+
/** Country code of the organization (ISO 3166-2). */
|
|
367
|
+
country_code?: string | null | undefined;
|
|
368
|
+
}
|
|
369
|
+
export interface UserMFAMethods {
|
|
370
|
+
/** True if the user has setup a TOTP. */
|
|
371
|
+
totp?: boolean | undefined;
|
|
372
|
+
/** True if the user has at least one WebAuthn authenticator. */
|
|
373
|
+
web_authn?: boolean | undefined;
|
|
374
|
+
}
|
|
375
|
+
export type ScalewayStdLanguageCode = "unknown_language_code" | "en_US" | "fr_FR" | "de_DE";
|
|
376
|
+
export interface User {
|
|
377
|
+
/** ID of the user. (UUID format) */
|
|
378
|
+
id?: string | undefined;
|
|
379
|
+
/** First name of the user. */
|
|
380
|
+
first_name?: string | undefined;
|
|
381
|
+
/** Last name of the user. */
|
|
382
|
+
last_name?: string | undefined;
|
|
383
|
+
/** Email of the user. */
|
|
384
|
+
email?: string | undefined;
|
|
385
|
+
/** Phone number of the user. */
|
|
386
|
+
phone_number?: string | undefined;
|
|
387
|
+
/** Date the user was created. (RFC 3339 format) */
|
|
388
|
+
created_at?: string | null | undefined;
|
|
389
|
+
/** Date the user was updated. (RFC 3339 format) */
|
|
390
|
+
updated_at?: string | null | undefined;
|
|
391
|
+
/** Defines whether multi-factor authentication is enabled for the user. */
|
|
392
|
+
mfa?: boolean | undefined;
|
|
393
|
+
/** Defines for each multi-factor authentication method whether the user has it enabled or not. */
|
|
394
|
+
mfa_methods?: UserMFAMethods | undefined;
|
|
395
|
+
/** Locale of the user. */
|
|
396
|
+
locale?: ScalewayStdLanguageCode | undefined;
|
|
397
|
+
/** Defines whether the user has a password set. */
|
|
398
|
+
has_password?: boolean | undefined;
|
|
399
|
+
/** Defines whether the user has a professional email or not. */
|
|
400
|
+
is_professional_email?: boolean | undefined;
|
|
401
|
+
/** The SRN of the usr. */
|
|
402
|
+
srn?: string | undefined;
|
|
403
|
+
}
|
|
404
|
+
export type OrganizationType = "unknown_type" | "individual" | "professional" | "internal";
|
|
405
|
+
export interface OrganizationSummary {
|
|
406
|
+
/** ID of the Organization. (UUID format) */
|
|
407
|
+
id?: string | undefined;
|
|
408
|
+
/** Name of the Organization. */
|
|
409
|
+
name?: string | undefined;
|
|
410
|
+
/** Defines whether the user_id created the Organization. */
|
|
411
|
+
owner?: boolean | undefined;
|
|
412
|
+
/** Defines whether we have locking warnings. */
|
|
413
|
+
locked?: boolean | undefined;
|
|
414
|
+
/** Defines whether MFA is required for the Organization. */
|
|
415
|
+
mfa_enforced?: boolean | undefined;
|
|
416
|
+
/** Organization's picture URL. */
|
|
417
|
+
picture_link?: string | null | undefined;
|
|
418
|
+
/** Organization Type. */
|
|
419
|
+
organization_type?: OrganizationType | undefined;
|
|
420
|
+
/** Organization Corporate Industry. */
|
|
421
|
+
corporate_industry?: OrganizationCorporateIndustry | undefined;
|
|
422
|
+
/** Deprecated. Defines whether the organization is a startup. */
|
|
423
|
+
is_startup?: boolean | undefined;
|
|
424
|
+
/** The SRN of the organization. */
|
|
425
|
+
srn?: string | undefined;
|
|
426
|
+
}
|
|
427
|
+
/** List of organizations with their login information (JWT tokens) for auto-login after account validation. */
|
|
428
|
+
export type ValidateAccountResponseLoginInformationsList = Array<OrganizationLogin>;
|
|
429
|
+
export interface ValidateAccountResponse {
|
|
430
|
+
/** User created. */
|
|
431
|
+
user?: User | undefined;
|
|
432
|
+
/** Summary of the organization created for the user. */
|
|
433
|
+
organization_summary?: OrganizationSummary | undefined;
|
|
434
|
+
/** List of organizations with their login information (JWT tokens) for auto-login after account validation. */
|
|
435
|
+
login_informations?: ValidateAccountResponseLoginInformationsList | undefined;
|
|
436
|
+
}
|
|
437
|
+
export interface ValidateAuthenticationCodeSignUpRequest {
|
|
438
|
+
/** Email of the user. */
|
|
439
|
+
email?: string | undefined;
|
|
440
|
+
/** Authentication code sent by email. */
|
|
441
|
+
code?: string | undefined;
|
|
442
|
+
}
|
|
443
|
+
export interface ValidateAuthenticationCodeSignUpResponse {
|
|
444
|
+
/** Secret authenticating the user. */
|
|
445
|
+
secret?: string | Redacted.Redacted<string> | undefined;
|
|
446
|
+
/** First name of the user. */
|
|
447
|
+
first_name?: string | undefined;
|
|
448
|
+
/** Last name of the user. */
|
|
449
|
+
last_name?: string | undefined;
|
|
450
|
+
}
|
|
451
|
+
export interface ValidateEmailUpdateRequest {
|
|
452
|
+
/** ID of the user. */
|
|
453
|
+
account_root_user_id: string;
|
|
454
|
+
/** Token received to validate the email update. */
|
|
455
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
456
|
+
}
|
|
457
|
+
export interface ValidateEmailUpdateResponse {}
|
|
458
|
+
export interface ValidateOIDCSignupRequest {
|
|
459
|
+
/** Identity provider to connect with. */
|
|
460
|
+
identity_provider?: OIDCIdentityProvider | (string & {}) | undefined;
|
|
461
|
+
/** Authorization code returned initially by the identity provider. */
|
|
462
|
+
code?: string | undefined;
|
|
463
|
+
/** URI to which the identity provider will redirect after the authentication phase. */
|
|
464
|
+
account_redirect_uri?: string | undefined;
|
|
465
|
+
}
|
|
466
|
+
export interface ValidateOIDCSignupResponse {
|
|
467
|
+
/** Email to sign-up. */
|
|
468
|
+
email?: string | undefined;
|
|
469
|
+
/** Access token to get user's protected resources. */
|
|
470
|
+
access_token?: string | Redacted.Redacted<string> | undefined;
|
|
471
|
+
/** User first name as reported by the OIDC provider. */
|
|
472
|
+
first_name?: string | null | undefined;
|
|
473
|
+
/** User last name as reported by the OIDC provider. */
|
|
474
|
+
last_name?: string | null | undefined;
|
|
475
|
+
}
|
|
476
|
+
export type CreateAccountError = ScalewayOpError;
|
|
477
|
+
/** Create a new user request */
|
|
478
|
+
export const createAccount: API.OperationMethod<
|
|
479
|
+
CreateAccountRequest,
|
|
480
|
+
Account,
|
|
481
|
+
CreateAccountError,
|
|
482
|
+
ScalewayOpContext
|
|
483
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
484
|
+
input: __S(1, __c0, 1) as any as S.Schema<CreateAccountRequest>,
|
|
485
|
+
output: __S(2, __c0, 2) as any as S.Schema<Account>,
|
|
486
|
+
errors: [],
|
|
487
|
+
serviceErrors: ScalewayServiceErrors,
|
|
488
|
+
protocol: ScalewayProtocol,
|
|
489
|
+
retry: Retry.Retry,
|
|
490
|
+
telemetry: TELEMETRY,
|
|
491
|
+
span: "CreateAccount",
|
|
492
|
+
}));
|
|
493
|
+
|
|
494
|
+
export type CreateLoginSessionError = ScalewayOpError;
|
|
495
|
+
/** Create a login session */
|
|
496
|
+
export const createLoginSession: API.OperationMethod<
|
|
497
|
+
CreateLoginSessionRequest,
|
|
498
|
+
LoginSession,
|
|
499
|
+
CreateLoginSessionError,
|
|
500
|
+
ScalewayOpContext
|
|
501
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
502
|
+
input: __S(12, __c1, 4) as any as S.Schema<CreateLoginSessionRequest>,
|
|
503
|
+
output: __S(16, __c2, 0) as any as S.Schema<LoginSession>,
|
|
504
|
+
errors: [],
|
|
505
|
+
serviceErrors: ScalewayServiceErrors,
|
|
506
|
+
protocol: ScalewayProtocol,
|
|
507
|
+
retry: Retry.Retry,
|
|
508
|
+
telemetry: TELEMETRY,
|
|
509
|
+
span: "CreateLoginSession",
|
|
510
|
+
}));
|
|
511
|
+
|
|
512
|
+
export type FinishWebAuthnAuthenticationError = ScalewayOpError;
|
|
513
|
+
/** Finish a WebAuthn authentication ceremony and log in. Supports passkey authentication without email. */
|
|
514
|
+
export const finishWebAuthnAuthentication: API.OperationMethod<
|
|
515
|
+
FinishWebAuthnAuthenticationRequest,
|
|
516
|
+
LogInOrganizationsResponse,
|
|
517
|
+
FinishWebAuthnAuthenticationError,
|
|
518
|
+
ScalewayOpContext
|
|
519
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
520
|
+
input: __S(96, __c12, 0) as any as S.Schema<FinishWebAuthnAuthenticationRequest>,
|
|
521
|
+
output: __S(121, __c15, 1) as any as S.Schema<LogInOrganizationsResponse>,
|
|
522
|
+
errors: [],
|
|
523
|
+
serviceErrors: ScalewayServiceErrors,
|
|
524
|
+
protocol: ScalewayProtocol,
|
|
525
|
+
retry: Retry.Retry,
|
|
526
|
+
telemetry: TELEMETRY,
|
|
527
|
+
span: "FinishWebAuthnAuthentication",
|
|
528
|
+
}));
|
|
529
|
+
|
|
530
|
+
export type InitiateOIDCSignupError = ScalewayOpError;
|
|
531
|
+
/** Initiate an OpenID sign-up */
|
|
532
|
+
export const initiateOIDCSignup: API.OperationMethod<
|
|
533
|
+
InitiateOIDCSignupRequest,
|
|
534
|
+
InitiateOIDCSignupResponse,
|
|
535
|
+
InitiateOIDCSignupError,
|
|
536
|
+
ScalewayOpContext
|
|
537
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
538
|
+
input: __S(136, __c17, 0) as any as S.Schema<InitiateOIDCSignupRequest>,
|
|
539
|
+
output: __S(144, __c18, 0) as any as S.Schema<InitiateOIDCSignupResponse>,
|
|
540
|
+
errors: [],
|
|
541
|
+
serviceErrors: ScalewayServiceErrors,
|
|
542
|
+
protocol: ScalewayProtocol,
|
|
543
|
+
retry: Retry.Retry,
|
|
544
|
+
telemetry: TELEMETRY,
|
|
545
|
+
span: "InitiateOIDCSignup",
|
|
546
|
+
}));
|
|
547
|
+
|
|
548
|
+
export type LogInError = ScalewayOpError;
|
|
549
|
+
/** Log in with a session */
|
|
550
|
+
export const logIn: API.OperationMethod<
|
|
551
|
+
LogInRequest,
|
|
552
|
+
LogInResponse,
|
|
553
|
+
LogInError,
|
|
554
|
+
ScalewayOpContext
|
|
555
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
556
|
+
input: __S(152, __c19, 0) as any as S.Schema<LogInRequest>,
|
|
557
|
+
output: __S(153, __c19, 1) as any as S.Schema<LogInResponse>,
|
|
558
|
+
errors: [],
|
|
559
|
+
serviceErrors: ScalewayServiceErrors,
|
|
560
|
+
protocol: ScalewayProtocol,
|
|
561
|
+
retry: Retry.Retry,
|
|
562
|
+
telemetry: TELEMETRY,
|
|
563
|
+
span: "LogIn",
|
|
564
|
+
}));
|
|
565
|
+
|
|
566
|
+
export type LoginInitiateAuthenticationCodeError = ScalewayOpError;
|
|
567
|
+
/** Initiate an authentication code login attempt and send an email with the code to the user */
|
|
568
|
+
export const loginInitiateAuthenticationCode: API.OperationMethod<
|
|
569
|
+
LoginInitiateAuthenticationCodeRequest,
|
|
570
|
+
LoginInitiateAuthenticationCodeResponse,
|
|
571
|
+
LoginInitiateAuthenticationCodeError,
|
|
572
|
+
ScalewayOpContext
|
|
573
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
574
|
+
input: __S(168, __c21, 0) as any as S.Schema<LoginInitiateAuthenticationCodeRequest>,
|
|
575
|
+
output: __S(169, __c21, 1) as any as S.Schema<LoginInitiateAuthenticationCodeResponse>,
|
|
576
|
+
errors: [],
|
|
577
|
+
serviceErrors: ScalewayServiceErrors,
|
|
578
|
+
protocol: ScalewayProtocol,
|
|
579
|
+
retry: Retry.Retry,
|
|
580
|
+
telemetry: TELEMETRY,
|
|
581
|
+
span: "LoginInitiateAuthenticationCode",
|
|
582
|
+
}));
|
|
583
|
+
|
|
584
|
+
export type LoginInitiateOIDCError = ScalewayOpError;
|
|
585
|
+
/** Initiate a OpenID connect login */
|
|
586
|
+
export const loginInitiateOIDC: API.OperationMethod<
|
|
587
|
+
LoginInitiateOIDCRequest,
|
|
588
|
+
InitiateOIDCLoginResponse,
|
|
589
|
+
LoginInitiateOIDCError,
|
|
590
|
+
ScalewayOpContext
|
|
591
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
592
|
+
input: __S(176, __c22, 0) as any as S.Schema<LoginInitiateOIDCRequest>,
|
|
593
|
+
output: __S(144, __c18, 0) as any as S.Schema<InitiateOIDCLoginResponse>,
|
|
594
|
+
errors: [],
|
|
595
|
+
serviceErrors: ScalewayServiceErrors,
|
|
596
|
+
protocol: ScalewayProtocol,
|
|
597
|
+
retry: Retry.Retry,
|
|
598
|
+
telemetry: TELEMETRY,
|
|
599
|
+
span: "LoginInitiateOIDC",
|
|
600
|
+
}));
|
|
601
|
+
|
|
602
|
+
export type LoginInitiatePasswordlessError = ScalewayOpError;
|
|
603
|
+
/** Send a magic link for passwordless login */
|
|
604
|
+
export const loginInitiatePasswordless: API.OperationMethod<
|
|
605
|
+
LoginInitiatePasswordlessRequest,
|
|
606
|
+
LoginInitiatePasswordlessResponse,
|
|
607
|
+
LoginInitiatePasswordlessError,
|
|
608
|
+
ScalewayOpContext
|
|
609
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
610
|
+
input: __S(184, __c23, 0) as any as S.Schema<LoginInitiatePasswordlessRequest>,
|
|
611
|
+
output: __S(192, __c24, 0) as any as S.Schema<LoginInitiatePasswordlessResponse>,
|
|
612
|
+
errors: [],
|
|
613
|
+
serviceErrors: ScalewayServiceErrors,
|
|
614
|
+
protocol: ScalewayProtocol,
|
|
615
|
+
retry: Retry.Retry,
|
|
616
|
+
telemetry: TELEMETRY,
|
|
617
|
+
span: "LoginInitiatePasswordless",
|
|
618
|
+
}));
|
|
619
|
+
|
|
620
|
+
export type LogInOrganizationsError = ScalewayOpError;
|
|
621
|
+
/** Log in to retrieve all organizations */
|
|
622
|
+
export const logInOrganizations: API.OperationMethod<
|
|
623
|
+
LogInOrganizationsRequest,
|
|
624
|
+
LogInOrganizationsResponse,
|
|
625
|
+
LogInOrganizationsError,
|
|
626
|
+
ScalewayOpContext
|
|
627
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
628
|
+
input: __S(200, __c25, 0) as any as S.Schema<LogInOrganizationsRequest>,
|
|
629
|
+
output: __S(121, __c15, 1) as any as S.Schema<LogInOrganizationsResponse>,
|
|
630
|
+
errors: [],
|
|
631
|
+
serviceErrors: ScalewayServiceErrors,
|
|
632
|
+
protocol: ScalewayProtocol,
|
|
633
|
+
retry: Retry.Retry,
|
|
634
|
+
telemetry: TELEMETRY,
|
|
635
|
+
span: "LogInOrganizations",
|
|
636
|
+
}));
|
|
637
|
+
|
|
638
|
+
export type NotifyAccountError = ScalewayOpError;
|
|
639
|
+
/** Send the validation email for the user request */
|
|
640
|
+
export const notifyAccount: API.OperationMethod<
|
|
641
|
+
NotifyAccountRequest,
|
|
642
|
+
NotifyAccountResponse,
|
|
643
|
+
NotifyAccountError,
|
|
644
|
+
ScalewayOpContext
|
|
645
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
646
|
+
input: __S(208, __c26, 0) as any as S.Schema<NotifyAccountRequest>,
|
|
647
|
+
output: __S(192, __c24, 0) as any as S.Schema<NotifyAccountResponse>,
|
|
648
|
+
errors: [],
|
|
649
|
+
serviceErrors: ScalewayServiceErrors,
|
|
650
|
+
protocol: ScalewayProtocol,
|
|
651
|
+
retry: Retry.Retry,
|
|
652
|
+
telemetry: TELEMETRY,
|
|
653
|
+
span: "NotifyAccount",
|
|
654
|
+
}));
|
|
655
|
+
|
|
656
|
+
export type RejectEmailUpdateError = ScalewayOpError;
|
|
657
|
+
/** Reject email update */
|
|
658
|
+
export const rejectEmailUpdate: API.OperationMethod<
|
|
659
|
+
RejectEmailUpdateRequest,
|
|
660
|
+
RejectEmailUpdateResponse,
|
|
661
|
+
RejectEmailUpdateError,
|
|
662
|
+
ScalewayOpContext
|
|
663
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
664
|
+
input: __S(24, __c3, 0) as any as S.Schema<RejectEmailUpdateRequest>,
|
|
665
|
+
output: __S(192, __c24, 0) as any as S.Schema<RejectEmailUpdateResponse>,
|
|
666
|
+
errors: [],
|
|
667
|
+
serviceErrors: ScalewayServiceErrors,
|
|
668
|
+
protocol: ScalewayProtocol,
|
|
669
|
+
retry: Retry.Retry,
|
|
670
|
+
telemetry: TELEMETRY,
|
|
671
|
+
span: "RejectEmailUpdate",
|
|
672
|
+
}));
|
|
673
|
+
|
|
674
|
+
export type ResendAuthenticationCodeError = ScalewayOpError;
|
|
675
|
+
/** Resend an authentication code for sign in or sign up operation */
|
|
676
|
+
export const resendAuthenticationCode: API.OperationMethod<
|
|
677
|
+
ResendAuthenticationCodeRequest,
|
|
678
|
+
ResendAuthenticationCodeResponse,
|
|
679
|
+
ResendAuthenticationCodeError,
|
|
680
|
+
ScalewayOpContext
|
|
681
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
682
|
+
input: __S(32, __c4, 0) as any as S.Schema<ResendAuthenticationCodeRequest>,
|
|
683
|
+
output: __S(192, __c24, 0) as any as S.Schema<ResendAuthenticationCodeResponse>,
|
|
684
|
+
errors: [],
|
|
685
|
+
serviceErrors: ScalewayServiceErrors,
|
|
686
|
+
protocol: ScalewayProtocol,
|
|
687
|
+
retry: Retry.Retry,
|
|
688
|
+
telemetry: TELEMETRY,
|
|
689
|
+
span: "ResendAuthenticationCode",
|
|
690
|
+
}));
|
|
691
|
+
|
|
692
|
+
export type ResetPasswordError = ScalewayOpError;
|
|
693
|
+
/** Reset password */
|
|
694
|
+
export const resetPassword: API.OperationMethod<
|
|
695
|
+
ResetPasswordRequest,
|
|
696
|
+
ResetPasswordResponse,
|
|
697
|
+
ResetPasswordError,
|
|
698
|
+
ScalewayOpContext
|
|
699
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
700
|
+
input: __S(40, __c5, 0) as any as S.Schema<ResetPasswordRequest>,
|
|
701
|
+
output: __S(192, __c24, 0) as any as S.Schema<ResetPasswordResponse>,
|
|
702
|
+
errors: [],
|
|
703
|
+
serviceErrors: ScalewayServiceErrors,
|
|
704
|
+
protocol: ScalewayProtocol,
|
|
705
|
+
retry: Retry.Retry,
|
|
706
|
+
telemetry: TELEMETRY,
|
|
707
|
+
span: "ResetPassword",
|
|
708
|
+
}));
|
|
709
|
+
|
|
710
|
+
export type SendResetPasswordEmailError = ScalewayOpError;
|
|
711
|
+
/** Send reset password link as an email */
|
|
712
|
+
export const sendResetPasswordEmail: API.OperationMethod<
|
|
713
|
+
SendResetPasswordEmailRequest,
|
|
714
|
+
SendResetPasswordEmailResponse,
|
|
715
|
+
SendResetPasswordEmailError,
|
|
716
|
+
ScalewayOpContext
|
|
717
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
718
|
+
input: __S(48, __c6, 0) as any as S.Schema<SendResetPasswordEmailRequest>,
|
|
719
|
+
output: __S(192, __c24, 0) as any as S.Schema<SendResetPasswordEmailResponse>,
|
|
720
|
+
errors: [],
|
|
721
|
+
serviceErrors: ScalewayServiceErrors,
|
|
722
|
+
protocol: ScalewayProtocol,
|
|
723
|
+
retry: Retry.Retry,
|
|
724
|
+
telemetry: TELEMETRY,
|
|
725
|
+
span: "SendResetPasswordEmail",
|
|
726
|
+
}));
|
|
727
|
+
|
|
728
|
+
export type StartWebAuthnAuthenticationError = ScalewayOpError;
|
|
729
|
+
/** Start a WebAuthn authentication ceremony to use MFA for the LogIn API request. */
|
|
730
|
+
export const startWebAuthnAuthentication: API.OperationMethod<
|
|
731
|
+
StartWebAuthnAuthenticationRequest,
|
|
732
|
+
StartWebAuthnAuthenticationResponse,
|
|
733
|
+
StartWebAuthnAuthenticationError,
|
|
734
|
+
ScalewayOpContext
|
|
735
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
736
|
+
input: __S(56, __c7, 0) as any as S.Schema<StartWebAuthnAuthenticationRequest>,
|
|
737
|
+
output: __S(59, __c7, 3) as any as S.Schema<StartWebAuthnAuthenticationResponse>,
|
|
738
|
+
errors: [],
|
|
739
|
+
serviceErrors: ScalewayServiceErrors,
|
|
740
|
+
protocol: ScalewayProtocol,
|
|
741
|
+
retry: Retry.Retry,
|
|
742
|
+
telemetry: TELEMETRY,
|
|
743
|
+
span: "StartWebAuthnAuthentication",
|
|
744
|
+
}));
|
|
745
|
+
|
|
746
|
+
export type ValidateAccountError = ScalewayOpError;
|
|
747
|
+
/** Validate the user request */
|
|
748
|
+
export const validateAccount: API.OperationMethod<
|
|
749
|
+
ValidateAccountRequest,
|
|
750
|
+
ValidateAccountResponse,
|
|
751
|
+
ValidateAccountError,
|
|
752
|
+
ScalewayOpContext
|
|
753
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
754
|
+
input: __S(66, __c8, 2) as any as S.Schema<ValidateAccountRequest>,
|
|
755
|
+
output: __S(70, __c8, 6) as any as S.Schema<ValidateAccountResponse>,
|
|
756
|
+
errors: [],
|
|
757
|
+
serviceErrors: ScalewayServiceErrors,
|
|
758
|
+
protocol: ScalewayProtocol,
|
|
759
|
+
retry: Retry.Retry,
|
|
760
|
+
telemetry: TELEMETRY,
|
|
761
|
+
span: "ValidateAccount",
|
|
762
|
+
}));
|
|
763
|
+
|
|
764
|
+
export type ValidateAuthenticationCodeSignUpError = ScalewayOpError;
|
|
765
|
+
/** Validate an authentication code during a sign up workflow */
|
|
766
|
+
export const validateAuthenticationCodeSignUp: API.OperationMethod<
|
|
767
|
+
ValidateAuthenticationCodeSignUpRequest,
|
|
768
|
+
ValidateAuthenticationCodeSignUpResponse,
|
|
769
|
+
ValidateAuthenticationCodeSignUpError,
|
|
770
|
+
ScalewayOpContext
|
|
771
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
772
|
+
input: __S(72, __c9, 0) as any as S.Schema<ValidateAuthenticationCodeSignUpRequest>,
|
|
773
|
+
output: __S(73, __c9, 1) as any as S.Schema<ValidateAuthenticationCodeSignUpResponse>,
|
|
774
|
+
errors: [],
|
|
775
|
+
serviceErrors: ScalewayServiceErrors,
|
|
776
|
+
protocol: ScalewayProtocol,
|
|
777
|
+
retry: Retry.Retry,
|
|
778
|
+
telemetry: TELEMETRY,
|
|
779
|
+
span: "ValidateAuthenticationCodeSignUp",
|
|
780
|
+
}));
|
|
781
|
+
|
|
782
|
+
export type ValidateEmailUpdateError = ScalewayOpError;
|
|
783
|
+
/** Validate email update */
|
|
784
|
+
export const validateEmailUpdate: API.OperationMethod<
|
|
785
|
+
ValidateEmailUpdateRequest,
|
|
786
|
+
ValidateEmailUpdateResponse,
|
|
787
|
+
ValidateEmailUpdateError,
|
|
788
|
+
ScalewayOpContext
|
|
789
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
790
|
+
input: __S(80, __c10, 0) as any as S.Schema<ValidateEmailUpdateRequest>,
|
|
791
|
+
output: __S(192, __c24, 0) as any as S.Schema<ValidateEmailUpdateResponse>,
|
|
792
|
+
errors: [],
|
|
793
|
+
serviceErrors: ScalewayServiceErrors,
|
|
794
|
+
protocol: ScalewayProtocol,
|
|
795
|
+
retry: Retry.Retry,
|
|
796
|
+
telemetry: TELEMETRY,
|
|
797
|
+
span: "ValidateEmailUpdate",
|
|
798
|
+
}));
|
|
799
|
+
|
|
800
|
+
export type ValidateOIDCSignupError = ScalewayOpError;
|
|
801
|
+
/** Validate an OpenID connect during sign-up */
|
|
802
|
+
export const validateOIDCSignup: API.OperationMethod<
|
|
803
|
+
ValidateOIDCSignupRequest,
|
|
804
|
+
ValidateOIDCSignupResponse,
|
|
805
|
+
ValidateOIDCSignupError,
|
|
806
|
+
ScalewayOpContext
|
|
807
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
808
|
+
input: __S(88, __c11, 0) as any as S.Schema<ValidateOIDCSignupRequest>,
|
|
809
|
+
output: __S(89, __c11, 1) as any as S.Schema<ValidateOIDCSignupResponse>,
|
|
810
|
+
errors: [],
|
|
811
|
+
serviceErrors: ScalewayServiceErrors,
|
|
812
|
+
protocol: ScalewayProtocol,
|
|
813
|
+
retry: Retry.Retry,
|
|
814
|
+
telemetry: TELEMETRY,
|
|
815
|
+
span: "ValidateOIDCSignup",
|
|
816
|
+
}));
|
|
817
|
+
|
|
818
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
819
|
+
function __c0(j: number): any {
|
|
820
|
+
switch (j) {
|
|
821
|
+
case 0:
|
|
822
|
+
return S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
identity_provider: S.optional(S.String),
|
|
825
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
826
|
+
}),
|
|
827
|
+
).annotate({ identifier: "CreateAccountRequestOIDC" });
|
|
828
|
+
case 1:
|
|
829
|
+
return S.suspend(() =>
|
|
830
|
+
S.Struct({
|
|
831
|
+
email: S.optional(S.NullOr(S.String)),
|
|
832
|
+
oidc: S.optional(S.NullOr(__S(0, __c0, 0))),
|
|
833
|
+
captcha: S.optional(S.String),
|
|
834
|
+
email_validation_method: S.optional(S.String),
|
|
835
|
+
origin: S.optional(S.String),
|
|
836
|
+
first_name: S.optional(S.String),
|
|
837
|
+
last_name: S.optional(S.String),
|
|
838
|
+
}).pipe(
|
|
839
|
+
T.Http({
|
|
840
|
+
method: "POST",
|
|
841
|
+
uri: "/account/v3/accounts",
|
|
842
|
+
code: 200,
|
|
843
|
+
baseUrl: "https://api.scaleway.com",
|
|
844
|
+
}),
|
|
845
|
+
),
|
|
846
|
+
).annotate({ identifier: "CreateAccountRequest" });
|
|
847
|
+
case 2:
|
|
848
|
+
return S.suspend(() =>
|
|
849
|
+
S.Struct({
|
|
850
|
+
id: S.optional(S.String),
|
|
851
|
+
email: S.optional(S.String),
|
|
852
|
+
token: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
853
|
+
srn: S.optional(S.String),
|
|
854
|
+
}),
|
|
855
|
+
).annotate({ identifier: "Account" });
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function __c1(j: number): any {
|
|
859
|
+
switch (j) {
|
|
860
|
+
case 0:
|
|
861
|
+
return S.suspend(() =>
|
|
862
|
+
S.Struct({
|
|
863
|
+
email: S.optional(S.String),
|
|
864
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
865
|
+
redirect_url: S.optional(S.String),
|
|
866
|
+
captcha: S.optional(S.NullOr(S.String)),
|
|
867
|
+
}),
|
|
868
|
+
).annotate({ identifier: "CreateLoginSessionRequestPassword" });
|
|
869
|
+
case 1:
|
|
870
|
+
return S.suspend(() =>
|
|
871
|
+
S.Struct({
|
|
872
|
+
email: S.optional(S.String),
|
|
873
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
874
|
+
}),
|
|
875
|
+
).annotate({ identifier: "CreateLoginSessionRequestPasswordless" });
|
|
876
|
+
case 2:
|
|
877
|
+
return S.suspend(() =>
|
|
878
|
+
S.Struct({
|
|
879
|
+
code: S.optional(S.String),
|
|
880
|
+
identity_provider: S.optional(S.String),
|
|
881
|
+
account_redirect_uri: S.optional(S.String),
|
|
882
|
+
}),
|
|
883
|
+
).annotate({ identifier: "CreateLoginSessionRequestOIDC" });
|
|
884
|
+
case 3:
|
|
885
|
+
return S.suspend(() =>
|
|
886
|
+
S.Struct({
|
|
887
|
+
email: S.optional(S.String),
|
|
888
|
+
code: S.optional(S.String),
|
|
889
|
+
}),
|
|
890
|
+
).annotate({ identifier: "CreateLoginSessionRequestAuthenticationCode" });
|
|
891
|
+
case 4:
|
|
892
|
+
return S.suspend(() =>
|
|
893
|
+
S.Struct({
|
|
894
|
+
password: S.optional(S.NullOr(__S(8, __c1, 0))),
|
|
895
|
+
passwordless: S.optional(S.NullOr(__S(9, __c1, 1))),
|
|
896
|
+
oidc: S.optional(S.NullOr(__S(10, __c1, 2))),
|
|
897
|
+
authentication_code: S.optional(S.NullOr(__S(11, __c1, 3))),
|
|
898
|
+
}).pipe(
|
|
899
|
+
T.Http({
|
|
900
|
+
method: "POST",
|
|
901
|
+
uri: "/account/v3/login-session",
|
|
902
|
+
code: 200,
|
|
903
|
+
baseUrl: "https://api.scaleway.com",
|
|
904
|
+
}),
|
|
905
|
+
),
|
|
906
|
+
).annotate({ identifier: "CreateLoginSessionRequest" });
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function __c2(j: number): any {
|
|
910
|
+
switch (j) {
|
|
911
|
+
case 0:
|
|
912
|
+
return S.suspend(() =>
|
|
913
|
+
S.Struct({
|
|
914
|
+
id: S.optional(S.String),
|
|
915
|
+
}),
|
|
916
|
+
).annotate({ identifier: "LoginSession" });
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
function __c3(j: number): any {
|
|
920
|
+
switch (j) {
|
|
921
|
+
case 0:
|
|
922
|
+
return S.suspend(() =>
|
|
923
|
+
S.Struct({
|
|
924
|
+
account_root_user_id: S.String.pipe(T.Label()),
|
|
925
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
926
|
+
}).pipe(
|
|
927
|
+
T.Http({
|
|
928
|
+
method: "POST",
|
|
929
|
+
uri: "/account/v3/users/{account_root_user_id}/reject-email-update",
|
|
930
|
+
code: 200,
|
|
931
|
+
baseUrl: "https://api.scaleway.com",
|
|
932
|
+
}),
|
|
933
|
+
),
|
|
934
|
+
).annotate({ identifier: "RejectEmailUpdateRequest" });
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
function __c4(j: number): any {
|
|
938
|
+
switch (j) {
|
|
939
|
+
case 0:
|
|
940
|
+
return S.suspend(() =>
|
|
941
|
+
S.Struct({
|
|
942
|
+
email: S.optional(S.String),
|
|
943
|
+
operation: S.optional(S.String),
|
|
944
|
+
}).pipe(
|
|
945
|
+
T.Http({
|
|
946
|
+
method: "POST",
|
|
947
|
+
uri: "/account/v3/resend-authentication-code",
|
|
948
|
+
code: 200,
|
|
949
|
+
baseUrl: "https://api.scaleway.com",
|
|
950
|
+
}),
|
|
951
|
+
),
|
|
952
|
+
).annotate({ identifier: "ResendAuthenticationCodeRequest" });
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
function __c5(j: number): any {
|
|
956
|
+
switch (j) {
|
|
957
|
+
case 0:
|
|
958
|
+
return S.suspend(() =>
|
|
959
|
+
S.Struct({
|
|
960
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
961
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
962
|
+
}).pipe(
|
|
963
|
+
T.Http({
|
|
964
|
+
method: "POST",
|
|
965
|
+
uri: "/account/v3/reset-password",
|
|
966
|
+
code: 200,
|
|
967
|
+
baseUrl: "https://api.scaleway.com",
|
|
968
|
+
}),
|
|
969
|
+
),
|
|
970
|
+
).annotate({ identifier: "ResetPasswordRequest" });
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
function __c6(j: number): any {
|
|
974
|
+
switch (j) {
|
|
975
|
+
case 0:
|
|
976
|
+
return S.suspend(() =>
|
|
977
|
+
S.Struct({
|
|
978
|
+
email: S.optional(S.String),
|
|
979
|
+
captcha: S.optional(S.String),
|
|
980
|
+
}).pipe(
|
|
981
|
+
T.Http({
|
|
982
|
+
method: "POST",
|
|
983
|
+
uri: "/account/v3/send-reset-password-email",
|
|
984
|
+
code: 200,
|
|
985
|
+
baseUrl: "https://api.scaleway.com",
|
|
986
|
+
}),
|
|
987
|
+
),
|
|
988
|
+
).annotate({ identifier: "SendResetPasswordEmailRequest" });
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function __c7(j: number): any {
|
|
992
|
+
switch (j) {
|
|
993
|
+
case 0:
|
|
994
|
+
return S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
login_session_id: S.optional(S.NullOr(S.String)),
|
|
997
|
+
origin: S.optional(S.String),
|
|
998
|
+
}).pipe(
|
|
999
|
+
T.Http({
|
|
1000
|
+
method: "POST",
|
|
1001
|
+
uri: "/account/v3/start-webauthn-authentication",
|
|
1002
|
+
code: 200,
|
|
1003
|
+
baseUrl: "https://api.scaleway.com",
|
|
1004
|
+
}),
|
|
1005
|
+
),
|
|
1006
|
+
).annotate({ identifier: "StartWebAuthnAuthenticationRequest" });
|
|
1007
|
+
case 1:
|
|
1008
|
+
return S.Array(__S(16, __c2, 0));
|
|
1009
|
+
case 2:
|
|
1010
|
+
return S.suspend(() =>
|
|
1011
|
+
S.Struct({
|
|
1012
|
+
challenge: S.optional(S.String),
|
|
1013
|
+
timeout: S.optional(S.Number),
|
|
1014
|
+
allow_credentials: S.optional(__S(57, __c7, 1)),
|
|
1015
|
+
user_verification: S.optional(S.String),
|
|
1016
|
+
}),
|
|
1017
|
+
).annotate({ identifier: "PublicKeyCredentialRequestOptions" });
|
|
1018
|
+
case 3:
|
|
1019
|
+
return S.suspend(() =>
|
|
1020
|
+
S.Struct({
|
|
1021
|
+
id: S.optional(S.String),
|
|
1022
|
+
public_key_credential_request: S.optional(__S(58, __c7, 2)),
|
|
1023
|
+
}),
|
|
1024
|
+
).annotate({ identifier: "StartWebAuthnAuthenticationResponse" });
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function __c8(j: number): any {
|
|
1028
|
+
switch (j) {
|
|
1029
|
+
case 0:
|
|
1030
|
+
return S.suspend(() =>
|
|
1031
|
+
S.Struct({
|
|
1032
|
+
corporate_industry: S.optional(S.String),
|
|
1033
|
+
}),
|
|
1034
|
+
).annotate({ identifier: "ProfessionalOrganization" });
|
|
1035
|
+
case 1:
|
|
1036
|
+
return S.suspend(() =>
|
|
1037
|
+
S.Struct({
|
|
1038
|
+
newsletter_subscription: S.optional(S.Boolean),
|
|
1039
|
+
}),
|
|
1040
|
+
).annotate({ identifier: "PersonalOrganization" });
|
|
1041
|
+
case 2:
|
|
1042
|
+
return S.suspend(() =>
|
|
1043
|
+
S.Struct({
|
|
1044
|
+
email: S.optional(S.String),
|
|
1045
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1046
|
+
professional_organization: S.optional(S.NullOr(__S(64, __c8, 0))),
|
|
1047
|
+
personal_organization: S.optional(S.NullOr(__S(65, __c8, 1))),
|
|
1048
|
+
account_type: S.optional(S.String),
|
|
1049
|
+
organization_name: S.optional(S.String),
|
|
1050
|
+
country_code: S.optional(S.NullOr(S.String)),
|
|
1051
|
+
}).pipe(
|
|
1052
|
+
T.Http({
|
|
1053
|
+
method: "POST",
|
|
1054
|
+
uri: "/account/v3/validate-account",
|
|
1055
|
+
code: 200,
|
|
1056
|
+
baseUrl: "https://api.scaleway.com",
|
|
1057
|
+
}),
|
|
1058
|
+
),
|
|
1059
|
+
).annotate({ identifier: "ValidateAccountRequest" });
|
|
1060
|
+
case 3:
|
|
1061
|
+
return S.suspend(() =>
|
|
1062
|
+
S.Struct({
|
|
1063
|
+
totp: S.optional(S.Boolean),
|
|
1064
|
+
web_authn: S.optional(S.Boolean),
|
|
1065
|
+
}),
|
|
1066
|
+
).annotate({ identifier: "UserMFAMethods" });
|
|
1067
|
+
case 4:
|
|
1068
|
+
return S.suspend(() =>
|
|
1069
|
+
S.Struct({
|
|
1070
|
+
id: S.optional(S.String),
|
|
1071
|
+
first_name: S.optional(S.String),
|
|
1072
|
+
last_name: S.optional(S.String),
|
|
1073
|
+
email: S.optional(S.String),
|
|
1074
|
+
phone_number: S.optional(S.String),
|
|
1075
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1076
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1077
|
+
mfa: S.optional(S.Boolean),
|
|
1078
|
+
mfa_methods: S.optional(__S(67, __c8, 3)),
|
|
1079
|
+
locale: S.optional(S.String),
|
|
1080
|
+
has_password: S.optional(S.Boolean),
|
|
1081
|
+
is_professional_email: S.optional(S.Boolean),
|
|
1082
|
+
srn: S.optional(S.String),
|
|
1083
|
+
}),
|
|
1084
|
+
).annotate({ identifier: "User" });
|
|
1085
|
+
case 5:
|
|
1086
|
+
return S.suspend(() =>
|
|
1087
|
+
S.Struct({
|
|
1088
|
+
id: S.optional(S.String),
|
|
1089
|
+
name: S.optional(S.String),
|
|
1090
|
+
owner: S.optional(S.Boolean),
|
|
1091
|
+
locked: S.optional(S.Boolean),
|
|
1092
|
+
mfa_enforced: S.optional(S.Boolean),
|
|
1093
|
+
picture_link: S.optional(S.NullOr(S.String)),
|
|
1094
|
+
organization_type: S.optional(S.String),
|
|
1095
|
+
corporate_industry: S.optional(S.String),
|
|
1096
|
+
is_startup: S.optional(S.Boolean),
|
|
1097
|
+
srn: S.optional(S.String),
|
|
1098
|
+
}),
|
|
1099
|
+
).annotate({ identifier: "OrganizationSummary" });
|
|
1100
|
+
case 6:
|
|
1101
|
+
return S.suspend(() =>
|
|
1102
|
+
S.Struct({
|
|
1103
|
+
user: S.optional(__S(68, __c8, 4)),
|
|
1104
|
+
organization_summary: S.optional(__S(69, __c8, 5)),
|
|
1105
|
+
login_informations: S.optional(__S(129, __c16, 1)),
|
|
1106
|
+
}),
|
|
1107
|
+
).annotate({ identifier: "ValidateAccountResponse" });
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
function __c9(j: number): any {
|
|
1111
|
+
switch (j) {
|
|
1112
|
+
case 0:
|
|
1113
|
+
return S.suspend(() =>
|
|
1114
|
+
S.Struct({
|
|
1115
|
+
email: S.optional(S.String),
|
|
1116
|
+
code: S.optional(S.String),
|
|
1117
|
+
}).pipe(
|
|
1118
|
+
T.Http({
|
|
1119
|
+
method: "POST",
|
|
1120
|
+
uri: "/account/v3/validate-authentication-code-sign-up",
|
|
1121
|
+
code: 200,
|
|
1122
|
+
baseUrl: "https://api.scaleway.com",
|
|
1123
|
+
}),
|
|
1124
|
+
),
|
|
1125
|
+
).annotate({ identifier: "ValidateAuthenticationCodeSignUpRequest" });
|
|
1126
|
+
case 1:
|
|
1127
|
+
return S.suspend(() =>
|
|
1128
|
+
S.Struct({
|
|
1129
|
+
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1130
|
+
first_name: S.optional(S.String),
|
|
1131
|
+
last_name: S.optional(S.String),
|
|
1132
|
+
}),
|
|
1133
|
+
).annotate({ identifier: "ValidateAuthenticationCodeSignUpResponse" });
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
function __c10(j: number): any {
|
|
1137
|
+
switch (j) {
|
|
1138
|
+
case 0:
|
|
1139
|
+
return S.suspend(() =>
|
|
1140
|
+
S.Struct({
|
|
1141
|
+
account_root_user_id: S.String.pipe(T.Label()),
|
|
1142
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1143
|
+
}).pipe(
|
|
1144
|
+
T.Http({
|
|
1145
|
+
method: "POST",
|
|
1146
|
+
uri: "/account/v3/users/{account_root_user_id}/validate-email-update",
|
|
1147
|
+
code: 200,
|
|
1148
|
+
baseUrl: "https://api.scaleway.com",
|
|
1149
|
+
}),
|
|
1150
|
+
),
|
|
1151
|
+
).annotate({ identifier: "ValidateEmailUpdateRequest" });
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
function __c11(j: number): any {
|
|
1155
|
+
switch (j) {
|
|
1156
|
+
case 0:
|
|
1157
|
+
return S.suspend(() =>
|
|
1158
|
+
S.Struct({
|
|
1159
|
+
identity_provider: S.optional(S.String),
|
|
1160
|
+
code: S.optional(S.String),
|
|
1161
|
+
account_redirect_uri: S.optional(S.String),
|
|
1162
|
+
}).pipe(
|
|
1163
|
+
T.Http({
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
uri: "/account/v3/validate-oidc-signup",
|
|
1166
|
+
code: 200,
|
|
1167
|
+
baseUrl: "https://api.scaleway.com",
|
|
1168
|
+
}),
|
|
1169
|
+
),
|
|
1170
|
+
).annotate({ identifier: "ValidateOIDCSignupRequest" });
|
|
1171
|
+
case 1:
|
|
1172
|
+
return S.suspend(() =>
|
|
1173
|
+
S.Struct({
|
|
1174
|
+
email: S.optional(S.String),
|
|
1175
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1176
|
+
first_name: S.optional(S.NullOr(S.String)),
|
|
1177
|
+
last_name: S.optional(S.NullOr(S.String)),
|
|
1178
|
+
}),
|
|
1179
|
+
).annotate({ identifier: "ValidateOIDCSignupResponse" });
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
function __c12(j: number): any {
|
|
1183
|
+
switch (j) {
|
|
1184
|
+
case 0:
|
|
1185
|
+
return S.suspend(() =>
|
|
1186
|
+
S.Struct({
|
|
1187
|
+
ceremony_id: S.optional(S.String),
|
|
1188
|
+
authentication_response: __S(105, __c13, 1),
|
|
1189
|
+
origin: S.optional(S.String),
|
|
1190
|
+
}).pipe(
|
|
1191
|
+
T.Http({
|
|
1192
|
+
method: "POST",
|
|
1193
|
+
uri: "/account/v3/finish-webauthn-authentication",
|
|
1194
|
+
code: 200,
|
|
1195
|
+
baseUrl: "https://api.scaleway.com",
|
|
1196
|
+
}),
|
|
1197
|
+
),
|
|
1198
|
+
).annotate({ identifier: "FinishWebAuthnAuthenticationRequest" });
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
function __c13(j: number): any {
|
|
1202
|
+
switch (j) {
|
|
1203
|
+
case 0:
|
|
1204
|
+
return S.suspend(() =>
|
|
1205
|
+
S.Struct({
|
|
1206
|
+
client_data_json: S.optional(S.String),
|
|
1207
|
+
authenticator_data: S.optional(S.String),
|
|
1208
|
+
signature: S.optional(S.String),
|
|
1209
|
+
}),
|
|
1210
|
+
).annotate({ identifier: "AuthenticatorAssertionResponse" });
|
|
1211
|
+
case 1:
|
|
1212
|
+
return S.suspend(() =>
|
|
1213
|
+
S.Struct({
|
|
1214
|
+
raw_id: S.optional(S.String),
|
|
1215
|
+
response: __S(104, __c13, 0),
|
|
1216
|
+
}),
|
|
1217
|
+
).annotate({ identifier: "AuthenticationResponse" });
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function __c14(j: number): any {
|
|
1221
|
+
switch (j) {
|
|
1222
|
+
case 0:
|
|
1223
|
+
return S.suspend(() =>
|
|
1224
|
+
S.Struct({
|
|
1225
|
+
jti: S.optional(S.String),
|
|
1226
|
+
issuer_id: S.optional(S.String),
|
|
1227
|
+
audience_id: S.optional(S.String),
|
|
1228
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1229
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1230
|
+
expires_at: S.optional(S.NullOr(S.String)),
|
|
1231
|
+
ip: S.optional(S.String),
|
|
1232
|
+
user_agent: S.optional(S.String),
|
|
1233
|
+
}),
|
|
1234
|
+
).annotate({ identifier: "JWT" });
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
function __c15(j: number): any {
|
|
1238
|
+
switch (j) {
|
|
1239
|
+
case 0:
|
|
1240
|
+
return S.suspend(() =>
|
|
1241
|
+
S.Struct({
|
|
1242
|
+
uv_verified_set: S.optional(S.Boolean),
|
|
1243
|
+
}),
|
|
1244
|
+
).annotate({ identifier: "LogInOrganizationsResponseWebAuthnMetadata" });
|
|
1245
|
+
case 1:
|
|
1246
|
+
return S.suspend(() =>
|
|
1247
|
+
S.Struct({
|
|
1248
|
+
organizations_login_information: S.optional(__S(129, __c16, 1)),
|
|
1249
|
+
webauthn: S.optional(S.NullOr(__S(120, __c15, 0))),
|
|
1250
|
+
}),
|
|
1251
|
+
).annotate({ identifier: "LogInOrganizationsResponse" });
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
function __c16(j: number): any {
|
|
1255
|
+
switch (j) {
|
|
1256
|
+
case 0:
|
|
1257
|
+
return S.suspend(() =>
|
|
1258
|
+
S.Struct({
|
|
1259
|
+
organization_id: S.optional(S.String),
|
|
1260
|
+
organization_name: S.optional(S.String),
|
|
1261
|
+
jwt: S.optional(__S(112, __c14, 0)),
|
|
1262
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1263
|
+
renew_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1264
|
+
}),
|
|
1265
|
+
).annotate({ identifier: "OrganizationLogin" });
|
|
1266
|
+
case 1:
|
|
1267
|
+
return S.Array(__S(128, __c16, 0));
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function __c17(j: number): any {
|
|
1271
|
+
switch (j) {
|
|
1272
|
+
case 0:
|
|
1273
|
+
return S.suspend(() =>
|
|
1274
|
+
S.Struct({
|
|
1275
|
+
identity_provider: S.optional(S.String),
|
|
1276
|
+
redirect_url: S.optional(S.String),
|
|
1277
|
+
account_redirect_uri: S.optional(S.String),
|
|
1278
|
+
}).pipe(
|
|
1279
|
+
T.Http({
|
|
1280
|
+
method: "POST",
|
|
1281
|
+
uri: "/account/v3/initiate-oidc-signup",
|
|
1282
|
+
code: 200,
|
|
1283
|
+
baseUrl: "https://api.scaleway.com",
|
|
1284
|
+
}),
|
|
1285
|
+
),
|
|
1286
|
+
).annotate({ identifier: "InitiateOIDCSignupRequest" });
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
function __c18(j: number): any {
|
|
1290
|
+
switch (j) {
|
|
1291
|
+
case 0:
|
|
1292
|
+
return S.suspend(() =>
|
|
1293
|
+
S.Struct({
|
|
1294
|
+
url: S.optional(S.String),
|
|
1295
|
+
security_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1296
|
+
}),
|
|
1297
|
+
).annotate({ identifier: "InitiateOIDCSignupResponse" });
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
function __c19(j: number): any {
|
|
1301
|
+
switch (j) {
|
|
1302
|
+
case 0:
|
|
1303
|
+
return S.suspend(() =>
|
|
1304
|
+
S.Struct({
|
|
1305
|
+
login_session_id: S.optional(S.String),
|
|
1306
|
+
otp: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
1307
|
+
organization_id: S.optional(S.NullOr(S.String)),
|
|
1308
|
+
webauthn: S.optional(S.NullOr(__S(160, __c20, 0))),
|
|
1309
|
+
}).pipe(
|
|
1310
|
+
T.Http({
|
|
1311
|
+
method: "POST",
|
|
1312
|
+
uri: "/account/v3/login",
|
|
1313
|
+
code: 200,
|
|
1314
|
+
baseUrl: "https://api.scaleway.com",
|
|
1315
|
+
}),
|
|
1316
|
+
),
|
|
1317
|
+
).annotate({ identifier: "LogInRequest" });
|
|
1318
|
+
case 1:
|
|
1319
|
+
return S.suspend(() =>
|
|
1320
|
+
S.Struct({
|
|
1321
|
+
jwt: S.optional(__S(112, __c14, 0)),
|
|
1322
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1323
|
+
renew_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1324
|
+
}),
|
|
1325
|
+
).annotate({ identifier: "LogInResponse" });
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
function __c20(j: number): any {
|
|
1329
|
+
switch (j) {
|
|
1330
|
+
case 0:
|
|
1331
|
+
return S.suspend(() =>
|
|
1332
|
+
S.Struct({
|
|
1333
|
+
ceremony_id: S.optional(S.String),
|
|
1334
|
+
authentication_response: __S(105, __c13, 1),
|
|
1335
|
+
origin: S.optional(S.String),
|
|
1336
|
+
}),
|
|
1337
|
+
).annotate({ identifier: "FinishWebAuthnAuthenticationRequest2" });
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function __c21(j: number): any {
|
|
1341
|
+
switch (j) {
|
|
1342
|
+
case 0:
|
|
1343
|
+
return S.suspend(() =>
|
|
1344
|
+
S.Struct({
|
|
1345
|
+
email: S.optional(S.String),
|
|
1346
|
+
}).pipe(
|
|
1347
|
+
T.Http({
|
|
1348
|
+
method: "POST",
|
|
1349
|
+
uri: "/account/v3/initiate-authentication-code-login",
|
|
1350
|
+
code: 200,
|
|
1351
|
+
baseUrl: "https://api.scaleway.com",
|
|
1352
|
+
}),
|
|
1353
|
+
),
|
|
1354
|
+
).annotate({ identifier: "LoginInitiateAuthenticationCodeRequest" });
|
|
1355
|
+
case 1:
|
|
1356
|
+
return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1357
|
+
identifier: "LoginInitiateAuthenticationCodeResponse",
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
function __c22(j: number): any {
|
|
1362
|
+
switch (j) {
|
|
1363
|
+
case 0:
|
|
1364
|
+
return S.suspend(() =>
|
|
1365
|
+
S.Struct({
|
|
1366
|
+
identity_provider: S.optional(S.String),
|
|
1367
|
+
redirect_url: S.optional(S.String),
|
|
1368
|
+
account_redirect_uri: S.optional(S.String),
|
|
1369
|
+
}).pipe(
|
|
1370
|
+
T.Http({
|
|
1371
|
+
method: "POST",
|
|
1372
|
+
uri: "/account/v3/initiate-oidc-login",
|
|
1373
|
+
code: 200,
|
|
1374
|
+
baseUrl: "https://api.scaleway.com",
|
|
1375
|
+
}),
|
|
1376
|
+
),
|
|
1377
|
+
).annotate({ identifier: "LoginInitiateOIDCRequest" });
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
function __c23(j: number): any {
|
|
1381
|
+
switch (j) {
|
|
1382
|
+
case 0:
|
|
1383
|
+
return S.suspend(() =>
|
|
1384
|
+
S.Struct({
|
|
1385
|
+
email: S.optional(S.String),
|
|
1386
|
+
redirect_url: S.optional(S.String),
|
|
1387
|
+
}).pipe(
|
|
1388
|
+
T.Http({
|
|
1389
|
+
method: "POST",
|
|
1390
|
+
uri: "/account/v3/initiate-passwordless-login",
|
|
1391
|
+
code: 200,
|
|
1392
|
+
baseUrl: "https://api.scaleway.com",
|
|
1393
|
+
}),
|
|
1394
|
+
),
|
|
1395
|
+
).annotate({ identifier: "LoginInitiatePasswordlessRequest" });
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
function __c24(j: number): any {
|
|
1399
|
+
switch (j) {
|
|
1400
|
+
case 0:
|
|
1401
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
1402
|
+
identifier: "LoginInitiatePasswordlessResponse",
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
function __c25(j: number): any {
|
|
1407
|
+
switch (j) {
|
|
1408
|
+
case 0:
|
|
1409
|
+
return S.suspend(() =>
|
|
1410
|
+
S.Struct({
|
|
1411
|
+
login_session_id: S.optional(S.String),
|
|
1412
|
+
otp: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
1413
|
+
webauthn: S.optional(S.NullOr(__S(160, __c20, 0))),
|
|
1414
|
+
}).pipe(
|
|
1415
|
+
T.Http({
|
|
1416
|
+
method: "POST",
|
|
1417
|
+
uri: "/account/v3/login-organizations",
|
|
1418
|
+
code: 200,
|
|
1419
|
+
baseUrl: "https://api.scaleway.com",
|
|
1420
|
+
}),
|
|
1421
|
+
),
|
|
1422
|
+
).annotate({ identifier: "LogInOrganizationsRequest" });
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
function __c26(j: number): any {
|
|
1426
|
+
switch (j) {
|
|
1427
|
+
case 0:
|
|
1428
|
+
return S.suspend(() =>
|
|
1429
|
+
S.Struct({
|
|
1430
|
+
email: S.String.pipe(T.Label()),
|
|
1431
|
+
}).pipe(
|
|
1432
|
+
T.Http({
|
|
1433
|
+
method: "POST",
|
|
1434
|
+
uri: "/account/v3/accounts/{email}/notify",
|
|
1435
|
+
code: 200,
|
|
1436
|
+
baseUrl: "https://api.scaleway.com",
|
|
1437
|
+
}),
|
|
1438
|
+
),
|
|
1439
|
+
).annotate({ identifier: "NotifyAccountRequest" });
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1443
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1444
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1445
|
+
}
|