@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +175 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +94 -3
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
|
+
import { type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
4
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
5
|
+
export interface CancelBatchRequest {
|
|
6
|
+
project_id: string;
|
|
7
|
+
/** UUID of the batch. */
|
|
8
|
+
batch_id: string;
|
|
9
|
+
}
|
|
10
|
+
/** Type of batch object, always set to `batch`. */
|
|
11
|
+
export type BatchObject = "batch";
|
|
12
|
+
export interface BatchErrorsDataItem {
|
|
13
|
+
/** Code identifying error */
|
|
14
|
+
code?: string | undefined;
|
|
15
|
+
/** Line number in the file where error occured */
|
|
16
|
+
line?: number | undefined;
|
|
17
|
+
/** Error message */
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
/** Name of the parameter that triggered error, if applicable */
|
|
20
|
+
param?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Error details */
|
|
23
|
+
export type BatchErrorsDataList = Array<BatchErrorsDataItem>;
|
|
24
|
+
/** Error object */
|
|
25
|
+
export interface BatchErrors {
|
|
26
|
+
/** Type of batch object, always set to `list`. */
|
|
27
|
+
object?: string | undefined;
|
|
28
|
+
/** Error details */
|
|
29
|
+
data?: BatchErrorsDataList | undefined;
|
|
30
|
+
}
|
|
31
|
+
/** Number of requests by status. */
|
|
32
|
+
export interface BatchRequestCounts {
|
|
33
|
+
/** Number of requests completed successfully. */
|
|
34
|
+
completed?: number | undefined;
|
|
35
|
+
/** Number of failed requests. */
|
|
36
|
+
failed?: number | undefined;
|
|
37
|
+
/** Total number of requests. */
|
|
38
|
+
total?: number | undefined;
|
|
39
|
+
}
|
|
40
|
+
/** A detailed breakdown of the input tokens. */
|
|
41
|
+
export interface BatchUsageInputTokensDetails {
|
|
42
|
+
/** Number of tokens that were retrieved from the cache. */
|
|
43
|
+
cached_tokens?: number | undefined;
|
|
44
|
+
}
|
|
45
|
+
/** A detailed breakdown of the output tokens. */
|
|
46
|
+
export interface BatchUsageOutputTokensDetails {
|
|
47
|
+
/** Number of reasoning tokens. */
|
|
48
|
+
reasoning_tokens?: number | undefined;
|
|
49
|
+
}
|
|
50
|
+
/** Usage information generated by the requests of the batch, either in tokens or duration depending on how the model is billed. */
|
|
51
|
+
export interface BatchUsage {
|
|
52
|
+
/** Usage type for this model. Either `duration` or `tokens`. */
|
|
53
|
+
type?: string | undefined;
|
|
54
|
+
/** Audio input duration, in seconds. */
|
|
55
|
+
duration?: number | undefined;
|
|
56
|
+
/** Number of input tokens. */
|
|
57
|
+
input_tokens?: number | undefined;
|
|
58
|
+
/** A detailed breakdown of the input tokens. */
|
|
59
|
+
input_tokens_details?: BatchUsageInputTokensDetails | undefined;
|
|
60
|
+
/** Total number of tokens (input and output). */
|
|
61
|
+
total_tokens?: number | undefined;
|
|
62
|
+
/** Number of output tokens. Always set to `0` for embedding models since no token are generated (only vector coordinates). */
|
|
63
|
+
output_tokens?: number | undefined;
|
|
64
|
+
/** A detailed breakdown of the output tokens. */
|
|
65
|
+
output_tokens_details?: BatchUsageOutputTokensDetails | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface Batch {
|
|
68
|
+
/** UUID of the batch. */
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
/** Type of batch object, always set to `batch`. */
|
|
71
|
+
object?: BatchObject | undefined;
|
|
72
|
+
/** Path used to process requests in the batch. */
|
|
73
|
+
endpoint?: string | undefined;
|
|
74
|
+
/** Model used to process the batch */
|
|
75
|
+
model?: string | undefined;
|
|
76
|
+
/** Error object */
|
|
77
|
+
errors?: BatchErrors | undefined;
|
|
78
|
+
/** URL of the input file. */
|
|
79
|
+
input_file_id?: string | undefined;
|
|
80
|
+
/** Time range during which the batch should be processed. */
|
|
81
|
+
completion_window?: string | undefined;
|
|
82
|
+
/** Status of the batch. */
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
/** URL of the input file. */
|
|
85
|
+
output_file_id?: string | undefined;
|
|
86
|
+
/** URL of the input file. */
|
|
87
|
+
error_file_id?: string | undefined;
|
|
88
|
+
/** Timestamp when the batch was created (Unix format, in seconds). */
|
|
89
|
+
created_at?: number | undefined;
|
|
90
|
+
/** Timestamp when the batch processing started (Unix format, in seconds). */
|
|
91
|
+
in_progress_at?: number | undefined;
|
|
92
|
+
/** Timestamp when the batch will expire (Unix format, in seconds). */
|
|
93
|
+
expires_at?: number | undefined;
|
|
94
|
+
/** Timestamp when the batch started finalizing (Unix format, in seconds). */
|
|
95
|
+
finalizing_at?: number | undefined;
|
|
96
|
+
/** Timestamp when the batch was completed (Unix format, in seconds). */
|
|
97
|
+
completed_at?: number | undefined;
|
|
98
|
+
/** Timestamp when the batch failed (Unix format, in seconds). */
|
|
99
|
+
failed_at?: number | undefined;
|
|
100
|
+
/** Timestamp when the batch expired (Unix format, in seconds). */
|
|
101
|
+
expired_at?: number | undefined;
|
|
102
|
+
/** Timestamp when the batch started cancelling (Unix format, in seconds). */
|
|
103
|
+
cancelling_at?: number | undefined;
|
|
104
|
+
/** Timestamp when the batch was cancelled (Unix format, in seconds). */
|
|
105
|
+
cancelled_at?: number | undefined;
|
|
106
|
+
/** Number of requests by status. */
|
|
107
|
+
request_counts?: BatchRequestCounts | undefined;
|
|
108
|
+
/** Usage information generated by the requests of the batch, either in tokens or duration depending on how the model is billed. */
|
|
109
|
+
usage?: BatchUsage | undefined;
|
|
110
|
+
}
|
|
111
|
+
export interface CreateAudioTranscriptionRequest {
|
|
112
|
+
project_id: string;
|
|
113
|
+
/** Audio file object to transcribe. Currently, the only supported formats are `wav`, `mp3`, `flac`, `mpga`, `oga`, `ogg`. See [How to query audio models](https://www.scaleway.com/en/docs/generative-apis/how-to/query-audio-models/) for code snippets using `openai` Python client. */
|
|
114
|
+
file: unknown;
|
|
115
|
+
/** Unique identifier of the model, such as `whisper-large-v3`. Refer to our [supported models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) list or [/models](#path-models-list-models) endpoint for available models. */
|
|
116
|
+
model: string;
|
|
117
|
+
/** Language of the audio input, following [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format such as `en` for English. Refer to our [model catalog](https://www.scaleway.com/en/docs/managed-inference/reference-content/model-catalog/) for supported languages. **Default**: Language will be automatically detected if no value is provided. */
|
|
118
|
+
language?: string | undefined;
|
|
119
|
+
/** Additional content used to guide the model during transcription. This fields works very differently from prompts in `/chat/completions`. Refer to [How to query audio models](https://www.scaleway.com/en/docs/generative-apis/how-to/query-audio-models/) for more information. */
|
|
120
|
+
prompt?: string | undefined;
|
|
121
|
+
/** Output format structure. Currently, the only supported value is `json`. */
|
|
122
|
+
response_format?: string | null | undefined;
|
|
123
|
+
/** Defines whether the model's response can be streamed to the client using server-sent events. The response will be streamed in chunks over HTTP, where each chunk except the last contains the following content: `data: {"type": ..., "delta": ..., "logprobs":...}` The last chunk will contain `data: [DONE]`. Note that the object `data: {"type": ..., "delta": ..., "logprobs":...}` does not follow the same format as a non-stream HTTP request. See [How to query audio models using streaming](https://www.scaleway.com/en/docs/generative-apis/how-to/query-audio-models/#streaming) for examples, and [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) for reference documentation about SSE format. **Default value:** `false` */
|
|
124
|
+
stream?: boolean | null | undefined;
|
|
125
|
+
temperature?: number | null | undefined;
|
|
126
|
+
}
|
|
127
|
+
/** Usage information generated by this request, either in tokens or duration depending on how the model is billed. */
|
|
128
|
+
export interface CreateAudioTranscriptionResponseUsage {
|
|
129
|
+
/** Usage type for this model. Either `duration` or `tokens`. */
|
|
130
|
+
type?: string | undefined;
|
|
131
|
+
/** Audio input duration, in seconds. */
|
|
132
|
+
seconds?: number | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface CreateAudioTranscriptionResponse {
|
|
135
|
+
/** Transcribed text. */
|
|
136
|
+
text?: number | undefined;
|
|
137
|
+
/** Usage information generated by this request, either in tokens or duration depending on how the model is billed. */
|
|
138
|
+
usage?: CreateAudioTranscriptionResponseUsage | undefined;
|
|
139
|
+
}
|
|
140
|
+
export interface CreateBatchRequest {
|
|
141
|
+
project_id: string;
|
|
142
|
+
/** Time range during which the batch should be processed. Currently only `24h` is supported. */
|
|
143
|
+
completion_window: unknown;
|
|
144
|
+
/** Path to use to process requests in the batch. Currently `/v1/chat/completions`, `/v1/responses`, `/v1/embeddings` and `/v1/audio/transcriptions` are supported. */
|
|
145
|
+
endpoint: unknown;
|
|
146
|
+
/** URL of the file in Scaleway Object Storage. File should contain all request to process in [JSONL format](https://jsonlines.org/). Results will be stored within the same bucket and folder, and named `{filename}-output.jsonl` and `{filename}-error.jsonl`. See [How to use batch processing](https://www.scaleway.com/en/docs/generative-apis/how-to/use-batch-processing/) for code snippets using `openai` Python client. */
|
|
147
|
+
input_file_id: unknown;
|
|
148
|
+
/** Expiration rules for the output and error files generated by the batch. */
|
|
149
|
+
output_expires_after?: unknown | undefined;
|
|
150
|
+
}
|
|
151
|
+
/** Role of the message's author. */
|
|
152
|
+
export type ChatCompletionRequestMessageRole = "system" | "user" | "assistant" | "tool";
|
|
153
|
+
/** Type of content. `image_url` and `input_audio` are only supported with `user` role. */
|
|
154
|
+
export type ChatCompletionRequestMessageContentPartType = "text" | "image_url" | "input_audio";
|
|
155
|
+
export interface ChatCompletionRequestMessageContentPartImageUrl {
|
|
156
|
+
/** URL of a remote image or encoding in base64 of a local image. Required if `type` is set to `image_url`. See [How to query vision models](https://www.scaleway.com/en/docs/generative-apis/how-to/query-vision-models/) for code snippets using `openai` Python client or how to encode local images. */
|
|
157
|
+
url?: string | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface ChatCompletionRequestMessageContentPartInputAudio {
|
|
160
|
+
/** Encoding in base64 of a local audio file. Required if `type` is set to `input_audio`. See [How to query audio models](https://www.scaleway.com/en/docs/generative-apis/how-to/query-audio-models/) for code snippets using `openai` Python client or how to encode local audio files. */
|
|
161
|
+
data?: string | undefined;
|
|
162
|
+
/** Format of the encoded audio file. Currently, the only supported values are `wav` and `mp3`. */
|
|
163
|
+
format?: string | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface ChatCompletionRequestMessageContentPart {
|
|
166
|
+
/** Type of content. `image_url` and `input_audio` are only supported with `user` role. */
|
|
167
|
+
type: ChatCompletionRequestMessageContentPartType | (string & {});
|
|
168
|
+
/** Text content. Required if `type` is set to `text`. */
|
|
169
|
+
text?: string | undefined;
|
|
170
|
+
image_url?: ChatCompletionRequestMessageContentPartImageUrl | undefined;
|
|
171
|
+
input_audio?: ChatCompletionRequestMessageContentPartInputAudio | undefined;
|
|
172
|
+
}
|
|
173
|
+
/** Content of a message as array of content parts. Required for all roles, except `assistant` if `tool_calls` is specified instead. */
|
|
174
|
+
export type ChatCompletionRequestMessageContentList = Array<ChatCompletionRequestMessageContentPart>;
|
|
175
|
+
/** Type of tool call, always set to `function`. */
|
|
176
|
+
export type ChatCompletionMessageToolCallType = "function";
|
|
177
|
+
/** Function to call, identified by the model. */
|
|
178
|
+
export interface ChatCompletionMessageToolCallFunction {
|
|
179
|
+
/** Name of the function to call. */
|
|
180
|
+
name?: string | undefined;
|
|
181
|
+
/** Arguments to call the function with, as generated by the model in JSON format. Note that model may not always generate valid JSON or parameters. Validate the arguments in your code before calling a function. */
|
|
182
|
+
arguments?: string | undefined;
|
|
183
|
+
}
|
|
184
|
+
export interface ChatCompletionMessageToolCall {
|
|
185
|
+
/** UUID of the tool call. */
|
|
186
|
+
id?: string | undefined;
|
|
187
|
+
/** Type of tool call, always set to `function`. */
|
|
188
|
+
type?: ChatCompletionMessageToolCallType | (string & {}) | undefined;
|
|
189
|
+
/** Function to call, identified by the model. */
|
|
190
|
+
function?: ChatCompletionMessageToolCallFunction | undefined;
|
|
191
|
+
}
|
|
192
|
+
/** List of tool calls required by the model. Can only be used with `assistant` if `content` is not specified. */
|
|
193
|
+
export type ChatCompletionRequestMessageToolCallsList = Array<ChatCompletionMessageToolCall>;
|
|
194
|
+
export interface ChatCompletionRequestMessage {
|
|
195
|
+
/** Role of the message's author. */
|
|
196
|
+
role: ChatCompletionRequestMessageRole | (string & {});
|
|
197
|
+
/** Content of a message as string. Required for all roles, except `assistant` if `tool_calls` is specified instead. */
|
|
198
|
+
content?: string | undefined;
|
|
199
|
+
/** Content of a message as array of content parts. Required for all roles, except `assistant` if `tool_calls` is specified instead. */
|
|
200
|
+
content_?: ChatCompletionRequestMessageContentList | undefined;
|
|
201
|
+
/** List of tool calls required by the model. Can only be used with `assistant` if `content` is not specified. */
|
|
202
|
+
tool_calls?: ChatCompletionRequestMessageToolCallsList | undefined;
|
|
203
|
+
/** UUID of the tool call. Must only be used with `tool` role. */
|
|
204
|
+
tool_call_id?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
/** Array of messages representing the conversation history. */
|
|
207
|
+
export type CreateChatCompletionRequestMessagesList = Array<ChatCompletionRequestMessage>;
|
|
208
|
+
/** List of token IDs with associated bias integer values ranging from `-100` to `100`. This parameter adjusts the probability of these tokens being generated during the model's output. A JSON object must be provided in the following format: `{"354": 80,"143": -50}` where `354` and `143` are token IDs from the tokenizer used with this model. Positive values increase the likelihood of a token being generated, while negative values reduce it. Model `qwen3.5-397b-a17b` does not support this field. */
|
|
209
|
+
export type CreateChatCompletionRequestLogitBiasMap = {
|
|
210
|
+
[key: string]: unknown | undefined;
|
|
211
|
+
};
|
|
212
|
+
/** Reasoning effort level to generate the response. For `qwen3.5-397b-a17b` and `qwen3.6-35b-a3b` model: - `low` and `high` values are similar to `medium` For `mistral-medium-3.5-128b` model: - `low` and `medium` values are not supported For `gpt-oss-120b` model: - `none` value is not supported */
|
|
213
|
+
export type CreateChatCompletionRequestReasoningEffort = "none" | "low" | "medium" | "high";
|
|
214
|
+
/** Type of response object. */
|
|
215
|
+
export type ResponseFormatChatCompletionType = "text" | "json_schema" | "json_object";
|
|
216
|
+
/** Output format specification. Using `{ "type": "json_schema", "json_schema": {...} }` enables the model to output only a valid JSON following the provided schema specification. Deprecated. Using `{ "type": "json_object" }` enables `JSON mode` that should not be used anymore. See [How to use structured outputs](https://www.scaleway.com/en/docs/generative-apis/how-to/use-structured-outputs/) for code snippets using `openai` Python client and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. */
|
|
217
|
+
export interface ResponseFormatChatCompletion {
|
|
218
|
+
/** Type of response object. */
|
|
219
|
+
type?: ResponseFormatChatCompletionType | (string & {}) | undefined;
|
|
220
|
+
/** Schema the response object should follow in `JSON` format. This field can only be used if `type` is set to `json_schema`. */
|
|
221
|
+
json_schema?: unknown | undefined;
|
|
222
|
+
}
|
|
223
|
+
/** An object containing parameters that modify the behavior of stream responses. Can only be used if `stream` is set to `true`. */
|
|
224
|
+
export interface ChatCompletionStreamOptions {
|
|
225
|
+
/** Defines whether a usage field is included in a stream. If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the complete stream. */
|
|
226
|
+
include_usage?: boolean | undefined;
|
|
227
|
+
}
|
|
228
|
+
/** Type of tool object, always set to `function`. */
|
|
229
|
+
export type ChatCompletionToolType = "function";
|
|
230
|
+
/** Parameters of the function, described as a JSON schema object. See [How to use function calling](https://www.scaleway.com/en/docs/generative-apis/how-to/use-function-calling/) for examples, and the [JSON schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list. */
|
|
231
|
+
export type FunctionParameters = {
|
|
232
|
+
[key: string]: unknown | undefined;
|
|
233
|
+
};
|
|
234
|
+
export interface FunctionObject {
|
|
235
|
+
/** Description of the function. This helps the model choose the right function when needed. */
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
/** Name of the function to be called. Must contain only `a-z`, `A-Z`, `0-9`, underscores and dashes, with a maximum length of `64` characters. */
|
|
238
|
+
name: string;
|
|
239
|
+
parameters?: FunctionParameters | undefined;
|
|
240
|
+
/** Defines whether to enforce strict schema adherence when generating a function call. If set to `true`, the model will follow the exact schema defined in the `parameters` field. Currently, even if set `true` this parameter will be ignored and act as if set to `false`. We recommend you check output schema before calling any functions or tools. **Default:** `false` */
|
|
241
|
+
strict?: boolean | null | undefined;
|
|
242
|
+
}
|
|
243
|
+
export interface ChatCompletionTool {
|
|
244
|
+
/** Type of tool object, always set to `function`. */
|
|
245
|
+
type: ChatCompletionToolType | (string & {});
|
|
246
|
+
function: FunctionObject;
|
|
247
|
+
}
|
|
248
|
+
/** List of tools the model can call, such as functions. A maximum of `128` tools can be provided. See [How to use function calling](https://www.scaleway.com/en/docs/generative-apis/how-to/use-function-calling/) for code snippets using `openai` Python client. */
|
|
249
|
+
export type CreateChatCompletionRequestToolsList = Array<ChatCompletionTool>;
|
|
250
|
+
/** Defines whether a model can call tools, and if so, and which ones. `none`: model will not call any tools, and only generate a message. `auto`: model can choose either to generate a message, or to call one or multiple tools. `required`: model must call one or multiple tools. Default: `none` when no tools are present, otherwise `auto`. An object can also be provided to specify a tool that the model must call. Object format must be: `{"type": "function", "function": {"name": "function_name_as_provided_in_tools"}}` */
|
|
251
|
+
export type ChatCompletionToolChoiceOption = "none" | "auto" | "required";
|
|
252
|
+
export interface CreateChatCompletionRequest {
|
|
253
|
+
project_id: string;
|
|
254
|
+
/** Unique identifier of the model, such as `llama-3.3-70b-instruct` or `mistral-small-3.2-24b-instruct-2506`. Refer to our [supported models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) list or [/models](#path-models-list-models) endpoint for available models. */
|
|
255
|
+
model: string;
|
|
256
|
+
/** Array of messages representing the conversation history. */
|
|
257
|
+
messages: CreateChatCompletionRequestMessagesList;
|
|
258
|
+
max_completion_tokens?: number | null | undefined;
|
|
259
|
+
/** Use `max_completion_tokens` instead. Maximum number of total tokens that can be generated for a completion (input and output). */
|
|
260
|
+
max_tokens?: number | null | undefined;
|
|
261
|
+
/** Value which influences the likelihood of generating tokens based on their frequency in the existing text. When set to a positive value, it reduces the probability of repeating tokens that have already appeared. */
|
|
262
|
+
frequency_penalty?: number | null | undefined;
|
|
263
|
+
/** List of token IDs with associated bias integer values ranging from `-100` to `100`. This parameter adjusts the probability of these tokens being generated during the model's output. A JSON object must be provided in the following format: `{"354": 80,"143": -50}` where `354` and `143` are token IDs from the tokenizer used with this model. Positive values increase the likelihood of a token being generated, while negative values reduce it. Model `qwen3.5-397b-a17b` does not support this field. */
|
|
264
|
+
logit_bias?: CreateChatCompletionRequestLogitBiasMap | null | undefined;
|
|
265
|
+
/** Defines whether to return log probabilities of each output token. This allows you to see the likelihood of each token being generated. */
|
|
266
|
+
logprobs?: boolean | null | undefined;
|
|
267
|
+
/** Number of chat completion choices to generate for a given input. The value of `n` multiplies the number of generated tokens, resulting in `n` separate responses for each input. */
|
|
268
|
+
n?: number | null | undefined;
|
|
269
|
+
parallel_tool_calls?: boolean | undefined;
|
|
270
|
+
/** Value which influences the probability of generating tokens that have already appeared in the text. Positive values reduce the likelihood of repeating a token, regardless of how many times it has already appeared. */
|
|
271
|
+
presence_penalty?: number | null | undefined;
|
|
272
|
+
/** Reasoning effort level to generate the response. For `qwen3.5-397b-a17b` and `qwen3.6-35b-a3b` model: - `low` and `high` values are similar to `medium` For `mistral-medium-3.5-128b` model: - `low` and `medium` values are not supported For `gpt-oss-120b` model: - `none` value is not supported */
|
|
273
|
+
reasoning_effort?: CreateChatCompletionRequestReasoningEffort | (string & {}) | undefined;
|
|
274
|
+
response_format?: ResponseFormatChatCompletion | undefined;
|
|
275
|
+
/** Value which controls the randomness of the output to ensure determinism. When using the same seed value along with identical input and parameters, you should receive the same model response each time. This holds true even when temperature is set above 0. Note that fully deterministic output is not guaranteed over long periods of time (such as several months), as the inference model may be updated and optimized. */
|
|
276
|
+
seed?: number | null | undefined;
|
|
277
|
+
stop?: string | null | undefined;
|
|
278
|
+
/** Defines whether the model's response can be streamed to the client using server-sent events. The response will be streamed in chunks over HTTP, where each chunk except the last contains the following content: `data: {"id": ..., "model": ..., "choices":...}` The last chunk will contain `data: [DONE]`. Note that the object `{"id": ..., "model": ..., "choices":...}` follows the same format as a non-stream HTTP request. See [How to query language models using streaming](https://www.scaleway.com/en/docs/generative-apis/how-to/query-language-models/#streaming) for examples, and [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) for reference documentation about SSE format. **Default value:** `false` */
|
|
279
|
+
stream?: boolean | null | undefined;
|
|
280
|
+
stream_options?: ChatCompletionStreamOptions | null | undefined;
|
|
281
|
+
temperature?: number | null | undefined;
|
|
282
|
+
/** List of tools the model can call, such as functions. A maximum of `128` tools can be provided. See [How to use function calling](https://www.scaleway.com/en/docs/generative-apis/how-to/use-function-calling/) for code snippets using `openai` Python client. */
|
|
283
|
+
tools?: CreateChatCompletionRequestToolsList | undefined;
|
|
284
|
+
tool_choice?: ChatCompletionToolChoiceOption | (string & {}) | undefined;
|
|
285
|
+
/** Number of most likely tokens to return for each token generated, along with their generation log probability. Value must be between `0` and `20`. `logprobs` must be set to `true` to use this parameter. */
|
|
286
|
+
top_logprobs?: number | null | undefined;
|
|
287
|
+
top_p?: number | null | undefined;
|
|
288
|
+
}
|
|
289
|
+
/** Type of response object, always set to `chat.completion`. */
|
|
290
|
+
export type CreateChatCompletionResponseObject = "chat.completion";
|
|
291
|
+
/** Role of the message's author, always set to `assistant` in the response. */
|
|
292
|
+
export type ChatCompletionResponseMessageRole = "assistant";
|
|
293
|
+
/** List of tool calls required by the model, such as function calls. */
|
|
294
|
+
export type ChatCompletionMessageToolCalls = Array<ChatCompletionMessageToolCall>;
|
|
295
|
+
/** Message generated by the model. */
|
|
296
|
+
export interface ChatCompletionResponseMessage {
|
|
297
|
+
/** Role of the message's author, always set to `assistant` in the response. */
|
|
298
|
+
role?: ChatCompletionResponseMessageRole | undefined;
|
|
299
|
+
/** Content of the message. */
|
|
300
|
+
content?: string | undefined;
|
|
301
|
+
/** Reasoning content generated for this message. */
|
|
302
|
+
reasoning_content?: string | undefined;
|
|
303
|
+
tool_calls?: ChatCompletionMessageToolCalls | undefined;
|
|
304
|
+
}
|
|
305
|
+
/** List of integers representing the UTF-8 bytes (in decimal format) representation of a token. Since some characters may be represented by multiple tokens, this representation can be combined to represent the corresponding character in UTF-8. */
|
|
306
|
+
export type ChatCompletionTokenLogprobBytesList = Array<number>;
|
|
307
|
+
/** List of integers representing the UTF-8 bytes (in decimal format) representation of a token. Since some characters may be represented by multiple tokens, this representation can be combined to represent the corresponding character in UTF-8. */
|
|
308
|
+
export type ChatCompletionTokenLogprobTopLogprobsItemBytesList = Array<number>;
|
|
309
|
+
export interface ChatCompletionTokenLogprobTopLogprobsItem {
|
|
310
|
+
/** A token among the most next likely ones. */
|
|
311
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
312
|
+
/** Log probability of generating this token, if it is among the top 20 most likely tokens. Otherwise, the value `-9999.0` will be used to mean that the token is very unlikely. */
|
|
313
|
+
logprob?: number | undefined;
|
|
314
|
+
/** List of integers representing the UTF-8 bytes (in decimal format) representation of a token. Since some characters may be represented by multiple tokens, this representation can be combined to represent the corresponding character in UTF-8. */
|
|
315
|
+
bytes?: ChatCompletionTokenLogprobTopLogprobsItemBytesList | null | undefined;
|
|
316
|
+
}
|
|
317
|
+
/** List of most probable next tokens and their log probability. */
|
|
318
|
+
export type ChatCompletionTokenLogprobTopLogprobsList = Array<ChatCompletionTokenLogprobTopLogprobsItem>;
|
|
319
|
+
export interface ChatCompletionTokenLogprob {
|
|
320
|
+
/** Token generated. */
|
|
321
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
322
|
+
/** Log probability of generating this token, if it is among the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to mean that the token is very unlikely. */
|
|
323
|
+
logprob?: number | undefined;
|
|
324
|
+
/** List of integers representing the UTF-8 bytes (in decimal format) representation of a token. Since some characters may be represented by multiple tokens, this representation can be combined to represent the corresponding character in UTF-8. */
|
|
325
|
+
bytes?: ChatCompletionTokenLogprobBytesList | null | undefined;
|
|
326
|
+
/** List of most probable next tokens and their log probability. */
|
|
327
|
+
top_logprobs?: ChatCompletionTokenLogprobTopLogprobsList | undefined;
|
|
328
|
+
}
|
|
329
|
+
/** List of content tokens and their log probability information. */
|
|
330
|
+
export type ChatCompletionResponseChoiceLogprobsContentList = Array<ChatCompletionTokenLogprob>;
|
|
331
|
+
/** List of refusal tokens and their log probability information. */
|
|
332
|
+
export type ChatCompletionResponseChoiceLogprobsRefusalList = Array<ChatCompletionTokenLogprob>;
|
|
333
|
+
/** Object containing log probability information for each token in a generated response. */
|
|
334
|
+
export interface ChatCompletionResponseChoiceLogprobs {
|
|
335
|
+
/** List of content tokens and their log probability information. */
|
|
336
|
+
content?: ChatCompletionResponseChoiceLogprobsContentList | null | undefined;
|
|
337
|
+
/** List of refusal tokens and their log probability information. */
|
|
338
|
+
refusal?: ChatCompletionResponseChoiceLogprobsRefusalList | null | undefined;
|
|
339
|
+
}
|
|
340
|
+
/** Reason the model stopped generating tokens. `stop`: model successfully reached the end of its answer, or a provided stop sequence `length`: maximum number of output tokens was reached, blocking further generation `tool_calls`: model needed to call a tool */
|
|
341
|
+
export type ChatCompletionResponseChoiceFinishReason = "stop" | "length" | "tool_calls";
|
|
342
|
+
export interface ChatCompletionResponseChoice {
|
|
343
|
+
/** Index of the choice in the list of choices. */
|
|
344
|
+
index?: number | undefined;
|
|
345
|
+
message?: ChatCompletionResponseMessage | undefined;
|
|
346
|
+
/** Object containing log probability information for each token in a generated response. */
|
|
347
|
+
logprobs?: ChatCompletionResponseChoiceLogprobs | null | undefined;
|
|
348
|
+
/** Reason the model stopped generating tokens. `stop`: model successfully reached the end of its answer, or a provided stop sequence `length`: maximum number of output tokens was reached, blocking further generation `tool_calls`: model needed to call a tool */
|
|
349
|
+
finish_reason?: ChatCompletionResponseChoiceFinishReason | undefined;
|
|
350
|
+
}
|
|
351
|
+
/** List of chat completion variations. Defaults to only `1` choice, but can be increased by setting a value for `n` in the request. */
|
|
352
|
+
export type CreateChatCompletionResponseChoicesList = Array<ChatCompletionResponseChoice>;
|
|
353
|
+
/** Breakdown of output tokens by type. */
|
|
354
|
+
export interface ChatCompletionUsageCompletionTokensDetails {
|
|
355
|
+
/** Number of output tokens used for reasoning. */
|
|
356
|
+
reasoning_tokens?: number | undefined;
|
|
357
|
+
}
|
|
358
|
+
/** Breakdown of input tokens by type. */
|
|
359
|
+
export interface ChatCompletionUsagePromptTokensDetails {
|
|
360
|
+
/** Number of audio input tokens. */
|
|
361
|
+
audio_tokens?: number | undefined;
|
|
362
|
+
/** Number of cached input tokens. */
|
|
363
|
+
cached_tokens?: number | undefined;
|
|
364
|
+
}
|
|
365
|
+
export interface ChatCompletionUsage {
|
|
366
|
+
/** Number of input tokens. */
|
|
367
|
+
prompt_tokens?: number | undefined;
|
|
368
|
+
/** Total number of tokens (input and output). */
|
|
369
|
+
total_tokens?: number | undefined;
|
|
370
|
+
/** Number of output tokens. */
|
|
371
|
+
completion_tokens?: number | undefined;
|
|
372
|
+
/** Breakdown of output tokens by type. */
|
|
373
|
+
completion_tokens_details?: ChatCompletionUsageCompletionTokensDetails | null | undefined;
|
|
374
|
+
/** Breakdown of input tokens by type. */
|
|
375
|
+
prompt_tokens_details?: ChatCompletionUsagePromptTokensDetails | null | undefined;
|
|
376
|
+
}
|
|
377
|
+
export interface CreateChatCompletionResponse {
|
|
378
|
+
/** UUID of the response. */
|
|
379
|
+
id?: string | undefined;
|
|
380
|
+
/** Type of response object, always set to `chat.completion`. */
|
|
381
|
+
object?: CreateChatCompletionResponseObject | undefined;
|
|
382
|
+
/** Timestamp when the response was generated (Unix format, in seconds). */
|
|
383
|
+
created?: number | undefined;
|
|
384
|
+
/** Unique identifier of the model. */
|
|
385
|
+
model?: string | undefined;
|
|
386
|
+
/** List of chat completion variations. Defaults to only `1` choice, but can be increased by setting a value for `n` in the request. */
|
|
387
|
+
choices?: CreateChatCompletionResponseChoicesList | undefined;
|
|
388
|
+
usage?: ChatCompletionUsage | undefined;
|
|
389
|
+
}
|
|
390
|
+
/** Format of the embedding representation. */
|
|
391
|
+
export type CreateEmbeddingRequestEncodingFormat = "float" | "base64";
|
|
392
|
+
export interface CreateEmbeddingRequest {
|
|
393
|
+
project_id: string;
|
|
394
|
+
/** String or Array of strings to represent as embedding vector. Maximum array items: `2048` */
|
|
395
|
+
input: string;
|
|
396
|
+
/** Unique identifier of the model, such as `bge-multilingual-gemma2`. Refer to our [supported models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) list or [/models](#path-models-list-models) endpoint for available models. */
|
|
397
|
+
model: string;
|
|
398
|
+
/** Format of the embedding representation. */
|
|
399
|
+
encoding_format?: CreateEmbeddingRequestEncodingFormat | (string & {}) | undefined;
|
|
400
|
+
/** Number of `dimensions` to use for the embedding vector representation. The [maximum dimensions of a model](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/#embedding-models) is a supported value for all embeddings models. Lower values are only accepted for models supporting [matryoshka embeddings](https://huggingface.co/blog/matryoshka). */
|
|
401
|
+
dimensions?: number | undefined;
|
|
402
|
+
}
|
|
403
|
+
/** Type of response object, always set to `list`. */
|
|
404
|
+
export type CreateEmbeddingResponseObject = "list";
|
|
405
|
+
/** Type of the response object, always set to `embedding`. */
|
|
406
|
+
export type EmbeddingObject = "embedding";
|
|
407
|
+
/** Embedding vector, represented as a list of floating point values. The length of a vector is equal to the number of dimensions of the model. */
|
|
408
|
+
export type EmbeddingEmbeddingList = Array<number>;
|
|
409
|
+
export interface Embedding {
|
|
410
|
+
/** Index of the embedding in the list of embeddings. */
|
|
411
|
+
index?: number | undefined;
|
|
412
|
+
/** Type of the response object, always set to `embedding`. */
|
|
413
|
+
object?: EmbeddingObject | undefined;
|
|
414
|
+
/** Embedding vector, represented as a list of floating point values. The length of a vector is equal to the number of dimensions of the model. */
|
|
415
|
+
embedding?: EmbeddingEmbeddingList | undefined;
|
|
416
|
+
}
|
|
417
|
+
/** List of embeddings. */
|
|
418
|
+
export type CreateEmbeddingResponseDataList = Array<Embedding>;
|
|
419
|
+
/** Usage information generated by this request. */
|
|
420
|
+
export interface CreateEmbeddingResponseUsage {
|
|
421
|
+
/** Number of input tokens. */
|
|
422
|
+
prompt_tokens?: number | undefined;
|
|
423
|
+
/** Total number of tokens (input and output). */
|
|
424
|
+
total_tokens?: number | undefined;
|
|
425
|
+
/** Number of output tokens. Always set to `0` for embedding models since no token are generated (only vectors coordinates). */
|
|
426
|
+
completion_tokens?: number | undefined;
|
|
427
|
+
}
|
|
428
|
+
export interface CreateEmbeddingResponse {
|
|
429
|
+
/** UUID of the response. */
|
|
430
|
+
id?: number | undefined;
|
|
431
|
+
/** Type of response object, always set to `list`. */
|
|
432
|
+
object?: CreateEmbeddingResponseObject | undefined;
|
|
433
|
+
/** Timestamp when the response was generated (Unix format, in seconds). */
|
|
434
|
+
created?: number | undefined;
|
|
435
|
+
/** Unique identifier of the model. */
|
|
436
|
+
model?: string | undefined;
|
|
437
|
+
/** List of embeddings. */
|
|
438
|
+
data?: CreateEmbeddingResponseDataList | undefined;
|
|
439
|
+
/** Usage information generated by this request. */
|
|
440
|
+
usage?: CreateEmbeddingResponseUsage | undefined;
|
|
441
|
+
}
|
|
442
|
+
/** Array of document contents in string format. Maximum array items: `1000` */
|
|
443
|
+
export type CreateRerankRequestDocumentsList = Array<string>;
|
|
444
|
+
export interface CreateRerankRequest {
|
|
445
|
+
project_id: string;
|
|
446
|
+
/** Query requiring relevant documents to provide a better answer. */
|
|
447
|
+
query: string;
|
|
448
|
+
/** Array of document contents in string format. Maximum array items: `1000` */
|
|
449
|
+
documents: CreateRerankRequestDocumentsList;
|
|
450
|
+
/** Unique identifier of the model, such as `qwen3-embedding-8b`. Refer to our [supported models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) list or [/models](#path-models-list-models) endpoint for available models. */
|
|
451
|
+
model: string;
|
|
452
|
+
/** Number of most relevant documents to retrieve. */
|
|
453
|
+
top_n?: number | undefined;
|
|
454
|
+
}
|
|
455
|
+
/** Document sent in the request. */
|
|
456
|
+
export interface RankingDocument {
|
|
457
|
+
/** Content of the document. */
|
|
458
|
+
text?: string | undefined;
|
|
459
|
+
}
|
|
460
|
+
export interface Ranking {
|
|
461
|
+
/** Index of the document in the initial request. */
|
|
462
|
+
index?: number | undefined;
|
|
463
|
+
/** Document's relevance to answering the query. */
|
|
464
|
+
relevance_score?: number | undefined;
|
|
465
|
+
/** Document sent in the request. */
|
|
466
|
+
document?: RankingDocument | undefined;
|
|
467
|
+
}
|
|
468
|
+
/** List of documents sorted by relevance. */
|
|
469
|
+
export type CreateRerankResponseResultsList = Array<Ranking>;
|
|
470
|
+
/** Usage information generated by this request. */
|
|
471
|
+
export interface CreateRerankResponseUsage {
|
|
472
|
+
/** Total number of tokens (reranking models only use input tokens). */
|
|
473
|
+
total_tokens?: number | undefined;
|
|
474
|
+
}
|
|
475
|
+
export interface CreateRerankResponse {
|
|
476
|
+
/** UUID of the response. */
|
|
477
|
+
id?: number | undefined;
|
|
478
|
+
/** Unique identifier of the model. */
|
|
479
|
+
model?: string | undefined;
|
|
480
|
+
/** List of documents sorted by relevance. */
|
|
481
|
+
results?: CreateRerankResponseResultsList | undefined;
|
|
482
|
+
/** Usage information generated by this request. */
|
|
483
|
+
usage?: CreateRerankResponseUsage | undefined;
|
|
484
|
+
}
|
|
485
|
+
/** Role providing the content input. */
|
|
486
|
+
export type ResponseAPIInputListRole = "system" | "developer" | "user" | "assistant";
|
|
487
|
+
/** Type of content. (Required). */
|
|
488
|
+
export type ResponseAPIInputContentPartType = "input_text" | "input_image" | "input_file";
|
|
489
|
+
/** Detail level of the image provided to the model. */
|
|
490
|
+
export type ResponseAPIInputContentPartDetail = "high" | "low" | "auto";
|
|
491
|
+
export interface ResponseAPIInputContentPart {
|
|
492
|
+
/** Type of content. (Required). */
|
|
493
|
+
type: ResponseAPIInputContentPartType | (string & {});
|
|
494
|
+
/** Text content. */
|
|
495
|
+
text?: string | undefined;
|
|
496
|
+
/** Detail level of the image provided to the model. */
|
|
497
|
+
detail?: ResponseAPIInputContentPartDetail | (string & {}) | undefined;
|
|
498
|
+
/** URL of a remote image or encoding in base64 of a local image. See [How to query vision models](https://www.scaleway.com/en/docs/generative-apis/how-to/query-vision-models/) for code snippets using the `openai` Python client, and guidance for encoding local images. */
|
|
499
|
+
image_url?: string | undefined;
|
|
500
|
+
/** Content of a file. */
|
|
501
|
+
file_data?: string | undefined;
|
|
502
|
+
/** URL of a remote file. */
|
|
503
|
+
file_url?: string | undefined;
|
|
504
|
+
}
|
|
505
|
+
/** List of input contents of different `type`, each compatible with different fields: `input_text`: Requires `text` field. `input_image`: Requires `detail` and `image_url` fields. `input_file`: Requires `file_data` or `file_url` field. Optionally, `filename` can be provided. */
|
|
506
|
+
export type ResponseAPIInputListContentList = Array<ResponseAPIInputContentPart>;
|
|
507
|
+
/** Status of the response. */
|
|
508
|
+
export type ResponseAPIInputListStatus = "in_progress" | "completed" | "incomplete";
|
|
509
|
+
export interface ResponseAPIInputList {
|
|
510
|
+
/** Role providing the content input. */
|
|
511
|
+
role: ResponseAPIInputListRole | (string & {});
|
|
512
|
+
/** List of input contents of different `type`, each compatible with different fields: `input_text`: Requires `text` field. `input_image`: Requires `detail` and `image_url` fields. `input_file`: Requires `file_data` or `file_url` field. Optionally, `filename` can be provided. */
|
|
513
|
+
content_?: ResponseAPIInputListContentList | undefined;
|
|
514
|
+
/** Status of the response. */
|
|
515
|
+
status?: ResponseAPIInputListStatus | (string & {}) | undefined;
|
|
516
|
+
/** Type of the content input. Always set to `message`. */
|
|
517
|
+
type?: string | undefined;
|
|
518
|
+
}
|
|
519
|
+
/** String or list of inputs to provide to the model to generate a response. Use an array of inputs to provide multiple strings and/or other content types. */
|
|
520
|
+
export type CreateResponseRequestInputList = Array<ResponseAPIInputList>;
|
|
521
|
+
/** Reasoning effort level to generate the response. `minimal` is currently not supported. */
|
|
522
|
+
export type CreateResponseRequestReasoningEffort = "low" | "medium" | "high";
|
|
523
|
+
/** Configuration parameters for reasoning models. */
|
|
524
|
+
export interface CreateResponseRequestReasoning {
|
|
525
|
+
/** Reasoning effort level to generate the response. `minimal` is currently not supported. */
|
|
526
|
+
effort?: CreateResponseRequestReasoningEffort | (string & {}) | undefined;
|
|
527
|
+
}
|
|
528
|
+
/** Type of response object. The properties `name`, `schema`, `description` and `strict` can only be used if `type` is set to `json_schema`. */
|
|
529
|
+
export type ResponseFormatResponseAPIType = "text" | "json_schema" | "json_object";
|
|
530
|
+
/** Output format specification. Using `{ "type": "text"}` ensures the model enables output text (default behavior). Using `{ "type": "json_schema", "name": ..., "schema": {...}, "description": ...,"strict": true}` enables the model to output only valid JSON following the provided schema specification. Deprecated. Using `{ "type": "json_object" }` enables `JSON mode`, and should no longer be used. See [How to use structured outputs](https://www.scaleway.com/en/docs/generative-apis/how-to/use-structured-outputs/) for code snippets using the `openai` Python client, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. */
|
|
531
|
+
export interface ResponseFormatResponseAPI {
|
|
532
|
+
/** Type of response object. The properties `name`, `schema`, `description` and `strict` can only be used if `type` is set to `json_schema`. */
|
|
533
|
+
type: ResponseFormatResponseAPIType | (string & {});
|
|
534
|
+
/** Name of the response format. Must only contain alphanumeric characters, underscores and dashes. */
|
|
535
|
+
name: string;
|
|
536
|
+
/** Description of the response format. This helps the model generate a response that follows the desired structure. */
|
|
537
|
+
description?: string | undefined;
|
|
538
|
+
/** Schema the response object should follow in `JSON` format. This field can only be used if `type` is set to `json_schema`. [Learn more](https://www.scaleway.com/en/docs/generative-apis/how-to/use-structured-outputs/) */
|
|
539
|
+
schema: unknown;
|
|
540
|
+
/** Defines whether to enforce strict schema adherence when generating structured output. Currently, only `true` is supported. **Default:** `true` */
|
|
541
|
+
strict?: boolean | null | undefined;
|
|
542
|
+
}
|
|
543
|
+
/** Configuration of the response format, either plain text or JSON structured data. */
|
|
544
|
+
export interface CreateResponseRequestText {
|
|
545
|
+
format?: ResponseFormatResponseAPI | undefined;
|
|
546
|
+
}
|
|
547
|
+
/** Type of tool object, always set to `function`. */
|
|
548
|
+
export type ResponseAPIFunctionObjectType = "function";
|
|
549
|
+
export interface ResponseAPIFunctionObject {
|
|
550
|
+
/** Type of tool object, always set to `function`. */
|
|
551
|
+
type: ResponseAPIFunctionObjectType | (string & {});
|
|
552
|
+
/** Name of the function to be called. Must contain only `a-z`, `A-Z`, `0-9`, underscores and dashes, with a maximum length of `64` characters. */
|
|
553
|
+
name: string;
|
|
554
|
+
/** Description of the function. This helps the model choose the right function when needed. */
|
|
555
|
+
description?: string | undefined;
|
|
556
|
+
parameters?: FunctionParameters | undefined;
|
|
557
|
+
/** Defines whether to enforce strict schema adherence when generating a function call. If set to `true`, the model will follow the exact schema defined in the `parameters` field. Currently, even if set `true` this parameter will be ignored and act as if set to `false`. We recommend you check output schema before calling any functions or tools. **Default:** `false` */
|
|
558
|
+
strict?: boolean | null | undefined;
|
|
559
|
+
}
|
|
560
|
+
/** List of tools the model can call, such as functions. A maximum of `128` tools can be provided. See [How to use function calling](https://www.scaleway.com/en/docs/generative-apis/how-to/use-function-calling/) for code snippets using the `openai` Python client. */
|
|
561
|
+
export type CreateResponseRequestToolsList = Array<ResponseAPIFunctionObject>;
|
|
562
|
+
export interface CreateResponseRequest {
|
|
563
|
+
project_id: string;
|
|
564
|
+
/** String or list of inputs to provide to the model to generate a response. Use an array of inputs to provide multiple strings and/or other content types. */
|
|
565
|
+
input?: CreateResponseRequestInputList | undefined;
|
|
566
|
+
/** Unique identifier of the model. For now, the Responses API only supports `gpt-oss-120b`. Refer to our [supported models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) list or [/models](#path-models-list-models) endpoint for available models. */
|
|
567
|
+
model: string;
|
|
568
|
+
max_output_tokens?: number | null | undefined;
|
|
569
|
+
parallel_tool_calls?: boolean | undefined;
|
|
570
|
+
/** System message added to the model's context. */
|
|
571
|
+
instructions?: string | null | undefined;
|
|
572
|
+
/** Configuration parameters for reasoning models. */
|
|
573
|
+
reasoning?: CreateResponseRequestReasoning | undefined;
|
|
574
|
+
/** Defines whether to store the input content for future requests. `store` is currently not supported and always set to `false`. */
|
|
575
|
+
store?: boolean | undefined;
|
|
576
|
+
/** Defines whether the model's response can be streamed to the client using server-sent events. The response will be streamed in chunks over HTTP, where each chunk except the last contains the following content: `data: {"id": ..., "model": ..., "output":...}` The last chunk will contain `data: [DONE]`. Note that the object `{"id": ..., "model": ..., "output":...}` follows the same format as a non-stream HTTP request. See [How to query language models using streaming](https://www.scaleway.com/en/docs/generative-apis/how-to/query-language-models/#streaming) for examples, and [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) for reference documentation about SSE format. **Default value:** `false` */
|
|
577
|
+
stream?: boolean | null | undefined;
|
|
578
|
+
temperature?: number | null | undefined;
|
|
579
|
+
/** Configuration of the response format, either plain text or JSON structured data. */
|
|
580
|
+
text?: CreateResponseRequestText | undefined;
|
|
581
|
+
/** List of tools the model can call, such as functions. A maximum of `128` tools can be provided. See [How to use function calling](https://www.scaleway.com/en/docs/generative-apis/how-to/use-function-calling/) for code snippets using the `openai` Python client. */
|
|
582
|
+
tools?: CreateResponseRequestToolsList | undefined;
|
|
583
|
+
tool_choice?: ChatCompletionToolChoiceOption | (string & {}) | undefined;
|
|
584
|
+
/** Number of most likely tokens to return for each token generated, along with their generation log probability. Value must be between `0` and `20`. `logprobs` must be set to `true` to use this parameter. */
|
|
585
|
+
top_logprobs?: number | null | undefined;
|
|
586
|
+
top_p?: number | null | undefined;
|
|
587
|
+
/** Truncation configuration for the model response. Only `disabled` is currently supported. */
|
|
588
|
+
truncation?: string | null | undefined;
|
|
589
|
+
}
|
|
590
|
+
/** Type of response object, always set to `chat.completion`. */
|
|
591
|
+
export type CreateResponseResultObject = "response";
|
|
592
|
+
/** Status of the response. */
|
|
593
|
+
export type CreateResponseResultStatus = "in_progress" | "completed" | "incomplete";
|
|
594
|
+
/** Role generating the content output. Always set to `assistant`. */
|
|
595
|
+
export type ResponseAPIOutputListRole = "assistant";
|
|
596
|
+
/** List of outputs of different `type`, each also outputting different fields: `message`: outputs `content` field `function_call`: outputs `call_id`, `name` and `arguments` fields */
|
|
597
|
+
export type ResponseAPIOutputListType = "message" | "function_call" | "reasoning";
|
|
598
|
+
/** Status of the response. */
|
|
599
|
+
export type ResponseAPIOutputListStatus = "in_progress" | "completed" | "incomplete";
|
|
600
|
+
/** Type of content. Always set to `output_text`. */
|
|
601
|
+
export type ResponseAPIOutputContentPartType = "output_text";
|
|
602
|
+
/** Annotations of the text output, such as citations or path to a file. */
|
|
603
|
+
export type ResponseAPIOutputContentPartAnnotationsList = Array<unknown>;
|
|
604
|
+
export interface ResponseAPIOutputContentPart {
|
|
605
|
+
/** Type of content. Always set to `output_text`. */
|
|
606
|
+
type?: ResponseAPIOutputContentPartType | undefined;
|
|
607
|
+
/** Text content. */
|
|
608
|
+
text?: string | undefined;
|
|
609
|
+
/** Annotations of the text output, such as citations or path to a file. */
|
|
610
|
+
annotations?: ResponseAPIOutputContentPartAnnotationsList | undefined;
|
|
611
|
+
}
|
|
612
|
+
/** List of text output contents. */
|
|
613
|
+
export type ResponseAPIOutputListContentList = Array<ResponseAPIOutputContentPart>;
|
|
614
|
+
export interface ResponseAPIOutputList {
|
|
615
|
+
/** Role generating the content output. Always set to `assistant`. */
|
|
616
|
+
role?: ResponseAPIOutputListRole | undefined;
|
|
617
|
+
/** List of outputs of different `type`, each also outputting different fields: `message`: outputs `content` field `function_call`: outputs `call_id`, `name` and `arguments` fields */
|
|
618
|
+
type?: ResponseAPIOutputListType | undefined;
|
|
619
|
+
/** UUID of the mesage within a response. */
|
|
620
|
+
id?: string | undefined;
|
|
621
|
+
/** Status of the response. */
|
|
622
|
+
status?: ResponseAPIOutputListStatus | undefined;
|
|
623
|
+
/** List of text output contents. */
|
|
624
|
+
content?: ResponseAPIOutputListContentList | undefined;
|
|
625
|
+
/** UUID of the function tool call. */
|
|
626
|
+
call_id?: string | undefined;
|
|
627
|
+
/** Name the function to execute. */
|
|
628
|
+
name?: string | undefined;
|
|
629
|
+
/** Arguments to pass to the function, formatted as a JSON string. Example: `{"city": "Paris","timezone": "UTC+2"}` */
|
|
630
|
+
arguments?: string | undefined;
|
|
631
|
+
}
|
|
632
|
+
/** List of outputs generated by the model as response. */
|
|
633
|
+
export type CreateResponseResultOutputList = Array<ResponseAPIOutputList>;
|
|
634
|
+
/** Type of response object. */
|
|
635
|
+
export type CreateResponseResultTextFormatType = "text" | "json_schema" | "json_object";
|
|
636
|
+
/** Output format type. */
|
|
637
|
+
export interface CreateResponseResultTextFormat {
|
|
638
|
+
/** Type of response object. */
|
|
639
|
+
type?: CreateResponseResultTextFormatType | undefined;
|
|
640
|
+
}
|
|
641
|
+
/** Configuration of the response format, either plain text or JSON structured data. */
|
|
642
|
+
export interface CreateResponseResultText {
|
|
643
|
+
/** Output format type. */
|
|
644
|
+
format?: CreateResponseResultTextFormat | undefined;
|
|
645
|
+
}
|
|
646
|
+
/** Breakdown of input tokens by type. */
|
|
647
|
+
export interface ResponseAPIUsageInputTokensDetails {
|
|
648
|
+
/** Number of cached input tokens. */
|
|
649
|
+
cached_tokens?: number | undefined;
|
|
650
|
+
}
|
|
651
|
+
/** Breakdown of output tokens by type. */
|
|
652
|
+
export type ResponseAPIUsageOutputTokensDetails = ChatCompletionUsageCompletionTokensDetails;
|
|
653
|
+
export interface ResponseAPIUsage {
|
|
654
|
+
/** Number of input tokens. */
|
|
655
|
+
input_tokens?: number | undefined;
|
|
656
|
+
/** Breakdown of input tokens by type. */
|
|
657
|
+
input_tokens_details?: ResponseAPIUsageInputTokensDetails | null | undefined;
|
|
658
|
+
/** Number of output tokens. */
|
|
659
|
+
output_tokens?: number | undefined;
|
|
660
|
+
/** Breakdown of output tokens by type. */
|
|
661
|
+
output_tokens_details?: ChatCompletionUsageCompletionTokensDetails | null | undefined;
|
|
662
|
+
/** Total number of tokens (input and output). */
|
|
663
|
+
total_tokens?: number | undefined;
|
|
664
|
+
}
|
|
665
|
+
export interface CreateResponseResult {
|
|
666
|
+
/** UUID of the response. */
|
|
667
|
+
id?: string | undefined;
|
|
668
|
+
/** Type of response object, always set to `chat.completion`. */
|
|
669
|
+
object?: CreateResponseResultObject | undefined;
|
|
670
|
+
/** Timestamp when the response was generated (Unix format, in seconds). */
|
|
671
|
+
created_at?: number | undefined;
|
|
672
|
+
/** Status of the response. */
|
|
673
|
+
status?: CreateResponseResultStatus | undefined;
|
|
674
|
+
/** Unique identifier of the model. */
|
|
675
|
+
model?: string | undefined;
|
|
676
|
+
/** List of outputs generated by the model as response. */
|
|
677
|
+
output?: CreateResponseResultOutputList | undefined;
|
|
678
|
+
/** Configuration of the response format, either plain text or JSON structured data. */
|
|
679
|
+
text?: CreateResponseResultText | undefined;
|
|
680
|
+
usage?: ResponseAPIUsage | undefined;
|
|
681
|
+
}
|
|
682
|
+
export interface DeleteBatchRequest {
|
|
683
|
+
project_id: string;
|
|
684
|
+
/** UUID of the batch. */
|
|
685
|
+
batch_id: string;
|
|
686
|
+
}
|
|
687
|
+
export interface GetBatchRequest {
|
|
688
|
+
project_id: string;
|
|
689
|
+
/** UUID of the batch. */
|
|
690
|
+
batch_id: string;
|
|
691
|
+
}
|
|
692
|
+
export interface ListBatchRequest {
|
|
693
|
+
project_id: string;
|
|
694
|
+
/** Pagination cursor which value should be a batch UUID. When response consists of multiple pages, provide the last batch UUID obtained in previous request to fetch next page. */
|
|
695
|
+
after?: string | undefined;
|
|
696
|
+
/** Maximum number of batches to retrieve. */
|
|
697
|
+
limit?: number | undefined;
|
|
698
|
+
}
|
|
699
|
+
/** Type of response object, always set to `list`. */
|
|
700
|
+
export type ListBatchResponseObject = "list";
|
|
701
|
+
/** List of batches. */
|
|
702
|
+
export type ListBatchResponseDataList = Array<Batch>;
|
|
703
|
+
export interface ListBatchResponse {
|
|
704
|
+
/** Type of response object, always set to `list`. */
|
|
705
|
+
object?: ListBatchResponseObject | undefined;
|
|
706
|
+
/** List of batches. */
|
|
707
|
+
data?: ListBatchResponseDataList | undefined;
|
|
708
|
+
/** UUID of first batch in the response. */
|
|
709
|
+
first_id?: string | undefined;
|
|
710
|
+
/** UUID of last batch in the response. */
|
|
711
|
+
last_id?: string | undefined;
|
|
712
|
+
/** Defines whether there are more results to retrieve not returned by this query. */
|
|
713
|
+
has_more?: boolean | undefined;
|
|
714
|
+
}
|
|
715
|
+
export interface ListModelsRequest {
|
|
716
|
+
}
|
|
717
|
+
/** Type of response object, always set to `list`. */
|
|
718
|
+
export type ListModelsResponseObject = "list";
|
|
719
|
+
/** Object type. Always set to `model`. */
|
|
720
|
+
export type ModelObject = "model";
|
|
721
|
+
export interface Model {
|
|
722
|
+
/** Unique identifier of the model. */
|
|
723
|
+
id?: string | undefined;
|
|
724
|
+
/** Object type. Always set to `model`. */
|
|
725
|
+
object?: ModelObject | undefined;
|
|
726
|
+
/** Timestamp when the model was created (Unix format, in seconds). */
|
|
727
|
+
created?: number | undefined;
|
|
728
|
+
/** Name of the organization that created the model (i.e. the model provider). */
|
|
729
|
+
owned_by?: string | undefined;
|
|
730
|
+
}
|
|
731
|
+
/** List of models. */
|
|
732
|
+
export type ListModelsResponseDataList = Array<Model>;
|
|
733
|
+
export interface ListModelsResponse {
|
|
734
|
+
/** Type of response object, always set to `list`. */
|
|
735
|
+
object?: ListModelsResponseObject | undefined;
|
|
736
|
+
/** List of models. */
|
|
737
|
+
data?: ListModelsResponseDataList | undefined;
|
|
738
|
+
}
|
|
739
|
+
export type CancelBatchError = ScalewayOpError;
|
|
740
|
+
/** Cancel a batch When a batch is cancelled, results already processed are stored in corresponding `output.jsonl` and `errors.jsonl` files, while remaining requests will not be processed. */
|
|
741
|
+
export declare const cancelBatch: API.OperationMethod<CancelBatchRequest, Batch, CancelBatchError, ScalewayOpContext>;
|
|
742
|
+
export type CreateAudioTranscriptionError = ScalewayOpError;
|
|
743
|
+
/** Create an audio transcription Generate an audio transcription. */
|
|
744
|
+
export declare const createAudioTranscription: API.OperationMethod<CreateAudioTranscriptionRequest, CreateAudioTranscriptionResponse, CreateAudioTranscriptionError, ScalewayOpContext>;
|
|
745
|
+
export type CreateBatchError = ScalewayOpError;
|
|
746
|
+
/** Create a batch Process multiple requests asynchronously in batch. */
|
|
747
|
+
export declare const createBatch: API.OperationMethod<CreateBatchRequest, Batch, CreateBatchError, ScalewayOpContext>;
|
|
748
|
+
export type CreateChatCompletionError = ScalewayOpError;
|
|
749
|
+
/** Create a chat completion Create a model response for a given chat conversation. This method accepts a sequence of messages (a chat conversation) and returns a response generated by the model. Conversation `messages` **are not stored** and need to be sent in each `/chat/completions` API call. */
|
|
750
|
+
export declare const createChatCompletion: API.OperationMethod<CreateChatCompletionRequest, CreateChatCompletionResponse, CreateChatCompletionError, ScalewayOpContext>;
|
|
751
|
+
export type CreateEmbeddingError = ScalewayOpError;
|
|
752
|
+
/** Create an embedding Generate an embedding. */
|
|
753
|
+
export declare const createEmbedding: API.OperationMethod<CreateEmbeddingRequest, CreateEmbeddingResponse, CreateEmbeddingError, ScalewayOpContext>;
|
|
754
|
+
export type CreateRerankError = ScalewayOpError;
|
|
755
|
+
/** Create a reranking Identify most relevant documents to answer a query. */
|
|
756
|
+
export declare const createRerank: API.OperationMethod<CreateRerankRequest, CreateRerankResponse, CreateRerankError, ScalewayOpContext>;
|
|
757
|
+
export type CreateResponseError = ScalewayOpError;
|
|
758
|
+
/** Create a response Create a model response for a given input. This method accepts a sequence of messages (a chat conversation) and returns a response generated by the model. Currently, this API **does not store** inputs and `store` is set to `false` even if not provided. */
|
|
759
|
+
export declare const createResponse: API.OperationMethod<CreateResponseRequest, CreateResponseResult, CreateResponseError, ScalewayOpContext>;
|
|
760
|
+
export type DeleteBatchError = ScalewayOpError;
|
|
761
|
+
/** Delete a batch Delete a previously created batch. When a batch is deleted, the associated `input.jsonl`, `output.jsonl` and `errors.jsonl` files are not removed from the bucket. This endpoint is a Scaleway-specific extension that supplements the OpenAI-compatible API; it is not part of the official OpenAI API specification. */
|
|
762
|
+
export declare const deleteBatch: API.OperationMethod<DeleteBatchRequest, Batch, DeleteBatchError, ScalewayOpContext>;
|
|
763
|
+
export type GetBatchError = ScalewayOpError;
|
|
764
|
+
/** Get a batch Retrieve a batch's properties and status. */
|
|
765
|
+
export declare const getBatch: API.OperationMethod<GetBatchRequest, Batch, GetBatchError, ScalewayOpContext>;
|
|
766
|
+
export type ListBatchError = ScalewayOpError;
|
|
767
|
+
/** List batches List batches including their properties and status. */
|
|
768
|
+
export declare const listBatch: API.OperationMethod<ListBatchRequest, ListBatchResponse, ListBatchError, ScalewayOpContext>;
|
|
769
|
+
export type ListModelsError = ScalewayOpError;
|
|
770
|
+
/** List models List [models](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/) that are available via this API. */
|
|
771
|
+
export declare const listModels: API.OperationMethod<ListModelsRequest, ListModelsResponse, ListModelsError, ScalewayOpContext>;
|
|
772
|
+
//# sourceMappingURL=generative_apis_openai_v1.d.ts.map
|