@scaleway/sdk 2.71.1 → 2.73.0
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/dist/api/account/index.gen.d.ts +2 -2
- package/dist/api/account/v2/api.gen.cjs +5 -4
- package/dist/api/account/v2/api.gen.d.ts +1 -1
- package/dist/api/account/v2/api.gen.js +5 -4
- package/dist/api/account/v2/marshalling.gen.cjs +4 -3
- package/dist/api/account/v2/marshalling.gen.d.ts +1 -1
- package/dist/api/account/v2/marshalling.gen.js +4 -3
- package/dist/api/account/v3/api.gen.cjs +18 -36
- package/dist/api/account/v3/api.gen.d.ts +18 -37
- package/dist/api/account/v3/api.gen.js +18 -36
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +4 -3
- package/dist/api/account/v3/marshalling.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.js +4 -3
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/index.gen.d.ts +2 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +25 -51
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +26 -51
- package/dist/api/applesilicon/v1alpha1/api.gen.js +25 -51
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +311 -136
- package/dist/api/audit_trail/index.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +6 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +6 -10
- package/dist/api/audit_trail/v1alpha1/api.gen.js +6 -8
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +111 -83
- package/dist/api/baremetal/index.gen.d.ts +2 -2
- package/dist/api/baremetal/v1/api.gen.cjs +34 -66
- package/dist/api/baremetal/v1/api.gen.d.ts +31 -62
- package/dist/api/baremetal/v1/api.gen.js +34 -66
- package/dist/api/baremetal/v1/api.utils.cjs +3 -1
- package/dist/api/baremetal/v1/api.utils.d.ts +1 -1
- package/dist/api/baremetal/v1/api.utils.js +3 -1
- package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -3
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +4 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +866 -379
- package/dist/api/baremetal/v3/api.gen.cjs +12 -18
- package/dist/api/baremetal/v3/api.gen.d.ts +12 -17
- package/dist/api/baremetal/v3/api.gen.js +12 -18
- package/dist/api/baremetal/v3/marshalling.gen.cjs +4 -3
- package/dist/api/baremetal/v3/marshalling.gen.d.ts +1 -1
- package/dist/api/baremetal/v3/marshalling.gen.js +4 -3
- package/dist/api/baremetal/v3/types.gen.d.ts +83 -33
- package/dist/api/billing/index.gen.d.ts +2 -2
- package/dist/api/billing/v2alpha1/api.gen.cjs +5 -4
- package/dist/api/billing/v2alpha1/api.gen.d.ts +1 -1
- package/dist/api/billing/v2alpha1/api.gen.js +5 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/billing/v2alpha1/marshalling.gen.js +4 -3
- package/dist/api/billing/v2alpha1/types.gen.d.ts +1 -1
- package/dist/api/billing/v2beta1/api.gen.cjs +16 -24
- package/dist/api/billing/v2beta1/api.gen.d.ts +10 -20
- package/dist/api/billing/v2beta1/api.gen.js +16 -24
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +4 -3
- package/dist/api/billing/v2beta1/marshalling.gen.js +4 -3
- package/dist/api/billing/v2beta1/types.gen.d.ts +232 -103
- package/dist/api/block/index.gen.d.ts +2 -2
- package/dist/api/block/v1/api.gen.cjs +43 -60
- package/dist/api/block/v1/api.gen.d.ts +21 -39
- package/dist/api/block/v1/api.gen.js +43 -60
- package/dist/api/block/v1/marshalling.gen.cjs +4 -3
- package/dist/api/block/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/block/v1/marshalling.gen.js +4 -3
- package/dist/api/block/v1/types.gen.d.ts +307 -126
- package/dist/api/block/v1alpha1/api.gen.cjs +51 -69
- package/dist/api/block/v1alpha1/api.gen.d.ts +24 -43
- package/dist/api/block/v1alpha1/api.gen.js +51 -69
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/block/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/block/v1alpha1/types.gen.d.ts +328 -133
- package/dist/api/cockpit/index.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/api.gen.cjs +105 -160
- package/dist/api/cockpit/v1/api.gen.d.ts +55 -114
- package/dist/api/cockpit/v1/api.gen.js +105 -160
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -3
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -3
- package/dist/api/cockpit/v1/types.gen.d.ts +568 -247
- package/dist/api/cockpit/v1beta1/api.gen.cjs +6 -5
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/cockpit/v1beta1/api.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/container/index.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.cjs +13 -19
- package/dist/api/container/v1beta1/api.gen.d.ts +11 -18
- package/dist/api/container/v1beta1/api.gen.js +13 -19
- package/dist/api/container/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/container/v1beta1/types.gen.d.ts +649 -323
- package/dist/api/dedibox/index.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/api.gen.cjs +51 -74
- package/dist/api/dedibox/v1/api.gen.d.ts +54 -64
- package/dist/api/dedibox/v1/api.gen.js +51 -74
- package/dist/api/dedibox/v1/marshalling.gen.cjs +4 -3
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/dedibox/v1/marshalling.gen.js +4 -3
- package/dist/api/dedibox/v1/types.gen.d.ts +1766 -646
- package/dist/api/document_db/index.gen.d.ts +2 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +6 -5
- package/dist/api/document_db/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/document_db/v1beta1/api.gen.js +6 -5
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/document_db/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/domain/index.gen.d.ts +2 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +125 -183
- package/dist/api/domain/v2beta1/api.gen.d.ts +73 -132
- package/dist/api/domain/v2beta1/api.gen.js +125 -183
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/index.gen.d.ts +1 -1
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +4 -3
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/domain/v2beta1/marshalling.gen.js +4 -3
- package/dist/api/domain/v2beta1/types.gen.d.ts +412 -200
- package/dist/api/edge_services/index.gen.d.ts +2 -2
- package/dist/api/edge_services/v1alpha1/api.gen.cjs +6 -5
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/edge_services/v1alpha1/api.gen.js +6 -5
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +49 -136
- package/dist/api/edge_services/v1beta1/api.gen.d.ts +48 -134
- package/dist/api/edge_services/v1beta1/api.gen.js +49 -136
- package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/edge_services/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +584 -380
- package/dist/api/flexibleip/index.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +16 -30
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +14 -30
- package/dist/api/flexibleip/v1alpha1/api.gen.js +16 -30
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +187 -79
- package/dist/api/function/index.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.cjs +20 -33
- package/dist/api/function/v1beta1/api.gen.d.ts +18 -32
- package/dist/api/function/v1beta1/api.gen.js +20 -33
- package/dist/api/function/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/function/v1beta1/types.gen.d.ts +617 -288
- package/dist/api/iam/index.gen.d.ts +2 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +49 -163
- package/dist/api/iam/v1alpha1/api.gen.d.ts +47 -163
- package/dist/api/iam/v1alpha1/api.gen.js +49 -163
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/iam/v1alpha1/types.gen.d.ts +979 -372
- package/dist/api/index.gen.d.ts +2 -2
- package/dist/api/inference/index.gen.d.ts +2 -2
- package/dist/api/inference/v1/api.gen.cjs +14 -16
- package/dist/api/inference/v1/api.gen.d.ts +8 -11
- package/dist/api/inference/v1/api.gen.js +14 -16
- package/dist/api/inference/v1/marshalling.gen.cjs +4 -3
- package/dist/api/inference/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/inference/v1/marshalling.gen.js +4 -3
- package/dist/api/inference/v1/types.gen.d.ts +331 -151
- package/dist/api/inference/v1beta1/api.gen.cjs +14 -16
- package/dist/api/inference/v1beta1/api.gen.d.ts +8 -11
- package/dist/api/inference/v1beta1/api.gen.js +14 -16
- package/dist/api/inference/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/inference/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/inference/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/inference/v1beta1/types.gen.d.ts +342 -155
- package/dist/api/instance/index.gen.d.ts +2 -2
- package/dist/api/instance/v1/api.gen.cjs +69 -117
- package/dist/api/instance/v1/api.gen.d.ts +56 -105
- package/dist/api/instance/v1/api.gen.js +69 -117
- package/dist/api/instance/v1/api.utils.cjs +4 -3
- package/dist/api/instance/v1/api.utils.d.ts +1 -1
- package/dist/api/instance/v1/api.utils.js +4 -3
- package/dist/api/instance/v1/marshalling.gen.cjs +4 -3
- package/dist/api/instance/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +4 -3
- package/dist/api/instance/v1/marshalling.utils.d.ts +1 -1
- package/dist/api/instance/v1/types.gen.d.ts +1352 -599
- package/dist/api/instance/v1/types.private.gen.d.ts +132 -60
- package/dist/api/instance/v1/types.utils.d.ts +1 -1
- package/dist/api/interlink/index.gen.d.ts +2 -2
- package/dist/api/interlink/v1beta1/api.gen.cjs +107 -63
- package/dist/api/interlink/v1beta1/api.gen.d.ts +58 -65
- package/dist/api/interlink/v1beta1/api.gen.js +108 -64
- package/dist/api/interlink/v1beta1/content.gen.cjs +6 -0
- package/dist/api/interlink/v1beta1/content.gen.d.ts +5 -0
- package/dist/api/interlink/v1beta1/content.gen.js +6 -0
- package/dist/api/interlink/v1beta1/index.gen.cjs +3 -0
- package/dist/api/interlink/v1beta1/index.gen.d.ts +2 -1
- package/dist/api/interlink/v1beta1/index.gen.js +3 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +84 -8
- package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +4 -2
- package/dist/api/interlink/v1beta1/marshalling.gen.js +84 -8
- package/dist/api/interlink/v1beta1/types.gen.d.ts +545 -195
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +25 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +23 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +25 -0
- package/dist/api/iot/index.gen.d.ts +2 -2
- package/dist/api/iot/v1/api.gen.cjs +43 -75
- package/dist/api/iot/v1/api.gen.d.ts +36 -69
- package/dist/api/iot/v1/api.gen.js +43 -75
- package/dist/api/iot/v1/marshalling.gen.cjs +4 -3
- package/dist/api/iot/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/iot/v1/marshalling.gen.js +4 -3
- package/dist/api/iot/v1/types.gen.d.ts +567 -322
- package/dist/api/ipam/index.gen.d.ts +2 -2
- package/dist/api/ipam/v1/api.gen.cjs +11 -30
- package/dist/api/ipam/v1/api.gen.d.ts +10 -31
- package/dist/api/ipam/v1/api.gen.js +11 -30
- package/dist/api/ipam/v1/marshalling.gen.cjs +4 -3
- package/dist/api/ipam/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/ipam/v1/marshalling.gen.js +4 -3
- package/dist/api/ipam/v1/types.gen.d.ts +147 -106
- package/dist/api/ipfs/index.gen.d.ts +2 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +6 -5
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/ipfs/v1alpha1/api.gen.js +6 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/jobs/index.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +7 -8
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +6 -8
- package/dist/api/jobs/v1alpha1/api.gen.js +7 -8
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +166 -92
- package/dist/api/k8s/index.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.cjs +39 -83
- package/dist/api/k8s/v1/api.gen.d.ts +29 -74
- package/dist/api/k8s/v1/api.gen.js +39 -83
- package/dist/api/k8s/v1/marshalling.gen.cjs +4 -3
- package/dist/api/k8s/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/k8s/v1/marshalling.gen.js +4 -3
- package/dist/api/k8s/v1/types.gen.d.ts +744 -507
- package/dist/api/key_manager/index.gen.d.ts +2 -2
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +26 -61
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +21 -58
- package/dist/api/key_manager/v1alpha1/api.gen.js +26 -61
- package/dist/api/key_manager/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/key_manager/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/key_manager/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +197 -115
- package/dist/api/lb/index.gen.d.ts +2 -2
- package/dist/api/lb/v1/api.gen.cjs +68 -178
- package/dist/api/lb/v1/api.gen.d.ts +60 -176
- package/dist/api/lb/v1/api.gen.js +69 -179
- package/dist/api/lb/v1/api.utils.cjs +3 -1
- package/dist/api/lb/v1/api.utils.d.ts +1 -1
- package/dist/api/lb/v1/api.utils.js +3 -1
- package/dist/api/lb/v1/index.gen.d.ts +1 -1
- package/dist/api/lb/v1/marshalling.gen.cjs +9 -3
- package/dist/api/lb/v1/marshalling.gen.d.ts +3 -2
- package/dist/api/lb/v1/marshalling.gen.js +9 -3
- package/dist/api/lb/v1/types.gen.d.ts +1835 -1117
- package/dist/api/lb/v1/types.utils.d.ts +1 -1
- package/dist/api/llm_inference/index.gen.d.ts +2 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +6 -5
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/llm_inference/v1beta1/api.gen.js +6 -5
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/marketplace/index.gen.d.ts +2 -2
- package/dist/api/marketplace/v2/api.gen.cjs +13 -25
- package/dist/api/marketplace/v2/api.gen.d.ts +11 -25
- package/dist/api/marketplace/v2/api.gen.js +13 -25
- package/dist/api/marketplace/v2/marshalling.gen.cjs +4 -3
- package/dist/api/marketplace/v2/marshalling.gen.js +4 -3
- package/dist/api/marketplace/v2/types.gen.d.ts +95 -42
- package/dist/api/mnq/index.gen.d.ts +2 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +29 -80
- package/dist/api/mnq/v1beta1/api.gen.d.ts +32 -84
- package/dist/api/mnq/v1beta1/api.gen.js +29 -80
- package/dist/api/mnq/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/mnq/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/mnq/v1beta1/types.gen.d.ts +343 -170
- package/dist/api/mongodb/index.gen.d.ts +2 -2
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +25 -67
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +23 -66
- package/dist/api/mongodb/v1alpha1/api.gen.js +25 -67
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +444 -190
- package/dist/api/qaas/index.gen.d.ts +2 -2
- package/dist/api/qaas/v1alpha1/api.gen.cjs +23 -39
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +21 -38
- package/dist/api/qaas/v1alpha1/api.gen.js +23 -39
- package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/qaas/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/qaas/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +503 -175
- package/dist/api/rdb/index.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.cjs +68 -207
- package/dist/api/rdb/v1/api.gen.d.ts +62 -203
- package/dist/api/rdb/v1/api.gen.js +68 -207
- package/dist/api/rdb/v1/marshalling.gen.cjs +4 -3
- package/dist/api/rdb/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/rdb/v1/marshalling.gen.js +4 -3
- package/dist/api/rdb/v1/types.gen.d.ts +1006 -525
- package/dist/api/redis/index.gen.d.ts +2 -2
- package/dist/api/redis/v1/api.gen.cjs +29 -88
- package/dist/api/redis/v1/api.gen.d.ts +27 -87
- package/dist/api/redis/v1/api.gen.js +29 -88
- package/dist/api/redis/v1/marshalling.gen.cjs +4 -3
- package/dist/api/redis/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/redis/v1/marshalling.gen.js +4 -3
- package/dist/api/redis/v1/types.gen.d.ts +448 -171
- package/dist/api/registry/index.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.cjs +18 -45
- package/dist/api/registry/v1/api.gen.d.ts +16 -44
- package/dist/api/registry/v1/api.gen.js +18 -45
- package/dist/api/registry/v1/marshalling.gen.cjs +4 -3
- package/dist/api/registry/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/registry/v1/marshalling.gen.js +4 -3
- package/dist/api/registry/v1/types.gen.d.ts +201 -117
- package/dist/api/secret/index.gen.d.ts +2 -2
- package/dist/api/secret/v1alpha1/api.gen.cjs +5 -4
- package/dist/api/secret/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/secret/v1alpha1/api.gen.js +5 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/secret/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/secret/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/api.gen.cjs +24 -51
- package/dist/api/secret/v1beta1/api.gen.d.ts +23 -53
- package/dist/api/secret/v1beta1/api.gen.js +24 -51
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +4 -3
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/secret/v1beta1/types.gen.d.ts +360 -225
- package/dist/api/serverless_sqldb/index.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +15 -32
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +13 -31
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +15 -32
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +169 -77
- package/dist/api/tem/index.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +28 -63
- package/dist/api/tem/v1alpha1/api.gen.d.ts +26 -62
- package/dist/api/tem/v1alpha1/api.gen.js +28 -63
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +4 -3
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +4 -3
- package/dist/api/tem/v1alpha1/types.gen.d.ts +762 -339
- package/dist/api/test/index.gen.d.ts +2 -2
- package/dist/api/test/v1/api.gen.cjs +14 -16
- package/dist/api/test/v1/api.gen.d.ts +8 -11
- package/dist/api/test/v1/api.gen.js +14 -16
- package/dist/api/test/v1/marshalling.gen.cjs +4 -3
- package/dist/api/test/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/test/v1/marshalling.gen.js +4 -3
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/api/vpc/index.gen.d.ts +2 -2
- package/dist/api/vpc/v1/api.gen.cjs +5 -4
- package/dist/api/vpc/v1/api.gen.d.ts +2 -2
- package/dist/api/vpc/v1/api.gen.js +5 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +4 -3
- package/dist/api/vpc/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/vpc/v1/marshalling.gen.js +4 -3
- package/dist/api/vpc/v1/types.gen.d.ts +1 -1
- package/dist/api/vpc/v2/api.gen.cjs +18 -53
- package/dist/api/vpc/v2/api.gen.d.ts +18 -45
- package/dist/api/vpc/v2/api.gen.js +19 -54
- package/dist/api/vpc/v2/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +4 -18
- package/dist/api/vpc/v2/marshalling.gen.d.ts +2 -4
- package/dist/api/vpc/v2/marshalling.gen.js +4 -18
- package/dist/api/vpc/v2/types.gen.d.ts +333 -200
- package/dist/api/vpcgw/index.gen.d.ts +2 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +42 -140
- package/dist/api/vpcgw/v1/api.gen.d.ts +40 -139
- package/dist/api/vpcgw/v1/api.gen.js +42 -140
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +4 -3
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +4 -3
- package/dist/api/vpcgw/v1/types.gen.d.ts +784 -366
- package/dist/api/vpcgw/v2/api.gen.cjs +33 -93
- package/dist/api/vpcgw/v2/api.gen.d.ts +31 -92
- package/dist/api/vpcgw/v2/api.gen.js +33 -93
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +4 -3
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +1 -1
- package/dist/api/vpcgw/v2/marshalling.gen.js +4 -3
- package/dist/api/vpcgw/v2/types.gen.d.ts +546 -197
- package/dist/api/webhosting/index.gen.d.ts +2 -2
- package/dist/api/webhosting/v1/api.gen.cjs +28 -55
- package/dist/api/webhosting/v1/api.gen.d.ts +40 -71
- package/dist/api/webhosting/v1/api.gen.js +28 -55
- package/dist/api/webhosting/v1/marshalling.gen.cjs +4 -3
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +4 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +700 -351
- package/dist/client/dist/helpers/is-browser.cjs +4 -0
- package/dist/client/dist/helpers/is-browser.js +4 -0
- package/dist/{package.json.cjs → client/dist/package.json.cjs} +7 -16
- package/dist/{package.json.js → client/dist/package.json.js} +7 -16
- package/dist/client/dist/scw/constants.cjs +7 -0
- package/dist/{vendor → client/dist/vendor}/base64/index.cjs +8 -4
- package/dist/{vendor → client/dist/vendor}/base64/index.js +8 -4
- package/dist/index.cjs +16 -16
- package/dist/index.d.ts +1 -15
- package/dist/index.js +13 -13
- package/node_modules/@scaleway/sdk-client/README.md +36 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-browser.cjs +4 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-browser.js +4 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-response.cjs +4 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/is-response.js +4 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/json.cjs +7 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/helpers/json.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/helpers/json.js +7 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/marshalling.cjs +76 -0
- package/node_modules/@scaleway/sdk-client/dist/helpers/marshalling.js +76 -0
- package/node_modules/@scaleway/sdk-client/dist/index.cjs +52 -0
- package/node_modules/@scaleway/sdk-client/dist/index.d.ts +15 -0
- package/node_modules/@scaleway/sdk-client/dist/index.js +52 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/async/interval-retrier.cjs +53 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/async/interval-retrier.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/internal/async/interval-retrier.js +53 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/async/sleep.cjs +6 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/async/sleep.js +6 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/composer.cjs +25 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/composer.js +25 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/helpers.cjs +12 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/interceptors/helpers.js +12 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/interceptors/types.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/console-logger.cjs +24 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/console-logger.js +24 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/index.cjs +12 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/index.js +12 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/level-resolver.cjs +13 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/logger/level-resolver.js +13 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/validations/string-validation.cjs +30 -0
- package/node_modules/@scaleway/sdk-client/dist/internal/validations/string-validation.js +30 -0
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +67 -0
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +67 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/api.cjs +8 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/api.js +8 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/auth.cjs +26 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/auth.js +26 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-factory.cjs +66 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-factory.js +66 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-profile.cjs +23 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-ini-profile.js +23 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-settings.cjs +51 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client-settings.js +51 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/client.cjs +31 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/client.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/scw/client.js +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/constants.js +7 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-marshalling.cjs +126 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-marshalling.js +126 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-types.cjs +11 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/custom-types.js +11 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/error-parser.cjs +76 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/error-parser.js +76 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/invalid-request-mapper.js +36 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/non-standard/unknown-resource-mapper.js +23 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error.cjs +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/scw-error.js +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/already-exists-error.js +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/denied-authentication-error.js +37 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/index.cjs +28 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/index.js +28 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/invalid-arguments-error.cjs +54 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/invalid-arguments-error.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/invalid-arguments-error.js +54 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/out-of-stock-error.cjs +17 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/out-of-stock-error.js +17 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/permissions-denied-error.cjs +29 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/permissions-denied-error.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/permissions-denied-error.js +29 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/precondition-failed-error.js +32 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/quotas-exceeded-error.cjs +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/quotas-exceeded-error.js +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-expired-error.js +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-locked-error.js +20 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/resource-not-found-error.js +24 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/too-many-requests-error.cjs +58 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/too-many-requests-error.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/too-many-requests-error.js +58 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/standard/transient-state-error.js +31 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/types.cjs +15 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/errors/types.js +15 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/build-fetcher.js +60 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-dumper.cjs +20 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-dumper.js +20 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/http-interceptors.js +43 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/resource-paginator.cjs +36 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/resource-paginator.js +36 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/response-parser.cjs +55 -0
- package/node_modules/@scaleway/sdk-client/dist/scw/fetch/response-parser.js +55 -0
- package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/types.d.ts +2 -2
- package/node_modules/@scaleway/sdk-client/dist/vendor/base64/index.cjs +46 -0
- package/node_modules/@scaleway/sdk-client/dist/vendor/base64/index.js +46 -0
- package/node_modules/@scaleway/sdk-client/package.json +36 -0
- package/package.json +6 -4
- package/dist/helpers/is-browser.cjs +0 -7
- package/dist/helpers/is-browser.js +0 -7
- /package/dist/{helpers → client/dist/helpers}/is-response.cjs +0 -0
- /package/dist/{helpers → client/dist/helpers}/is-response.js +0 -0
- /package/dist/{helpers → client/dist/helpers}/json.cjs +0 -0
- /package/dist/{helpers → client/dist/helpers}/json.js +0 -0
- /package/dist/{helpers → client/dist/helpers}/marshalling.cjs +0 -0
- /package/dist/{helpers → client/dist/helpers}/marshalling.js +0 -0
- /package/dist/{internal → client/dist/internal}/async/interval-retrier.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/async/interval-retrier.js +0 -0
- /package/dist/{internal → client/dist/internal}/async/sleep.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/async/sleep.js +0 -0
- /package/dist/{internal → client/dist/internal}/interceptors/composer.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/interceptors/composer.js +0 -0
- /package/dist/{internal → client/dist/internal}/interceptors/helpers.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/interceptors/helpers.js +0 -0
- /package/dist/{internal → client/dist/internal}/logger/console-logger.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/logger/console-logger.js +0 -0
- /package/dist/{internal → client/dist/internal}/logger/index.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/logger/index.js +0 -0
- /package/dist/{internal → client/dist/internal}/logger/level-resolver.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/logger/level-resolver.js +0 -0
- /package/dist/{internal → client/dist/internal}/validations/string-validation.cjs +0 -0
- /package/dist/{internal → client/dist/internal}/validations/string-validation.js +0 -0
- /package/dist/{scw → client/dist/scw}/api.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/api.js +0 -0
- /package/dist/{scw → client/dist/scw}/auth.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/auth.js +0 -0
- /package/dist/{scw → client/dist/scw}/client-ini-factory.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/client-ini-factory.js +0 -0
- /package/dist/{scw → client/dist/scw}/client-ini-profile.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/client-ini-profile.js +0 -0
- /package/dist/{scw → client/dist/scw}/client-settings.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/client-settings.js +0 -0
- /package/dist/{scw → client/dist/scw}/client.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/client.js +0 -0
- /package/dist/{scw → client/dist/scw}/constants.js +0 -0
- /package/dist/{scw → client/dist/scw}/custom-marshalling.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/custom-marshalling.js +0 -0
- /package/dist/{scw → client/dist/scw}/custom-types.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/custom-types.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/error-parser.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/error-parser.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/non-standard/invalid-request-mapper.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/non-standard/invalid-request-mapper.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/non-standard/unknown-resource-mapper.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/non-standard/unknown-resource-mapper.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/scw-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/scw-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/already-exists-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/already-exists-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/denied-authentication-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/denied-authentication-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/index.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/index.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/invalid-arguments-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/invalid-arguments-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/out-of-stock-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/out-of-stock-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/permissions-denied-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/permissions-denied-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/precondition-failed-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/precondition-failed-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/quotas-exceeded-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/quotas-exceeded-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-expired-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-expired-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-locked-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-locked-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-not-found-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/resource-not-found-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/too-many-requests-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/too-many-requests-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/transient-state-error.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/standard/transient-state-error.js +0 -0
- /package/dist/{scw → client/dist/scw}/errors/types.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/errors/types.js +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/build-fetcher.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/build-fetcher.js +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/http-dumper.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/http-dumper.js +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/http-interceptors.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/http-interceptors.js +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/resource-paginator.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/resource-paginator.js +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/response-parser.cjs +0 -0
- /package/dist/{scw → client/dist/scw}/fetch/response-parser.js +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/bridge.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/helpers/is-browser.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/helpers/is-response.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/helpers/marshalling.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/async/sleep.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/interceptors/composer.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/interceptors/helpers.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/logger/console-logger.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/logger/index.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/logger/level-resolver.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/logger/logger.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internal/validations/string-validation.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/internals.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/api.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/auth.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/client-ini-factory.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/client-ini-profile.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/client-settings.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/constants.cjs +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/constants.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/custom-marshalling.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/custom-types.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/error-parser.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/non-standard/invalid-request-mapper.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/non-standard/unknown-resource-mapper.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/scw-error-from-json.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/scw-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/already-exists-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/denied-authentication-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/index.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/out-of-stock-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/precondition-failed-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/quotas-exceeded-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/resource-expired-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/resource-locked-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/resource-not-found-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/standard/transient-state-error.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/errors/types.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/build-fetcher.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/http-dumper.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/http-interceptors.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/resource-paginator.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/fetch/response-parser.d.ts +0 -0
- /package/{dist → node_modules/@scaleway/sdk-client/dist}/scw/locality.d.ts +0 -0
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { API as ParentAPI } from '
|
|
2
|
-
import type { Region as ScwRegion, WaitForOptions } from '
|
|
1
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
+
import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
3
|
import type { CreateDeviceRequest, CreateDeviceResponse, CreateHubRequest, CreateNetworkRequest, CreateNetworkResponse, CreateRouteRequest, DeleteDeviceRequest, DeleteHubRequest, DeleteNetworkRequest, DeleteRouteRequest, DeleteTwinDocumentRequest, DeleteTwinDocumentsRequest, Device, DisableDeviceRequest, DisableHubRequest, EnableDeviceRequest, EnableHubRequest, GetDeviceCertificateRequest, GetDeviceCertificateResponse, GetDeviceMetricsRequest, GetDeviceMetricsResponse, GetDeviceRequest, GetHubCARequest, GetHubCAResponse, GetHubMetricsRequest, GetHubMetricsResponse, GetHubRequest, GetNetworkRequest, GetRouteRequest, GetTwinDocumentRequest, Hub, ListDevicesRequest, ListDevicesResponse, ListHubsRequest, ListHubsResponse, ListNetworksRequest, ListNetworksResponse, ListRoutesRequest, ListRoutesResponse, ListTwinDocumentsRequest, ListTwinDocumentsResponse, Network, PatchTwinDocumentRequest, PutTwinDocumentRequest, RenewDeviceCertificateRequest, RenewDeviceCertificateResponse, Route, SetDeviceCertificateRequest, SetDeviceCertificateResponse, SetHubCARequest, TwinDocument, UpdateDeviceRequest, UpdateHubRequest, UpdateRouteRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* IoT Hub API.
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
This API allows you to manage your IoT hubs and devices.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
11
|
static readonly LOCALITIES: ScwRegion[];
|
|
12
12
|
protected pageOfListHubs: (request?: Readonly<ListHubsRequest>) => Promise<ListHubsResponse>;
|
|
13
13
|
/**
|
|
14
|
-
* List hubs. List all Hubs in the specified zone. By default, returned Hubs
|
|
15
|
-
* are ordered by creation date in ascending order, though this can be
|
|
16
|
-
* modified via the `order_by` field.
|
|
14
|
+
* List hubs. List all Hubs in the specified zone. By default, returned Hubs are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
17
15
|
*
|
|
18
16
|
* @param request - The request {@link ListHubsRequest}
|
|
19
17
|
* @returns A Promise of ListHubsResponse
|
|
@@ -23,17 +21,14 @@ export declare class API extends ParentAPI {
|
|
|
23
21
|
[Symbol.asyncIterator]: () => AsyncGenerator<Hub[], void, void>;
|
|
24
22
|
};
|
|
25
23
|
/**
|
|
26
|
-
* Create a hub. Create a new Hub in the targeted region, specifying its
|
|
27
|
-
* configuration including name and product plan.
|
|
24
|
+
* Create a hub. Create a new Hub in the targeted region, specifying its configuration including name and product plan.
|
|
28
25
|
*
|
|
29
26
|
* @param request - The request {@link CreateHubRequest}
|
|
30
27
|
* @returns A Promise of Hub
|
|
31
28
|
*/
|
|
32
29
|
createHub: (request: Readonly<CreateHubRequest>) => Promise<Hub>;
|
|
33
30
|
/**
|
|
34
|
-
* Get a hub. Retrieve information about an existing IoT Hub, specified by its
|
|
35
|
-
* Hub ID. Its full details, including name, status and endpoint, are returned
|
|
36
|
-
* in the response object.
|
|
31
|
+
* Get a hub. Retrieve information about an existing IoT Hub, specified by its Hub ID. Its full details, including name, status and endpoint, are returned in the response object.
|
|
37
32
|
*
|
|
38
33
|
* @param request - The request {@link GetHubRequest}
|
|
39
34
|
* @returns A Promise of Hub
|
|
@@ -48,8 +43,7 @@ export declare class API extends ParentAPI {
|
|
|
48
43
|
*/
|
|
49
44
|
waitForHub: (request: Readonly<GetHubRequest>, options?: Readonly<WaitForOptions<Hub>>) => Promise<Hub>;
|
|
50
45
|
/**
|
|
51
|
-
* Update a hub. Update the parameters of an existing IoT Hub, specified by
|
|
52
|
-
* its Hub ID.
|
|
46
|
+
* Update a hub. Update the parameters of an existing IoT Hub, specified by its Hub ID.
|
|
53
47
|
*
|
|
54
48
|
* @param request - The request {@link UpdateHubRequest}
|
|
55
49
|
* @returns A Promise of Hub
|
|
@@ -70,15 +64,13 @@ export declare class API extends ParentAPI {
|
|
|
70
64
|
*/
|
|
71
65
|
disableHub: (request: Readonly<DisableHubRequest>) => Promise<Hub>;
|
|
72
66
|
/**
|
|
73
|
-
* Delete a hub. Delete an existing IoT Hub, specified by its Hub ID. Deleting
|
|
74
|
-
* a Hub is permanent, and cannot be undone.
|
|
67
|
+
* Delete a hub. Delete an existing IoT Hub, specified by its Hub ID. Deleting a Hub is permanent, and cannot be undone.
|
|
75
68
|
*
|
|
76
69
|
* @param request - The request {@link DeleteHubRequest}
|
|
77
70
|
*/
|
|
78
71
|
deleteHub: (request: Readonly<DeleteHubRequest>) => Promise<void>;
|
|
79
72
|
/**
|
|
80
|
-
* Get a hub's metrics. Get the metrics of an existing IoT Hub, specified by
|
|
81
|
-
* its Hub ID.
|
|
73
|
+
* Get a hub's metrics. Get the metrics of an existing IoT Hub, specified by its Hub ID.
|
|
82
74
|
*
|
|
83
75
|
* @deprecated
|
|
84
76
|
* @param request - The request {@link GetHubMetricsRequest}
|
|
@@ -86,16 +78,14 @@ export declare class API extends ParentAPI {
|
|
|
86
78
|
*/
|
|
87
79
|
getHubMetrics: (request: Readonly<GetHubMetricsRequest>) => Promise<GetHubMetricsResponse>;
|
|
88
80
|
/**
|
|
89
|
-
* Set the certificate authority of a hub. Set a particular PEM-encoded
|
|
90
|
-
* certificate, specified by the Hub ID.
|
|
81
|
+
* Set the certificate authority of a hub. Set a particular PEM-encoded certificate, specified by the Hub ID.
|
|
91
82
|
*
|
|
92
83
|
* @param request - The request {@link SetHubCARequest}
|
|
93
84
|
* @returns A Promise of Hub
|
|
94
85
|
*/
|
|
95
86
|
setHubCA: (request: Readonly<SetHubCARequest>) => Promise<Hub>;
|
|
96
87
|
/**
|
|
97
|
-
* Get the certificate authority of a hub. Get information for a particular
|
|
98
|
-
* PEM-encoded certificate, specified by the Hub ID.
|
|
88
|
+
* Get the certificate authority of a hub. Get information for a particular PEM-encoded certificate, specified by the Hub ID.
|
|
99
89
|
*
|
|
100
90
|
* @param request - The request {@link GetHubCARequest}
|
|
101
91
|
* @returns A Promise of GetHubCAResponse
|
|
@@ -103,9 +93,7 @@ export declare class API extends ParentAPI {
|
|
|
103
93
|
getHubCA: (request: Readonly<GetHubCARequest>) => Promise<GetHubCAResponse>;
|
|
104
94
|
protected pageOfListDevices: (request?: Readonly<ListDevicesRequest>) => Promise<ListDevicesResponse>;
|
|
105
95
|
/**
|
|
106
|
-
* List devices. List all devices in the specified region. By default,
|
|
107
|
-
* returned devices are ordered by creation date in ascending order, though
|
|
108
|
-
* this can be modified via the `order_by` field.
|
|
96
|
+
* List devices. List all devices in the specified region. By default, returned devices are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
109
97
|
*
|
|
110
98
|
* @param request - The request {@link ListDevicesRequest}
|
|
111
99
|
* @returns A Promise of ListDevicesResponse
|
|
@@ -122,17 +110,14 @@ export declare class API extends ParentAPI {
|
|
|
122
110
|
*/
|
|
123
111
|
createDevice: (request: Readonly<CreateDeviceRequest>) => Promise<CreateDeviceResponse>;
|
|
124
112
|
/**
|
|
125
|
-
* Get a device. Retrieve information about an existing device, specified by
|
|
126
|
-
* its device ID. Its full details, including name, status and ID, are
|
|
127
|
-
* returned in the response object.
|
|
113
|
+
* Get a device. Retrieve information about an existing device, specified by its device ID. Its full details, including name, status and ID, are returned in the response object.
|
|
128
114
|
*
|
|
129
115
|
* @param request - The request {@link GetDeviceRequest}
|
|
130
116
|
* @returns A Promise of Device
|
|
131
117
|
*/
|
|
132
118
|
getDevice: (request: Readonly<GetDeviceRequest>) => Promise<Device>;
|
|
133
119
|
/**
|
|
134
|
-
* Update a device. Update the parameters of an existing device, specified by
|
|
135
|
-
* its device ID.
|
|
120
|
+
* Update a device. Update the parameters of an existing device, specified by its device ID.
|
|
136
121
|
*
|
|
137
122
|
* @param request - The request {@link UpdateDeviceRequest}
|
|
138
123
|
* @returns A Promise of Device
|
|
@@ -153,40 +138,34 @@ export declare class API extends ParentAPI {
|
|
|
153
138
|
*/
|
|
154
139
|
disableDevice: (request: Readonly<DisableDeviceRequest>) => Promise<Device>;
|
|
155
140
|
/**
|
|
156
|
-
* Renew a device certificate. Renew the certificate of an existing device,
|
|
157
|
-
* specified by its device ID.
|
|
141
|
+
* Renew a device certificate. Renew the certificate of an existing device, specified by its device ID.
|
|
158
142
|
*
|
|
159
143
|
* @param request - The request {@link RenewDeviceCertificateRequest}
|
|
160
144
|
* @returns A Promise of RenewDeviceCertificateResponse
|
|
161
145
|
*/
|
|
162
146
|
renewDeviceCertificate: (request: Readonly<RenewDeviceCertificateRequest>) => Promise<RenewDeviceCertificateResponse>;
|
|
163
147
|
/**
|
|
164
|
-
* Set a custom certificate on a device. Switch the existing certificate of a
|
|
165
|
-
* given device with an EM-encoded custom certificate.
|
|
148
|
+
* Set a custom certificate on a device. Switch the existing certificate of a given device with an EM-encoded custom certificate.
|
|
166
149
|
*
|
|
167
150
|
* @param request - The request {@link SetDeviceCertificateRequest}
|
|
168
151
|
* @returns A Promise of SetDeviceCertificateResponse
|
|
169
152
|
*/
|
|
170
153
|
setDeviceCertificate: (request: Readonly<SetDeviceCertificateRequest>) => Promise<SetDeviceCertificateResponse>;
|
|
171
154
|
/**
|
|
172
|
-
* Get a device's certificate. Get information for a particular PEM-encoded
|
|
173
|
-
* certificate, specified by the device ID. The response returns full details
|
|
174
|
-
* of the device, including its type of certificate.
|
|
155
|
+
* Get a device's certificate. Get information for a particular PEM-encoded certificate, specified by the device ID. The response returns full details of the device, including its type of certificate.
|
|
175
156
|
*
|
|
176
157
|
* @param request - The request {@link GetDeviceCertificateRequest}
|
|
177
158
|
* @returns A Promise of GetDeviceCertificateResponse
|
|
178
159
|
*/
|
|
179
160
|
getDeviceCertificate: (request: Readonly<GetDeviceCertificateRequest>) => Promise<GetDeviceCertificateResponse>;
|
|
180
161
|
/**
|
|
181
|
-
* Remove a device. Remove a specific device from the specific Hub it is
|
|
182
|
-
* attached to.
|
|
162
|
+
* Remove a device. Remove a specific device from the specific Hub it is attached to.
|
|
183
163
|
*
|
|
184
164
|
* @param request - The request {@link DeleteDeviceRequest}
|
|
185
165
|
*/
|
|
186
166
|
deleteDevice: (request: Readonly<DeleteDeviceRequest>) => Promise<void>;
|
|
187
167
|
/**
|
|
188
|
-
* Get a device's metrics. Get the metrics of an existing device, specified by
|
|
189
|
-
* its device ID.
|
|
168
|
+
* Get a device's metrics. Get the metrics of an existing device, specified by its device ID.
|
|
190
169
|
*
|
|
191
170
|
* @deprecated
|
|
192
171
|
* @param request - The request {@link GetDeviceMetricsRequest}
|
|
@@ -195,9 +174,7 @@ export declare class API extends ParentAPI {
|
|
|
195
174
|
getDeviceMetrics: (request: Readonly<GetDeviceMetricsRequest>) => Promise<GetDeviceMetricsResponse>;
|
|
196
175
|
protected pageOfListRoutes: (request?: Readonly<ListRoutesRequest>) => Promise<ListRoutesResponse>;
|
|
197
176
|
/**
|
|
198
|
-
* List routes. List all routes in the specified region. By default, returned
|
|
199
|
-
* routes are ordered by creation date in ascending order, though this can be
|
|
200
|
-
* modified via the `order_by` field.
|
|
177
|
+
* List routes. List all routes in the specified region. By default, returned routes are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
201
178
|
*
|
|
202
179
|
* @param request - The request {@link ListRoutesRequest}
|
|
203
180
|
* @returns A Promise of ListRoutesResponse
|
|
@@ -208,41 +185,36 @@ export declare class API extends ParentAPI {
|
|
|
208
185
|
};
|
|
209
186
|
/**
|
|
210
187
|
* Create a route. Multiple kinds of routes can be created, such as:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
* --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
|
|
188
|
+
- Database Route
|
|
189
|
+
Create a route that will record subscribed MQTT messages into your database.
|
|
190
|
+
<b>You need to manage the database by yourself</b>.
|
|
191
|
+
- REST Route.
|
|
192
|
+
Create a route that will call a REST API on received subscribed MQTT messages.
|
|
193
|
+
- Amazon S3 Routes.
|
|
194
|
+
Create a route that will put subscribed MQTT messages into an Object Storage bucket.
|
|
195
|
+
You need to create the bucket yourself and grant write access.
|
|
196
|
+
Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket> --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
|
|
221
197
|
*
|
|
222
198
|
* @param request - The request {@link CreateRouteRequest}
|
|
223
199
|
* @returns A Promise of Route
|
|
224
200
|
*/
|
|
225
201
|
createRoute: (request: Readonly<CreateRouteRequest>) => Promise<Route>;
|
|
226
202
|
/**
|
|
227
|
-
* Update a route. Update the parameters of an existing route, specified by
|
|
228
|
-
* its route ID.
|
|
203
|
+
* Update a route. Update the parameters of an existing route, specified by its route ID.
|
|
229
204
|
*
|
|
230
205
|
* @param request - The request {@link UpdateRouteRequest}
|
|
231
206
|
* @returns A Promise of Route
|
|
232
207
|
*/
|
|
233
208
|
updateRoute: (request: Readonly<UpdateRouteRequest>) => Promise<Route>;
|
|
234
209
|
/**
|
|
235
|
-
* Get a route. Get information for a particular route, specified by the route
|
|
236
|
-
* ID. The response returns full details of the route, including its type, the
|
|
237
|
-
* topic it subscribes to and its configuration.
|
|
210
|
+
* Get a route. Get information for a particular route, specified by the route ID. The response returns full details of the route, including its type, the topic it subscribes to and its configuration.
|
|
238
211
|
*
|
|
239
212
|
* @param request - The request {@link GetRouteRequest}
|
|
240
213
|
* @returns A Promise of Route
|
|
241
214
|
*/
|
|
242
215
|
getRoute: (request: Readonly<GetRouteRequest>) => Promise<Route>;
|
|
243
216
|
/**
|
|
244
|
-
* Delete a route. Delete an existing route, specified by its route ID.
|
|
245
|
-
* Deleting a route is permanent, and cannot be undone.
|
|
217
|
+
* Delete a route. Delete an existing route, specified by its route ID. Deleting a route is permanent, and cannot be undone.
|
|
246
218
|
*
|
|
247
219
|
* @param request - The request {@link DeleteRouteRequest}
|
|
248
220
|
*/
|
|
@@ -259,26 +231,21 @@ export declare class API extends ParentAPI {
|
|
|
259
231
|
[Symbol.asyncIterator]: () => AsyncGenerator<Network[], void, void>;
|
|
260
232
|
};
|
|
261
233
|
/**
|
|
262
|
-
* Create a new network. Create a new network for an existing hub.
|
|
263
|
-
* default network, you can add networks for different data providers.
|
|
264
|
-
* Possible network types are Sigfox and REST.
|
|
234
|
+
* Create a new network. Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST.
|
|
265
235
|
*
|
|
266
236
|
* @param request - The request {@link CreateNetworkRequest}
|
|
267
237
|
* @returns A Promise of CreateNetworkResponse
|
|
268
238
|
*/
|
|
269
239
|
createNetwork: (request: Readonly<CreateNetworkRequest>) => Promise<CreateNetworkResponse>;
|
|
270
240
|
/**
|
|
271
|
-
* Retrieve a specific network. Retrieve an existing network, specified by its
|
|
272
|
-
* network ID. The response returns full details of the network, including its
|
|
273
|
-
* type, the topic prefix and its endpoint.
|
|
241
|
+
* Retrieve a specific network. Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint.
|
|
274
242
|
*
|
|
275
243
|
* @param request - The request {@link GetNetworkRequest}
|
|
276
244
|
* @returns A Promise of Network
|
|
277
245
|
*/
|
|
278
246
|
getNetwork: (request: Readonly<GetNetworkRequest>) => Promise<Network>;
|
|
279
247
|
/**
|
|
280
|
-
* Delete a Network. Delete an existing network, specified by its network ID.
|
|
281
|
-
* Deleting a network is permanent, and cannot be undone.
|
|
248
|
+
* Delete a Network. Delete an existing network, specified by its network ID. Deleting a network is permanent, and cannot be undone.
|
|
282
249
|
*
|
|
283
250
|
* @param request - The request {@link DeleteNetworkRequest}
|
|
284
251
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../../../
|
|
5
|
-
import
|
|
1
|
+
import "../../../client/dist/internal/logger/index.js";
|
|
2
|
+
import { waitForResource } from "../../../client/dist/internal/async/interval-retrier.js";
|
|
3
|
+
import { API as API$1 } from "../../../client/dist/scw/api.js";
|
|
4
|
+
import { validatePathParam, urlParams } from "../../../client/dist/helpers/marshalling.js";
|
|
5
|
+
import "../../../client/dist/vendor/base64/index.js";
|
|
6
|
+
import { enrichForPagination } from "../../../client/dist/scw/fetch/resource-paginator.js";
|
|
6
7
|
import { HUB_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
8
|
import { unmarshalListHubsResponse, marshalCreateHubRequest, unmarshalHub, marshalUpdateHubRequest, unmarshalGetHubMetricsResponse, marshalSetHubCARequest, unmarshalGetHubCAResponse, unmarshalListDevicesResponse, marshalCreateDeviceRequest, unmarshalCreateDeviceResponse, unmarshalDevice, marshalUpdateDeviceRequest, unmarshalRenewDeviceCertificateResponse, marshalSetDeviceCertificateRequest, unmarshalSetDeviceCertificateResponse, unmarshalGetDeviceCertificateResponse, unmarshalGetDeviceMetricsResponse, unmarshalListRoutesResponse, marshalCreateRouteRequest, unmarshalRoute, marshalUpdateRouteRequest, unmarshalListNetworksResponse, marshalCreateNetworkRequest, unmarshalCreateNetworkResponse, unmarshalNetwork, unmarshalTwinDocument, marshalPutTwinDocumentRequest, marshalPatchTwinDocumentRequest, unmarshalListTwinDocumentsResponse } from "./marshalling.gen.js";
|
|
8
9
|
const jsonContentHeaders = {
|
|
@@ -30,17 +31,14 @@ class API extends API$1 {
|
|
|
30
31
|
unmarshalListHubsResponse
|
|
31
32
|
);
|
|
32
33
|
/**
|
|
33
|
-
* List hubs. List all Hubs in the specified zone. By default, returned Hubs
|
|
34
|
-
* are ordered by creation date in ascending order, though this can be
|
|
35
|
-
* modified via the `order_by` field.
|
|
34
|
+
* List hubs. List all Hubs in the specified zone. By default, returned Hubs are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
36
35
|
*
|
|
37
36
|
* @param request - The request {@link ListHubsRequest}
|
|
38
37
|
* @returns A Promise of ListHubsResponse
|
|
39
38
|
*/
|
|
40
39
|
listHubs = (request = {}) => enrichForPagination("hubs", this.pageOfListHubs, request);
|
|
41
40
|
/**
|
|
42
|
-
* Create a hub. Create a new Hub in the targeted region, specifying its
|
|
43
|
-
* configuration including name and product plan.
|
|
41
|
+
* Create a hub. Create a new Hub in the targeted region, specifying its configuration including name and product plan.
|
|
44
42
|
*
|
|
45
43
|
* @param request - The request {@link CreateHubRequest}
|
|
46
44
|
* @returns A Promise of Hub
|
|
@@ -57,9 +55,7 @@ class API extends API$1 {
|
|
|
57
55
|
unmarshalHub
|
|
58
56
|
);
|
|
59
57
|
/**
|
|
60
|
-
* Get a hub. Retrieve information about an existing IoT Hub, specified by its
|
|
61
|
-
* Hub ID. Its full details, including name, status and endpoint, are returned
|
|
62
|
-
* in the response object.
|
|
58
|
+
* Get a hub. Retrieve information about an existing IoT Hub, specified by its Hub ID. Its full details, including name, status and endpoint, are returned in the response object.
|
|
63
59
|
*
|
|
64
60
|
* @param request - The request {@link GetHubRequest}
|
|
65
61
|
* @returns A Promise of Hub
|
|
@@ -85,8 +81,7 @@ class API extends API$1 {
|
|
|
85
81
|
options
|
|
86
82
|
);
|
|
87
83
|
/**
|
|
88
|
-
* Update a hub. Update the parameters of an existing IoT Hub, specified by
|
|
89
|
-
* its Hub ID.
|
|
84
|
+
* Update a hub. Update the parameters of an existing IoT Hub, specified by its Hub ID.
|
|
90
85
|
*
|
|
91
86
|
* @param request - The request {@link UpdateHubRequest}
|
|
92
87
|
* @returns A Promise of Hub
|
|
@@ -133,8 +128,7 @@ class API extends API$1 {
|
|
|
133
128
|
unmarshalHub
|
|
134
129
|
);
|
|
135
130
|
/**
|
|
136
|
-
* Delete a hub. Delete an existing IoT Hub, specified by its Hub ID. Deleting
|
|
137
|
-
* a Hub is permanent, and cannot be undone.
|
|
131
|
+
* Delete a hub. Delete an existing IoT Hub, specified by its Hub ID. Deleting a Hub is permanent, and cannot be undone.
|
|
138
132
|
*
|
|
139
133
|
* @param request - The request {@link DeleteHubRequest}
|
|
140
134
|
*/
|
|
@@ -144,8 +138,7 @@ class API extends API$1 {
|
|
|
144
138
|
urlParams: urlParams(["delete_devices", request.deleteDevices])
|
|
145
139
|
});
|
|
146
140
|
/**
|
|
147
|
-
* Get a hub's metrics. Get the metrics of an existing IoT Hub, specified by
|
|
148
|
-
* its Hub ID.
|
|
141
|
+
* Get a hub's metrics. Get the metrics of an existing IoT Hub, specified by its Hub ID.
|
|
149
142
|
*
|
|
150
143
|
* @deprecated
|
|
151
144
|
* @param request - The request {@link GetHubMetricsRequest}
|
|
@@ -160,8 +153,7 @@ class API extends API$1 {
|
|
|
160
153
|
unmarshalGetHubMetricsResponse
|
|
161
154
|
);
|
|
162
155
|
/**
|
|
163
|
-
* Set the certificate authority of a hub. Set a particular PEM-encoded
|
|
164
|
-
* certificate, specified by the Hub ID.
|
|
156
|
+
* Set the certificate authority of a hub. Set a particular PEM-encoded certificate, specified by the Hub ID.
|
|
165
157
|
*
|
|
166
158
|
* @param request - The request {@link SetHubCARequest}
|
|
167
159
|
* @returns A Promise of Hub
|
|
@@ -178,8 +170,7 @@ class API extends API$1 {
|
|
|
178
170
|
unmarshalHub
|
|
179
171
|
);
|
|
180
172
|
/**
|
|
181
|
-
* Get the certificate authority of a hub. Get information for a particular
|
|
182
|
-
* PEM-encoded certificate, specified by the Hub ID.
|
|
173
|
+
* Get the certificate authority of a hub. Get information for a particular PEM-encoded certificate, specified by the Hub ID.
|
|
183
174
|
*
|
|
184
175
|
* @param request - The request {@link GetHubCARequest}
|
|
185
176
|
* @returns A Promise of GetHubCAResponse
|
|
@@ -211,9 +202,7 @@ class API extends API$1 {
|
|
|
211
202
|
unmarshalListDevicesResponse
|
|
212
203
|
);
|
|
213
204
|
/**
|
|
214
|
-
* List devices. List all devices in the specified region. By default,
|
|
215
|
-
* returned devices are ordered by creation date in ascending order, though
|
|
216
|
-
* this can be modified via the `order_by` field.
|
|
205
|
+
* List devices. List all devices in the specified region. By default, returned devices are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
217
206
|
*
|
|
218
207
|
* @param request - The request {@link ListDevicesRequest}
|
|
219
208
|
* @returns A Promise of ListDevicesResponse
|
|
@@ -237,9 +226,7 @@ class API extends API$1 {
|
|
|
237
226
|
unmarshalCreateDeviceResponse
|
|
238
227
|
);
|
|
239
228
|
/**
|
|
240
|
-
* Get a device. Retrieve information about an existing device, specified by
|
|
241
|
-
* its device ID. Its full details, including name, status and ID, are
|
|
242
|
-
* returned in the response object.
|
|
229
|
+
* Get a device. Retrieve information about an existing device, specified by its device ID. Its full details, including name, status and ID, are returned in the response object.
|
|
243
230
|
*
|
|
244
231
|
* @param request - The request {@link GetDeviceRequest}
|
|
245
232
|
* @returns A Promise of Device
|
|
@@ -252,8 +239,7 @@ class API extends API$1 {
|
|
|
252
239
|
unmarshalDevice
|
|
253
240
|
);
|
|
254
241
|
/**
|
|
255
|
-
* Update a device. Update the parameters of an existing device, specified by
|
|
256
|
-
* its device ID.
|
|
242
|
+
* Update a device. Update the parameters of an existing device, specified by its device ID.
|
|
257
243
|
*
|
|
258
244
|
* @param request - The request {@link UpdateDeviceRequest}
|
|
259
245
|
* @returns A Promise of Device
|
|
@@ -300,8 +286,7 @@ class API extends API$1 {
|
|
|
300
286
|
unmarshalDevice
|
|
301
287
|
);
|
|
302
288
|
/**
|
|
303
|
-
* Renew a device certificate. Renew the certificate of an existing device,
|
|
304
|
-
* specified by its device ID.
|
|
289
|
+
* Renew a device certificate. Renew the certificate of an existing device, specified by its device ID.
|
|
305
290
|
*
|
|
306
291
|
* @param request - The request {@link RenewDeviceCertificateRequest}
|
|
307
292
|
* @returns A Promise of RenewDeviceCertificateResponse
|
|
@@ -316,8 +301,7 @@ class API extends API$1 {
|
|
|
316
301
|
unmarshalRenewDeviceCertificateResponse
|
|
317
302
|
);
|
|
318
303
|
/**
|
|
319
|
-
* Set a custom certificate on a device. Switch the existing certificate of a
|
|
320
|
-
* given device with an EM-encoded custom certificate.
|
|
304
|
+
* Set a custom certificate on a device. Switch the existing certificate of a given device with an EM-encoded custom certificate.
|
|
321
305
|
*
|
|
322
306
|
* @param request - The request {@link SetDeviceCertificateRequest}
|
|
323
307
|
* @returns A Promise of SetDeviceCertificateResponse
|
|
@@ -334,9 +318,7 @@ class API extends API$1 {
|
|
|
334
318
|
unmarshalSetDeviceCertificateResponse
|
|
335
319
|
);
|
|
336
320
|
/**
|
|
337
|
-
* Get a device's certificate. Get information for a particular PEM-encoded
|
|
338
|
-
* certificate, specified by the device ID. The response returns full details
|
|
339
|
-
* of the device, including its type of certificate.
|
|
321
|
+
* Get a device's certificate. Get information for a particular PEM-encoded certificate, specified by the device ID. The response returns full details of the device, including its type of certificate.
|
|
340
322
|
*
|
|
341
323
|
* @param request - The request {@link GetDeviceCertificateRequest}
|
|
342
324
|
* @returns A Promise of GetDeviceCertificateResponse
|
|
@@ -349,8 +331,7 @@ class API extends API$1 {
|
|
|
349
331
|
unmarshalGetDeviceCertificateResponse
|
|
350
332
|
);
|
|
351
333
|
/**
|
|
352
|
-
* Remove a device. Remove a specific device from the specific Hub it is
|
|
353
|
-
* attached to.
|
|
334
|
+
* Remove a device. Remove a specific device from the specific Hub it is attached to.
|
|
354
335
|
*
|
|
355
336
|
* @param request - The request {@link DeleteDeviceRequest}
|
|
356
337
|
*/
|
|
@@ -359,8 +340,7 @@ class API extends API$1 {
|
|
|
359
340
|
path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}`
|
|
360
341
|
});
|
|
361
342
|
/**
|
|
362
|
-
* Get a device's metrics. Get the metrics of an existing device, specified by
|
|
363
|
-
* its device ID.
|
|
343
|
+
* Get a device's metrics. Get the metrics of an existing device, specified by its device ID.
|
|
364
344
|
*
|
|
365
345
|
* @deprecated
|
|
366
346
|
* @param request - The request {@link GetDeviceMetricsRequest}
|
|
@@ -392,30 +372,27 @@ class API extends API$1 {
|
|
|
392
372
|
unmarshalListRoutesResponse
|
|
393
373
|
);
|
|
394
374
|
/**
|
|
395
|
-
* List routes. List all routes in the specified region. By default, returned
|
|
396
|
-
* routes are ordered by creation date in ascending order, though this can be
|
|
397
|
-
* modified via the `order_by` field.
|
|
375
|
+
* List routes. List all routes in the specified region. By default, returned routes are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
398
376
|
*
|
|
399
377
|
* @param request - The request {@link ListRoutesRequest}
|
|
400
378
|
* @returns A Promise of ListRoutesResponse
|
|
401
379
|
*/
|
|
402
380
|
listRoutes = (request = {}) => enrichForPagination("routes", this.pageOfListRoutes, request);
|
|
403
381
|
/**
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
*/
|
|
382
|
+
* Create a route. Multiple kinds of routes can be created, such as:
|
|
383
|
+
- Database Route
|
|
384
|
+
Create a route that will record subscribed MQTT messages into your database.
|
|
385
|
+
<b>You need to manage the database by yourself</b>.
|
|
386
|
+
- REST Route.
|
|
387
|
+
Create a route that will call a REST API on received subscribed MQTT messages.
|
|
388
|
+
- Amazon S3 Routes.
|
|
389
|
+
Create a route that will put subscribed MQTT messages into an Object Storage bucket.
|
|
390
|
+
You need to create the bucket yourself and grant write access.
|
|
391
|
+
Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket> --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
|
|
392
|
+
*
|
|
393
|
+
* @param request - The request {@link CreateRouteRequest}
|
|
394
|
+
* @returns A Promise of Route
|
|
395
|
+
*/
|
|
419
396
|
createRoute = (request) => this.client.fetch(
|
|
420
397
|
{
|
|
421
398
|
body: JSON.stringify(
|
|
@@ -428,8 +405,7 @@ class API extends API$1 {
|
|
|
428
405
|
unmarshalRoute
|
|
429
406
|
);
|
|
430
407
|
/**
|
|
431
|
-
* Update a route. Update the parameters of an existing route, specified by
|
|
432
|
-
* its route ID.
|
|
408
|
+
* Update a route. Update the parameters of an existing route, specified by its route ID.
|
|
433
409
|
*
|
|
434
410
|
* @param request - The request {@link UpdateRouteRequest}
|
|
435
411
|
* @returns A Promise of Route
|
|
@@ -446,9 +422,7 @@ class API extends API$1 {
|
|
|
446
422
|
unmarshalRoute
|
|
447
423
|
);
|
|
448
424
|
/**
|
|
449
|
-
* Get a route. Get information for a particular route, specified by the route
|
|
450
|
-
* ID. The response returns full details of the route, including its type, the
|
|
451
|
-
* topic it subscribes to and its configuration.
|
|
425
|
+
* Get a route. Get information for a particular route, specified by the route ID. The response returns full details of the route, including its type, the topic it subscribes to and its configuration.
|
|
452
426
|
*
|
|
453
427
|
* @param request - The request {@link GetRouteRequest}
|
|
454
428
|
* @returns A Promise of Route
|
|
@@ -461,8 +435,7 @@ class API extends API$1 {
|
|
|
461
435
|
unmarshalRoute
|
|
462
436
|
);
|
|
463
437
|
/**
|
|
464
|
-
* Delete a route. Delete an existing route, specified by its route ID.
|
|
465
|
-
* Deleting a route is permanent, and cannot be undone.
|
|
438
|
+
* Delete a route. Delete an existing route, specified by its route ID. Deleting a route is permanent, and cannot be undone.
|
|
466
439
|
*
|
|
467
440
|
* @param request - The request {@link DeleteRouteRequest}
|
|
468
441
|
*/
|
|
@@ -496,9 +469,7 @@ class API extends API$1 {
|
|
|
496
469
|
*/
|
|
497
470
|
listNetworks = (request = {}) => enrichForPagination("networks", this.pageOfListNetworks, request);
|
|
498
471
|
/**
|
|
499
|
-
* Create a new network. Create a new network for an existing hub.
|
|
500
|
-
* default network, you can add networks for different data providers.
|
|
501
|
-
* Possible network types are Sigfox and REST.
|
|
472
|
+
* Create a new network. Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST.
|
|
502
473
|
*
|
|
503
474
|
* @param request - The request {@link CreateNetworkRequest}
|
|
504
475
|
* @returns A Promise of CreateNetworkResponse
|
|
@@ -515,9 +486,7 @@ class API extends API$1 {
|
|
|
515
486
|
unmarshalCreateNetworkResponse
|
|
516
487
|
);
|
|
517
488
|
/**
|
|
518
|
-
* Retrieve a specific network. Retrieve an existing network, specified by its
|
|
519
|
-
* network ID. The response returns full details of the network, including its
|
|
520
|
-
* type, the topic prefix and its endpoint.
|
|
489
|
+
* Retrieve a specific network. Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint.
|
|
521
490
|
*
|
|
522
491
|
* @param request - The request {@link GetNetworkRequest}
|
|
523
492
|
* @returns A Promise of Network
|
|
@@ -530,8 +499,7 @@ class API extends API$1 {
|
|
|
530
499
|
unmarshalNetwork
|
|
531
500
|
);
|
|
532
501
|
/**
|
|
533
|
-
* Delete a Network. Delete an existing network, specified by its network ID.
|
|
534
|
-
* Deleting a network is permanent, and cannot be undone.
|
|
502
|
+
* Delete a Network. Delete an existing network, specified by its network ID. Deleting a network is permanent, and cannot be undone.
|
|
535
503
|
*
|
|
536
504
|
* @param request - The request {@link DeleteNetworkRequest}
|
|
537
505
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const randomName = require("@scaleway/random-name");
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
require("../../../client/dist/internal/logger/index.cjs");
|
|
5
|
+
const json = require("../../../client/dist/helpers/json.cjs");
|
|
6
|
+
const customMarshalling = require("../../../client/dist/scw/custom-marshalling.cjs");
|
|
7
|
+
const marshalling = require("../../../client/dist/helpers/marshalling.cjs");
|
|
7
8
|
const unmarshalDeviceMessageFiltersRule = (data) => {
|
|
8
9
|
if (!json.isJSONObject(data)) {
|
|
9
10
|
throw new TypeError(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefaultValues } from '
|
|
1
|
+
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
2
|
import type { CreateDeviceRequest, CreateDeviceResponse, CreateHubRequest, CreateNetworkRequest, CreateNetworkResponse, CreateRouteRequest, Device, GetDeviceCertificateResponse, GetDeviceMetricsResponse, GetHubCAResponse, GetHubMetricsResponse, Hub, ListDevicesResponse, ListHubsResponse, ListNetworksResponse, ListRoutesResponse, ListTwinDocumentsResponse, Network, PatchTwinDocumentRequest, PutTwinDocumentRequest, RenewDeviceCertificateResponse, Route, SetDeviceCertificateRequest, SetDeviceCertificateResponse, SetHubCARequest, TwinDocument, UpdateDeviceRequest, UpdateHubRequest, UpdateRouteRequest } from './types.gen';
|
|
3
3
|
export declare const unmarshalDevice: (data: unknown) => Device;
|
|
4
4
|
export declare const unmarshalNetwork: (data: unknown) => Network;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import randomName from "@scaleway/random-name";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import "../../../client/dist/internal/logger/index.js";
|
|
3
|
+
import { isJSONObject } from "../../../client/dist/helpers/json.js";
|
|
4
|
+
import { unmarshalTimeSeries } from "../../../client/dist/scw/custom-marshalling.js";
|
|
5
|
+
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../client/dist/helpers/marshalling.js";
|
|
5
6
|
const unmarshalDeviceMessageFiltersRule = (data) => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(
|