@scaleway/sdk 2.26.0 → 2.27.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.cjs +6 -0
- package/dist/api/account/index.d.ts +2 -0
- package/dist/api/account/index.js +6 -4
- package/dist/api/account/v2/api.gen.cjs +116 -0
- package/dist/api/account/v2/api.gen.d.ts +67 -0
- package/dist/api/account/v2/api.gen.js +61 -44
- package/dist/api/account/v2/index.gen.cjs +4 -0
- package/dist/api/account/v2/index.gen.d.ts +2 -0
- package/dist/api/account/v2/index.gen.js +4 -4
- package/dist/api/account/v2/marshalling.gen.cjs +44 -0
- package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v2/marshalling.gen.js +18 -13
- package/dist/api/account/v2/types.gen.d.ts +62 -0
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +57 -0
- package/dist/api/account/v3/api.gen.js +61 -44
- package/dist/api/account/v3/index.gen.cjs +6 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -0
- package/dist/api/account/v3/index.gen.js +6 -6
- package/dist/api/account/v3/marshalling.gen.cjs +44 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v3/marshalling.gen.js +18 -13
- package/dist/api/account/v3/types.gen.d.ts +62 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
- package/dist/api/account/v3/validation-rules.gen.js +5 -5
- package/dist/api/applesilicon/index.cjs +4 -0
- package/dist/api/applesilicon/index.d.ts +1 -0
- package/dist/api/applesilicon/index.js +4 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +119 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +56 -32
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
- package/dist/api/baremetal/index.cjs +4 -0
- package/dist/api/baremetal/index.d.ts +1 -0
- package/dist/api/baremetal/index.js +4 -2
- package/dist/api/baremetal/v1/api.gen.cjs +575 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
- package/dist/api/baremetal/v1/api.gen.js +353 -205
- package/dist/api/baremetal/v1/api.utils.cjs +36 -0
- package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
- package/dist/api/baremetal/v1/api.utils.js +27 -18
- package/dist/api/baremetal/v1/content.gen.cjs +18 -0
- package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
- package/dist/api/baremetal/v1/content.gen.js +18 -13
- package/dist/api/baremetal/v1/index.cjs +12 -0
- package/dist/api/baremetal/v1/index.d.ts +5 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
- package/dist/api/baremetal/v1/index.js +12 -5
- package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
- package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
- package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
- package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
- package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
- package/dist/api/billing/index.cjs +6 -0
- package/dist/api/billing/index.d.ts +2 -0
- package/dist/api/billing/index.js +6 -4
- package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
- package/dist/api/billing/v2alpha1/api.gen.d.ts +50 -0
- package/dist/api/billing/v2alpha1/api.gen.js +60 -39
- package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
- package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2alpha1/index.gen.js +4 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
- package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
- package/dist/api/billing/v2beta1/api.gen.d.ts +79 -0
- package/dist/api/billing/v2beta1/api.gen.js +122 -65
- package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
- package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2beta1/index.gen.js +4 -4
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
- package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
- package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
- package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
- package/dist/api/block/index.cjs +4 -0
- package/dist/api/block/index.d.ts +1 -0
- package/dist/api/block/index.js +4 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
- package/dist/api/block/v1alpha1/api.gen.js +167 -90
- package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
- package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/block/v1alpha1/content.gen.js +20 -13
- package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/block/v1alpha1/index.gen.js +10 -7
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
- package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
- package/dist/api/cockpit/index.cjs +6 -0
- package/dist/api/cockpit/index.d.ts +2 -0
- package/dist/api/cockpit/index.js +6 -4
- package/dist/api/cockpit/v1/api.gen.cjs +629 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
- package/dist/api/cockpit/v1/api.gen.js +374 -201
- package/dist/api/cockpit/v1/index.gen.cjs +7 -0
- package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1/index.gen.js +7 -6
- package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
- package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
- package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +224 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
- package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
- package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
- package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
- package/dist/api/container/index.cjs +4 -0
- package/dist/api/container/index.d.ts +1 -0
- package/dist/api/container/index.js +4 -2
- package/dist/api/container/v1beta1/api.gen.cjs +621 -0
- package/dist/api/container/v1beta1/api.gen.d.ts +300 -0
- package/dist/api/container/v1beta1/api.gen.js +384 -228
- package/dist/api/container/v1beta1/content.gen.cjs +34 -0
- package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/container/v1beta1/content.gen.js +34 -22
- package/dist/api/container/v1beta1/index.gen.cjs +13 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/container/v1beta1/index.gen.js +13 -7
- package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
- package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/dedibox/index.cjs +4 -0
- package/dist/api/dedibox/index.d.ts +1 -0
- package/dist/api/dedibox/index.js +4 -2
- package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
- package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
- package/dist/api/dedibox/v1/api.gen.js +1051 -565
- package/dist/api/dedibox/v1/content.gen.cjs +49 -0
- package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
- package/dist/api/dedibox/v1/content.gen.js +49 -31
- package/dist/api/dedibox/v1/index.gen.cjs +22 -0
- package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
- package/dist/api/dedibox/v1/index.gen.js +22 -7
- package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
- package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
- package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
- package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
- package/dist/api/document_db/index.cjs +4 -0
- package/dist/api/document_db/index.d.ts +1 -0
- package/dist/api/document_db/index.js +4 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
- package/dist/api/document_db/v1beta1/api.gen.d.ts +538 -0
- package/dist/api/document_db/v1beta1/api.gen.js +561 -339
- package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
- package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
- package/dist/api/document_db/v1beta1/content.gen.js +31 -19
- package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
- package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/document_db/v1beta1/index.gen.js +12 -7
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/domain/index.cjs +4 -0
- package/dist/api/domain/index.d.ts +1 -0
- package/dist/api/domain/index.js +4 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
- package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
- package/dist/api/domain/v2beta1/api.gen.js +638 -365
- package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
- package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
- package/dist/api/domain/v2beta1/content.gen.js +29 -28
- package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
- package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
- package/dist/api/domain/v2beta1/index.gen.js +13 -5
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
- package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
- package/dist/api/flexibleip/index.cjs +4 -0
- package/dist/api/flexibleip/index.d.ts +1 -0
- package/dist/api/flexibleip/index.js +4 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +117 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
- package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
- package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
- package/dist/api/function/index.cjs +4 -0
- package/dist/api/function/index.d.ts +1 -0
- package/dist/api/function/index.js +4 -2
- package/dist/api/function/v1beta1/api.gen.cjs +666 -0
- package/dist/api/function/v1beta1/api.gen.d.ts +326 -0
- package/dist/api/function/v1beta1/api.gen.js +406 -244
- package/dist/api/function/v1beta1/content.gen.cjs +34 -0
- package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/function/v1beta1/content.gen.js +34 -22
- package/dist/api/function/v1beta1/index.gen.cjs +13 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/function/v1beta1/index.gen.js +13 -7
- package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
- package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
- package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/iam/index.cjs +4 -0
- package/dist/api/iam/index.d.ts +1 -0
- package/dist/api/iam/index.js +4 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +475 -0
- package/dist/api/iam/v1alpha1/api.gen.js +560 -302
- package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/iam/v1alpha1/index.gen.js +6 -6
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
- package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
- package/dist/api/index.d.ts +34 -0
- package/dist/api/instance/index.cjs +4 -0
- package/dist/api/instance/index.d.ts +1 -0
- package/dist/api/instance/index.js +4 -2
- package/dist/api/instance/v1/api.gen.cjs +1178 -0
- package/dist/api/instance/v1/api.gen.d.ts +528 -0
- package/dist/api/instance/v1/api.gen.js +753 -436
- package/dist/api/instance/v1/api.utils.cjs +279 -0
- package/dist/api/instance/v1/api.utils.d.ts +95 -0
- package/dist/api/instance/v1/api.utils.js +145 -109
- package/dist/api/instance/v1/content.gen.cjs +44 -0
- package/dist/api/instance/v1/content.gen.d.ts +21 -0
- package/dist/api/instance/v1/content.gen.js +44 -34
- package/dist/api/instance/v1/index.cjs +15 -0
- package/dist/api/instance/v1/index.d.ts +4 -0
- package/dist/api/instance/v1/index.gen.d.ts +4 -0
- package/dist/api/instance/v1/index.js +15 -2
- package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
- package/dist/api/instance/v1/marshalling.gen.js +736 -412
- package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
- package/dist/api/instance/v1/types.gen.d.ts +1818 -0
- package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
- package/dist/api/instance/v1/types.utils.d.ts +35 -0
- package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
- package/dist/api/iot/index.cjs +4 -0
- package/dist/api/iot/index.d.ts +1 -0
- package/dist/api/iot/index.js +4 -2
- package/dist/api/iot/v1/api.gen.cjs +621 -0
- package/dist/api/iot/v1/api.gen.d.ts +325 -0
- package/dist/api/iot/v1/api.gen.js +350 -238
- package/dist/api/iot/v1/content.gen.cjs +4 -0
- package/dist/api/iot/v1/content.gen.d.ts +3 -0
- package/dist/api/iot/v1/content.gen.js +4 -7
- package/dist/api/iot/v1/index.gen.cjs +6 -0
- package/dist/api/iot/v1/index.gen.d.ts +3 -0
- package/dist/api/iot/v1/index.gen.js +6 -5
- package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
- package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/iot/v1/marshalling.gen.js +209 -114
- package/dist/api/iot/v1/types.gen.d.ts +916 -0
- package/dist/api/ipam/index.cjs +4 -0
- package/dist/api/ipam/index.d.ts +1 -0
- package/dist/api/ipam/index.js +4 -2
- package/dist/api/ipam/v1/api.gen.cjs +115 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +73 -55
- package/dist/api/ipam/v1/index.gen.cjs +6 -0
- package/dist/api/ipam/v1/index.gen.d.ts +3 -0
- package/dist/api/ipam/v1/index.gen.js +6 -6
- package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +35 -29
- package/dist/api/ipam/v1/types.gen.d.ts +198 -0
- package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
- package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
- package/dist/api/ipfs/index.cjs +4 -0
- package/dist/api/ipfs/index.d.ts +1 -0
- package/dist/api/ipfs/index.js +4 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
- package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
- package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
- package/dist/api/jobs/index.cjs +4 -0
- package/dist/api/jobs/index.d.ts +1 -0
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +80 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
- package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
- package/dist/api/k8s/index.cjs +4 -0
- package/dist/api/k8s/index.d.ts +1 -0
- package/dist/api/k8s/index.js +4 -2
- package/dist/api/k8s/v1/api.gen.cjs +550 -0
- package/dist/api/k8s/v1/api.gen.d.ts +280 -0
- package/dist/api/k8s/v1/api.gen.js +317 -195
- package/dist/api/k8s/v1/api.utils.cjs +13 -0
- package/dist/api/k8s/v1/api.utils.d.ts +11 -0
- package/dist/api/k8s/v1/api.utils.js +5 -5
- package/dist/api/k8s/v1/content.gen.cjs +23 -0
- package/dist/api/k8s/v1/content.gen.d.ts +7 -0
- package/dist/api/k8s/v1/content.gen.js +23 -13
- package/dist/api/k8s/v1/index.cjs +10 -0
- package/dist/api/k8s/v1/index.d.ts +4 -0
- package/dist/api/k8s/v1/index.gen.d.ts +4 -0
- package/dist/api/k8s/v1/index.js +10 -4
- package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
- package/dist/api/k8s/v1/marshalling.gen.js +158 -79
- package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
- package/dist/api/lb/index.cjs +4 -0
- package/dist/api/lb/index.d.ts +1 -0
- package/dist/api/lb/index.js +4 -2
- package/dist/api/lb/v1/api.gen.cjs +1984 -0
- package/dist/api/lb/v1/api.gen.d.ts +990 -0
- package/dist/api/lb/v1/api.gen.js +1186 -695
- package/dist/api/lb/v1/api.utils.cjs +116 -0
- package/dist/api/lb/v1/api.utils.d.ts +41 -0
- package/dist/api/lb/v1/api.utils.js +83 -48
- package/dist/api/lb/v1/content.gen.cjs +22 -0
- package/dist/api/lb/v1/content.gen.d.ts +9 -0
- package/dist/api/lb/v1/content.gen.js +22 -16
- package/dist/api/lb/v1/index.cjs +10 -0
- package/dist/api/lb/v1/index.d.ts +4 -0
- package/dist/api/lb/v1/index.gen.d.ts +3 -0
- package/dist/api/lb/v1/index.js +10 -2
- package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
- package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
- package/dist/api/lb/v1/marshalling.gen.js +576 -334
- package/dist/api/lb/v1/types.gen.d.ts +2729 -0
- package/dist/api/lb/v1/types.utils.d.ts +13 -0
- package/dist/api/llm_inference/index.cjs +4 -0
- package/dist/api/llm_inference/index.d.ts +1 -0
- package/dist/api/llm_inference/index.js +4 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +147 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
- package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/marketplace/index.cjs +4 -0
- package/dist/api/marketplace/index.d.ts +1 -0
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v2/api.gen.cjs +174 -0
- package/dist/api/marketplace/v2/api.gen.d.ts +90 -0
- package/dist/api/marketplace/v2/api.gen.js +111 -67
- package/dist/api/marketplace/v2/index.gen.cjs +4 -0
- package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
- package/dist/api/marketplace/v2/index.gen.js +4 -4
- package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
- package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
- package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
- package/dist/api/mnq/index.cjs +4 -0
- package/dist/api/mnq/index.d.ts +1 -0
- package/dist/api/mnq/index.js +4 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
- package/dist/api/mnq/v1beta1/api.gen.d.ts +265 -0
- package/dist/api/mnq/v1beta1/api.gen.js +291 -184
- package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
- package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/mnq/v1beta1/index.gen.js +8 -6
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
- package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
- package/dist/api/rdb/index.cjs +4 -0
- package/dist/api/rdb/index.d.ts +1 -0
- package/dist/api/rdb/index.js +4 -2
- package/dist/api/rdb/v1/api.gen.cjs +1192 -0
- package/dist/api/rdb/v1/api.gen.d.ts +626 -0
- package/dist/api/rdb/v1/api.gen.js +660 -393
- package/dist/api/rdb/v1/content.gen.cjs +38 -0
- package/dist/api/rdb/v1/content.gen.d.ts +13 -0
- package/dist/api/rdb/v1/content.gen.js +38 -22
- package/dist/api/rdb/v1/index.gen.cjs +13 -0
- package/dist/api/rdb/v1/index.gen.d.ts +4 -0
- package/dist/api/rdb/v1/index.gen.js +13 -7
- package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
- package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
- package/dist/api/rdb/v1/marshalling.gen.js +385 -191
- package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
- package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
- package/dist/api/redis/index.cjs +4 -0
- package/dist/api/redis/index.d.ts +1 -0
- package/dist/api/redis/index.js +4 -2
- package/dist/api/redis/v1/api.gen.cjs +476 -0
- package/dist/api/redis/v1/api.gen.d.ts +249 -0
- package/dist/api/redis/v1/api.gen.js +265 -162
- package/dist/api/redis/v1/content.gen.cjs +10 -0
- package/dist/api/redis/v1/content.gen.d.ts +3 -0
- package/dist/api/redis/v1/content.gen.js +10 -7
- package/dist/api/redis/v1/index.gen.cjs +6 -0
- package/dist/api/redis/v1/index.gen.d.ts +3 -0
- package/dist/api/redis/v1/index.gen.js +6 -5
- package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
- package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
- package/dist/api/redis/v1/marshalling.gen.js +156 -84
- package/dist/api/redis/v1/types.gen.d.ts +473 -0
- package/dist/api/registry/index.cjs +4 -0
- package/dist/api/registry/index.d.ts +1 -0
- package/dist/api/registry/index.js +4 -2
- package/dist/api/registry/v1/api.gen.cjs +287 -0
- package/dist/api/registry/v1/api.gen.d.ts +156 -0
- package/dist/api/registry/v1/api.gen.js +161 -94
- package/dist/api/registry/v1/content.gen.cjs +8 -0
- package/dist/api/registry/v1/content.gen.d.ts +7 -0
- package/dist/api/registry/v1/content.gen.js +8 -13
- package/dist/api/registry/v1/index.gen.cjs +8 -0
- package/dist/api/registry/v1/index.gen.d.ts +3 -0
- package/dist/api/registry/v1/index.gen.js +8 -5
- package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
- package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
- package/dist/api/registry/v1/marshalling.gen.js +51 -30
- package/dist/api/registry/v1/types.gen.d.ts +300 -0
- package/dist/api/secret/index.cjs +6 -0
- package/dist/api/secret/index.d.ts +2 -0
- package/dist/api/secret/index.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
- package/dist/api/secret/v1alpha1/api.gen.d.ts +261 -0
- package/dist/api/secret/v1alpha1/api.gen.js +271 -176
- package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
- package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
- package/dist/api/secret/v1alpha1/index.gen.js +4 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
- package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +181 -0
- package/dist/api/secret/v1beta1/api.gen.js +213 -135
- package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/secret/v1beta1/index.gen.js +6 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
- package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/serverless_sqldb/index.cjs +4 -0
- package/dist/api/serverless_sqldb/index.d.ts +1 -0
- package/dist/api/serverless_sqldb/index.js +4 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
- package/dist/api/std/index.gen.cjs +1 -0
- package/dist/api/std/index.gen.d.ts +1 -0
- package/dist/api/std/types.gen.d.ts +1 -0
- package/dist/api/tem/index.cjs +4 -0
- package/dist/api/tem/index.d.ts +1 -0
- package/dist/api/tem/index.js +4 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +130 -0
- package/dist/api/tem/v1alpha1/api.gen.js +154 -89
- package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/tem/v1alpha1/content.gen.js +6 -10
- package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/tem/v1alpha1/index.gen.js +7 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
- package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
- package/dist/api/test/index.cjs +4 -0
- package/dist/api/test/index.d.ts +1 -0
- package/dist/api/test/index.js +4 -2
- package/dist/api/test/v1/api.gen.cjs +164 -0
- package/dist/api/test/v1/api.gen.d.ts +84 -0
- package/dist/api/test/v1/api.gen.js +99 -71
- package/dist/api/test/v1/content.gen.cjs +4 -0
- package/dist/api/test/v1/content.gen.d.ts +3 -0
- package/dist/api/test/v1/content.gen.js +4 -7
- package/dist/api/test/v1/index.gen.cjs +6 -0
- package/dist/api/test/v1/index.gen.d.ts +3 -0
- package/dist/api/test/v1/index.gen.js +6 -5
- package/dist/api/test/v1/marshalling.gen.cjs +93 -0
- package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
- package/dist/api/test/v1/marshalling.gen.js +34 -22
- package/dist/api/test/v1/types.gen.d.ts +91 -0
- package/dist/api/vpc/index.cjs +6 -0
- package/dist/api/vpc/index.d.ts +2 -0
- package/dist/api/vpc/index.js +6 -4
- package/dist/api/vpc/v1/api.gen.cjs +119 -0
- package/dist/api/vpc/v1/api.gen.d.ts +54 -0
- package/dist/api/vpc/v1/api.gen.js +76 -43
- package/dist/api/vpc/v1/index.gen.cjs +4 -0
- package/dist/api/vpc/v1/index.gen.d.ts +2 -0
- package/dist/api/vpc/v1/index.gen.js +4 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
- package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/vpc/v1/marshalling.gen.js +22 -14
- package/dist/api/vpc/v1/types.gen.d.ts +99 -0
- package/dist/api/vpc/v2/api.gen.cjs +303 -0
- package/dist/api/vpc/v2/api.gen.d.ts +144 -0
- package/dist/api/vpc/v2/api.gen.js +181 -112
- package/dist/api/vpc/v2/index.gen.cjs +4 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -0
- package/dist/api/vpc/v2/index.gen.js +4 -4
- package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
- package/dist/api/vpc/v2/marshalling.gen.js +70 -36
- package/dist/api/vpc/v2/types.gen.d.ts +338 -0
- package/dist/api/vpcgw/index.cjs +4 -0
- package/dist/api/vpcgw/index.d.ts +1 -0
- package/dist/api/vpcgw/index.js +4 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +389 -0
- package/dist/api/vpcgw/v1/api.gen.js +408 -239
- package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v1/content.gen.js +15 -10
- package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v1/index.gen.js +7 -5
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
- package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
- package/dist/api/webhosting/index.cjs +4 -0
- package/dist/api/webhosting/index.d.ts +1 -0
- package/dist/api/webhosting/index.js +4 -2
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +111 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +80 -41
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/helpers/is-browser.cjs +7 -0
- package/dist/helpers/is-browser.d.ts +1 -0
- package/dist/helpers/is-browser.js +7 -5
- package/dist/helpers/is-response.cjs +4 -0
- package/dist/helpers/is-response.d.ts +8 -0
- package/dist/helpers/is-response.js +4 -10
- package/dist/helpers/json.cjs +7 -0
- package/dist/helpers/json.d.ts +13 -0
- package/dist/helpers/json.js +5 -9
- package/dist/helpers/marshalling.cjs +78 -0
- package/dist/helpers/marshalling.d.ts +63 -0
- package/dist/helpers/marshalling.js +40 -77
- package/dist/index.cjs +114 -32093
- package/dist/index.d.ts +15 -38464
- package/dist/index.js +115 -81
- package/dist/internal/async/interval-retrier.cjs +55 -0
- package/dist/internal/async/interval-retrier.d.ts +111 -0
- package/dist/internal/async/interval-retrier.js +30 -72
- package/dist/internal/async/sleep.cjs +6 -0
- package/dist/internal/async/sleep.d.ts +9 -0
- package/dist/internal/async/sleep.js +4 -11
- package/dist/internal/interceptors/composer.cjs +25 -0
- package/dist/internal/interceptors/composer.d.ts +25 -0
- package/dist/internal/interceptors/composer.js +15 -36
- package/dist/internal/interceptors/helpers.cjs +12 -0
- package/dist/internal/interceptors/helpers.d.ts +21 -0
- package/dist/internal/interceptors/helpers.js +7 -26
- package/dist/internal/interceptors/types.d.ts +89 -0
- package/dist/internal/logger/console-logger.cjs +24 -0
- package/dist/internal/logger/console-logger.d.ts +23 -0
- package/dist/internal/logger/console-logger.js +11 -19
- package/dist/internal/logger/index.cjs +12 -0
- package/dist/internal/logger/index.d.ts +25 -0
- package/dist/internal/logger/index.js +9 -30
- package/dist/internal/logger/level-resolver.cjs +13 -0
- package/dist/internal/logger/level-resolver.d.ts +9 -0
- package/dist/internal/logger/level-resolver.js +12 -12
- package/dist/internal/logger/logger.d.ts +13 -0
- package/dist/internal/validations/string-validation.cjs +30 -0
- package/dist/internal/validations/string-validation.d.ts +18 -0
- package/dist/internal/validations/string-validation.js +19 -27
- package/dist/internals.d.ts +10 -0
- package/dist/scw/api.cjs +8 -0
- package/dist/scw/api.d.ts +10 -0
- package/dist/scw/api.js +3 -7
- package/dist/scw/auth.cjs +28 -0
- package/dist/scw/auth.d.ts +57 -0
- package/dist/scw/auth.js +23 -62
- package/dist/scw/client-ini-factory.cjs +66 -0
- package/dist/scw/client-ini-factory.d.ts +111 -0
- package/dist/scw/client-ini-factory.js +33 -141
- package/dist/scw/client-ini-profile.cjs +23 -0
- package/dist/scw/client-ini-profile.d.ts +82 -0
- package/dist/scw/client-ini-profile.js +15 -46
- package/dist/scw/client-settings.cjs +51 -0
- package/dist/scw/client-settings.d.ts +59 -0
- package/dist/scw/client-settings.js +26 -53
- package/dist/scw/client.cjs +28 -0
- package/dist/scw/client.d.ts +72 -0
- package/dist/scw/client.js +14 -76
- package/dist/scw/constants.cjs +6 -0
- package/dist/scw/constants.d.ts +2 -0
- package/dist/scw/constants.js +5 -3
- package/dist/scw/custom-marshalling.cjs +92 -0
- package/dist/scw/custom-marshalling.d.ts +59 -0
- package/dist/scw/custom-marshalling.js +38 -77
- package/dist/scw/errors/error-parser.cjs +76 -0
- package/dist/scw/errors/error-parser.d.ts +12 -0
- package/dist/scw/errors/error-parser.js +33 -64
- package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
- package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
- package/dist/scw/errors/scw-error.cjs +43 -0
- package/dist/scw/errors/scw-error.d.ts +25 -0
- package/dist/scw/errors/scw-error.js +19 -35
- package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
- package/dist/scw/errors/standard/already-exists-error.js +18 -13
- package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
- package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
- package/dist/scw/errors/standard/index.cjs +28 -0
- package/dist/scw/errors/standard/index.d.ts +17 -0
- package/dist/scw/errors/standard/index.js +28 -13
- package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
- package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
- package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
- package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
- package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
- package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
- package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
- package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
- package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
- package/dist/scw/errors/standard/resource-expired-error.js +18 -13
- package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-locked-error.js +6 -11
- package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
- package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
- package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
- package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
- package/dist/scw/errors/standard/transient-state-error.js +18 -13
- package/dist/scw/errors/types.cjs +15 -0
- package/dist/scw/errors/types.d.ts +9 -0
- package/dist/scw/errors/types.js +6 -14
- package/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/dist/scw/fetch/build-fetcher.d.ts +23 -0
- package/dist/scw/fetch/build-fetcher.js +29 -38
- package/dist/scw/fetch/http-dumper.cjs +20 -0
- package/dist/scw/fetch/http-dumper.d.ts +18 -0
- package/dist/scw/fetch/http-dumper.js +19 -50
- package/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/dist/scw/fetch/http-interceptors.d.ts +38 -0
- package/dist/scw/fetch/http-interceptors.js +23 -66
- package/dist/scw/fetch/resource-paginator.cjs +37 -0
- package/dist/scw/fetch/resource-paginator.d.ts +47 -0
- package/dist/scw/fetch/resource-paginator.js +12 -45
- package/dist/scw/fetch/response-parser.cjs +57 -0
- package/dist/scw/fetch/response-parser.d.ts +25 -0
- package/dist/scw/fetch/response-parser.js +31 -46
- package/package.json +7 -3
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import * as index_gen from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as index_gen from "./v2/index.gen.js";
|
|
2
|
+
import * as index_gen$1 from "./v3/index.gen.js";
|
|
3
|
+
export {
|
|
4
|
+
index_gen as v2,
|
|
5
|
+
index_gen$1 as v3
|
|
6
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const api = require("../../../scw/api.cjs");
|
|
4
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
5
|
+
const resourcePaginator = require("../../../scw/fetch/resource-paginator.cjs");
|
|
6
|
+
const marshalling_gen = require("./marshalling.gen.cjs");
|
|
7
|
+
const jsonContentHeaders = {
|
|
8
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
9
|
+
};
|
|
10
|
+
class API extends api.API {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new Project for an Organization. Deprecated in favor of Account
|
|
13
|
+
* API v3. Generate a new Project for an Organization, specifying its
|
|
14
|
+
* configuration including name and description.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated
|
|
17
|
+
* @param request - The request {@link CreateProjectRequest}
|
|
18
|
+
* @returns A Promise of Project
|
|
19
|
+
*/
|
|
20
|
+
createProject = (request = {}) => this.client.fetch(
|
|
21
|
+
{
|
|
22
|
+
body: JSON.stringify(
|
|
23
|
+
marshalling_gen.marshalCreateProjectRequest(request, this.client.settings)
|
|
24
|
+
),
|
|
25
|
+
headers: jsonContentHeaders,
|
|
26
|
+
method: "POST",
|
|
27
|
+
path: `/account/v2/projects`
|
|
28
|
+
},
|
|
29
|
+
marshalling_gen.unmarshalProject
|
|
30
|
+
);
|
|
31
|
+
pageOfListProjects = (request = {}) => this.client.fetch(
|
|
32
|
+
{
|
|
33
|
+
method: "GET",
|
|
34
|
+
path: `/account/v2/projects`,
|
|
35
|
+
urlParams: marshalling.urlParams(
|
|
36
|
+
["name", request.name],
|
|
37
|
+
["order_by", request.orderBy],
|
|
38
|
+
[
|
|
39
|
+
"organization_id",
|
|
40
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
41
|
+
],
|
|
42
|
+
["page", request.page],
|
|
43
|
+
[
|
|
44
|
+
"page_size",
|
|
45
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
46
|
+
],
|
|
47
|
+
["project_ids", request.projectIds]
|
|
48
|
+
)
|
|
49
|
+
},
|
|
50
|
+
marshalling_gen.unmarshalListProjectsResponse
|
|
51
|
+
);
|
|
52
|
+
/**
|
|
53
|
+
* List all Projects of an Organization. Deprecated in favor of Account API
|
|
54
|
+
* v3. List all Projects of an Organization. The response will include the
|
|
55
|
+
* total number of Projects as well as their associated Organizations, names
|
|
56
|
+
* and IDs. Other information include the creation and update date of the
|
|
57
|
+
* Project.
|
|
58
|
+
*
|
|
59
|
+
* @deprecated
|
|
60
|
+
* @param request - The request {@link ListProjectsRequest}
|
|
61
|
+
* @returns A Promise of ListProjectsResponse
|
|
62
|
+
*/
|
|
63
|
+
listProjects = (request = {}) => resourcePaginator.enrichForPagination("projects", this.pageOfListProjects, request);
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing Project. Deprecated in favor of Account API v3. Retrieve
|
|
66
|
+
* information about an existing Project, specified by its Project ID. Its
|
|
67
|
+
* full details, including ID, name and description, are returned in the
|
|
68
|
+
* response object.
|
|
69
|
+
*
|
|
70
|
+
* @deprecated
|
|
71
|
+
* @param request - The request {@link GetProjectRequest}
|
|
72
|
+
* @returns A Promise of Project
|
|
73
|
+
*/
|
|
74
|
+
getProject = (request = {}) => this.client.fetch(
|
|
75
|
+
{
|
|
76
|
+
method: "GET",
|
|
77
|
+
path: `/account/v2/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
78
|
+
},
|
|
79
|
+
marshalling_gen.unmarshalProject
|
|
80
|
+
);
|
|
81
|
+
/**
|
|
82
|
+
* Delete an existing Project. Deprecated in favor of Account API v3. Delete
|
|
83
|
+
* an existing Project, specified by its Project ID. The Project needs to be
|
|
84
|
+
* empty (meaning there are no resources left in it) to be deleted
|
|
85
|
+
* effectively. Note that deleting a Project is permanent, and cannot be
|
|
86
|
+
* undone.
|
|
87
|
+
*
|
|
88
|
+
* @deprecated
|
|
89
|
+
* @param request - The request {@link DeleteProjectRequest}
|
|
90
|
+
*/
|
|
91
|
+
deleteProject = (request = {}) => this.client.fetch({
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
path: `/account/v2/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Update Project. Deprecated in favor of Account API v3. Update the
|
|
97
|
+
* parameters of an existing Project, specified by its Project ID. These
|
|
98
|
+
* parameters include the name and description.
|
|
99
|
+
*
|
|
100
|
+
* @deprecated
|
|
101
|
+
* @param request - The request {@link UpdateProjectRequest}
|
|
102
|
+
* @returns A Promise of Project
|
|
103
|
+
*/
|
|
104
|
+
updateProject = (request = {}) => this.client.fetch(
|
|
105
|
+
{
|
|
106
|
+
body: JSON.stringify(
|
|
107
|
+
marshalling_gen.marshalUpdateProjectRequest(request, this.client.settings)
|
|
108
|
+
),
|
|
109
|
+
headers: jsonContentHeaders,
|
|
110
|
+
method: "PATCH",
|
|
111
|
+
path: `/account/v2/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
112
|
+
},
|
|
113
|
+
marshalling_gen.unmarshalProject
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
exports.API = API;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
+
import type { CreateProjectRequest, DeleteProjectRequest, GetProjectRequest, ListProjectsRequest, ListProjectsResponse, Project, UpdateProjectRequest } from './types.gen';
|
|
3
|
+
/**
|
|
4
|
+
* Account API.
|
|
5
|
+
*
|
|
6
|
+
* User related data. This API allows you to manage projects.
|
|
7
|
+
*/
|
|
8
|
+
export declare class API extends ParentAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new Project for an Organization. Deprecated in favor of Account
|
|
11
|
+
* API v3. Generate a new Project for an Organization, specifying its
|
|
12
|
+
* configuration including name and description.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
* @param request - The request {@link CreateProjectRequest}
|
|
16
|
+
* @returns A Promise of Project
|
|
17
|
+
*/
|
|
18
|
+
createProject: (request?: Readonly<CreateProjectRequest>) => Promise<Project>;
|
|
19
|
+
protected pageOfListProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* List all Projects of an Organization. Deprecated in favor of Account API
|
|
22
|
+
* v3. List all Projects of an Organization. The response will include the
|
|
23
|
+
* total number of Projects as well as their associated Organizations, names
|
|
24
|
+
* and IDs. Other information include the creation and update date of the
|
|
25
|
+
* Project.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated
|
|
28
|
+
* @param request - The request {@link ListProjectsRequest}
|
|
29
|
+
* @returns A Promise of ListProjectsResponse
|
|
30
|
+
*/
|
|
31
|
+
listProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse> & {
|
|
32
|
+
all: () => Promise<Project[]>;
|
|
33
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Project[], void, void>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Project. Deprecated in favor of Account API v3. Retrieve
|
|
37
|
+
* information about an existing Project, specified by its Project ID. Its
|
|
38
|
+
* full details, including ID, name and description, are returned in the
|
|
39
|
+
* response object.
|
|
40
|
+
*
|
|
41
|
+
* @deprecated
|
|
42
|
+
* @param request - The request {@link GetProjectRequest}
|
|
43
|
+
* @returns A Promise of Project
|
|
44
|
+
*/
|
|
45
|
+
getProject: (request?: Readonly<GetProjectRequest>) => Promise<Project>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete an existing Project. Deprecated in favor of Account API v3. Delete
|
|
48
|
+
* an existing Project, specified by its Project ID. The Project needs to be
|
|
49
|
+
* empty (meaning there are no resources left in it) to be deleted
|
|
50
|
+
* effectively. Note that deleting a Project is permanent, and cannot be
|
|
51
|
+
* undone.
|
|
52
|
+
*
|
|
53
|
+
* @deprecated
|
|
54
|
+
* @param request - The request {@link DeleteProjectRequest}
|
|
55
|
+
*/
|
|
56
|
+
deleteProject: (request?: Readonly<DeleteProjectRequest>) => Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Update Project. Deprecated in favor of Account API v3. Update the
|
|
59
|
+
* parameters of an existing Project, specified by its Project ID. These
|
|
60
|
+
* parameters include the name and description.
|
|
61
|
+
*
|
|
62
|
+
* @deprecated
|
|
63
|
+
* @param request - The request {@link UpdateProjectRequest}
|
|
64
|
+
* @returns A Promise of Project
|
|
65
|
+
*/
|
|
66
|
+
updateProject: (request?: Readonly<UpdateProjectRequest>) => Promise<Project>;
|
|
67
|
+
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { API as API$1 } from
|
|
2
|
-
import { urlParams, validatePathParam } from
|
|
3
|
-
import { enrichForPagination } from
|
|
4
|
-
import { marshalCreateProjectRequest, unmarshalProject, unmarshalListProjectsResponse, marshalUpdateProjectRequest } from
|
|
5
|
-
|
|
6
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
1
|
+
import { API as API$1 } from "../../../scw/api.js";
|
|
2
|
+
import { urlParams, validatePathParam } from "../../../helpers/marshalling.js";
|
|
3
|
+
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
4
|
+
import { marshalCreateProjectRequest, unmarshalProject, unmarshalListProjectsResponse, marshalUpdateProjectRequest } from "./marshalling.gen.js";
|
|
8
5
|
const jsonContentHeaders = {
|
|
9
|
-
|
|
6
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Account API.
|
|
14
|
-
*
|
|
15
|
-
* User related data. This API allows you to manage projects.
|
|
16
|
-
*/
|
|
17
8
|
class API extends API$1 {
|
|
18
9
|
/**
|
|
19
10
|
* Create a new Project for an Organization. Deprecated in favor of Account
|
|
@@ -24,18 +15,38 @@ class API extends API$1 {
|
|
|
24
15
|
* @param request - The request {@link CreateProjectRequest}
|
|
25
16
|
* @returns A Promise of Project
|
|
26
17
|
*/
|
|
27
|
-
createProject = (request = {}) => this.client.fetch(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
createProject = (request = {}) => this.client.fetch(
|
|
19
|
+
{
|
|
20
|
+
body: JSON.stringify(
|
|
21
|
+
marshalCreateProjectRequest(request, this.client.settings)
|
|
22
|
+
),
|
|
23
|
+
headers: jsonContentHeaders,
|
|
24
|
+
method: "POST",
|
|
25
|
+
path: `/account/v2/projects`
|
|
26
|
+
},
|
|
27
|
+
unmarshalProject
|
|
28
|
+
);
|
|
29
|
+
pageOfListProjects = (request = {}) => this.client.fetch(
|
|
30
|
+
{
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: `/account/v2/projects`,
|
|
33
|
+
urlParams: urlParams(
|
|
34
|
+
["name", request.name],
|
|
35
|
+
["order_by", request.orderBy],
|
|
36
|
+
[
|
|
37
|
+
"organization_id",
|
|
38
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
39
|
+
],
|
|
40
|
+
["page", request.page],
|
|
41
|
+
[
|
|
42
|
+
"page_size",
|
|
43
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
44
|
+
],
|
|
45
|
+
["project_ids", request.projectIds]
|
|
46
|
+
)
|
|
47
|
+
},
|
|
48
|
+
unmarshalListProjectsResponse
|
|
49
|
+
);
|
|
39
50
|
/**
|
|
40
51
|
* List all Projects of an Organization. Deprecated in favor of Account API
|
|
41
52
|
* v3. List all Projects of an Organization. The response will include the
|
|
@@ -47,8 +58,7 @@ class API extends API$1 {
|
|
|
47
58
|
* @param request - The request {@link ListProjectsRequest}
|
|
48
59
|
* @returns A Promise of ListProjectsResponse
|
|
49
60
|
*/
|
|
50
|
-
listProjects = (request = {}) => enrichForPagination(
|
|
51
|
-
|
|
61
|
+
listProjects = (request = {}) => enrichForPagination("projects", this.pageOfListProjects, request);
|
|
52
62
|
/**
|
|
53
63
|
* Get an existing Project. Deprecated in favor of Account API v3. Retrieve
|
|
54
64
|
* information about an existing Project, specified by its Project ID. Its
|
|
@@ -59,11 +69,13 @@ class API extends API$1 {
|
|
|
59
69
|
* @param request - The request {@link GetProjectRequest}
|
|
60
70
|
* @returns A Promise of Project
|
|
61
71
|
*/
|
|
62
|
-
getProject = (request = {}) => this.client.fetch(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
getProject = (request = {}) => this.client.fetch(
|
|
73
|
+
{
|
|
74
|
+
method: "GET",
|
|
75
|
+
path: `/account/v2/projects/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
76
|
+
},
|
|
77
|
+
unmarshalProject
|
|
78
|
+
);
|
|
67
79
|
/**
|
|
68
80
|
* Delete an existing Project. Deprecated in favor of Account API v3. Delete
|
|
69
81
|
* an existing Project, specified by its Project ID. The Project needs to be
|
|
@@ -75,10 +87,9 @@ class API extends API$1 {
|
|
|
75
87
|
* @param request - The request {@link DeleteProjectRequest}
|
|
76
88
|
*/
|
|
77
89
|
deleteProject = (request = {}) => this.client.fetch({
|
|
78
|
-
method:
|
|
79
|
-
path: `/account/v2/projects/${validatePathParam(
|
|
90
|
+
method: "DELETE",
|
|
91
|
+
path: `/account/v2/projects/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
80
92
|
});
|
|
81
|
-
|
|
82
93
|
/**
|
|
83
94
|
* Update Project. Deprecated in favor of Account API v3. Update the
|
|
84
95
|
* parameters of an existing Project, specified by its Project ID. These
|
|
@@ -88,12 +99,18 @@ class API extends API$1 {
|
|
|
88
99
|
* @param request - The request {@link UpdateProjectRequest}
|
|
89
100
|
* @returns A Promise of Project
|
|
90
101
|
*/
|
|
91
|
-
updateProject = (request = {}) => this.client.fetch(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
updateProject = (request = {}) => this.client.fetch(
|
|
103
|
+
{
|
|
104
|
+
body: JSON.stringify(
|
|
105
|
+
marshalUpdateProjectRequest(request, this.client.settings)
|
|
106
|
+
),
|
|
107
|
+
headers: jsonContentHeaders,
|
|
108
|
+
method: "PATCH",
|
|
109
|
+
path: `/account/v2/projects/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
110
|
+
},
|
|
111
|
+
unmarshalProject
|
|
112
|
+
);
|
|
97
113
|
}
|
|
98
|
-
|
|
99
|
-
|
|
114
|
+
export {
|
|
115
|
+
API
|
|
116
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { API } from "./api.gen.js";
|
|
2
|
+
export {
|
|
3
|
+
API
|
|
4
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const randomName = require("@scaleway/random-name");
|
|
4
|
+
const json = require("../../../helpers/json.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const unmarshalProject = (data) => {
|
|
7
|
+
if (!json.isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
14
|
+
description: data.description,
|
|
15
|
+
id: data.id,
|
|
16
|
+
name: data.name,
|
|
17
|
+
organizationId: data.organization_id,
|
|
18
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
const unmarshalListProjectsResponse = (data) => {
|
|
22
|
+
if (!json.isJSONObject(data)) {
|
|
23
|
+
throw new TypeError(
|
|
24
|
+
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
projects: marshalling.unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
29
|
+
totalCount: data.total_count
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
const marshalCreateProjectRequest = (request, defaults) => ({
|
|
33
|
+
description: request.description,
|
|
34
|
+
name: request.name || randomName("proj"),
|
|
35
|
+
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
36
|
+
});
|
|
37
|
+
const marshalUpdateProjectRequest = (request, defaults) => ({
|
|
38
|
+
description: request.description,
|
|
39
|
+
name: request.name
|
|
40
|
+
});
|
|
41
|
+
exports.marshalCreateProjectRequest = marshalCreateProjectRequest;
|
|
42
|
+
exports.marshalUpdateProjectRequest = marshalUpdateProjectRequest;
|
|
43
|
+
exports.unmarshalListProjectsResponse = unmarshalListProjectsResponse;
|
|
44
|
+
exports.unmarshalProject = unmarshalProject;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DefaultValues } from '../../../bridge';
|
|
2
|
+
import type { CreateProjectRequest, ListProjectsResponse, Project, UpdateProjectRequest } from './types.gen';
|
|
3
|
+
export declare const unmarshalProject: (data: unknown) => Project;
|
|
4
|
+
export declare const unmarshalListProjectsResponse: (data: unknown) => ListProjectsResponse;
|
|
5
|
+
export declare const marshalCreateProjectRequest: (request: CreateProjectRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
6
|
+
export declare const marshalUpdateProjectRequest: (request: UpdateProjectRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import randomName from
|
|
2
|
-
import { isJSONObject } from
|
|
3
|
-
import { unmarshalDate, unmarshalArrayOfObject } from
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
|
-
const unmarshalProject = data => {
|
|
1
|
+
import randomName from "@scaleway/random-name";
|
|
2
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
3
|
+
import { unmarshalDate, unmarshalArrayOfObject } from "../../../helpers/marshalling.js";
|
|
4
|
+
const unmarshalProject = (data) => {
|
|
8
5
|
if (!isJSONObject(data)) {
|
|
9
|
-
throw new TypeError(
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
10
9
|
}
|
|
11
10
|
return {
|
|
12
11
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -17,9 +16,11 @@ const unmarshalProject = data => {
|
|
|
17
16
|
updatedAt: unmarshalDate(data.updated_at)
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
const unmarshalListProjectsResponse = data => {
|
|
19
|
+
const unmarshalListProjectsResponse = (data) => {
|
|
21
20
|
if (!isJSONObject(data)) {
|
|
22
|
-
throw new TypeError(
|
|
21
|
+
throw new TypeError(
|
|
22
|
+
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
23
|
+
);
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
@@ -28,12 +29,16 @@ const unmarshalListProjectsResponse = data => {
|
|
|
28
29
|
};
|
|
29
30
|
const marshalCreateProjectRequest = (request, defaults) => ({
|
|
30
31
|
description: request.description,
|
|
31
|
-
name: request.name || randomName(
|
|
32
|
+
name: request.name || randomName("proj"),
|
|
32
33
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
33
34
|
});
|
|
34
35
|
const marshalUpdateProjectRequest = (request, defaults) => ({
|
|
35
36
|
description: request.description,
|
|
36
37
|
name: request.name
|
|
37
38
|
});
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
export {
|
|
40
|
+
marshalCreateProjectRequest,
|
|
41
|
+
marshalUpdateProjectRequest,
|
|
42
|
+
unmarshalListProjectsResponse,
|
|
43
|
+
unmarshalProject
|
|
44
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
2
|
+
export interface Project {
|
|
3
|
+
/** ID of the Project. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Name of the Project. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Organization ID of the Project. */
|
|
8
|
+
organizationId: string;
|
|
9
|
+
/** Creation date of the Project. */
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
/** Update date of the Project. */
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
/** Description of the Project. */
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
16
|
+
export type CreateProjectRequest = {
|
|
17
|
+
/** Name of the Project. */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Organization ID of the Project. */
|
|
20
|
+
organizationId?: string;
|
|
21
|
+
/** Description of the Project. */
|
|
22
|
+
description?: string;
|
|
23
|
+
};
|
|
24
|
+
export type DeleteProjectRequest = {
|
|
25
|
+
/** Project ID of the Project. */
|
|
26
|
+
projectId?: string;
|
|
27
|
+
};
|
|
28
|
+
export type GetProjectRequest = {
|
|
29
|
+
/** Project ID of the Project. */
|
|
30
|
+
projectId?: string;
|
|
31
|
+
};
|
|
32
|
+
export type ListProjectsRequest = {
|
|
33
|
+
/** Organization ID of the Project. */
|
|
34
|
+
organizationId?: string;
|
|
35
|
+
/** Name of the Project. */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** Page number for the returned Projects. */
|
|
38
|
+
page?: number;
|
|
39
|
+
/** Maximum number of Project per page. */
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
/** Sort order of the returned Projects. */
|
|
42
|
+
orderBy?: ListProjectsRequestOrderBy;
|
|
43
|
+
/**
|
|
44
|
+
* Project IDs to filter for. The results will be limited to any Projects with
|
|
45
|
+
* an ID in this array.
|
|
46
|
+
*/
|
|
47
|
+
projectIds?: string[];
|
|
48
|
+
};
|
|
49
|
+
export interface ListProjectsResponse {
|
|
50
|
+
/** Total number of Projects. */
|
|
51
|
+
totalCount: number;
|
|
52
|
+
/** Paginated returned Projects. */
|
|
53
|
+
projects: Project[];
|
|
54
|
+
}
|
|
55
|
+
export type UpdateProjectRequest = {
|
|
56
|
+
/** Project ID of the Project. */
|
|
57
|
+
projectId?: string;
|
|
58
|
+
/** Name of the Project. */
|
|
59
|
+
name?: string;
|
|
60
|
+
/** Description of the Project. */
|
|
61
|
+
description?: string;
|
|
62
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const api = require("../../../scw/api.cjs");
|
|
4
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
5
|
+
const resourcePaginator = require("../../../scw/fetch/resource-paginator.cjs");
|
|
6
|
+
const marshalling_gen = require("./marshalling.gen.cjs");
|
|
7
|
+
const jsonContentHeaders = {
|
|
8
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
9
|
+
};
|
|
10
|
+
class ProjectAPI extends api.API {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new Project for an Organization. Generate a new Project for an
|
|
13
|
+
* Organization, specifying its configuration including name and description.
|
|
14
|
+
*
|
|
15
|
+
* @param request - The request {@link ProjectApiCreateProjectRequest}
|
|
16
|
+
* @returns A Promise of Project
|
|
17
|
+
*/
|
|
18
|
+
createProject = (request) => this.client.fetch(
|
|
19
|
+
{
|
|
20
|
+
body: JSON.stringify(
|
|
21
|
+
marshalling_gen.marshalProjectApiCreateProjectRequest(request, this.client.settings)
|
|
22
|
+
),
|
|
23
|
+
headers: jsonContentHeaders,
|
|
24
|
+
method: "POST",
|
|
25
|
+
path: `/account/v3/projects`
|
|
26
|
+
},
|
|
27
|
+
marshalling_gen.unmarshalProject
|
|
28
|
+
);
|
|
29
|
+
pageOfListProjects = (request = {}) => this.client.fetch(
|
|
30
|
+
{
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: `/account/v3/projects`,
|
|
33
|
+
urlParams: marshalling.urlParams(
|
|
34
|
+
["name", request.name],
|
|
35
|
+
["order_by", request.orderBy],
|
|
36
|
+
[
|
|
37
|
+
"organization_id",
|
|
38
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
39
|
+
],
|
|
40
|
+
["page", request.page],
|
|
41
|
+
[
|
|
42
|
+
"page_size",
|
|
43
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
44
|
+
],
|
|
45
|
+
["project_ids", request.projectIds]
|
|
46
|
+
)
|
|
47
|
+
},
|
|
48
|
+
marshalling_gen.unmarshalListProjectsResponse
|
|
49
|
+
);
|
|
50
|
+
/**
|
|
51
|
+
* List all Projects of an Organization. List all Projects of an Organization.
|
|
52
|
+
* The response will include the total number of Projects as well as their
|
|
53
|
+
* associated Organizations, names, and IDs. Other information includes the
|
|
54
|
+
* creation and update date of the Project.
|
|
55
|
+
*
|
|
56
|
+
* @param request - The request {@link ProjectApiListProjectsRequest}
|
|
57
|
+
* @returns A Promise of ListProjectsResponse
|
|
58
|
+
*/
|
|
59
|
+
listProjects = (request = {}) => resourcePaginator.enrichForPagination("projects", this.pageOfListProjects, request);
|
|
60
|
+
/**
|
|
61
|
+
* Get an existing Project. Retrieve information about an existing Project,
|
|
62
|
+
* specified by its Project ID. Its full details, including ID, name and
|
|
63
|
+
* description, are returned in the response object.
|
|
64
|
+
*
|
|
65
|
+
* @param request - The request {@link ProjectApiGetProjectRequest}
|
|
66
|
+
* @returns A Promise of Project
|
|
67
|
+
*/
|
|
68
|
+
getProject = (request = {}) => this.client.fetch(
|
|
69
|
+
{
|
|
70
|
+
method: "GET",
|
|
71
|
+
path: `/account/v3/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
72
|
+
},
|
|
73
|
+
marshalling_gen.unmarshalProject
|
|
74
|
+
);
|
|
75
|
+
/**
|
|
76
|
+
* Delete an existing Project. Delete an existing Project, specified by its
|
|
77
|
+
* Project ID. The Project needs to be empty (meaning there are no resources
|
|
78
|
+
* left in it) to be deleted effectively. Note that deleting a Project is
|
|
79
|
+
* permanent, and cannot be undone.
|
|
80
|
+
*
|
|
81
|
+
* @param request - The request {@link ProjectApiDeleteProjectRequest}
|
|
82
|
+
*/
|
|
83
|
+
deleteProject = (request = {}) => this.client.fetch({
|
|
84
|
+
method: "DELETE",
|
|
85
|
+
path: `/account/v3/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* Update Project. Update the parameters of an existing Project, specified by
|
|
89
|
+
* its Project ID. These parameters include the name and description.
|
|
90
|
+
*
|
|
91
|
+
* @param request - The request {@link ProjectApiUpdateProjectRequest}
|
|
92
|
+
* @returns A Promise of Project
|
|
93
|
+
*/
|
|
94
|
+
updateProject = (request = {}) => this.client.fetch(
|
|
95
|
+
{
|
|
96
|
+
body: JSON.stringify(
|
|
97
|
+
marshalling_gen.marshalProjectApiUpdateProjectRequest(request, this.client.settings)
|
|
98
|
+
),
|
|
99
|
+
headers: jsonContentHeaders,
|
|
100
|
+
method: "PATCH",
|
|
101
|
+
path: `/account/v3/projects/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
102
|
+
},
|
|
103
|
+
marshalling_gen.unmarshalProject
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
exports.ProjectAPI = ProjectAPI;
|