@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +171 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +89 -2
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,2419 @@
|
|
|
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 { paginateByTotalCount } from "../pagination.ts";
|
|
8
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
9
|
+
import * as Retry from "../retry.ts";
|
|
10
|
+
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
13
|
+
|
|
14
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
15
|
+
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "scaleway-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "Scaleway",
|
|
24
|
+
service: "IotV1",
|
|
25
|
+
labels: "scaleway",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type CreateDeviceRequestRegion = "fr-par";
|
|
30
|
+
export type DeviceMessageFiltersRulePolicy = "unknown" | "accept" | "reject";
|
|
31
|
+
/** List of topics to accept or reject. It must be valid MQTT topics and up to 65535 characters. */
|
|
32
|
+
export type DeviceMessageFiltersRuleTopicsList = Array<unknown>;
|
|
33
|
+
export interface DeviceMessageFiltersRule {
|
|
34
|
+
/** How to use the topic list. If set to `accept`, all topics in the topics list will be allowed, with all other topics being denied. If set to `reject`, all topics in the topics list will be denied, with all other topics being allowed. */
|
|
35
|
+
policy?: DeviceMessageFiltersRulePolicy | (string & {}) | undefined;
|
|
36
|
+
/** List of topics to accept or reject. It must be valid MQTT topics and up to 65535 characters. */
|
|
37
|
+
topics?: DeviceMessageFiltersRuleTopicsList | null | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface DeviceMessageFilters {
|
|
40
|
+
/** Filtering rule to restrict topics the device can publish to. */
|
|
41
|
+
publish?: DeviceMessageFiltersRule | undefined;
|
|
42
|
+
/** Filtering rule to restrict topics the device can subscribe to. */
|
|
43
|
+
subscribe?: DeviceMessageFiltersRule | undefined;
|
|
44
|
+
}
|
|
45
|
+
export interface CreateDeviceRequest {
|
|
46
|
+
/** The region you want to target */
|
|
47
|
+
region?: CreateDeviceRequestRegion | (string & {}) | undefined;
|
|
48
|
+
/** Device name. */
|
|
49
|
+
name: string;
|
|
50
|
+
/** Hub ID of the device. */
|
|
51
|
+
hub_id: string;
|
|
52
|
+
/** Defines whether to allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones. */
|
|
53
|
+
allow_insecure?: boolean | undefined;
|
|
54
|
+
/** Defines whether to allow multiple physical devices to connect with this device's credentials. */
|
|
55
|
+
allow_multiple_connections?: boolean | undefined;
|
|
56
|
+
/** Filter-sets to authorize or deny the device to publish/subscribe to specific topics. */
|
|
57
|
+
message_filters?: DeviceMessageFilters | undefined;
|
|
58
|
+
/** Device description. */
|
|
59
|
+
description?: string | null | undefined;
|
|
60
|
+
}
|
|
61
|
+
export type DeviceStatus = "unknown" | "error" | "enabled" | "disabled";
|
|
62
|
+
export interface Device {
|
|
63
|
+
/** Device ID, also used as MQTT Client ID or username. */
|
|
64
|
+
id?: string | undefined;
|
|
65
|
+
/** Device SRN. */
|
|
66
|
+
srn?: string | undefined;
|
|
67
|
+
/** Device name. */
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
/** Device description. */
|
|
70
|
+
description?: string | undefined;
|
|
71
|
+
/** Device status. */
|
|
72
|
+
status?: DeviceStatus | undefined;
|
|
73
|
+
/** Hub ID. */
|
|
74
|
+
hub_id?: string | undefined;
|
|
75
|
+
/** Last connection/activity date of a device. (RFC 3339 format) */
|
|
76
|
+
last_activity_at?: string | null | undefined;
|
|
77
|
+
/** Defines whether the device is connected to the Hub. */
|
|
78
|
+
is_connected?: boolean | undefined;
|
|
79
|
+
/** Defines whether to allow the device to connect to the Hub without TLS mutual authentication. */
|
|
80
|
+
allow_insecure?: boolean | undefined;
|
|
81
|
+
/** Defines whether to allow multiple physical devices to connect to the Hub with this device's credentials. */
|
|
82
|
+
allow_multiple_connections?: boolean | undefined;
|
|
83
|
+
/** Filter-sets to restrict the topics the device can publish/subscribe to. */
|
|
84
|
+
message_filters?: DeviceMessageFilters | undefined;
|
|
85
|
+
/** Defines whether the device was assigned a custom certificate. Assigning a custom certificate allows a device to authenticate using that specific certificate without checking the Hub's CA certificate. */
|
|
86
|
+
has_custom_certificate?: boolean | undefined;
|
|
87
|
+
/** Date at which the device was added. (RFC 3339 format) */
|
|
88
|
+
created_at?: string | null | undefined;
|
|
89
|
+
/** Date at which the device was last modified. (RFC 3339 format) */
|
|
90
|
+
updated_at?: string | null | undefined;
|
|
91
|
+
/** Region of the device. */
|
|
92
|
+
region?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export interface Certificate {
|
|
95
|
+
crt?: string | undefined;
|
|
96
|
+
key?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface CreateDeviceResponse {
|
|
99
|
+
/** Information related to the created device. */
|
|
100
|
+
device?: Device | undefined;
|
|
101
|
+
/** Device certificate. */
|
|
102
|
+
certificate?: Certificate | undefined;
|
|
103
|
+
}
|
|
104
|
+
export type CreateHubRequestRegion = "fr-par";
|
|
105
|
+
export type HubProductPlan = "plan_unknown" | "plan_shared" | "plan_dedicated" | "plan_ha";
|
|
106
|
+
export interface HubTwinsGraphiteConfig {
|
|
107
|
+
push_uri?: string | undefined;
|
|
108
|
+
}
|
|
109
|
+
export interface CreateHubRequest {
|
|
110
|
+
/** The region you want to target */
|
|
111
|
+
region?: CreateHubRequestRegion | (string & {}) | undefined;
|
|
112
|
+
/** Hub name (up to 255 characters). */
|
|
113
|
+
name: string;
|
|
114
|
+
/** Project/Organization ID to filter for, only Hubs from this Project/Organization will be returned. */
|
|
115
|
+
project_id: string;
|
|
116
|
+
/** Hub product plan. */
|
|
117
|
+
product_plan: HubProductPlan | (string & {});
|
|
118
|
+
/** Disable Hub events. */
|
|
119
|
+
disable_events?: boolean | null | undefined;
|
|
120
|
+
/** Topic prefix (default '$SCW/events') of Hub events. */
|
|
121
|
+
events_topic_prefix?: string | null | undefined;
|
|
122
|
+
/** BETA - not implemented yet. Precisely one of twins_graphite_config can be set. */
|
|
123
|
+
twins_graphite_config?: HubTwinsGraphiteConfig | null | undefined;
|
|
124
|
+
}
|
|
125
|
+
export type HubStatus = "unknown" | "error" | "enabling" | "ready" | "disabling" | "disabled";
|
|
126
|
+
export interface Hub {
|
|
127
|
+
/** Hub ID. */
|
|
128
|
+
id?: string | undefined;
|
|
129
|
+
/** Hub SRN. */
|
|
130
|
+
srn?: string | undefined;
|
|
131
|
+
/** Hub name. */
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
/** Current status of the Hub. */
|
|
134
|
+
status?: HubStatus | undefined;
|
|
135
|
+
/** Hub feature set. */
|
|
136
|
+
product_plan?: HubProductPlan | undefined;
|
|
137
|
+
/** Defines whether the hub has been enabled. */
|
|
138
|
+
enabled?: boolean | undefined;
|
|
139
|
+
/** Number of registered devices. */
|
|
140
|
+
device_count?: number | undefined;
|
|
141
|
+
/** Number of currently connected devices. */
|
|
142
|
+
connected_device_count?: number | undefined;
|
|
143
|
+
/** Host to connect your devices to. Devices should be connected to this host. Port may be 1883 (MQTT), 8883 (MQTT over TLS), 80 (MQTT over Websocket) or 443 (MQTT over Websocket over TLS). */
|
|
144
|
+
endpoint?: string | undefined;
|
|
145
|
+
/** Defines whether to disable Hub events. */
|
|
146
|
+
disable_events?: boolean | undefined;
|
|
147
|
+
/** Hub events topic prefix. */
|
|
148
|
+
events_topic_prefix?: string | undefined;
|
|
149
|
+
/** Region of the Hub. */
|
|
150
|
+
region?: string | undefined;
|
|
151
|
+
/** Hub creation date. (RFC 3339 format) */
|
|
152
|
+
created_at?: string | null | undefined;
|
|
153
|
+
/** Hub last modification date. (RFC 3339 format) */
|
|
154
|
+
updated_at?: string | null | undefined;
|
|
155
|
+
/** Project owning the resource. */
|
|
156
|
+
project_id?: string | undefined;
|
|
157
|
+
/** Organization owning the resource. */
|
|
158
|
+
organization_id?: string | undefined;
|
|
159
|
+
/** Defines whether to enable device auto provisioning. When an unknown device connects to your hub using a valid certificate chain, it will be automatically provisioned inside your Hub. The Hub uses the common name of the device certificate to find out if a device with the same name already exists. This setting can only be enabled on a hub with a custom certificate authority. */
|
|
160
|
+
enable_device_auto_provisioning?: boolean | undefined;
|
|
161
|
+
/** Defines whether the hub is using a custom certificate authority. Flag is automatically set to `false` after Hub creation, as Hub certificates are managed by Scaleway. Once a custom certificate authority is set, the flag will be set to `true`. */
|
|
162
|
+
has_custom_ca?: boolean | undefined;
|
|
163
|
+
/** BETA - not implemented yet. Precisely one of twins_graphite_config can be set. */
|
|
164
|
+
twins_graphite_config?: HubTwinsGraphiteConfig | null | undefined;
|
|
165
|
+
}
|
|
166
|
+
export type CreateNetworkRequestRegion = "fr-par";
|
|
167
|
+
export type NetworkNetworkType = "unknown" | "sigfox" | "rest";
|
|
168
|
+
export interface CreateNetworkRequest {
|
|
169
|
+
/** The region you want to target */
|
|
170
|
+
region?: CreateNetworkRequestRegion | (string & {}) | undefined;
|
|
171
|
+
/** Network name. */
|
|
172
|
+
name: string;
|
|
173
|
+
/** Type of network to connect with. */
|
|
174
|
+
type: NetworkNetworkType | (string & {});
|
|
175
|
+
/** Hub ID to connect the Network to. */
|
|
176
|
+
hub_id: string;
|
|
177
|
+
/** Topic prefix for the Network. */
|
|
178
|
+
topic_prefix: string;
|
|
179
|
+
}
|
|
180
|
+
export interface Network {
|
|
181
|
+
/** Network ID. */
|
|
182
|
+
id?: string | undefined;
|
|
183
|
+
/** Network SRN. */
|
|
184
|
+
srn?: string | undefined;
|
|
185
|
+
/** Network name. */
|
|
186
|
+
name?: string | undefined;
|
|
187
|
+
/** Type of network to connect with. */
|
|
188
|
+
type?: NetworkNetworkType | undefined;
|
|
189
|
+
/** Endpoint to use for interacting with the network. */
|
|
190
|
+
endpoint?: string | undefined;
|
|
191
|
+
/** Hub ID to connect the Network to. */
|
|
192
|
+
hub_id?: string | undefined;
|
|
193
|
+
/** Date at which the network was created. (RFC 3339 format) */
|
|
194
|
+
created_at?: string | null | undefined;
|
|
195
|
+
/** Topic prefix for the Network. This prefix will be prepended to all topics for this Network. */
|
|
196
|
+
topic_prefix?: string | undefined;
|
|
197
|
+
/** Region of the network. */
|
|
198
|
+
region?: string | undefined;
|
|
199
|
+
}
|
|
200
|
+
export interface CreateNetworkResponse {
|
|
201
|
+
/** Information related to the created network. */
|
|
202
|
+
network?: Network | undefined;
|
|
203
|
+
/** Endpoint Key to keep secret. This cannot be retrieved later. */
|
|
204
|
+
secret?: string | Redacted.Redacted<string> | undefined;
|
|
205
|
+
}
|
|
206
|
+
export type CreateRouteRequestRegion = "fr-par";
|
|
207
|
+
export type RouteS3ConfigS3Strategy = "unknown" | "per_topic" | "per_message";
|
|
208
|
+
export interface CreateRouteRequestS3Config {
|
|
209
|
+
bucket_region?: string | undefined;
|
|
210
|
+
bucket_name?: string | undefined;
|
|
211
|
+
object_prefix?: string | undefined;
|
|
212
|
+
strategy?: RouteS3ConfigS3Strategy | (string & {}) | undefined;
|
|
213
|
+
}
|
|
214
|
+
export type RouteDatabaseConfigEngine = "unknown" | "postgresql" | "mysql";
|
|
215
|
+
export interface CreateRouteRequestDatabaseConfig {
|
|
216
|
+
host?: string | undefined;
|
|
217
|
+
port?: number | undefined;
|
|
218
|
+
dbname?: string | undefined;
|
|
219
|
+
username?: string | undefined;
|
|
220
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
221
|
+
query?: string | undefined;
|
|
222
|
+
engine?: RouteDatabaseConfigEngine | (string & {}) | undefined;
|
|
223
|
+
}
|
|
224
|
+
export type RouteRestConfigHttpVerb = "unknown" | "get" | "post" | "put" | "patch" | "delete";
|
|
225
|
+
export type CreateRouteRequestRestConfigHeadersMap = { [key: string]: string | undefined };
|
|
226
|
+
export interface CreateRouteRequestRestConfig {
|
|
227
|
+
verb?: RouteRestConfigHttpVerb | (string & {}) | undefined;
|
|
228
|
+
uri?: string | undefined;
|
|
229
|
+
headers?: CreateRouteRequestRestConfigHeadersMap | undefined;
|
|
230
|
+
}
|
|
231
|
+
export interface CreateRouteRequest {
|
|
232
|
+
/** The region you want to target */
|
|
233
|
+
region?: CreateRouteRequestRegion | (string & {}) | undefined;
|
|
234
|
+
/** Route name. */
|
|
235
|
+
name?: string | undefined;
|
|
236
|
+
/** Hub ID of the route. */
|
|
237
|
+
hub_id?: string | undefined;
|
|
238
|
+
/** Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters. */
|
|
239
|
+
topic?: string | undefined;
|
|
240
|
+
/** If creating Amazon S3 Routes, Amazon S3-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
241
|
+
s3_config?: CreateRouteRequestS3Config | null | undefined;
|
|
242
|
+
/** If creating Database Route, DB-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
243
|
+
db_config?: CreateRouteRequestDatabaseConfig | null | undefined;
|
|
244
|
+
/** If creating Rest Route, Rest-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
245
|
+
rest_config?: CreateRouteRequestRestConfig | null | undefined;
|
|
246
|
+
}
|
|
247
|
+
export type RouteRouteType = "unknown" | "s3" | "database" | "rest";
|
|
248
|
+
export interface RouteS3Config {
|
|
249
|
+
/** Region of the Amazon S3 route's destination bucket (e.g., 'fr-par'). */
|
|
250
|
+
bucket_region?: string | undefined;
|
|
251
|
+
/** Destination bucket name of the Amazon S3 route. */
|
|
252
|
+
bucket_name?: string | undefined;
|
|
253
|
+
/** Optional string to prefix object names with. */
|
|
254
|
+
object_prefix?: string | undefined;
|
|
255
|
+
/** How the Amazon S3 route's objects will be created: one per topic or one per message. */
|
|
256
|
+
strategy?: RouteS3ConfigS3Strategy | undefined;
|
|
257
|
+
}
|
|
258
|
+
export interface RouteDatabaseConfig {
|
|
259
|
+
/** Database engine the route will connect to. If not specified, the default database will be 'PostgreSQL'. */
|
|
260
|
+
engine?: RouteDatabaseConfigEngine | undefined;
|
|
261
|
+
/** Database host. */
|
|
262
|
+
host: string;
|
|
263
|
+
/** Database port. */
|
|
264
|
+
port: number;
|
|
265
|
+
/** Database name. */
|
|
266
|
+
dbname: string;
|
|
267
|
+
/** Database username. Make sure this account can execute the provided query. */
|
|
268
|
+
username: string;
|
|
269
|
+
/** Database password. */
|
|
270
|
+
password: string | Redacted.Redacted<string>;
|
|
271
|
+
/** SQL query to be executed ($TOPIC and $PAYLOAD variables are available, see documentation). */
|
|
272
|
+
query?: string | undefined;
|
|
273
|
+
}
|
|
274
|
+
/** HTTP call extra headers. */
|
|
275
|
+
export type RouteRestConfigHeadersMap = { [key: string]: string | undefined };
|
|
276
|
+
export interface RouteRestConfig {
|
|
277
|
+
/** HTTP verb used to call REST URI. */
|
|
278
|
+
verb?: RouteRestConfigHttpVerb | undefined;
|
|
279
|
+
/** URI of the REST endpoint. */
|
|
280
|
+
uri?: string | undefined;
|
|
281
|
+
/** HTTP call extra headers. */
|
|
282
|
+
headers?: RouteRestConfigHeadersMap | undefined;
|
|
283
|
+
}
|
|
284
|
+
export interface Route {
|
|
285
|
+
/** Route ID. */
|
|
286
|
+
id?: string | undefined;
|
|
287
|
+
/** Route name. */
|
|
288
|
+
name?: string | undefined;
|
|
289
|
+
/** Hub ID of the route. */
|
|
290
|
+
hub_id?: string | undefined;
|
|
291
|
+
/** Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters. */
|
|
292
|
+
topic?: string | undefined;
|
|
293
|
+
/** Route type. */
|
|
294
|
+
type?: RouteRouteType | undefined;
|
|
295
|
+
/** Date at which the route was created. (RFC 3339 format) */
|
|
296
|
+
created_at?: string | null | undefined;
|
|
297
|
+
/** When using Amazon S3 Routes, Amazon S3-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
298
|
+
s3_config?: RouteS3Config | null | undefined;
|
|
299
|
+
/** When using Database Route, DB-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
300
|
+
db_config?: RouteDatabaseConfig | null | undefined;
|
|
301
|
+
/** When using Rest Route, Rest-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
302
|
+
rest_config?: RouteRestConfig | null | undefined;
|
|
303
|
+
/** Date at which the route was last updated. (RFC 3339 format) */
|
|
304
|
+
updated_at?: string | null | undefined;
|
|
305
|
+
/** Route SRN. */
|
|
306
|
+
srn?: string | undefined;
|
|
307
|
+
/** Region of the route. */
|
|
308
|
+
region?: string | undefined;
|
|
309
|
+
}
|
|
310
|
+
export type DeleteDeviceRequestRegion = "fr-par";
|
|
311
|
+
export interface DeleteDeviceRequest {
|
|
312
|
+
/** The region you want to target */
|
|
313
|
+
region?: DeleteDeviceRequestRegion | (string & {}) | undefined;
|
|
314
|
+
/** Device ID. */
|
|
315
|
+
device_id: string;
|
|
316
|
+
}
|
|
317
|
+
export interface DeleteDeviceResponse {}
|
|
318
|
+
export type DeleteHubRequestRegion = "fr-par";
|
|
319
|
+
export interface DeleteHubRequest {
|
|
320
|
+
/** The region you want to target */
|
|
321
|
+
region?: DeleteHubRequestRegion | (string & {}) | undefined;
|
|
322
|
+
/** Hub ID. */
|
|
323
|
+
hub_id: string;
|
|
324
|
+
/** Defines whether to force the deletion of devices added to this Hub or reject the operation. */
|
|
325
|
+
delete_devices?: boolean | undefined;
|
|
326
|
+
}
|
|
327
|
+
export interface DeleteHubResponse {}
|
|
328
|
+
export type DeleteNetworkRequestRegion = "fr-par";
|
|
329
|
+
export interface DeleteNetworkRequest {
|
|
330
|
+
/** The region you want to target */
|
|
331
|
+
region?: DeleteNetworkRequestRegion | (string & {}) | undefined;
|
|
332
|
+
/** Network ID. */
|
|
333
|
+
network_id: string;
|
|
334
|
+
}
|
|
335
|
+
export interface DeleteNetworkResponse {}
|
|
336
|
+
export type DeleteRouteRequestRegion = "fr-par";
|
|
337
|
+
export interface DeleteRouteRequest {
|
|
338
|
+
/** The region you want to target */
|
|
339
|
+
region?: DeleteRouteRequestRegion | (string & {}) | undefined;
|
|
340
|
+
/** Route ID. */
|
|
341
|
+
route_id: string;
|
|
342
|
+
}
|
|
343
|
+
export interface DeleteRouteResponse {}
|
|
344
|
+
export type DeleteTwinDocumentRequestRegion = "fr-par";
|
|
345
|
+
export interface DeleteTwinDocumentRequest {
|
|
346
|
+
/** The region you want to target */
|
|
347
|
+
region?: DeleteTwinDocumentRequestRegion | (string & {}) | undefined;
|
|
348
|
+
/** Twin ID. */
|
|
349
|
+
twin_id: string;
|
|
350
|
+
/** Name of the document. */
|
|
351
|
+
document_name: string;
|
|
352
|
+
}
|
|
353
|
+
export interface DeleteTwinDocumentResponse {}
|
|
354
|
+
export type DeleteTwinDocumentsRequestRegion = "fr-par";
|
|
355
|
+
export interface DeleteTwinDocumentsRequest {
|
|
356
|
+
/** The region you want to target */
|
|
357
|
+
region?: DeleteTwinDocumentsRequestRegion | (string & {}) | undefined;
|
|
358
|
+
/** Twin ID. */
|
|
359
|
+
twin_id: string;
|
|
360
|
+
}
|
|
361
|
+
export interface DeleteTwinDocumentsResponse {}
|
|
362
|
+
export type DisableDeviceRequestRegion = "fr-par";
|
|
363
|
+
export interface DisableDeviceRequest {
|
|
364
|
+
/** The region you want to target */
|
|
365
|
+
region?: DisableDeviceRequestRegion | (string & {}) | undefined;
|
|
366
|
+
/** Device ID. */
|
|
367
|
+
device_id: string;
|
|
368
|
+
}
|
|
369
|
+
export type DisableHubRequestRegion = "fr-par";
|
|
370
|
+
export interface DisableHubRequest {
|
|
371
|
+
/** The region you want to target */
|
|
372
|
+
region?: DisableHubRequestRegion | (string & {}) | undefined;
|
|
373
|
+
/** Hub ID. */
|
|
374
|
+
hub_id: string;
|
|
375
|
+
}
|
|
376
|
+
export type EnableDeviceRequestRegion = "fr-par";
|
|
377
|
+
export interface EnableDeviceRequest {
|
|
378
|
+
/** The region you want to target */
|
|
379
|
+
region?: EnableDeviceRequestRegion | (string & {}) | undefined;
|
|
380
|
+
/** Device ID. */
|
|
381
|
+
device_id: string;
|
|
382
|
+
}
|
|
383
|
+
export type EnableHubRequestRegion = "fr-par";
|
|
384
|
+
export interface EnableHubRequest {
|
|
385
|
+
/** The region you want to target */
|
|
386
|
+
region?: EnableHubRequestRegion | (string & {}) | undefined;
|
|
387
|
+
/** Hub ID. */
|
|
388
|
+
hub_id: string;
|
|
389
|
+
}
|
|
390
|
+
export type GetDeviceRequestRegion = "fr-par";
|
|
391
|
+
export interface GetDeviceRequest {
|
|
392
|
+
/** The region you want to target */
|
|
393
|
+
region?: GetDeviceRequestRegion | (string & {}) | undefined;
|
|
394
|
+
/** Device ID. */
|
|
395
|
+
device_id: string;
|
|
396
|
+
}
|
|
397
|
+
export type GetDeviceCertificateRequestRegion = "fr-par";
|
|
398
|
+
export interface GetDeviceCertificateRequest {
|
|
399
|
+
/** The region you want to target */
|
|
400
|
+
region?: GetDeviceCertificateRequestRegion | (string & {}) | undefined;
|
|
401
|
+
/** Device ID. */
|
|
402
|
+
device_id: string;
|
|
403
|
+
}
|
|
404
|
+
export interface GetDeviceCertificateResponse {
|
|
405
|
+
/** Information related to the created device. */
|
|
406
|
+
device?: Device | undefined;
|
|
407
|
+
/** Device certificate. */
|
|
408
|
+
certificate_pem?: string | undefined;
|
|
409
|
+
}
|
|
410
|
+
export type GetHubRequestRegion = "fr-par";
|
|
411
|
+
export interface GetHubRequest {
|
|
412
|
+
/** The region you want to target */
|
|
413
|
+
region?: GetHubRequestRegion | (string & {}) | undefined;
|
|
414
|
+
/** Hub ID. */
|
|
415
|
+
hub_id: string;
|
|
416
|
+
}
|
|
417
|
+
export type GetHubCARequestRegion = "fr-par";
|
|
418
|
+
export interface GetHubCARequest {
|
|
419
|
+
/** The region you want to target */
|
|
420
|
+
region?: GetHubCARequestRegion | (string & {}) | undefined;
|
|
421
|
+
hub_id: string;
|
|
422
|
+
}
|
|
423
|
+
export interface GetHubCAResponse {
|
|
424
|
+
ca_cert_pem?: string | undefined;
|
|
425
|
+
}
|
|
426
|
+
export type GetNetworkRequestRegion = "fr-par";
|
|
427
|
+
export interface GetNetworkRequest {
|
|
428
|
+
/** The region you want to target */
|
|
429
|
+
region?: GetNetworkRequestRegion | (string & {}) | undefined;
|
|
430
|
+
/** Network ID. */
|
|
431
|
+
network_id: string;
|
|
432
|
+
}
|
|
433
|
+
export type GetRouteRequestRegion = "fr-par";
|
|
434
|
+
export interface GetRouteRequest {
|
|
435
|
+
/** The region you want to target */
|
|
436
|
+
region?: GetRouteRequestRegion | (string & {}) | undefined;
|
|
437
|
+
/** Route ID. */
|
|
438
|
+
route_id: string;
|
|
439
|
+
}
|
|
440
|
+
export type GetTwinDocumentRequestRegion = "fr-par";
|
|
441
|
+
export interface GetTwinDocumentRequest {
|
|
442
|
+
/** The region you want to target */
|
|
443
|
+
region?: GetTwinDocumentRequestRegion | (string & {}) | undefined;
|
|
444
|
+
/** Twin ID. */
|
|
445
|
+
twin_id: string;
|
|
446
|
+
/** Name of the document. */
|
|
447
|
+
document_name: string;
|
|
448
|
+
}
|
|
449
|
+
/** New data related to the document. */
|
|
450
|
+
export type TwinDocumentDataMap = { [key: string]: unknown | undefined };
|
|
451
|
+
export interface TwinDocument {
|
|
452
|
+
/** Parent twin ID of the document. */
|
|
453
|
+
twin_id?: string | undefined;
|
|
454
|
+
/** Name of the document. */
|
|
455
|
+
document_name?: string | undefined;
|
|
456
|
+
/** New version of the document. */
|
|
457
|
+
version?: number | undefined;
|
|
458
|
+
/** New data related to the document. */
|
|
459
|
+
data?: TwinDocumentDataMap | undefined;
|
|
460
|
+
}
|
|
461
|
+
export type ListDevicesRequestRegion = "fr-par";
|
|
462
|
+
export type ListDevicesRequestOrderBy =
|
|
463
|
+
| "name_asc"
|
|
464
|
+
| "name_desc"
|
|
465
|
+
| "status_asc"
|
|
466
|
+
| "status_desc"
|
|
467
|
+
| "hub_id_asc"
|
|
468
|
+
| "hub_id_desc"
|
|
469
|
+
| "created_at_asc"
|
|
470
|
+
| "created_at_desc"
|
|
471
|
+
| "updated_at_asc"
|
|
472
|
+
| "updated_at_desc"
|
|
473
|
+
| "allow_insecure_asc"
|
|
474
|
+
| "allow_insecure_desc";
|
|
475
|
+
export interface ListDevicesRequest {
|
|
476
|
+
/** The region you want to target */
|
|
477
|
+
region?: ListDevicesRequestRegion | (string & {}) | undefined;
|
|
478
|
+
/** Page number to return, from the paginated results. */
|
|
479
|
+
page?: number | undefined;
|
|
480
|
+
/** Number of devices to return within a page. Maximum value is 100. */
|
|
481
|
+
page_size?: number | undefined;
|
|
482
|
+
/** Ordering of requested devices. */
|
|
483
|
+
order_by?: ListDevicesRequestOrderBy | (string & {}) | undefined;
|
|
484
|
+
/** Name to filter for, only devices with this name will be returned. */
|
|
485
|
+
name?: string | undefined;
|
|
486
|
+
/** Hub ID to filter for, only devices attached to this Hub will be returned. */
|
|
487
|
+
hub_id?: string | undefined;
|
|
488
|
+
/** Defines whether to filter the allow_insecure flag. */
|
|
489
|
+
allow_insecure?: boolean | undefined;
|
|
490
|
+
/** Device status (enabled, disabled, etc.). */
|
|
491
|
+
status?: DeviceStatus | (string & {}) | undefined;
|
|
492
|
+
}
|
|
493
|
+
/** Page of devices. */
|
|
494
|
+
export type ListDevicesResponseDevicesList = Array<Device>;
|
|
495
|
+
export interface ListDevicesResponse {
|
|
496
|
+
/** Total number of devices. */
|
|
497
|
+
total_count?: number | undefined;
|
|
498
|
+
/** Page of devices. */
|
|
499
|
+
devices: ListDevicesResponseDevicesList;
|
|
500
|
+
}
|
|
501
|
+
export type ListHubsRequestRegion = "fr-par";
|
|
502
|
+
export type ListHubsRequestOrderBy =
|
|
503
|
+
| "name_asc"
|
|
504
|
+
| "name_desc"
|
|
505
|
+
| "status_asc"
|
|
506
|
+
| "status_desc"
|
|
507
|
+
| "product_plan_asc"
|
|
508
|
+
| "product_plan_desc"
|
|
509
|
+
| "created_at_asc"
|
|
510
|
+
| "created_at_desc"
|
|
511
|
+
| "updated_at_asc"
|
|
512
|
+
| "updated_at_desc";
|
|
513
|
+
export interface ListHubsRequest {
|
|
514
|
+
/** The region you want to target */
|
|
515
|
+
region?: ListHubsRequestRegion | (string & {}) | undefined;
|
|
516
|
+
/** Page number to return, from the paginated results. */
|
|
517
|
+
page?: number | undefined;
|
|
518
|
+
/** Number of Hubs to return within a page. Maximum value is 100. */
|
|
519
|
+
page_size?: number | undefined;
|
|
520
|
+
/** Sort order of Hubs in the response. */
|
|
521
|
+
order_by?: ListHubsRequestOrderBy | (string & {}) | undefined;
|
|
522
|
+
/** Only list Hubs of this Project ID. */
|
|
523
|
+
project_id?: string | undefined;
|
|
524
|
+
/** Only list Hubs of this Organization ID. */
|
|
525
|
+
organization_id?: string | undefined;
|
|
526
|
+
/** Hub name. */
|
|
527
|
+
name?: string | undefined;
|
|
528
|
+
}
|
|
529
|
+
/** A page of hubs. */
|
|
530
|
+
export type ListHubsResponseHubsList = Array<Hub>;
|
|
531
|
+
export interface ListHubsResponse {
|
|
532
|
+
/** Total number of Hubs. */
|
|
533
|
+
total_count?: number | undefined;
|
|
534
|
+
/** A page of hubs. */
|
|
535
|
+
hubs: ListHubsResponseHubsList;
|
|
536
|
+
}
|
|
537
|
+
export type ListNetworksRequestRegion = "fr-par";
|
|
538
|
+
export type ListNetworksRequestOrderBy =
|
|
539
|
+
| "name_asc"
|
|
540
|
+
| "name_desc"
|
|
541
|
+
| "type_asc"
|
|
542
|
+
| "type_desc"
|
|
543
|
+
| "created_at_asc"
|
|
544
|
+
| "created_at_desc";
|
|
545
|
+
export interface ListNetworksRequest {
|
|
546
|
+
/** The region you want to target */
|
|
547
|
+
region?: ListNetworksRequestRegion | (string & {}) | undefined;
|
|
548
|
+
/** Page number to return, from the paginated results. */
|
|
549
|
+
page?: number | undefined;
|
|
550
|
+
/** Number of networks to return. The maximum value is 100. */
|
|
551
|
+
page_size?: number | undefined;
|
|
552
|
+
/** Ordering of requested routes. */
|
|
553
|
+
order_by?: ListNetworksRequestOrderBy | (string & {}) | undefined;
|
|
554
|
+
/** Network name to filter for. */
|
|
555
|
+
name?: string | undefined;
|
|
556
|
+
/** Hub ID to filter for. */
|
|
557
|
+
hub_id?: string | undefined;
|
|
558
|
+
/** Topic prefix to filter for. */
|
|
559
|
+
topic_prefix?: string | undefined;
|
|
560
|
+
}
|
|
561
|
+
/** Page of networks. */
|
|
562
|
+
export type ListNetworksResponseNetworksList = Array<Network>;
|
|
563
|
+
export interface ListNetworksResponse {
|
|
564
|
+
/** Total number of Networks. */
|
|
565
|
+
total_count?: number | undefined;
|
|
566
|
+
/** Page of networks. */
|
|
567
|
+
networks: ListNetworksResponseNetworksList;
|
|
568
|
+
}
|
|
569
|
+
export type ListRoutesRequestRegion = "fr-par";
|
|
570
|
+
export type ListRoutesRequestOrderBy =
|
|
571
|
+
| "name_asc"
|
|
572
|
+
| "name_desc"
|
|
573
|
+
| "hub_id_asc"
|
|
574
|
+
| "hub_id_desc"
|
|
575
|
+
| "type_asc"
|
|
576
|
+
| "type_desc"
|
|
577
|
+
| "created_at_asc"
|
|
578
|
+
| "created_at_desc";
|
|
579
|
+
export interface ListRoutesRequest {
|
|
580
|
+
/** The region you want to target */
|
|
581
|
+
region?: ListRoutesRequestRegion | (string & {}) | undefined;
|
|
582
|
+
/** Page number to return, from the paginated results. */
|
|
583
|
+
page?: number | undefined;
|
|
584
|
+
/** Number of routes to return within a page. Maximum value is 100. */
|
|
585
|
+
page_size?: number | undefined;
|
|
586
|
+
/** Ordering of requested routes. */
|
|
587
|
+
order_by?: ListRoutesRequestOrderBy | (string & {}) | undefined;
|
|
588
|
+
/** Hub ID to filter for. */
|
|
589
|
+
hub_id?: string | undefined;
|
|
590
|
+
/** Route name to filter for. */
|
|
591
|
+
name?: string | undefined;
|
|
592
|
+
}
|
|
593
|
+
export interface RouteSummary {
|
|
594
|
+
/** Route ID. */
|
|
595
|
+
id?: string | undefined;
|
|
596
|
+
/** Route name. */
|
|
597
|
+
name?: string | undefined;
|
|
598
|
+
/** Hub ID of the route. */
|
|
599
|
+
hub_id?: string | undefined;
|
|
600
|
+
/** Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters. */
|
|
601
|
+
topic?: string | undefined;
|
|
602
|
+
/** Route type. */
|
|
603
|
+
type?: RouteRouteType | undefined;
|
|
604
|
+
/** Date at which the route was created. (RFC 3339 format) */
|
|
605
|
+
created_at?: string | null | undefined;
|
|
606
|
+
/** Date at which the route was last updated. (RFC 3339 format) */
|
|
607
|
+
updated_at?: string | null | undefined;
|
|
608
|
+
/** Region of the route. */
|
|
609
|
+
region?: string | undefined;
|
|
610
|
+
}
|
|
611
|
+
/** Page of routes. */
|
|
612
|
+
export type ListRoutesResponseRoutesList = Array<RouteSummary>;
|
|
613
|
+
export interface ListRoutesResponse {
|
|
614
|
+
/** Total number of routes. */
|
|
615
|
+
total_count?: number | undefined;
|
|
616
|
+
/** Page of routes. */
|
|
617
|
+
routes: ListRoutesResponseRoutesList;
|
|
618
|
+
}
|
|
619
|
+
export type ListTwinDocumentsRequestRegion = "fr-par";
|
|
620
|
+
export interface ListTwinDocumentsRequest {
|
|
621
|
+
/** The region you want to target */
|
|
622
|
+
region?: ListTwinDocumentsRequestRegion | (string & {}) | undefined;
|
|
623
|
+
/** Twin ID. */
|
|
624
|
+
twin_id: string;
|
|
625
|
+
}
|
|
626
|
+
export interface ListTwinDocumentsResponseDocumentSummary {
|
|
627
|
+
/** Name of the document. */
|
|
628
|
+
document_name?: string | undefined;
|
|
629
|
+
}
|
|
630
|
+
/** List of the twin document. */
|
|
631
|
+
export type ListTwinDocumentsResponseDocumentsList =
|
|
632
|
+
Array<ListTwinDocumentsResponseDocumentSummary>;
|
|
633
|
+
export interface ListTwinDocumentsResponse {
|
|
634
|
+
/** List of the twin document. */
|
|
635
|
+
documents?: ListTwinDocumentsResponseDocumentsList | undefined;
|
|
636
|
+
}
|
|
637
|
+
export type PatchTwinDocumentRequestRegion = "fr-par";
|
|
638
|
+
/** Patch data. A json data that will be applied on the document's current data. Patching rules: * The patch goes recursively through the patch objects. * If the patch object property is null, it is removed from the final object. * If the patch object property is a value (number, strings, bool, arrays), it is replaced. * If the patch object property is an object, the previous rules will be applied recursively on it. */
|
|
639
|
+
export type PatchTwinDocumentRequestDataMap = { [key: string]: unknown | undefined };
|
|
640
|
+
export interface PatchTwinDocumentRequest {
|
|
641
|
+
/** The region you want to target */
|
|
642
|
+
region?: PatchTwinDocumentRequestRegion | (string & {}) | undefined;
|
|
643
|
+
/** Twin ID. */
|
|
644
|
+
twin_id: string;
|
|
645
|
+
/** Name of the document. */
|
|
646
|
+
document_name: string;
|
|
647
|
+
/** The version of the document to update. If set, ensures that the current version of the document matches before persisting the update. */
|
|
648
|
+
version?: number | null | undefined;
|
|
649
|
+
/** Patch data. A json data that will be applied on the document's current data. Patching rules: * The patch goes recursively through the patch objects. * If the patch object property is null, it is removed from the final object. * If the patch object property is a value (number, strings, bool, arrays), it is replaced. * If the patch object property is an object, the previous rules will be applied recursively on it. */
|
|
650
|
+
data?: PatchTwinDocumentRequestDataMap | undefined;
|
|
651
|
+
}
|
|
652
|
+
export type PutTwinDocumentRequestRegion = "fr-par";
|
|
653
|
+
/** Data of the new document. New data that will replace the contents of the document. */
|
|
654
|
+
export type PutTwinDocumentRequestDataMap = { [key: string]: unknown | undefined };
|
|
655
|
+
export interface PutTwinDocumentRequest {
|
|
656
|
+
/** The region you want to target */
|
|
657
|
+
region?: PutTwinDocumentRequestRegion | (string & {}) | undefined;
|
|
658
|
+
/** Twin ID. */
|
|
659
|
+
twin_id: string;
|
|
660
|
+
/** Name of the document. */
|
|
661
|
+
document_name: string;
|
|
662
|
+
/** Version of the document to update. If set, ensures that the current version of the document matches before persisting the update. */
|
|
663
|
+
version?: number | null | undefined;
|
|
664
|
+
/** Data of the new document. New data that will replace the contents of the document. */
|
|
665
|
+
data?: PutTwinDocumentRequestDataMap | undefined;
|
|
666
|
+
}
|
|
667
|
+
export type RenewDeviceCertificateRequestRegion = "fr-par";
|
|
668
|
+
export interface RenewDeviceCertificateRequest {
|
|
669
|
+
/** The region you want to target */
|
|
670
|
+
region?: RenewDeviceCertificateRequestRegion | (string & {}) | undefined;
|
|
671
|
+
/** Device ID. */
|
|
672
|
+
device_id: string;
|
|
673
|
+
}
|
|
674
|
+
export interface RenewDeviceCertificateResponse {
|
|
675
|
+
/** Information related to the created device. */
|
|
676
|
+
device?: Device | undefined;
|
|
677
|
+
/** Device certificate. */
|
|
678
|
+
certificate?: Certificate | undefined;
|
|
679
|
+
}
|
|
680
|
+
export type SetDeviceCertificateRequestRegion = "fr-par";
|
|
681
|
+
export interface SetDeviceCertificateRequest {
|
|
682
|
+
/** The region you want to target */
|
|
683
|
+
region?: SetDeviceCertificateRequestRegion | (string & {}) | undefined;
|
|
684
|
+
/** Device ID. */
|
|
685
|
+
device_id: string;
|
|
686
|
+
/** PEM-encoded custom certificate. */
|
|
687
|
+
certificate_pem: string;
|
|
688
|
+
}
|
|
689
|
+
export interface SetDeviceCertificateResponse {
|
|
690
|
+
device?: Device | undefined;
|
|
691
|
+
certificate_pem?: string | undefined;
|
|
692
|
+
}
|
|
693
|
+
export type SetHubCARequestRegion = "fr-par";
|
|
694
|
+
export interface SetHubCARequest {
|
|
695
|
+
/** The region you want to target */
|
|
696
|
+
region?: SetHubCARequestRegion | (string & {}) | undefined;
|
|
697
|
+
/** Hub ID. */
|
|
698
|
+
hub_id: string;
|
|
699
|
+
/** CA's PEM-encoded certificate. */
|
|
700
|
+
ca_cert_pem: string;
|
|
701
|
+
/** Proof of possession of PEM-encoded certificate. Challenge is a PEM-encoded certificate that acts as proof of possession of the CA. It must be signed by the CA, and have a Common Name equal to the Hub ID. */
|
|
702
|
+
challenge_cert_pem: string;
|
|
703
|
+
}
|
|
704
|
+
export type UpdateDeviceRequestRegion = "fr-par";
|
|
705
|
+
export interface UpdateDeviceRequest {
|
|
706
|
+
/** The region you want to target */
|
|
707
|
+
region?: UpdateDeviceRequestRegion | (string & {}) | undefined;
|
|
708
|
+
/** Device ID. */
|
|
709
|
+
device_id: string;
|
|
710
|
+
/** Description for the device. */
|
|
711
|
+
description?: string | null | undefined;
|
|
712
|
+
/** Defines whether to allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones. */
|
|
713
|
+
allow_insecure?: boolean | null | undefined;
|
|
714
|
+
/** Defines whether to allow multiple physical devices to connect with this device's credentials. */
|
|
715
|
+
allow_multiple_connections?: boolean | null | undefined;
|
|
716
|
+
/** Filter-sets to restrict the topics the device can publish/subscribe to. */
|
|
717
|
+
message_filters?: DeviceMessageFilters | undefined;
|
|
718
|
+
/** Change Hub for this device, additional fees may apply, see IoT Hub pricing. */
|
|
719
|
+
hub_id?: string | null | undefined;
|
|
720
|
+
}
|
|
721
|
+
export type UpdateHubRequestRegion = "fr-par";
|
|
722
|
+
export interface UpdateHubRequest {
|
|
723
|
+
/** The region you want to target */
|
|
724
|
+
region?: UpdateHubRequestRegion | (string & {}) | undefined;
|
|
725
|
+
/** ID of the Hub you want to update. */
|
|
726
|
+
hub_id: string;
|
|
727
|
+
/** Hub name (up to 255 characters). */
|
|
728
|
+
name?: string | null | undefined;
|
|
729
|
+
/** Hub product plan. */
|
|
730
|
+
product_plan?: HubProductPlan | (string & {}) | undefined;
|
|
731
|
+
/** Disable Hub events. */
|
|
732
|
+
disable_events?: boolean | null | undefined;
|
|
733
|
+
/** Topic prefix of Hub events. */
|
|
734
|
+
events_topic_prefix?: string | null | undefined;
|
|
735
|
+
/** Enable device auto provisioning. */
|
|
736
|
+
enable_device_auto_provisioning?: boolean | null | undefined;
|
|
737
|
+
/** BETA - not implemented yet. Precisely one of twins_graphite_config can be set. */
|
|
738
|
+
twins_graphite_config?: HubTwinsGraphiteConfig | null | undefined;
|
|
739
|
+
}
|
|
740
|
+
export type UpdateRouteRequestRegion = "fr-par";
|
|
741
|
+
export interface UpdateRouteRequestS3Config {
|
|
742
|
+
bucket_region?: string | null | undefined;
|
|
743
|
+
bucket_name?: string | null | undefined;
|
|
744
|
+
object_prefix?: string | null | undefined;
|
|
745
|
+
strategy?: RouteS3ConfigS3Strategy | (string & {}) | undefined;
|
|
746
|
+
}
|
|
747
|
+
export interface UpdateRouteRequestDatabaseConfig {
|
|
748
|
+
host?: string | null | undefined;
|
|
749
|
+
port?: number | null | undefined;
|
|
750
|
+
dbname?: string | null | undefined;
|
|
751
|
+
username?: string | null | undefined;
|
|
752
|
+
password?: string | Redacted.Redacted<string> | null | undefined;
|
|
753
|
+
query?: string | null | undefined;
|
|
754
|
+
engine?: RouteDatabaseConfigEngine | (string & {}) | undefined;
|
|
755
|
+
}
|
|
756
|
+
export type ScalewayStdMapStringStringValue = { [key: string]: string | undefined };
|
|
757
|
+
export interface UpdateRouteRequestRestConfig {
|
|
758
|
+
verb?: RouteRestConfigHttpVerb | (string & {}) | undefined;
|
|
759
|
+
uri?: string | null | undefined;
|
|
760
|
+
headers?: ScalewayStdMapStringStringValue | null | undefined;
|
|
761
|
+
}
|
|
762
|
+
export interface UpdateRouteRequest {
|
|
763
|
+
/** The region you want to target */
|
|
764
|
+
region?: UpdateRouteRequestRegion | (string & {}) | undefined;
|
|
765
|
+
/** Route id. */
|
|
766
|
+
route_id: string;
|
|
767
|
+
/** Route name. */
|
|
768
|
+
name?: string | null | undefined;
|
|
769
|
+
/** Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters. */
|
|
770
|
+
topic?: string | null | undefined;
|
|
771
|
+
/** When updating Amazon S3 Route, Amazon S3-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
772
|
+
s3_config?: UpdateRouteRequestS3Config | null | undefined;
|
|
773
|
+
/** When updating Database Route, DB-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
774
|
+
db_config?: UpdateRouteRequestDatabaseConfig | null | undefined;
|
|
775
|
+
/** When updating Rest Route, Rest-specific configuration fields. Precisely one of s3_config, db_config, rest_config can be set. */
|
|
776
|
+
rest_config?: UpdateRouteRequestRestConfig | null | undefined;
|
|
777
|
+
}
|
|
778
|
+
export type CreateDeviceError = ScalewayOpError;
|
|
779
|
+
/** Add a device Attach a device to a given Hub. */
|
|
780
|
+
export const createDevice: API.OperationMethod<
|
|
781
|
+
CreateDeviceRequest,
|
|
782
|
+
CreateDeviceResponse,
|
|
783
|
+
CreateDeviceError,
|
|
784
|
+
ScalewayOpContext
|
|
785
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
786
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateDeviceRequest>,
|
|
787
|
+
output: __S(17, __c2, 1) as any as S.Schema<CreateDeviceResponse>,
|
|
788
|
+
errors: [],
|
|
789
|
+
serviceErrors: ScalewayServiceErrors,
|
|
790
|
+
protocol: ScalewayProtocol,
|
|
791
|
+
retry: Retry.Retry,
|
|
792
|
+
telemetry: TELEMETRY,
|
|
793
|
+
span: "CreateDevice",
|
|
794
|
+
}));
|
|
795
|
+
|
|
796
|
+
export type CreateHubError = ScalewayOpError;
|
|
797
|
+
/** Create a hub Create a new Hub in the targeted region, specifying its configuration including name and product plan. */
|
|
798
|
+
export const createHub: API.OperationMethod<
|
|
799
|
+
CreateHubRequest,
|
|
800
|
+
Hub,
|
|
801
|
+
CreateHubError,
|
|
802
|
+
ScalewayOpContext
|
|
803
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
804
|
+
input: __S(24, __c3, 0) as any as S.Schema<CreateHubRequest>,
|
|
805
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
806
|
+
errors: [],
|
|
807
|
+
serviceErrors: ScalewayServiceErrors,
|
|
808
|
+
protocol: ScalewayProtocol,
|
|
809
|
+
retry: Retry.Retry,
|
|
810
|
+
telemetry: TELEMETRY,
|
|
811
|
+
span: "CreateHub",
|
|
812
|
+
}));
|
|
813
|
+
|
|
814
|
+
export type CreateNetworkError = ScalewayOpError;
|
|
815
|
+
/** Create a new network Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST. */
|
|
816
|
+
export const createNetwork: API.OperationMethod<
|
|
817
|
+
CreateNetworkRequest,
|
|
818
|
+
CreateNetworkResponse,
|
|
819
|
+
CreateNetworkError,
|
|
820
|
+
ScalewayOpContext
|
|
821
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
822
|
+
input: __S(128, __c16, 0) as any as S.Schema<CreateNetworkRequest>,
|
|
823
|
+
output: __S(129, __c16, 1) as any as S.Schema<CreateNetworkResponse>,
|
|
824
|
+
errors: [],
|
|
825
|
+
serviceErrors: ScalewayServiceErrors,
|
|
826
|
+
protocol: ScalewayProtocol,
|
|
827
|
+
retry: Retry.Retry,
|
|
828
|
+
telemetry: TELEMETRY,
|
|
829
|
+
span: "CreateNetwork",
|
|
830
|
+
}));
|
|
831
|
+
|
|
832
|
+
export type CreateRouteError = ScalewayOpError;
|
|
833
|
+
/** Create a route Multiple kinds of routes can be created, such as: - Database Route Create a route that will record subscribed MQTT messages into your database. <b>You need to manage the database by yourself</b>. - REST Route. Create a route that will call a REST API on received subscribed MQTT messages. - Amazon S3 Routes. Create a route that will put subscribed MQTT messages into an Object Storage bucket. You need to create the bucket yourself and grant write access. Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket> --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`). */
|
|
834
|
+
export const createRoute: API.OperationMethod<
|
|
835
|
+
CreateRouteRequest,
|
|
836
|
+
Route,
|
|
837
|
+
CreateRouteError,
|
|
838
|
+
ScalewayOpContext
|
|
839
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
840
|
+
input: __S(233, __c29, 1) as any as S.Schema<CreateRouteRequest>,
|
|
841
|
+
output: __S(244, __c30, 4) as any as S.Schema<Route>,
|
|
842
|
+
errors: [],
|
|
843
|
+
serviceErrors: ScalewayServiceErrors,
|
|
844
|
+
protocol: ScalewayProtocol,
|
|
845
|
+
retry: Retry.Retry,
|
|
846
|
+
telemetry: TELEMETRY,
|
|
847
|
+
span: "CreateRoute",
|
|
848
|
+
}));
|
|
849
|
+
|
|
850
|
+
export type DeleteDeviceError = ScalewayOpError;
|
|
851
|
+
/** Remove a device Remove a specific device from the specific Hub it is attached to. */
|
|
852
|
+
export const deleteDevice: API.OperationMethod<
|
|
853
|
+
DeleteDeviceRequest,
|
|
854
|
+
DeleteDeviceResponse,
|
|
855
|
+
DeleteDeviceError,
|
|
856
|
+
ScalewayOpContext
|
|
857
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
858
|
+
input: __S(280, __c35, 0) as any as S.Schema<DeleteDeviceRequest>,
|
|
859
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteDeviceResponse>,
|
|
860
|
+
errors: [],
|
|
861
|
+
serviceErrors: ScalewayServiceErrors,
|
|
862
|
+
protocol: ScalewayProtocol,
|
|
863
|
+
retry: Retry.Retry,
|
|
864
|
+
telemetry: TELEMETRY,
|
|
865
|
+
span: "DeleteDevice",
|
|
866
|
+
}));
|
|
867
|
+
|
|
868
|
+
export type DeleteHubError = ScalewayOpError;
|
|
869
|
+
/** Delete a hub Delete an existing IoT Hub, specified by its Hub ID. Deleting a Hub is permanent, and cannot be undone. */
|
|
870
|
+
export const deleteHub: API.OperationMethod<
|
|
871
|
+
DeleteHubRequest,
|
|
872
|
+
DeleteHubResponse,
|
|
873
|
+
DeleteHubError,
|
|
874
|
+
ScalewayOpContext
|
|
875
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
876
|
+
input: __S(296, __c37, 0) as any as S.Schema<DeleteHubRequest>,
|
|
877
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteHubResponse>,
|
|
878
|
+
errors: [],
|
|
879
|
+
serviceErrors: ScalewayServiceErrors,
|
|
880
|
+
protocol: ScalewayProtocol,
|
|
881
|
+
retry: Retry.Retry,
|
|
882
|
+
telemetry: TELEMETRY,
|
|
883
|
+
span: "DeleteHub",
|
|
884
|
+
}));
|
|
885
|
+
|
|
886
|
+
export type DeleteNetworkError = ScalewayOpError;
|
|
887
|
+
/** Delete a Network Delete an existing network, specified by its network ID. Deleting a network is permanent, and cannot be undone. */
|
|
888
|
+
export const deleteNetwork: API.OperationMethod<
|
|
889
|
+
DeleteNetworkRequest,
|
|
890
|
+
DeleteNetworkResponse,
|
|
891
|
+
DeleteNetworkError,
|
|
892
|
+
ScalewayOpContext
|
|
893
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
894
|
+
input: __S(304, __c38, 0) as any as S.Schema<DeleteNetworkRequest>,
|
|
895
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteNetworkResponse>,
|
|
896
|
+
errors: [],
|
|
897
|
+
serviceErrors: ScalewayServiceErrors,
|
|
898
|
+
protocol: ScalewayProtocol,
|
|
899
|
+
retry: Retry.Retry,
|
|
900
|
+
telemetry: TELEMETRY,
|
|
901
|
+
span: "DeleteNetwork",
|
|
902
|
+
}));
|
|
903
|
+
|
|
904
|
+
export type DeleteRouteError = ScalewayOpError;
|
|
905
|
+
/** Delete a route Delete an existing route, specified by its route ID. Deleting a route is permanent, and cannot be undone. */
|
|
906
|
+
export const deleteRoute: API.OperationMethod<
|
|
907
|
+
DeleteRouteRequest,
|
|
908
|
+
DeleteRouteResponse,
|
|
909
|
+
DeleteRouteError,
|
|
910
|
+
ScalewayOpContext
|
|
911
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
912
|
+
input: __S(312, __c39, 0) as any as S.Schema<DeleteRouteRequest>,
|
|
913
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteRouteResponse>,
|
|
914
|
+
errors: [],
|
|
915
|
+
serviceErrors: ScalewayServiceErrors,
|
|
916
|
+
protocol: ScalewayProtocol,
|
|
917
|
+
retry: Retry.Retry,
|
|
918
|
+
telemetry: TELEMETRY,
|
|
919
|
+
span: "DeleteRoute",
|
|
920
|
+
}));
|
|
921
|
+
|
|
922
|
+
export type DeleteTwinDocumentError = ScalewayOpError;
|
|
923
|
+
/** BETA - Delete a Cloud Twin Document */
|
|
924
|
+
export const deleteTwinDocument: API.OperationMethod<
|
|
925
|
+
DeleteTwinDocumentRequest,
|
|
926
|
+
DeleteTwinDocumentResponse,
|
|
927
|
+
DeleteTwinDocumentError,
|
|
928
|
+
ScalewayOpContext
|
|
929
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
930
|
+
input: __S(320, __c40, 0) as any as S.Schema<DeleteTwinDocumentRequest>,
|
|
931
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteTwinDocumentResponse>,
|
|
932
|
+
errors: [],
|
|
933
|
+
serviceErrors: ScalewayServiceErrors,
|
|
934
|
+
protocol: ScalewayProtocol,
|
|
935
|
+
retry: Retry.Retry,
|
|
936
|
+
telemetry: TELEMETRY,
|
|
937
|
+
span: "DeleteTwinDocument",
|
|
938
|
+
}));
|
|
939
|
+
|
|
940
|
+
export type DeleteTwinDocumentsError = ScalewayOpError;
|
|
941
|
+
/** BETA - Delete all the documents of a Cloud Twin */
|
|
942
|
+
export const deleteTwinDocuments: API.OperationMethod<
|
|
943
|
+
DeleteTwinDocumentsRequest,
|
|
944
|
+
DeleteTwinDocumentsResponse,
|
|
945
|
+
DeleteTwinDocumentsError,
|
|
946
|
+
ScalewayOpContext
|
|
947
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
948
|
+
input: __S(328, __c41, 0) as any as S.Schema<DeleteTwinDocumentsRequest>,
|
|
949
|
+
output: __S(288, __c36, 0) as any as S.Schema<DeleteTwinDocumentsResponse>,
|
|
950
|
+
errors: [],
|
|
951
|
+
serviceErrors: ScalewayServiceErrors,
|
|
952
|
+
protocol: ScalewayProtocol,
|
|
953
|
+
retry: Retry.Retry,
|
|
954
|
+
telemetry: TELEMETRY,
|
|
955
|
+
span: "DeleteTwinDocuments",
|
|
956
|
+
}));
|
|
957
|
+
|
|
958
|
+
export type DisableDeviceError = ScalewayOpError;
|
|
959
|
+
/** Disable a device Disable an existing device, specified by its device ID. */
|
|
960
|
+
export const disableDevice: API.OperationMethod<
|
|
961
|
+
DisableDeviceRequest,
|
|
962
|
+
Device,
|
|
963
|
+
DisableDeviceError,
|
|
964
|
+
ScalewayOpContext
|
|
965
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
966
|
+
input: __S(40, __c5, 0) as any as S.Schema<DisableDeviceRequest>,
|
|
967
|
+
output: __S(11, __c1, 3) as any as S.Schema<Device>,
|
|
968
|
+
errors: [],
|
|
969
|
+
serviceErrors: ScalewayServiceErrors,
|
|
970
|
+
protocol: ScalewayProtocol,
|
|
971
|
+
retry: Retry.Retry,
|
|
972
|
+
telemetry: TELEMETRY,
|
|
973
|
+
span: "DisableDevice",
|
|
974
|
+
}));
|
|
975
|
+
|
|
976
|
+
export type DisableHubError = ScalewayOpError;
|
|
977
|
+
/** Disable a hub Disable an existing IoT Hub, specified by its Hub ID. */
|
|
978
|
+
export const disableHub: API.OperationMethod<
|
|
979
|
+
DisableHubRequest,
|
|
980
|
+
Hub,
|
|
981
|
+
DisableHubError,
|
|
982
|
+
ScalewayOpContext
|
|
983
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
984
|
+
input: __S(48, __c6, 0) as any as S.Schema<DisableHubRequest>,
|
|
985
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
986
|
+
errors: [],
|
|
987
|
+
serviceErrors: ScalewayServiceErrors,
|
|
988
|
+
protocol: ScalewayProtocol,
|
|
989
|
+
retry: Retry.Retry,
|
|
990
|
+
telemetry: TELEMETRY,
|
|
991
|
+
span: "DisableHub",
|
|
992
|
+
}));
|
|
993
|
+
|
|
994
|
+
export type EnableDeviceError = ScalewayOpError;
|
|
995
|
+
/** Enable a device Enable a specific device, specified by its device ID. */
|
|
996
|
+
export const enableDevice: API.OperationMethod<
|
|
997
|
+
EnableDeviceRequest,
|
|
998
|
+
Device,
|
|
999
|
+
EnableDeviceError,
|
|
1000
|
+
ScalewayOpContext
|
|
1001
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1002
|
+
input: __S(56, __c7, 0) as any as S.Schema<EnableDeviceRequest>,
|
|
1003
|
+
output: __S(11, __c1, 3) as any as S.Schema<Device>,
|
|
1004
|
+
errors: [],
|
|
1005
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1006
|
+
protocol: ScalewayProtocol,
|
|
1007
|
+
retry: Retry.Retry,
|
|
1008
|
+
telemetry: TELEMETRY,
|
|
1009
|
+
span: "EnableDevice",
|
|
1010
|
+
}));
|
|
1011
|
+
|
|
1012
|
+
export type EnableHubError = ScalewayOpError;
|
|
1013
|
+
/** Enable a hub Enable an existing IoT Hub, specified by its Hub ID. */
|
|
1014
|
+
export const enableHub: API.OperationMethod<
|
|
1015
|
+
EnableHubRequest,
|
|
1016
|
+
Hub,
|
|
1017
|
+
EnableHubError,
|
|
1018
|
+
ScalewayOpContext
|
|
1019
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1020
|
+
input: __S(64, __c8, 0) as any as S.Schema<EnableHubRequest>,
|
|
1021
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
1022
|
+
errors: [],
|
|
1023
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1024
|
+
protocol: ScalewayProtocol,
|
|
1025
|
+
retry: Retry.Retry,
|
|
1026
|
+
telemetry: TELEMETRY,
|
|
1027
|
+
span: "EnableHub",
|
|
1028
|
+
}));
|
|
1029
|
+
|
|
1030
|
+
export type GetDeviceError = ScalewayOpError;
|
|
1031
|
+
/** Get a device Retrieve information about an existing device, specified by its device ID. Its full details, including name, status and ID, are returned in the response object. */
|
|
1032
|
+
export const getDevice: API.OperationMethod<
|
|
1033
|
+
GetDeviceRequest,
|
|
1034
|
+
Device,
|
|
1035
|
+
GetDeviceError,
|
|
1036
|
+
ScalewayOpContext
|
|
1037
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1038
|
+
input: __S(72, __c9, 0) as any as S.Schema<GetDeviceRequest>,
|
|
1039
|
+
output: __S(11, __c1, 3) as any as S.Schema<Device>,
|
|
1040
|
+
errors: [],
|
|
1041
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1042
|
+
protocol: ScalewayProtocol,
|
|
1043
|
+
retry: Retry.Retry,
|
|
1044
|
+
telemetry: TELEMETRY,
|
|
1045
|
+
span: "GetDevice",
|
|
1046
|
+
}));
|
|
1047
|
+
|
|
1048
|
+
export type GetDeviceCertificateError = ScalewayOpError;
|
|
1049
|
+
/** Get a device's certificate Get information for a particular PEM-encoded certificate, specified by the device ID. The response returns full details of the device, including its type of certificate. */
|
|
1050
|
+
export const getDeviceCertificate: API.OperationMethod<
|
|
1051
|
+
GetDeviceCertificateRequest,
|
|
1052
|
+
GetDeviceCertificateResponse,
|
|
1053
|
+
GetDeviceCertificateError,
|
|
1054
|
+
ScalewayOpContext
|
|
1055
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1056
|
+
input: __S(80, __c10, 0) as any as S.Schema<GetDeviceCertificateRequest>,
|
|
1057
|
+
output: __S(88, __c11, 0) as any as S.Schema<GetDeviceCertificateResponse>,
|
|
1058
|
+
errors: [],
|
|
1059
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1060
|
+
protocol: ScalewayProtocol,
|
|
1061
|
+
retry: Retry.Retry,
|
|
1062
|
+
telemetry: TELEMETRY,
|
|
1063
|
+
span: "GetDeviceCertificate",
|
|
1064
|
+
}));
|
|
1065
|
+
|
|
1066
|
+
export type GetHubError = ScalewayOpError;
|
|
1067
|
+
/** Get a hub Retrieve information about an existing IoT Hub, specified by its Hub ID. Its full details, including name, status and endpoint, are returned in the response object. */
|
|
1068
|
+
export const getHub: API.OperationMethod<GetHubRequest, Hub, GetHubError, ScalewayOpContext> =
|
|
1069
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1070
|
+
input: __S(96, __c12, 0) as any as S.Schema<GetHubRequest>,
|
|
1071
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
1072
|
+
errors: [],
|
|
1073
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1074
|
+
protocol: ScalewayProtocol,
|
|
1075
|
+
retry: Retry.Retry,
|
|
1076
|
+
telemetry: TELEMETRY,
|
|
1077
|
+
span: "GetHub",
|
|
1078
|
+
}));
|
|
1079
|
+
|
|
1080
|
+
export type GetHubCAError = ScalewayOpError;
|
|
1081
|
+
/** Get the certificate authority of a hub Get information for a particular PEM-encoded certificate, specified by the Hub ID. */
|
|
1082
|
+
export const getHubCA: API.OperationMethod<
|
|
1083
|
+
GetHubCARequest,
|
|
1084
|
+
GetHubCAResponse,
|
|
1085
|
+
GetHubCAError,
|
|
1086
|
+
ScalewayOpContext
|
|
1087
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1088
|
+
input: __S(104, __c13, 0) as any as S.Schema<GetHubCARequest>,
|
|
1089
|
+
output: __S(105, __c13, 1) as any as S.Schema<GetHubCAResponse>,
|
|
1090
|
+
errors: [],
|
|
1091
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1092
|
+
protocol: ScalewayProtocol,
|
|
1093
|
+
retry: Retry.Retry,
|
|
1094
|
+
telemetry: TELEMETRY,
|
|
1095
|
+
span: "GetHubCA",
|
|
1096
|
+
}));
|
|
1097
|
+
|
|
1098
|
+
export type GetNetworkError = ScalewayOpError;
|
|
1099
|
+
/** Retrieve a specific network Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint. */
|
|
1100
|
+
export const getNetwork: API.OperationMethod<
|
|
1101
|
+
GetNetworkRequest,
|
|
1102
|
+
Network,
|
|
1103
|
+
GetNetworkError,
|
|
1104
|
+
ScalewayOpContext
|
|
1105
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1106
|
+
input: __S(112, __c14, 0) as any as S.Schema<GetNetworkRequest>,
|
|
1107
|
+
output: __S(136, __c17, 0) as any as S.Schema<Network>,
|
|
1108
|
+
errors: [],
|
|
1109
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1110
|
+
protocol: ScalewayProtocol,
|
|
1111
|
+
retry: Retry.Retry,
|
|
1112
|
+
telemetry: TELEMETRY,
|
|
1113
|
+
span: "GetNetwork",
|
|
1114
|
+
}));
|
|
1115
|
+
|
|
1116
|
+
export type GetRouteError = ScalewayOpError;
|
|
1117
|
+
/** Get a route Get information for a particular route, specified by the route ID. The response returns full details of the route, including its type, the topic it subscribes to and its configuration. */
|
|
1118
|
+
export const getRoute: API.OperationMethod<
|
|
1119
|
+
GetRouteRequest,
|
|
1120
|
+
Route,
|
|
1121
|
+
GetRouteError,
|
|
1122
|
+
ScalewayOpContext
|
|
1123
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1124
|
+
input: __S(120, __c15, 0) as any as S.Schema<GetRouteRequest>,
|
|
1125
|
+
output: __S(244, __c30, 4) as any as S.Schema<Route>,
|
|
1126
|
+
errors: [],
|
|
1127
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1128
|
+
protocol: ScalewayProtocol,
|
|
1129
|
+
retry: Retry.Retry,
|
|
1130
|
+
telemetry: TELEMETRY,
|
|
1131
|
+
span: "GetRoute",
|
|
1132
|
+
}));
|
|
1133
|
+
|
|
1134
|
+
export type GetTwinDocumentError = ScalewayOpError;
|
|
1135
|
+
/** BETA - Get a Cloud Twin Document */
|
|
1136
|
+
export const getTwinDocument: API.OperationMethod<
|
|
1137
|
+
GetTwinDocumentRequest,
|
|
1138
|
+
TwinDocument,
|
|
1139
|
+
GetTwinDocumentError,
|
|
1140
|
+
ScalewayOpContext
|
|
1141
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1142
|
+
input: __S(144, __c18, 0) as any as S.Schema<GetTwinDocumentRequest>,
|
|
1143
|
+
output: __S(153, __c19, 1) as any as S.Schema<TwinDocument>,
|
|
1144
|
+
errors: [],
|
|
1145
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1146
|
+
protocol: ScalewayProtocol,
|
|
1147
|
+
retry: Retry.Retry,
|
|
1148
|
+
telemetry: TELEMETRY,
|
|
1149
|
+
span: "GetTwinDocument",
|
|
1150
|
+
}));
|
|
1151
|
+
|
|
1152
|
+
export type ListDevicesError = ScalewayOpError;
|
|
1153
|
+
/** List devices List all devices in the specified region. By default, returned devices are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1154
|
+
export const listDevices: API.PaginatedOperationMethod<
|
|
1155
|
+
ListDevicesRequest,
|
|
1156
|
+
ListDevicesResponse,
|
|
1157
|
+
ListDevicesError,
|
|
1158
|
+
ScalewayOpContext,
|
|
1159
|
+
Device
|
|
1160
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1161
|
+
() => ({
|
|
1162
|
+
input: __S(160, __c20, 0) as any as S.Schema<ListDevicesRequest>,
|
|
1163
|
+
output: __S(162, __c20, 2) as any as S.Schema<ListDevicesResponse>,
|
|
1164
|
+
errors: [],
|
|
1165
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1166
|
+
protocol: ScalewayProtocol,
|
|
1167
|
+
retry: Retry.Retry,
|
|
1168
|
+
telemetry: TELEMETRY,
|
|
1169
|
+
span: "ListDevices",
|
|
1170
|
+
pagination: {
|
|
1171
|
+
mode: "page",
|
|
1172
|
+
inputToken: "page",
|
|
1173
|
+
outputToken: "total_count",
|
|
1174
|
+
items: "devices",
|
|
1175
|
+
pageSize: "page_size",
|
|
1176
|
+
} as const,
|
|
1177
|
+
}),
|
|
1178
|
+
paginateByTotalCount,
|
|
1179
|
+
) as any;
|
|
1180
|
+
|
|
1181
|
+
export type ListHubsError = ScalewayOpError;
|
|
1182
|
+
/** List hubs List all Hubs in the specified zone. By default, returned Hubs are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1183
|
+
export const listHubs: API.PaginatedOperationMethod<
|
|
1184
|
+
ListHubsRequest,
|
|
1185
|
+
ListHubsResponse,
|
|
1186
|
+
ListHubsError,
|
|
1187
|
+
ScalewayOpContext,
|
|
1188
|
+
Hub
|
|
1189
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1190
|
+
() => ({
|
|
1191
|
+
input: __S(168, __c21, 0) as any as S.Schema<ListHubsRequest>,
|
|
1192
|
+
output: __S(170, __c21, 2) as any as S.Schema<ListHubsResponse>,
|
|
1193
|
+
errors: [],
|
|
1194
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1195
|
+
protocol: ScalewayProtocol,
|
|
1196
|
+
retry: Retry.Retry,
|
|
1197
|
+
telemetry: TELEMETRY,
|
|
1198
|
+
span: "ListHubs",
|
|
1199
|
+
pagination: {
|
|
1200
|
+
mode: "page",
|
|
1201
|
+
inputToken: "page",
|
|
1202
|
+
outputToken: "total_count",
|
|
1203
|
+
items: "hubs",
|
|
1204
|
+
pageSize: "page_size",
|
|
1205
|
+
} as const,
|
|
1206
|
+
}),
|
|
1207
|
+
paginateByTotalCount,
|
|
1208
|
+
) as any;
|
|
1209
|
+
|
|
1210
|
+
export type ListNetworksError = ScalewayOpError;
|
|
1211
|
+
/** List the networks */
|
|
1212
|
+
export const listNetworks: API.PaginatedOperationMethod<
|
|
1213
|
+
ListNetworksRequest,
|
|
1214
|
+
ListNetworksResponse,
|
|
1215
|
+
ListNetworksError,
|
|
1216
|
+
ScalewayOpContext,
|
|
1217
|
+
Network
|
|
1218
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1219
|
+
() => ({
|
|
1220
|
+
input: __S(176, __c22, 0) as any as S.Schema<ListNetworksRequest>,
|
|
1221
|
+
output: __S(178, __c22, 2) as any as S.Schema<ListNetworksResponse>,
|
|
1222
|
+
errors: [],
|
|
1223
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1224
|
+
protocol: ScalewayProtocol,
|
|
1225
|
+
retry: Retry.Retry,
|
|
1226
|
+
telemetry: TELEMETRY,
|
|
1227
|
+
span: "ListNetworks",
|
|
1228
|
+
pagination: {
|
|
1229
|
+
mode: "page",
|
|
1230
|
+
inputToken: "page",
|
|
1231
|
+
outputToken: "total_count",
|
|
1232
|
+
items: "networks",
|
|
1233
|
+
pageSize: "page_size",
|
|
1234
|
+
} as const,
|
|
1235
|
+
}),
|
|
1236
|
+
paginateByTotalCount,
|
|
1237
|
+
) as any;
|
|
1238
|
+
|
|
1239
|
+
export type ListRoutesError = ScalewayOpError;
|
|
1240
|
+
/** List routes List all routes in the specified region. By default, returned routes are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1241
|
+
export const listRoutes: API.PaginatedOperationMethod<
|
|
1242
|
+
ListRoutesRequest,
|
|
1243
|
+
ListRoutesResponse,
|
|
1244
|
+
ListRoutesError,
|
|
1245
|
+
ScalewayOpContext,
|
|
1246
|
+
RouteSummary
|
|
1247
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1248
|
+
() => ({
|
|
1249
|
+
input: __S(184, __c23, 0) as any as S.Schema<ListRoutesRequest>,
|
|
1250
|
+
output: __S(187, __c23, 3) as any as S.Schema<ListRoutesResponse>,
|
|
1251
|
+
errors: [],
|
|
1252
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1253
|
+
protocol: ScalewayProtocol,
|
|
1254
|
+
retry: Retry.Retry,
|
|
1255
|
+
telemetry: TELEMETRY,
|
|
1256
|
+
span: "ListRoutes",
|
|
1257
|
+
pagination: {
|
|
1258
|
+
mode: "page",
|
|
1259
|
+
inputToken: "page",
|
|
1260
|
+
outputToken: "total_count",
|
|
1261
|
+
items: "routes",
|
|
1262
|
+
pageSize: "page_size",
|
|
1263
|
+
} as const,
|
|
1264
|
+
}),
|
|
1265
|
+
paginateByTotalCount,
|
|
1266
|
+
) as any;
|
|
1267
|
+
|
|
1268
|
+
export type ListTwinDocumentsError = ScalewayOpError;
|
|
1269
|
+
/** BETA - List the documents of a Cloud Twin */
|
|
1270
|
+
export const listTwinDocuments: API.OperationMethod<
|
|
1271
|
+
ListTwinDocumentsRequest,
|
|
1272
|
+
ListTwinDocumentsResponse,
|
|
1273
|
+
ListTwinDocumentsError,
|
|
1274
|
+
ScalewayOpContext
|
|
1275
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1276
|
+
input: __S(192, __c24, 0) as any as S.Schema<ListTwinDocumentsRequest>,
|
|
1277
|
+
output: __S(195, __c24, 3) as any as S.Schema<ListTwinDocumentsResponse>,
|
|
1278
|
+
errors: [],
|
|
1279
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1280
|
+
protocol: ScalewayProtocol,
|
|
1281
|
+
retry: Retry.Retry,
|
|
1282
|
+
telemetry: TELEMETRY,
|
|
1283
|
+
span: "ListTwinDocuments",
|
|
1284
|
+
}));
|
|
1285
|
+
|
|
1286
|
+
export type PatchTwinDocumentError = ScalewayOpError;
|
|
1287
|
+
/** BETA - Patch a Cloud Twin Document */
|
|
1288
|
+
export const patchTwinDocument: API.OperationMethod<
|
|
1289
|
+
PatchTwinDocumentRequest,
|
|
1290
|
+
TwinDocument,
|
|
1291
|
+
PatchTwinDocumentError,
|
|
1292
|
+
ScalewayOpContext
|
|
1293
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1294
|
+
input: __S(200, __c25, 0) as any as S.Schema<PatchTwinDocumentRequest>,
|
|
1295
|
+
output: __S(153, __c19, 1) as any as S.Schema<TwinDocument>,
|
|
1296
|
+
errors: [],
|
|
1297
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1298
|
+
protocol: ScalewayProtocol,
|
|
1299
|
+
retry: Retry.Retry,
|
|
1300
|
+
telemetry: TELEMETRY,
|
|
1301
|
+
span: "PatchTwinDocument",
|
|
1302
|
+
}));
|
|
1303
|
+
|
|
1304
|
+
export type PutTwinDocumentError = ScalewayOpError;
|
|
1305
|
+
/** BETA - Update a Cloud Twin Document */
|
|
1306
|
+
export const putTwinDocument: API.OperationMethod<
|
|
1307
|
+
PutTwinDocumentRequest,
|
|
1308
|
+
TwinDocument,
|
|
1309
|
+
PutTwinDocumentError,
|
|
1310
|
+
ScalewayOpContext
|
|
1311
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1312
|
+
input: __S(208, __c26, 0) as any as S.Schema<PutTwinDocumentRequest>,
|
|
1313
|
+
output: __S(153, __c19, 1) as any as S.Schema<TwinDocument>,
|
|
1314
|
+
errors: [],
|
|
1315
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1316
|
+
protocol: ScalewayProtocol,
|
|
1317
|
+
retry: Retry.Retry,
|
|
1318
|
+
telemetry: TELEMETRY,
|
|
1319
|
+
span: "PutTwinDocument",
|
|
1320
|
+
}));
|
|
1321
|
+
|
|
1322
|
+
export type RenewDeviceCertificateError = ScalewayOpError;
|
|
1323
|
+
/** Renew a device certificate Renew the certificate of an existing device, specified by its device ID. */
|
|
1324
|
+
export const renewDeviceCertificate: API.OperationMethod<
|
|
1325
|
+
RenewDeviceCertificateRequest,
|
|
1326
|
+
RenewDeviceCertificateResponse,
|
|
1327
|
+
RenewDeviceCertificateError,
|
|
1328
|
+
ScalewayOpContext
|
|
1329
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1330
|
+
input: __S(216, __c27, 0) as any as S.Schema<RenewDeviceCertificateRequest>,
|
|
1331
|
+
output: __S(17, __c2, 1) as any as S.Schema<RenewDeviceCertificateResponse>,
|
|
1332
|
+
errors: [],
|
|
1333
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1334
|
+
protocol: ScalewayProtocol,
|
|
1335
|
+
retry: Retry.Retry,
|
|
1336
|
+
telemetry: TELEMETRY,
|
|
1337
|
+
span: "RenewDeviceCertificate",
|
|
1338
|
+
}));
|
|
1339
|
+
|
|
1340
|
+
export type SetDeviceCertificateError = ScalewayOpError;
|
|
1341
|
+
/** Set a custom certificate on a device Switch the existing certificate of a given device with an EM-encoded custom certificate. */
|
|
1342
|
+
export const setDeviceCertificate: API.OperationMethod<
|
|
1343
|
+
SetDeviceCertificateRequest,
|
|
1344
|
+
SetDeviceCertificateResponse,
|
|
1345
|
+
SetDeviceCertificateError,
|
|
1346
|
+
ScalewayOpContext
|
|
1347
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1348
|
+
input: __S(224, __c28, 0) as any as S.Schema<SetDeviceCertificateRequest>,
|
|
1349
|
+
output: __S(88, __c11, 0) as any as S.Schema<SetDeviceCertificateResponse>,
|
|
1350
|
+
errors: [],
|
|
1351
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1352
|
+
protocol: ScalewayProtocol,
|
|
1353
|
+
retry: Retry.Retry,
|
|
1354
|
+
telemetry: TELEMETRY,
|
|
1355
|
+
span: "SetDeviceCertificate",
|
|
1356
|
+
}));
|
|
1357
|
+
|
|
1358
|
+
export type SetHubCAError = ScalewayOpError;
|
|
1359
|
+
/** Set the certificate authority of a hub Set a particular PEM-encoded certificate, specified by the Hub ID. */
|
|
1360
|
+
export const setHubCA: API.OperationMethod<SetHubCARequest, Hub, SetHubCAError, ScalewayOpContext> =
|
|
1361
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1362
|
+
input: __S(248, __c31, 0) as any as S.Schema<SetHubCARequest>,
|
|
1363
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
1364
|
+
errors: [],
|
|
1365
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1366
|
+
protocol: ScalewayProtocol,
|
|
1367
|
+
retry: Retry.Retry,
|
|
1368
|
+
telemetry: TELEMETRY,
|
|
1369
|
+
span: "SetHubCA",
|
|
1370
|
+
}));
|
|
1371
|
+
|
|
1372
|
+
export type UpdateDeviceError = ScalewayOpError;
|
|
1373
|
+
/** Update a device Update the parameters of an existing device, specified by its device ID. */
|
|
1374
|
+
export const updateDevice: API.OperationMethod<
|
|
1375
|
+
UpdateDeviceRequest,
|
|
1376
|
+
Device,
|
|
1377
|
+
UpdateDeviceError,
|
|
1378
|
+
ScalewayOpContext
|
|
1379
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1380
|
+
input: __S(256, __c32, 0) as any as S.Schema<UpdateDeviceRequest>,
|
|
1381
|
+
output: __S(11, __c1, 3) as any as S.Schema<Device>,
|
|
1382
|
+
errors: [],
|
|
1383
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1384
|
+
protocol: ScalewayProtocol,
|
|
1385
|
+
retry: Retry.Retry,
|
|
1386
|
+
telemetry: TELEMETRY,
|
|
1387
|
+
span: "UpdateDevice",
|
|
1388
|
+
}));
|
|
1389
|
+
|
|
1390
|
+
export type UpdateHubError = ScalewayOpError;
|
|
1391
|
+
/** Update a hub Update the parameters of an existing IoT Hub, specified by its Hub ID. */
|
|
1392
|
+
export const updateHub: API.OperationMethod<
|
|
1393
|
+
UpdateHubRequest,
|
|
1394
|
+
Hub,
|
|
1395
|
+
UpdateHubError,
|
|
1396
|
+
ScalewayOpContext
|
|
1397
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1398
|
+
input: __S(264, __c33, 0) as any as S.Schema<UpdateHubRequest>,
|
|
1399
|
+
output: __S(33, __c4, 1) as any as S.Schema<Hub>,
|
|
1400
|
+
errors: [],
|
|
1401
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1402
|
+
protocol: ScalewayProtocol,
|
|
1403
|
+
retry: Retry.Retry,
|
|
1404
|
+
telemetry: TELEMETRY,
|
|
1405
|
+
span: "UpdateHub",
|
|
1406
|
+
}));
|
|
1407
|
+
|
|
1408
|
+
export type UpdateRouteError = ScalewayOpError;
|
|
1409
|
+
/** Update a route Update the parameters of an existing route, specified by its route ID. */
|
|
1410
|
+
export const updateRoute: API.OperationMethod<
|
|
1411
|
+
UpdateRouteRequest,
|
|
1412
|
+
Route,
|
|
1413
|
+
UpdateRouteError,
|
|
1414
|
+
ScalewayOpContext
|
|
1415
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1416
|
+
input: __S(275, __c34, 3) as any as S.Schema<UpdateRouteRequest>,
|
|
1417
|
+
output: __S(244, __c30, 4) as any as S.Schema<Route>,
|
|
1418
|
+
errors: [],
|
|
1419
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1420
|
+
protocol: ScalewayProtocol,
|
|
1421
|
+
retry: Retry.Retry,
|
|
1422
|
+
telemetry: TELEMETRY,
|
|
1423
|
+
span: "UpdateRoute",
|
|
1424
|
+
}));
|
|
1425
|
+
|
|
1426
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
1427
|
+
function __c0(j: number): any {
|
|
1428
|
+
switch (j) {
|
|
1429
|
+
case 0:
|
|
1430
|
+
return S.suspend(() =>
|
|
1431
|
+
S.Struct({
|
|
1432
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1433
|
+
name: S.String,
|
|
1434
|
+
hub_id: S.String,
|
|
1435
|
+
allow_insecure: S.optional(S.Boolean),
|
|
1436
|
+
allow_multiple_connections: S.optional(S.Boolean),
|
|
1437
|
+
message_filters: S.optional(__S(10, __c1, 2)),
|
|
1438
|
+
description: S.optional(S.NullOr(S.String)),
|
|
1439
|
+
}).pipe(
|
|
1440
|
+
T.Http({
|
|
1441
|
+
method: "POST",
|
|
1442
|
+
uri: "/iot/v1/regions/{region}/devices",
|
|
1443
|
+
code: 200,
|
|
1444
|
+
baseUrl: "https://api.scaleway.com",
|
|
1445
|
+
}),
|
|
1446
|
+
),
|
|
1447
|
+
).annotate({ identifier: "CreateDeviceRequest" });
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
function __c1(j: number): any {
|
|
1451
|
+
switch (j) {
|
|
1452
|
+
case 0:
|
|
1453
|
+
return S.Array(S.Unknown);
|
|
1454
|
+
case 1:
|
|
1455
|
+
return S.suspend(() =>
|
|
1456
|
+
S.Struct({
|
|
1457
|
+
policy: S.optional(S.String),
|
|
1458
|
+
topics: S.optional(S.NullOr(__S(8, __c1, 0))),
|
|
1459
|
+
}),
|
|
1460
|
+
).annotate({ identifier: "DeviceMessageFiltersRule" });
|
|
1461
|
+
case 2:
|
|
1462
|
+
return S.suspend(() =>
|
|
1463
|
+
S.Struct({
|
|
1464
|
+
publish: S.optional(__S(9, __c1, 1)),
|
|
1465
|
+
subscribe: S.optional(__S(9, __c1, 1)),
|
|
1466
|
+
}),
|
|
1467
|
+
).annotate({ identifier: "DeviceMessageFilters" });
|
|
1468
|
+
case 3:
|
|
1469
|
+
return S.suspend(() =>
|
|
1470
|
+
S.Struct({
|
|
1471
|
+
id: S.optional(S.String),
|
|
1472
|
+
srn: S.optional(S.String),
|
|
1473
|
+
name: S.optional(S.String),
|
|
1474
|
+
description: S.optional(S.String),
|
|
1475
|
+
status: S.optional(S.String),
|
|
1476
|
+
hub_id: S.optional(S.String),
|
|
1477
|
+
last_activity_at: S.optional(S.NullOr(S.String)),
|
|
1478
|
+
is_connected: S.optional(S.Boolean),
|
|
1479
|
+
allow_insecure: S.optional(S.Boolean),
|
|
1480
|
+
allow_multiple_connections: S.optional(S.Boolean),
|
|
1481
|
+
message_filters: S.optional(__S(10, __c1, 2)),
|
|
1482
|
+
has_custom_certificate: S.optional(S.Boolean),
|
|
1483
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1484
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1485
|
+
region: S.optional(S.String),
|
|
1486
|
+
}),
|
|
1487
|
+
).annotate({ identifier: "Device" });
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
function __c2(j: number): any {
|
|
1491
|
+
switch (j) {
|
|
1492
|
+
case 0:
|
|
1493
|
+
return S.suspend(() =>
|
|
1494
|
+
S.Struct({
|
|
1495
|
+
crt: S.optional(S.String),
|
|
1496
|
+
key: S.optional(S.String),
|
|
1497
|
+
}),
|
|
1498
|
+
).annotate({ identifier: "Certificate" });
|
|
1499
|
+
case 1:
|
|
1500
|
+
return S.suspend(() =>
|
|
1501
|
+
S.Struct({
|
|
1502
|
+
device: S.optional(__S(11, __c1, 3)),
|
|
1503
|
+
certificate: S.optional(__S(16, __c2, 0)),
|
|
1504
|
+
}),
|
|
1505
|
+
).annotate({ identifier: "CreateDeviceResponse" });
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
function __c3(j: number): any {
|
|
1509
|
+
switch (j) {
|
|
1510
|
+
case 0:
|
|
1511
|
+
return S.suspend(() =>
|
|
1512
|
+
S.Struct({
|
|
1513
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1514
|
+
name: S.String,
|
|
1515
|
+
project_id: S.String,
|
|
1516
|
+
product_plan: S.String,
|
|
1517
|
+
disable_events: S.optional(S.NullOr(S.Boolean)),
|
|
1518
|
+
events_topic_prefix: S.optional(S.NullOr(S.String)),
|
|
1519
|
+
twins_graphite_config: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
1520
|
+
}).pipe(
|
|
1521
|
+
T.Http({
|
|
1522
|
+
method: "POST",
|
|
1523
|
+
uri: "/iot/v1/regions/{region}/hubs",
|
|
1524
|
+
code: 200,
|
|
1525
|
+
baseUrl: "https://api.scaleway.com",
|
|
1526
|
+
}),
|
|
1527
|
+
),
|
|
1528
|
+
).annotate({ identifier: "CreateHubRequest" });
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
function __c4(j: number): any {
|
|
1532
|
+
switch (j) {
|
|
1533
|
+
case 0:
|
|
1534
|
+
return S.suspend(() =>
|
|
1535
|
+
S.Struct({
|
|
1536
|
+
push_uri: S.optional(S.String),
|
|
1537
|
+
}),
|
|
1538
|
+
).annotate({ identifier: "HubTwinsGraphiteConfig" });
|
|
1539
|
+
case 1:
|
|
1540
|
+
return S.suspend(() =>
|
|
1541
|
+
S.Struct({
|
|
1542
|
+
id: S.optional(S.String),
|
|
1543
|
+
srn: S.optional(S.String),
|
|
1544
|
+
name: S.optional(S.String),
|
|
1545
|
+
status: S.optional(S.String),
|
|
1546
|
+
product_plan: S.optional(S.String),
|
|
1547
|
+
enabled: S.optional(S.Boolean),
|
|
1548
|
+
device_count: S.optional(S.Number),
|
|
1549
|
+
connected_device_count: S.optional(S.Number),
|
|
1550
|
+
endpoint: S.optional(S.String),
|
|
1551
|
+
disable_events: S.optional(S.Boolean),
|
|
1552
|
+
events_topic_prefix: S.optional(S.String),
|
|
1553
|
+
region: S.optional(S.String),
|
|
1554
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1555
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1556
|
+
project_id: S.optional(S.String),
|
|
1557
|
+
organization_id: S.optional(S.String),
|
|
1558
|
+
enable_device_auto_provisioning: S.optional(S.Boolean),
|
|
1559
|
+
has_custom_ca: S.optional(S.Boolean),
|
|
1560
|
+
twins_graphite_config: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
1561
|
+
}),
|
|
1562
|
+
).annotate({ identifier: "Hub" });
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
function __c5(j: number): any {
|
|
1566
|
+
switch (j) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
return S.suspend(() =>
|
|
1569
|
+
S.Struct({
|
|
1570
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1571
|
+
device_id: S.String.pipe(T.Label()),
|
|
1572
|
+
}).pipe(
|
|
1573
|
+
T.Http({
|
|
1574
|
+
method: "POST",
|
|
1575
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}/disable",
|
|
1576
|
+
code: 200,
|
|
1577
|
+
baseUrl: "https://api.scaleway.com",
|
|
1578
|
+
}),
|
|
1579
|
+
),
|
|
1580
|
+
).annotate({ identifier: "DisableDeviceRequest" });
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
function __c6(j: number): any {
|
|
1584
|
+
switch (j) {
|
|
1585
|
+
case 0:
|
|
1586
|
+
return S.suspend(() =>
|
|
1587
|
+
S.Struct({
|
|
1588
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1589
|
+
hub_id: S.String.pipe(T.Label()),
|
|
1590
|
+
}).pipe(
|
|
1591
|
+
T.Http({
|
|
1592
|
+
method: "POST",
|
|
1593
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}/disable",
|
|
1594
|
+
code: 200,
|
|
1595
|
+
baseUrl: "https://api.scaleway.com",
|
|
1596
|
+
}),
|
|
1597
|
+
),
|
|
1598
|
+
).annotate({ identifier: "DisableHubRequest" });
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
function __c7(j: number): any {
|
|
1602
|
+
switch (j) {
|
|
1603
|
+
case 0:
|
|
1604
|
+
return S.suspend(() =>
|
|
1605
|
+
S.Struct({
|
|
1606
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1607
|
+
device_id: S.String.pipe(T.Label()),
|
|
1608
|
+
}).pipe(
|
|
1609
|
+
T.Http({
|
|
1610
|
+
method: "POST",
|
|
1611
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}/enable",
|
|
1612
|
+
code: 200,
|
|
1613
|
+
baseUrl: "https://api.scaleway.com",
|
|
1614
|
+
}),
|
|
1615
|
+
),
|
|
1616
|
+
).annotate({ identifier: "EnableDeviceRequest" });
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function __c8(j: number): any {
|
|
1620
|
+
switch (j) {
|
|
1621
|
+
case 0:
|
|
1622
|
+
return S.suspend(() =>
|
|
1623
|
+
S.Struct({
|
|
1624
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1625
|
+
hub_id: S.String.pipe(T.Label()),
|
|
1626
|
+
}).pipe(
|
|
1627
|
+
T.Http({
|
|
1628
|
+
method: "POST",
|
|
1629
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}/enable",
|
|
1630
|
+
code: 200,
|
|
1631
|
+
baseUrl: "https://api.scaleway.com",
|
|
1632
|
+
}),
|
|
1633
|
+
),
|
|
1634
|
+
).annotate({ identifier: "EnableHubRequest" });
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
function __c9(j: number): any {
|
|
1638
|
+
switch (j) {
|
|
1639
|
+
case 0:
|
|
1640
|
+
return S.suspend(() =>
|
|
1641
|
+
S.Struct({
|
|
1642
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1643
|
+
device_id: S.String.pipe(T.Label()),
|
|
1644
|
+
}).pipe(
|
|
1645
|
+
T.Http({
|
|
1646
|
+
method: "GET",
|
|
1647
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}",
|
|
1648
|
+
code: 200,
|
|
1649
|
+
baseUrl: "https://api.scaleway.com",
|
|
1650
|
+
}),
|
|
1651
|
+
),
|
|
1652
|
+
).annotate({ identifier: "GetDeviceRequest" });
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
function __c10(j: number): any {
|
|
1656
|
+
switch (j) {
|
|
1657
|
+
case 0:
|
|
1658
|
+
return S.suspend(() =>
|
|
1659
|
+
S.Struct({
|
|
1660
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1661
|
+
device_id: S.String.pipe(T.Label()),
|
|
1662
|
+
}).pipe(
|
|
1663
|
+
T.Http({
|
|
1664
|
+
method: "GET",
|
|
1665
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}/certificate",
|
|
1666
|
+
code: 200,
|
|
1667
|
+
baseUrl: "https://api.scaleway.com",
|
|
1668
|
+
}),
|
|
1669
|
+
),
|
|
1670
|
+
).annotate({ identifier: "GetDeviceCertificateRequest" });
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
function __c11(j: number): any {
|
|
1674
|
+
switch (j) {
|
|
1675
|
+
case 0:
|
|
1676
|
+
return S.suspend(() =>
|
|
1677
|
+
S.Struct({
|
|
1678
|
+
device: S.optional(__S(11, __c1, 3)),
|
|
1679
|
+
certificate_pem: S.optional(S.String),
|
|
1680
|
+
}),
|
|
1681
|
+
).annotate({ identifier: "GetDeviceCertificateResponse" });
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
function __c12(j: number): any {
|
|
1685
|
+
switch (j) {
|
|
1686
|
+
case 0:
|
|
1687
|
+
return S.suspend(() =>
|
|
1688
|
+
S.Struct({
|
|
1689
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1690
|
+
hub_id: S.String.pipe(T.Label()),
|
|
1691
|
+
}).pipe(
|
|
1692
|
+
T.Http({
|
|
1693
|
+
method: "GET",
|
|
1694
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}",
|
|
1695
|
+
code: 200,
|
|
1696
|
+
baseUrl: "https://api.scaleway.com",
|
|
1697
|
+
}),
|
|
1698
|
+
),
|
|
1699
|
+
).annotate({ identifier: "GetHubRequest" });
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
function __c13(j: number): any {
|
|
1703
|
+
switch (j) {
|
|
1704
|
+
case 0:
|
|
1705
|
+
return S.suspend(() =>
|
|
1706
|
+
S.Struct({
|
|
1707
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1708
|
+
hub_id: S.String.pipe(T.Label()),
|
|
1709
|
+
}).pipe(
|
|
1710
|
+
T.Http({
|
|
1711
|
+
method: "GET",
|
|
1712
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}/ca",
|
|
1713
|
+
code: 200,
|
|
1714
|
+
baseUrl: "https://api.scaleway.com",
|
|
1715
|
+
}),
|
|
1716
|
+
),
|
|
1717
|
+
).annotate({ identifier: "GetHubCARequest" });
|
|
1718
|
+
case 1:
|
|
1719
|
+
return S.suspend(() =>
|
|
1720
|
+
S.Struct({
|
|
1721
|
+
ca_cert_pem: S.optional(S.String),
|
|
1722
|
+
}),
|
|
1723
|
+
).annotate({ identifier: "GetHubCAResponse" });
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
function __c14(j: number): any {
|
|
1727
|
+
switch (j) {
|
|
1728
|
+
case 0:
|
|
1729
|
+
return S.suspend(() =>
|
|
1730
|
+
S.Struct({
|
|
1731
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1732
|
+
network_id: S.String.pipe(T.Label()),
|
|
1733
|
+
}).pipe(
|
|
1734
|
+
T.Http({
|
|
1735
|
+
method: "GET",
|
|
1736
|
+
uri: "/iot/v1/regions/{region}/networks/{network_id}",
|
|
1737
|
+
code: 200,
|
|
1738
|
+
baseUrl: "https://api.scaleway.com",
|
|
1739
|
+
}),
|
|
1740
|
+
),
|
|
1741
|
+
).annotate({ identifier: "GetNetworkRequest" });
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
function __c15(j: number): any {
|
|
1745
|
+
switch (j) {
|
|
1746
|
+
case 0:
|
|
1747
|
+
return S.suspend(() =>
|
|
1748
|
+
S.Struct({
|
|
1749
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1750
|
+
route_id: S.String.pipe(T.Label()),
|
|
1751
|
+
}).pipe(
|
|
1752
|
+
T.Http({
|
|
1753
|
+
method: "GET",
|
|
1754
|
+
uri: "/iot/v1/regions/{region}/routes/{route_id}",
|
|
1755
|
+
code: 200,
|
|
1756
|
+
baseUrl: "https://api.scaleway.com",
|
|
1757
|
+
}),
|
|
1758
|
+
),
|
|
1759
|
+
).annotate({ identifier: "GetRouteRequest" });
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
function __c16(j: number): any {
|
|
1763
|
+
switch (j) {
|
|
1764
|
+
case 0:
|
|
1765
|
+
return S.suspend(() =>
|
|
1766
|
+
S.Struct({
|
|
1767
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1768
|
+
name: S.String,
|
|
1769
|
+
type: S.String,
|
|
1770
|
+
hub_id: S.String,
|
|
1771
|
+
topic_prefix: S.String,
|
|
1772
|
+
}).pipe(
|
|
1773
|
+
T.Http({
|
|
1774
|
+
method: "POST",
|
|
1775
|
+
uri: "/iot/v1/regions/{region}/networks",
|
|
1776
|
+
code: 200,
|
|
1777
|
+
baseUrl: "https://api.scaleway.com",
|
|
1778
|
+
}),
|
|
1779
|
+
),
|
|
1780
|
+
).annotate({ identifier: "CreateNetworkRequest" });
|
|
1781
|
+
case 1:
|
|
1782
|
+
return S.suspend(() =>
|
|
1783
|
+
S.Struct({
|
|
1784
|
+
network: S.optional(__S(136, __c17, 0)),
|
|
1785
|
+
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1786
|
+
}),
|
|
1787
|
+
).annotate({ identifier: "CreateNetworkResponse" });
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
function __c17(j: number): any {
|
|
1791
|
+
switch (j) {
|
|
1792
|
+
case 0:
|
|
1793
|
+
return S.suspend(() =>
|
|
1794
|
+
S.Struct({
|
|
1795
|
+
id: S.optional(S.String),
|
|
1796
|
+
srn: S.optional(S.String),
|
|
1797
|
+
name: S.optional(S.String),
|
|
1798
|
+
type: S.optional(S.String),
|
|
1799
|
+
endpoint: S.optional(S.String),
|
|
1800
|
+
hub_id: S.optional(S.String),
|
|
1801
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1802
|
+
topic_prefix: S.optional(S.String),
|
|
1803
|
+
region: S.optional(S.String),
|
|
1804
|
+
}),
|
|
1805
|
+
).annotate({ identifier: "Network" });
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
function __c18(j: number): any {
|
|
1809
|
+
switch (j) {
|
|
1810
|
+
case 0:
|
|
1811
|
+
return S.suspend(() =>
|
|
1812
|
+
S.Struct({
|
|
1813
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1814
|
+
twin_id: S.String.pipe(T.Label()),
|
|
1815
|
+
document_name: S.String.pipe(T.Label()),
|
|
1816
|
+
}).pipe(
|
|
1817
|
+
T.Http({
|
|
1818
|
+
method: "GET",
|
|
1819
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}/documents/{document_name}",
|
|
1820
|
+
code: 200,
|
|
1821
|
+
baseUrl: "https://api.scaleway.com",
|
|
1822
|
+
}),
|
|
1823
|
+
),
|
|
1824
|
+
).annotate({ identifier: "GetTwinDocumentRequest" });
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
function __c19(j: number): any {
|
|
1828
|
+
switch (j) {
|
|
1829
|
+
case 0:
|
|
1830
|
+
return S.Record(S.String, S.Unknown);
|
|
1831
|
+
case 1:
|
|
1832
|
+
return S.suspend(() =>
|
|
1833
|
+
S.Struct({
|
|
1834
|
+
twin_id: S.optional(S.String),
|
|
1835
|
+
document_name: S.optional(S.String),
|
|
1836
|
+
version: S.optional(S.Number),
|
|
1837
|
+
data: S.optional(__S(152, __c19, 0)),
|
|
1838
|
+
}),
|
|
1839
|
+
).annotate({ identifier: "TwinDocument" });
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
function __c20(j: number): any {
|
|
1843
|
+
switch (j) {
|
|
1844
|
+
case 0:
|
|
1845
|
+
return S.suspend(() =>
|
|
1846
|
+
S.Struct({
|
|
1847
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1848
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1849
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1850
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1851
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1852
|
+
hub_id: S.optional(S.String.pipe(T.Query())),
|
|
1853
|
+
allow_insecure: S.optional(S.Boolean.pipe(T.Query())),
|
|
1854
|
+
status: S.optional(S.String.pipe(T.Query())),
|
|
1855
|
+
}).pipe(
|
|
1856
|
+
T.Http({
|
|
1857
|
+
method: "GET",
|
|
1858
|
+
uri: "/iot/v1/regions/{region}/devices",
|
|
1859
|
+
code: 200,
|
|
1860
|
+
baseUrl: "https://api.scaleway.com",
|
|
1861
|
+
}),
|
|
1862
|
+
),
|
|
1863
|
+
).annotate({ identifier: "ListDevicesRequest" });
|
|
1864
|
+
case 1:
|
|
1865
|
+
return S.Array(__S(11, __c1, 3));
|
|
1866
|
+
case 2:
|
|
1867
|
+
return S.suspend(() =>
|
|
1868
|
+
S.Struct({
|
|
1869
|
+
total_count: S.optional(S.Number),
|
|
1870
|
+
devices: __S(161, __c20, 1),
|
|
1871
|
+
}),
|
|
1872
|
+
).annotate({ identifier: "ListDevicesResponse" });
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
function __c21(j: number): any {
|
|
1876
|
+
switch (j) {
|
|
1877
|
+
case 0:
|
|
1878
|
+
return S.suspend(() =>
|
|
1879
|
+
S.Struct({
|
|
1880
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1881
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1882
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1883
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1884
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
1885
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1886
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1887
|
+
}).pipe(
|
|
1888
|
+
T.Http({
|
|
1889
|
+
method: "GET",
|
|
1890
|
+
uri: "/iot/v1/regions/{region}/hubs",
|
|
1891
|
+
code: 200,
|
|
1892
|
+
baseUrl: "https://api.scaleway.com",
|
|
1893
|
+
}),
|
|
1894
|
+
),
|
|
1895
|
+
).annotate({ identifier: "ListHubsRequest" });
|
|
1896
|
+
case 1:
|
|
1897
|
+
return S.Array(__S(33, __c4, 1));
|
|
1898
|
+
case 2:
|
|
1899
|
+
return S.suspend(() =>
|
|
1900
|
+
S.Struct({
|
|
1901
|
+
total_count: S.optional(S.Number),
|
|
1902
|
+
hubs: __S(169, __c21, 1),
|
|
1903
|
+
}),
|
|
1904
|
+
).annotate({ identifier: "ListHubsResponse" });
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
function __c22(j: number): any {
|
|
1908
|
+
switch (j) {
|
|
1909
|
+
case 0:
|
|
1910
|
+
return S.suspend(() =>
|
|
1911
|
+
S.Struct({
|
|
1912
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1913
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1914
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1915
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1916
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1917
|
+
hub_id: S.optional(S.String.pipe(T.Query())),
|
|
1918
|
+
topic_prefix: S.optional(S.String.pipe(T.Query())),
|
|
1919
|
+
}).pipe(
|
|
1920
|
+
T.Http({
|
|
1921
|
+
method: "GET",
|
|
1922
|
+
uri: "/iot/v1/regions/{region}/networks",
|
|
1923
|
+
code: 200,
|
|
1924
|
+
baseUrl: "https://api.scaleway.com",
|
|
1925
|
+
}),
|
|
1926
|
+
),
|
|
1927
|
+
).annotate({ identifier: "ListNetworksRequest" });
|
|
1928
|
+
case 1:
|
|
1929
|
+
return S.Array(__S(136, __c17, 0));
|
|
1930
|
+
case 2:
|
|
1931
|
+
return S.suspend(() =>
|
|
1932
|
+
S.Struct({
|
|
1933
|
+
total_count: S.optional(S.Number),
|
|
1934
|
+
networks: __S(177, __c22, 1),
|
|
1935
|
+
}),
|
|
1936
|
+
).annotate({ identifier: "ListNetworksResponse" });
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
function __c23(j: number): any {
|
|
1940
|
+
switch (j) {
|
|
1941
|
+
case 0:
|
|
1942
|
+
return S.suspend(() =>
|
|
1943
|
+
S.Struct({
|
|
1944
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1945
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1946
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1947
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1948
|
+
hub_id: S.optional(S.String.pipe(T.Query())),
|
|
1949
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1950
|
+
}).pipe(
|
|
1951
|
+
T.Http({
|
|
1952
|
+
method: "GET",
|
|
1953
|
+
uri: "/iot/v1/regions/{region}/routes",
|
|
1954
|
+
code: 200,
|
|
1955
|
+
baseUrl: "https://api.scaleway.com",
|
|
1956
|
+
}),
|
|
1957
|
+
),
|
|
1958
|
+
).annotate({ identifier: "ListRoutesRequest" });
|
|
1959
|
+
case 1:
|
|
1960
|
+
return S.suspend(() =>
|
|
1961
|
+
S.Struct({
|
|
1962
|
+
id: S.optional(S.String),
|
|
1963
|
+
name: S.optional(S.String),
|
|
1964
|
+
hub_id: S.optional(S.String),
|
|
1965
|
+
topic: S.optional(S.String),
|
|
1966
|
+
type: S.optional(S.String),
|
|
1967
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1968
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1969
|
+
region: S.optional(S.String),
|
|
1970
|
+
}),
|
|
1971
|
+
).annotate({ identifier: "RouteSummary" });
|
|
1972
|
+
case 2:
|
|
1973
|
+
return S.Array(__S(185, __c23, 1));
|
|
1974
|
+
case 3:
|
|
1975
|
+
return S.suspend(() =>
|
|
1976
|
+
S.Struct({
|
|
1977
|
+
total_count: S.optional(S.Number),
|
|
1978
|
+
routes: __S(186, __c23, 2),
|
|
1979
|
+
}),
|
|
1980
|
+
).annotate({ identifier: "ListRoutesResponse" });
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
function __c24(j: number): any {
|
|
1984
|
+
switch (j) {
|
|
1985
|
+
case 0:
|
|
1986
|
+
return S.suspend(() =>
|
|
1987
|
+
S.Struct({
|
|
1988
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1989
|
+
twin_id: S.String.pipe(T.Label()),
|
|
1990
|
+
}).pipe(
|
|
1991
|
+
T.Http({
|
|
1992
|
+
method: "GET",
|
|
1993
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}",
|
|
1994
|
+
code: 200,
|
|
1995
|
+
baseUrl: "https://api.scaleway.com",
|
|
1996
|
+
}),
|
|
1997
|
+
),
|
|
1998
|
+
).annotate({ identifier: "ListTwinDocumentsRequest" });
|
|
1999
|
+
case 1:
|
|
2000
|
+
return S.suspend(() =>
|
|
2001
|
+
S.Struct({
|
|
2002
|
+
document_name: S.optional(S.String),
|
|
2003
|
+
}),
|
|
2004
|
+
).annotate({ identifier: "ListTwinDocumentsResponseDocumentSummary" });
|
|
2005
|
+
case 2:
|
|
2006
|
+
return S.Array(__S(193, __c24, 1));
|
|
2007
|
+
case 3:
|
|
2008
|
+
return S.suspend(() =>
|
|
2009
|
+
S.Struct({
|
|
2010
|
+
documents: S.optional(__S(194, __c24, 2)),
|
|
2011
|
+
}),
|
|
2012
|
+
).annotate({ identifier: "ListTwinDocumentsResponse" });
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
function __c25(j: number): any {
|
|
2016
|
+
switch (j) {
|
|
2017
|
+
case 0:
|
|
2018
|
+
return S.suspend(() =>
|
|
2019
|
+
S.Struct({
|
|
2020
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2021
|
+
twin_id: S.String.pipe(T.Label()),
|
|
2022
|
+
document_name: S.String.pipe(T.Label()),
|
|
2023
|
+
version: S.optional(S.NullOr(S.Number)),
|
|
2024
|
+
data: S.optional(__S(152, __c19, 0)),
|
|
2025
|
+
}).pipe(
|
|
2026
|
+
T.Http({
|
|
2027
|
+
method: "PATCH",
|
|
2028
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}/documents/{document_name}",
|
|
2029
|
+
code: 200,
|
|
2030
|
+
baseUrl: "https://api.scaleway.com",
|
|
2031
|
+
}),
|
|
2032
|
+
),
|
|
2033
|
+
).annotate({ identifier: "PatchTwinDocumentRequest" });
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
function __c26(j: number): any {
|
|
2037
|
+
switch (j) {
|
|
2038
|
+
case 0:
|
|
2039
|
+
return S.suspend(() =>
|
|
2040
|
+
S.Struct({
|
|
2041
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2042
|
+
twin_id: S.String.pipe(T.Label()),
|
|
2043
|
+
document_name: S.String.pipe(T.Label()),
|
|
2044
|
+
version: S.optional(S.NullOr(S.Number)),
|
|
2045
|
+
data: S.optional(__S(152, __c19, 0)),
|
|
2046
|
+
}).pipe(
|
|
2047
|
+
T.Http({
|
|
2048
|
+
method: "PUT",
|
|
2049
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}/documents/{document_name}",
|
|
2050
|
+
code: 200,
|
|
2051
|
+
baseUrl: "https://api.scaleway.com",
|
|
2052
|
+
}),
|
|
2053
|
+
),
|
|
2054
|
+
).annotate({ identifier: "PutTwinDocumentRequest" });
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
function __c27(j: number): any {
|
|
2058
|
+
switch (j) {
|
|
2059
|
+
case 0:
|
|
2060
|
+
return S.suspend(() =>
|
|
2061
|
+
S.Struct({
|
|
2062
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2063
|
+
device_id: S.String.pipe(T.Label()),
|
|
2064
|
+
}).pipe(
|
|
2065
|
+
T.Http({
|
|
2066
|
+
method: "POST",
|
|
2067
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}/renew-certificate",
|
|
2068
|
+
code: 200,
|
|
2069
|
+
baseUrl: "https://api.scaleway.com",
|
|
2070
|
+
}),
|
|
2071
|
+
),
|
|
2072
|
+
).annotate({ identifier: "RenewDeviceCertificateRequest" });
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
function __c28(j: number): any {
|
|
2076
|
+
switch (j) {
|
|
2077
|
+
case 0:
|
|
2078
|
+
return S.suspend(() =>
|
|
2079
|
+
S.Struct({
|
|
2080
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2081
|
+
device_id: S.String.pipe(T.Label()),
|
|
2082
|
+
certificate_pem: S.String,
|
|
2083
|
+
}).pipe(
|
|
2084
|
+
T.Http({
|
|
2085
|
+
method: "PUT",
|
|
2086
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}/certificate",
|
|
2087
|
+
code: 200,
|
|
2088
|
+
baseUrl: "https://api.scaleway.com",
|
|
2089
|
+
}),
|
|
2090
|
+
),
|
|
2091
|
+
).annotate({ identifier: "SetDeviceCertificateRequest" });
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
function __c29(j: number): any {
|
|
2095
|
+
switch (j) {
|
|
2096
|
+
case 0:
|
|
2097
|
+
return S.suspend(() =>
|
|
2098
|
+
S.Struct({
|
|
2099
|
+
host: S.optional(S.String),
|
|
2100
|
+
port: S.optional(S.Number),
|
|
2101
|
+
dbname: S.optional(S.String),
|
|
2102
|
+
username: S.optional(S.String),
|
|
2103
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2104
|
+
query: S.optional(S.String),
|
|
2105
|
+
engine: S.optional(S.String),
|
|
2106
|
+
}),
|
|
2107
|
+
).annotate({ identifier: "CreateRouteRequestDatabaseConfig" });
|
|
2108
|
+
case 1:
|
|
2109
|
+
return S.suspend(() =>
|
|
2110
|
+
S.Struct({
|
|
2111
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2112
|
+
name: S.optional(S.String),
|
|
2113
|
+
hub_id: S.optional(S.String),
|
|
2114
|
+
topic: S.optional(S.String),
|
|
2115
|
+
s3_config: S.optional(S.NullOr(__S(240, __c30, 0))),
|
|
2116
|
+
db_config: S.optional(S.NullOr(__S(232, __c29, 0))),
|
|
2117
|
+
rest_config: S.optional(S.NullOr(__S(242, __c30, 2))),
|
|
2118
|
+
}).pipe(
|
|
2119
|
+
T.Http({
|
|
2120
|
+
method: "POST",
|
|
2121
|
+
uri: "/iot/v1/regions/{region}/routes",
|
|
2122
|
+
code: 200,
|
|
2123
|
+
baseUrl: "https://api.scaleway.com",
|
|
2124
|
+
}),
|
|
2125
|
+
),
|
|
2126
|
+
).annotate({ identifier: "CreateRouteRequest" });
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
function __c30(j: number): any {
|
|
2130
|
+
switch (j) {
|
|
2131
|
+
case 0:
|
|
2132
|
+
return S.suspend(() =>
|
|
2133
|
+
S.Struct({
|
|
2134
|
+
bucket_region: S.optional(S.String),
|
|
2135
|
+
bucket_name: S.optional(S.String),
|
|
2136
|
+
object_prefix: S.optional(S.String),
|
|
2137
|
+
strategy: S.optional(S.String),
|
|
2138
|
+
}),
|
|
2139
|
+
).annotate({ identifier: "CreateRouteRequestS3Config" });
|
|
2140
|
+
case 1:
|
|
2141
|
+
return S.Record(S.String, S.String);
|
|
2142
|
+
case 2:
|
|
2143
|
+
return S.suspend(() =>
|
|
2144
|
+
S.Struct({
|
|
2145
|
+
verb: S.optional(S.String),
|
|
2146
|
+
uri: S.optional(S.String),
|
|
2147
|
+
headers: S.optional(__S(241, __c30, 1)),
|
|
2148
|
+
}),
|
|
2149
|
+
).annotate({ identifier: "CreateRouteRequestRestConfig" });
|
|
2150
|
+
case 3:
|
|
2151
|
+
return S.suspend(() =>
|
|
2152
|
+
S.Struct({
|
|
2153
|
+
engine: S.optional(S.String),
|
|
2154
|
+
host: S.String,
|
|
2155
|
+
port: S.Number,
|
|
2156
|
+
dbname: S.String,
|
|
2157
|
+
username: S.String,
|
|
2158
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
2159
|
+
query: S.optional(S.String),
|
|
2160
|
+
}),
|
|
2161
|
+
).annotate({ identifier: "RouteDatabaseConfig" });
|
|
2162
|
+
case 4:
|
|
2163
|
+
return S.suspend(() =>
|
|
2164
|
+
S.Struct({
|
|
2165
|
+
id: S.optional(S.String),
|
|
2166
|
+
name: S.optional(S.String),
|
|
2167
|
+
hub_id: S.optional(S.String),
|
|
2168
|
+
topic: S.optional(S.String),
|
|
2169
|
+
type: S.optional(S.String),
|
|
2170
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2171
|
+
s3_config: S.optional(S.NullOr(__S(240, __c30, 0))),
|
|
2172
|
+
db_config: S.optional(S.NullOr(__S(243, __c30, 3))),
|
|
2173
|
+
rest_config: S.optional(S.NullOr(__S(242, __c30, 2))),
|
|
2174
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2175
|
+
srn: S.optional(S.String),
|
|
2176
|
+
region: S.optional(S.String),
|
|
2177
|
+
}),
|
|
2178
|
+
).annotate({ identifier: "Route" });
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
function __c31(j: number): any {
|
|
2182
|
+
switch (j) {
|
|
2183
|
+
case 0:
|
|
2184
|
+
return S.suspend(() =>
|
|
2185
|
+
S.Struct({
|
|
2186
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2187
|
+
hub_id: S.String.pipe(T.Label()),
|
|
2188
|
+
ca_cert_pem: S.String,
|
|
2189
|
+
challenge_cert_pem: S.String,
|
|
2190
|
+
}).pipe(
|
|
2191
|
+
T.Http({
|
|
2192
|
+
method: "POST",
|
|
2193
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}/ca",
|
|
2194
|
+
code: 200,
|
|
2195
|
+
baseUrl: "https://api.scaleway.com",
|
|
2196
|
+
}),
|
|
2197
|
+
),
|
|
2198
|
+
).annotate({ identifier: "SetHubCARequest" });
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
function __c32(j: number): any {
|
|
2202
|
+
switch (j) {
|
|
2203
|
+
case 0:
|
|
2204
|
+
return S.suspend(() =>
|
|
2205
|
+
S.Struct({
|
|
2206
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2207
|
+
device_id: S.String.pipe(T.Label()),
|
|
2208
|
+
description: S.optional(S.NullOr(S.String)),
|
|
2209
|
+
allow_insecure: S.optional(S.NullOr(S.Boolean)),
|
|
2210
|
+
allow_multiple_connections: S.optional(S.NullOr(S.Boolean)),
|
|
2211
|
+
message_filters: S.optional(__S(10, __c1, 2)),
|
|
2212
|
+
hub_id: S.optional(S.NullOr(S.String)),
|
|
2213
|
+
}).pipe(
|
|
2214
|
+
T.Http({
|
|
2215
|
+
method: "PATCH",
|
|
2216
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}",
|
|
2217
|
+
code: 200,
|
|
2218
|
+
baseUrl: "https://api.scaleway.com",
|
|
2219
|
+
}),
|
|
2220
|
+
),
|
|
2221
|
+
).annotate({ identifier: "UpdateDeviceRequest" });
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
function __c33(j: number): any {
|
|
2225
|
+
switch (j) {
|
|
2226
|
+
case 0:
|
|
2227
|
+
return S.suspend(() =>
|
|
2228
|
+
S.Struct({
|
|
2229
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2230
|
+
hub_id: S.String.pipe(T.Label()),
|
|
2231
|
+
name: S.optional(S.NullOr(S.String)),
|
|
2232
|
+
product_plan: S.optional(S.String),
|
|
2233
|
+
disable_events: S.optional(S.NullOr(S.Boolean)),
|
|
2234
|
+
events_topic_prefix: S.optional(S.NullOr(S.String)),
|
|
2235
|
+
enable_device_auto_provisioning: S.optional(S.NullOr(S.Boolean)),
|
|
2236
|
+
twins_graphite_config: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
2237
|
+
}).pipe(
|
|
2238
|
+
T.Http({
|
|
2239
|
+
method: "PATCH",
|
|
2240
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}",
|
|
2241
|
+
code: 200,
|
|
2242
|
+
baseUrl: "https://api.scaleway.com",
|
|
2243
|
+
}),
|
|
2244
|
+
),
|
|
2245
|
+
).annotate({ identifier: "UpdateHubRequest" });
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
function __c34(j: number): any {
|
|
2249
|
+
switch (j) {
|
|
2250
|
+
case 0:
|
|
2251
|
+
return S.suspend(() =>
|
|
2252
|
+
S.Struct({
|
|
2253
|
+
bucket_region: S.optional(S.NullOr(S.String)),
|
|
2254
|
+
bucket_name: S.optional(S.NullOr(S.String)),
|
|
2255
|
+
object_prefix: S.optional(S.NullOr(S.String)),
|
|
2256
|
+
strategy: S.optional(S.String),
|
|
2257
|
+
}),
|
|
2258
|
+
).annotate({ identifier: "UpdateRouteRequestS3Config" });
|
|
2259
|
+
case 1:
|
|
2260
|
+
return S.suspend(() =>
|
|
2261
|
+
S.Struct({
|
|
2262
|
+
host: S.optional(S.NullOr(S.String)),
|
|
2263
|
+
port: S.optional(S.NullOr(S.Number)),
|
|
2264
|
+
dbname: S.optional(S.NullOr(S.String)),
|
|
2265
|
+
username: S.optional(S.NullOr(S.String)),
|
|
2266
|
+
password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2267
|
+
query: S.optional(S.NullOr(S.String)),
|
|
2268
|
+
engine: S.optional(S.String),
|
|
2269
|
+
}),
|
|
2270
|
+
).annotate({ identifier: "UpdateRouteRequestDatabaseConfig" });
|
|
2271
|
+
case 2:
|
|
2272
|
+
return S.suspend(() =>
|
|
2273
|
+
S.Struct({
|
|
2274
|
+
verb: S.optional(S.String),
|
|
2275
|
+
uri: S.optional(S.NullOr(S.String)),
|
|
2276
|
+
headers: S.optional(S.NullOr(__S(241, __c30, 1))),
|
|
2277
|
+
}),
|
|
2278
|
+
).annotate({ identifier: "UpdateRouteRequestRestConfig" });
|
|
2279
|
+
case 3:
|
|
2280
|
+
return S.suspend(() =>
|
|
2281
|
+
S.Struct({
|
|
2282
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2283
|
+
route_id: S.String.pipe(T.Label()),
|
|
2284
|
+
name: S.optional(S.NullOr(S.String)),
|
|
2285
|
+
topic: S.optional(S.NullOr(S.String)),
|
|
2286
|
+
s3_config: S.optional(S.NullOr(__S(272, __c34, 0))),
|
|
2287
|
+
db_config: S.optional(S.NullOr(__S(273, __c34, 1))),
|
|
2288
|
+
rest_config: S.optional(S.NullOr(__S(274, __c34, 2))),
|
|
2289
|
+
}).pipe(
|
|
2290
|
+
T.Http({
|
|
2291
|
+
method: "PATCH",
|
|
2292
|
+
uri: "/iot/v1/regions/{region}/routes/{route_id}",
|
|
2293
|
+
code: 200,
|
|
2294
|
+
baseUrl: "https://api.scaleway.com",
|
|
2295
|
+
}),
|
|
2296
|
+
),
|
|
2297
|
+
).annotate({ identifier: "UpdateRouteRequest" });
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
function __c35(j: number): any {
|
|
2301
|
+
switch (j) {
|
|
2302
|
+
case 0:
|
|
2303
|
+
return S.suspend(() =>
|
|
2304
|
+
S.Struct({
|
|
2305
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2306
|
+
device_id: S.String.pipe(T.Label()),
|
|
2307
|
+
}).pipe(
|
|
2308
|
+
T.Http({
|
|
2309
|
+
method: "DELETE",
|
|
2310
|
+
uri: "/iot/v1/regions/{region}/devices/{device_id}",
|
|
2311
|
+
code: 200,
|
|
2312
|
+
baseUrl: "https://api.scaleway.com",
|
|
2313
|
+
}),
|
|
2314
|
+
),
|
|
2315
|
+
).annotate({ identifier: "DeleteDeviceRequest" });
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
function __c36(j: number): any {
|
|
2319
|
+
switch (j) {
|
|
2320
|
+
case 0:
|
|
2321
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDeviceResponse" });
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
function __c37(j: number): any {
|
|
2325
|
+
switch (j) {
|
|
2326
|
+
case 0:
|
|
2327
|
+
return S.suspend(() =>
|
|
2328
|
+
S.Struct({
|
|
2329
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2330
|
+
hub_id: S.String.pipe(T.Label()),
|
|
2331
|
+
delete_devices: S.optional(S.Boolean.pipe(T.Query())),
|
|
2332
|
+
}).pipe(
|
|
2333
|
+
T.Http({
|
|
2334
|
+
method: "DELETE",
|
|
2335
|
+
uri: "/iot/v1/regions/{region}/hubs/{hub_id}",
|
|
2336
|
+
code: 200,
|
|
2337
|
+
baseUrl: "https://api.scaleway.com",
|
|
2338
|
+
}),
|
|
2339
|
+
),
|
|
2340
|
+
).annotate({ identifier: "DeleteHubRequest" });
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
function __c38(j: number): any {
|
|
2344
|
+
switch (j) {
|
|
2345
|
+
case 0:
|
|
2346
|
+
return S.suspend(() =>
|
|
2347
|
+
S.Struct({
|
|
2348
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2349
|
+
network_id: S.String.pipe(T.Label()),
|
|
2350
|
+
}).pipe(
|
|
2351
|
+
T.Http({
|
|
2352
|
+
method: "DELETE",
|
|
2353
|
+
uri: "/iot/v1/regions/{region}/networks/{network_id}",
|
|
2354
|
+
code: 200,
|
|
2355
|
+
baseUrl: "https://api.scaleway.com",
|
|
2356
|
+
}),
|
|
2357
|
+
),
|
|
2358
|
+
).annotate({ identifier: "DeleteNetworkRequest" });
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
function __c39(j: number): any {
|
|
2362
|
+
switch (j) {
|
|
2363
|
+
case 0:
|
|
2364
|
+
return S.suspend(() =>
|
|
2365
|
+
S.Struct({
|
|
2366
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2367
|
+
route_id: S.String.pipe(T.Label()),
|
|
2368
|
+
}).pipe(
|
|
2369
|
+
T.Http({
|
|
2370
|
+
method: "DELETE",
|
|
2371
|
+
uri: "/iot/v1/regions/{region}/routes/{route_id}",
|
|
2372
|
+
code: 200,
|
|
2373
|
+
baseUrl: "https://api.scaleway.com",
|
|
2374
|
+
}),
|
|
2375
|
+
),
|
|
2376
|
+
).annotate({ identifier: "DeleteRouteRequest" });
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
function __c40(j: number): any {
|
|
2380
|
+
switch (j) {
|
|
2381
|
+
case 0:
|
|
2382
|
+
return S.suspend(() =>
|
|
2383
|
+
S.Struct({
|
|
2384
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2385
|
+
twin_id: S.String.pipe(T.Label()),
|
|
2386
|
+
document_name: S.String.pipe(T.Label()),
|
|
2387
|
+
}).pipe(
|
|
2388
|
+
T.Http({
|
|
2389
|
+
method: "DELETE",
|
|
2390
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}/documents/{document_name}",
|
|
2391
|
+
code: 200,
|
|
2392
|
+
baseUrl: "https://api.scaleway.com",
|
|
2393
|
+
}),
|
|
2394
|
+
),
|
|
2395
|
+
).annotate({ identifier: "DeleteTwinDocumentRequest" });
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
function __c41(j: number): any {
|
|
2399
|
+
switch (j) {
|
|
2400
|
+
case 0:
|
|
2401
|
+
return S.suspend(() =>
|
|
2402
|
+
S.Struct({
|
|
2403
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2404
|
+
twin_id: S.String.pipe(T.Label()),
|
|
2405
|
+
}).pipe(
|
|
2406
|
+
T.Http({
|
|
2407
|
+
method: "DELETE",
|
|
2408
|
+
uri: "/iot/v1/regions/{region}/twins/{twin_id}",
|
|
2409
|
+
code: 200,
|
|
2410
|
+
baseUrl: "https://api.scaleway.com",
|
|
2411
|
+
}),
|
|
2412
|
+
),
|
|
2413
|
+
).annotate({ identifier: "DeleteTwinDocumentsRequest" });
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
2417
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
2418
|
+
return (__s[i] ??= __L.at(f, j));
|
|
2419
|
+
}
|