@scaleway/sdk 2.26.0 → 2.28.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 +123 -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 +51 -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 +104 -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 +223 -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 +304 -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 +542 -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 +115 -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 +330 -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 +480 -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 +532 -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 +117 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +75 -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 +209 -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 +84 -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 +284 -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 +151 -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 +95 -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 +267 -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 +631 -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 +253 -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 +160 -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 +262 -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 +182 -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 +134 -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 +59 -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 +149 -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 +393 -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 +115 -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/custom-types.d.ts +65 -0
- 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-from-json.d.ts +10 -0
- 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/dist/scw/fetch/types.d.ts +16 -0
- package/dist/scw/locality.d.ts +2 -0
- 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,53 +1,63 @@
|
|
|
1
|
-
import { isJSONObject } from
|
|
2
|
-
import { unmarshalMoney } from
|
|
3
|
-
import { unmarshalArrayOfObject, unmarshalDate } 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 unmarshalGetConsumptionResponseConsumption = data => {
|
|
1
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
2
|
+
import { unmarshalMoney } from "../../../scw/custom-marshalling.js";
|
|
3
|
+
import { unmarshalArrayOfObject, unmarshalDate } from "../../../helpers/marshalling.js";
|
|
4
|
+
const unmarshalGetConsumptionResponseConsumption = (data) => {
|
|
8
5
|
if (!isJSONObject(data)) {
|
|
9
|
-
throw new TypeError(
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'GetConsumptionResponseConsumption' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
10
9
|
}
|
|
11
10
|
return {
|
|
12
11
|
category: data.category,
|
|
13
12
|
description: data.description,
|
|
14
13
|
operationPath: data.operation_path,
|
|
15
14
|
projectId: data.project_id,
|
|
16
|
-
value: data.value ? unmarshalMoney(data.value) :
|
|
15
|
+
value: data.value ? unmarshalMoney(data.value) : void 0
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
|
-
const unmarshalGetConsumptionResponse = data => {
|
|
18
|
+
const unmarshalGetConsumptionResponse = (data) => {
|
|
20
19
|
if (!isJSONObject(data)) {
|
|
21
|
-
throw new TypeError(
|
|
20
|
+
throw new TypeError(
|
|
21
|
+
`Unmarshalling the type 'GetConsumptionResponse' failed as data isn't a dictionary.`
|
|
22
|
+
);
|
|
22
23
|
}
|
|
23
24
|
return {
|
|
24
|
-
consumptions: unmarshalArrayOfObject(
|
|
25
|
+
consumptions: unmarshalArrayOfObject(
|
|
26
|
+
data.consumptions,
|
|
27
|
+
unmarshalGetConsumptionResponseConsumption
|
|
28
|
+
),
|
|
25
29
|
updatedAt: unmarshalDate(data.updated_at)
|
|
26
30
|
};
|
|
27
31
|
};
|
|
28
|
-
const unmarshalDiscountCoupon = data => {
|
|
32
|
+
const unmarshalDiscountCoupon = (data) => {
|
|
29
33
|
if (!isJSONObject(data)) {
|
|
30
|
-
throw new TypeError(
|
|
34
|
+
throw new TypeError(
|
|
35
|
+
`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`
|
|
36
|
+
);
|
|
31
37
|
}
|
|
32
38
|
return {
|
|
33
39
|
description: data.description
|
|
34
40
|
};
|
|
35
41
|
};
|
|
36
|
-
const unmarshalDiscountFilter = data => {
|
|
42
|
+
const unmarshalDiscountFilter = (data) => {
|
|
37
43
|
if (!isJSONObject(data)) {
|
|
38
|
-
throw new TypeError(
|
|
44
|
+
throw new TypeError(
|
|
45
|
+
`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`
|
|
46
|
+
);
|
|
39
47
|
}
|
|
40
48
|
return {
|
|
41
49
|
type: data.type,
|
|
42
50
|
value: data.value
|
|
43
51
|
};
|
|
44
52
|
};
|
|
45
|
-
const unmarshalDiscount = data => {
|
|
53
|
+
const unmarshalDiscount = (data) => {
|
|
46
54
|
if (!isJSONObject(data)) {
|
|
47
|
-
throw new TypeError(
|
|
55
|
+
throw new TypeError(
|
|
56
|
+
`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`
|
|
57
|
+
);
|
|
48
58
|
}
|
|
49
59
|
return {
|
|
50
|
-
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) :
|
|
60
|
+
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : void 0,
|
|
51
61
|
creationDate: unmarshalDate(data.creation_date),
|
|
52
62
|
description: data.description,
|
|
53
63
|
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
|
|
@@ -61,18 +71,22 @@ const unmarshalDiscount = data => {
|
|
|
61
71
|
valueUsed: data.value_used
|
|
62
72
|
};
|
|
63
73
|
};
|
|
64
|
-
const unmarshalListDiscountsResponse = data => {
|
|
74
|
+
const unmarshalListDiscountsResponse = (data) => {
|
|
65
75
|
if (!isJSONObject(data)) {
|
|
66
|
-
throw new TypeError(
|
|
76
|
+
throw new TypeError(
|
|
77
|
+
`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`
|
|
78
|
+
);
|
|
67
79
|
}
|
|
68
80
|
return {
|
|
69
81
|
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
|
|
70
82
|
totalCount: data.total_count
|
|
71
83
|
};
|
|
72
84
|
};
|
|
73
|
-
const unmarshalInvoice = data => {
|
|
85
|
+
const unmarshalInvoice = (data) => {
|
|
74
86
|
if (!isJSONObject(data)) {
|
|
75
|
-
throw new TypeError(
|
|
87
|
+
throw new TypeError(
|
|
88
|
+
`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`
|
|
89
|
+
);
|
|
76
90
|
}
|
|
77
91
|
return {
|
|
78
92
|
dueDate: unmarshalDate(data.due_date),
|
|
@@ -81,18 +95,23 @@ const unmarshalInvoice = data => {
|
|
|
81
95
|
issuedDate: unmarshalDate(data.issued_date),
|
|
82
96
|
number: data.number,
|
|
83
97
|
startDate: unmarshalDate(data.start_date),
|
|
84
|
-
totalTaxed: data.total_taxed ? unmarshalMoney(data.total_taxed) :
|
|
85
|
-
totalUntaxed: data.total_untaxed ? unmarshalMoney(data.total_untaxed) :
|
|
98
|
+
totalTaxed: data.total_taxed ? unmarshalMoney(data.total_taxed) : void 0,
|
|
99
|
+
totalUntaxed: data.total_untaxed ? unmarshalMoney(data.total_untaxed) : void 0
|
|
86
100
|
};
|
|
87
101
|
};
|
|
88
|
-
const unmarshalListInvoicesResponse = data => {
|
|
102
|
+
const unmarshalListInvoicesResponse = (data) => {
|
|
89
103
|
if (!isJSONObject(data)) {
|
|
90
|
-
throw new TypeError(
|
|
104
|
+
throw new TypeError(
|
|
105
|
+
`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`
|
|
106
|
+
);
|
|
91
107
|
}
|
|
92
108
|
return {
|
|
93
109
|
invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice),
|
|
94
110
|
totalCount: data.total_count
|
|
95
111
|
};
|
|
96
112
|
};
|
|
97
|
-
|
|
98
|
-
|
|
113
|
+
export {
|
|
114
|
+
unmarshalGetConsumptionResponse,
|
|
115
|
+
unmarshalListDiscountsResponse,
|
|
116
|
+
unmarshalListInvoicesResponse
|
|
117
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { Money } from '../../../bridge';
|
|
2
|
+
export type DiscountDiscountMode = 'unknown_discount_mode' | 'discount_mode_rate' | 'discount_mode_value' | 'discount_mode_splittable';
|
|
3
|
+
export type DiscountFilterType = 'unknown_type' | 'product_category' | 'product' | 'product_offer' | 'product_reference' | 'region' | 'zone';
|
|
4
|
+
export type DownloadInvoiceRequestFileType = 'pdf';
|
|
5
|
+
export type InvoiceType = 'unknown_type' | 'periodic' | 'purchase';
|
|
6
|
+
export type ListDiscountsRequestOrderBy = 'creation_date_desc' | 'creation_date_asc';
|
|
7
|
+
export type ListInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
|
|
8
|
+
export interface DiscountCoupon {
|
|
9
|
+
/** The description of the coupon. */
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DiscountFilter {
|
|
13
|
+
/** Type of the filter. */
|
|
14
|
+
type: DiscountFilterType;
|
|
15
|
+
/** Value of filter, it can be a product/range/region/zone value. */
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetConsumptionResponseConsumption {
|
|
19
|
+
/** Monetary value of the consumption. */
|
|
20
|
+
value?: Money;
|
|
21
|
+
/** Description of the consumption. */
|
|
22
|
+
description: string;
|
|
23
|
+
/** Project ID of the consumption. */
|
|
24
|
+
projectId: string;
|
|
25
|
+
/** Category of the consumption. */
|
|
26
|
+
category: string;
|
|
27
|
+
/** Unique identifier of the product. */
|
|
28
|
+
operationPath: string;
|
|
29
|
+
}
|
|
30
|
+
export interface Discount {
|
|
31
|
+
/** The ID of the discount. */
|
|
32
|
+
id: string;
|
|
33
|
+
/** The creation date of the discount. */
|
|
34
|
+
creationDate?: Date;
|
|
35
|
+
/** The organization ID of the discount. */
|
|
36
|
+
organizationId: string;
|
|
37
|
+
/** The description of the discount. */
|
|
38
|
+
description: string;
|
|
39
|
+
/** The initial value of the discount. */
|
|
40
|
+
value: number;
|
|
41
|
+
/** The value indicating how much of the discount has been used. */
|
|
42
|
+
valueUsed: number;
|
|
43
|
+
/** The remaining value of the discount. */
|
|
44
|
+
valueRemaining: number;
|
|
45
|
+
/** The mode of the discount. */
|
|
46
|
+
mode: DiscountDiscountMode;
|
|
47
|
+
/** The start date of the discount. */
|
|
48
|
+
startDate?: Date;
|
|
49
|
+
/** The stop date of the discount. */
|
|
50
|
+
stopDate?: Date;
|
|
51
|
+
/** The description of the coupon. */
|
|
52
|
+
coupon?: DiscountCoupon;
|
|
53
|
+
/** List of products/ranges/regions/zones to limit the usability of discounts. */
|
|
54
|
+
filters: DiscountFilter[];
|
|
55
|
+
}
|
|
56
|
+
export interface Invoice {
|
|
57
|
+
/** Invoice ID. */
|
|
58
|
+
id: string;
|
|
59
|
+
/** Start date of the billing period. */
|
|
60
|
+
startDate?: Date;
|
|
61
|
+
/** Date when the invoice was sent to the customer. */
|
|
62
|
+
issuedDate?: Date;
|
|
63
|
+
/** Payment time limit, set according to the Organization's payment conditions. */
|
|
64
|
+
dueDate?: Date;
|
|
65
|
+
/** Total amount, untaxed. */
|
|
66
|
+
totalUntaxed?: Money;
|
|
67
|
+
/** Total amount, taxed. */
|
|
68
|
+
totalTaxed?: Money;
|
|
69
|
+
/** Type of invoice. */
|
|
70
|
+
invoiceType: InvoiceType;
|
|
71
|
+
/** Invoice number. */
|
|
72
|
+
number: number;
|
|
73
|
+
}
|
|
74
|
+
export type DownloadInvoiceRequest = {
|
|
75
|
+
/** Invoice ID. */
|
|
76
|
+
invoiceId: string;
|
|
77
|
+
/** Wanted file type. */
|
|
78
|
+
fileType?: DownloadInvoiceRequestFileType;
|
|
79
|
+
};
|
|
80
|
+
export type GetConsumptionRequest = {
|
|
81
|
+
/** Filter by organization ID. */
|
|
82
|
+
organizationId?: string;
|
|
83
|
+
};
|
|
84
|
+
export interface GetConsumptionResponse {
|
|
85
|
+
/** Detailed consumption list. */
|
|
86
|
+
consumptions: GetConsumptionResponseConsumption[];
|
|
87
|
+
/** Last consumption update date. */
|
|
88
|
+
updatedAt?: Date;
|
|
89
|
+
}
|
|
90
|
+
export type ListDiscountsRequest = {
|
|
91
|
+
/** Order discounts in the response by their description. */
|
|
92
|
+
orderBy?: ListDiscountsRequestOrderBy;
|
|
93
|
+
/** Positive integer to choose the page to return. */
|
|
94
|
+
page?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Positive integer lower or equal to 100 to select the number of items to
|
|
97
|
+
* return.
|
|
98
|
+
*/
|
|
99
|
+
pageSize?: number;
|
|
100
|
+
/** ID of the organization. */
|
|
101
|
+
organizationId?: string;
|
|
102
|
+
};
|
|
103
|
+
export interface ListDiscountsResponse {
|
|
104
|
+
/** Total number of discounts. */
|
|
105
|
+
totalCount: number;
|
|
106
|
+
/** Paginated returned discounts. */
|
|
107
|
+
discounts: Discount[];
|
|
108
|
+
}
|
|
109
|
+
export type ListInvoicesRequest = {
|
|
110
|
+
/**
|
|
111
|
+
* Organization ID to filter for, only invoices from this Organization will be
|
|
112
|
+
* returned.
|
|
113
|
+
*/
|
|
114
|
+
organizationId?: string;
|
|
115
|
+
/** Invoice's `start_date` is greater or equal to `started_after`. */
|
|
116
|
+
startedAfter?: Date;
|
|
117
|
+
/** Invoice's `start_date` precedes `started_before`. */
|
|
118
|
+
startedBefore?: Date;
|
|
119
|
+
/** Invoice type. It can either be `periodic` or `purchase`. */
|
|
120
|
+
invoiceType?: InvoiceType;
|
|
121
|
+
/** Positive integer to choose the page to return. */
|
|
122
|
+
page?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Positive integer lower or equal to 100 to select the number of items to
|
|
125
|
+
* return.
|
|
126
|
+
*/
|
|
127
|
+
pageSize?: number;
|
|
128
|
+
/** How invoices are ordered in the response. */
|
|
129
|
+
orderBy?: ListInvoicesRequestOrderBy;
|
|
130
|
+
};
|
|
131
|
+
export interface ListInvoicesResponse {
|
|
132
|
+
/** Total number of invoices. */
|
|
133
|
+
totalCount: number;
|
|
134
|
+
/** Paginated returned invoices. */
|
|
135
|
+
invoices: Invoice[];
|
|
136
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
class API extends api.API {
|
|
8
|
+
pageOfListConsumptions = (request = {}) => this.client.fetch(
|
|
9
|
+
{
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: `/billing/v2beta1/consumptions`,
|
|
12
|
+
urlParams: marshalling.urlParams(
|
|
13
|
+
["billing_period", request.billingPeriod],
|
|
14
|
+
["category_name", request.categoryName],
|
|
15
|
+
["order_by", request.orderBy],
|
|
16
|
+
["page", request.page],
|
|
17
|
+
[
|
|
18
|
+
"page_size",
|
|
19
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
20
|
+
],
|
|
21
|
+
...Object.entries(
|
|
22
|
+
marshalling.resolveOneOf([
|
|
23
|
+
{
|
|
24
|
+
default: this.client.settings.defaultOrganizationId,
|
|
25
|
+
param: "organization_id",
|
|
26
|
+
value: request.organizationId
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
default: this.client.settings.defaultProjectId,
|
|
30
|
+
param: "project_id",
|
|
31
|
+
value: request.projectId
|
|
32
|
+
}
|
|
33
|
+
])
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
},
|
|
37
|
+
marshalling_gen.unmarshalListConsumptionsResponse
|
|
38
|
+
);
|
|
39
|
+
/**
|
|
40
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or
|
|
41
|
+
* current consumption cost, by project or category.
|
|
42
|
+
*
|
|
43
|
+
* @param request - The request {@link ListConsumptionsRequest}
|
|
44
|
+
* @returns A Promise of ListConsumptionsResponse
|
|
45
|
+
*/
|
|
46
|
+
listConsumptions = (request = {}) => resourcePaginator.enrichForPagination("consumptions", this.pageOfListConsumptions, request);
|
|
47
|
+
pageOfListTaxes = (request = {}) => this.client.fetch(
|
|
48
|
+
{
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: `/billing/v2beta1/taxes`,
|
|
51
|
+
urlParams: marshalling.urlParams(
|
|
52
|
+
["billing_period", request.billingPeriod],
|
|
53
|
+
["order_by", request.orderBy],
|
|
54
|
+
[
|
|
55
|
+
"organization_id",
|
|
56
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
57
|
+
],
|
|
58
|
+
["page", request.page],
|
|
59
|
+
[
|
|
60
|
+
"page_size",
|
|
61
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
62
|
+
]
|
|
63
|
+
)
|
|
64
|
+
},
|
|
65
|
+
marshalling_gen.unmarshalListTaxesResponse
|
|
66
|
+
);
|
|
67
|
+
/**
|
|
68
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
69
|
+
* past or current tax charges, by project or category.
|
|
70
|
+
*
|
|
71
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
72
|
+
* @returns A Promise of ListTaxesResponse
|
|
73
|
+
*/
|
|
74
|
+
listTaxes = (request = {}) => resourcePaginator.enrichForPagination("taxes", this.pageOfListTaxes, request);
|
|
75
|
+
pageOfListInvoices = (request = {}) => this.client.fetch(
|
|
76
|
+
{
|
|
77
|
+
method: "GET",
|
|
78
|
+
path: `/billing/v2beta1/invoices`,
|
|
79
|
+
urlParams: marshalling.urlParams(
|
|
80
|
+
["billing_period_start_after", request.billingPeriodStartAfter],
|
|
81
|
+
["billing_period_start_before", request.billingPeriodStartBefore],
|
|
82
|
+
["invoice_type", request.invoiceType],
|
|
83
|
+
["order_by", request.orderBy],
|
|
84
|
+
["organization_id", request.organizationId],
|
|
85
|
+
["page", request.page],
|
|
86
|
+
[
|
|
87
|
+
"page_size",
|
|
88
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
89
|
+
]
|
|
90
|
+
)
|
|
91
|
+
},
|
|
92
|
+
marshalling_gen.unmarshalListInvoicesResponse
|
|
93
|
+
);
|
|
94
|
+
/**
|
|
95
|
+
* List invoices. List all your invoices, filtering by `start_date` and
|
|
96
|
+
* `invoice_type`. Each invoice has its own ID.
|
|
97
|
+
*
|
|
98
|
+
* @param request - The request {@link ListInvoicesRequest}
|
|
99
|
+
* @returns A Promise of ListInvoicesResponse
|
|
100
|
+
*/
|
|
101
|
+
listInvoices = (request = {}) => resourcePaginator.enrichForPagination("invoices", this.pageOfListInvoices, request);
|
|
102
|
+
/**
|
|
103
|
+
* Export invoices. Export invoices in a CSV file.
|
|
104
|
+
*
|
|
105
|
+
* @param request - The request {@link ExportInvoicesRequest}
|
|
106
|
+
* @returns A Promise of Blob
|
|
107
|
+
*/
|
|
108
|
+
exportInvoices = (request = {}) => this.client.fetch({
|
|
109
|
+
method: "GET",
|
|
110
|
+
path: `/billing/v2beta1/export-invoices`,
|
|
111
|
+
urlParams: marshalling.urlParams(
|
|
112
|
+
["dl", 1],
|
|
113
|
+
["billing_period_start_after", request.billingPeriodStartAfter],
|
|
114
|
+
["billing_period_start_before", request.billingPeriodStartBefore],
|
|
115
|
+
["file_type", request.fileType],
|
|
116
|
+
["invoice_type", request.invoiceType],
|
|
117
|
+
["order_by", request.orderBy],
|
|
118
|
+
["organization_id", request.organizationId],
|
|
119
|
+
["page", request.page],
|
|
120
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
121
|
+
),
|
|
122
|
+
responseType: "blob"
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* Get an invoice. Get a specific invoice, specified by its ID.
|
|
126
|
+
*
|
|
127
|
+
* @param request - The request {@link GetInvoiceRequest}
|
|
128
|
+
* @returns A Promise of Invoice
|
|
129
|
+
*/
|
|
130
|
+
getInvoice = (request) => this.client.fetch(
|
|
131
|
+
{
|
|
132
|
+
method: "GET",
|
|
133
|
+
path: `/billing/v2beta1/invoices/${marshalling.validatePathParam("invoiceId", request.invoiceId)}`
|
|
134
|
+
},
|
|
135
|
+
marshalling_gen.unmarshalInvoice
|
|
136
|
+
);
|
|
137
|
+
/**
|
|
138
|
+
* Download an invoice. Download a specific invoice, specified by its ID.
|
|
139
|
+
*
|
|
140
|
+
* @param request - The request {@link DownloadInvoiceRequest}
|
|
141
|
+
* @returns A Promise of Blob
|
|
142
|
+
*/
|
|
143
|
+
downloadInvoice = (request) => this.client.fetch({
|
|
144
|
+
method: "GET",
|
|
145
|
+
path: `/billing/v2beta1/invoices/${marshalling.validatePathParam("invoiceId", request.invoiceId)}/download`,
|
|
146
|
+
urlParams: marshalling.urlParams(["dl", 1], ["file_type", request.fileType]),
|
|
147
|
+
responseType: "blob"
|
|
148
|
+
});
|
|
149
|
+
pageOfListDiscounts = (request = {}) => this.client.fetch(
|
|
150
|
+
{
|
|
151
|
+
method: "GET",
|
|
152
|
+
path: `/billing/v2beta1/discounts`,
|
|
153
|
+
urlParams: marshalling.urlParams(
|
|
154
|
+
["order_by", request.orderBy],
|
|
155
|
+
["organization_id", request.organizationId],
|
|
156
|
+
["page", request.page],
|
|
157
|
+
[
|
|
158
|
+
"page_size",
|
|
159
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
160
|
+
]
|
|
161
|
+
)
|
|
162
|
+
},
|
|
163
|
+
marshalling_gen.unmarshalListDiscountsResponse
|
|
164
|
+
);
|
|
165
|
+
/**
|
|
166
|
+
* List discounts. List all discounts for your organization and usable
|
|
167
|
+
* categories, products, offers, references, regions and zones where the
|
|
168
|
+
* discount can be applied.
|
|
169
|
+
*
|
|
170
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
171
|
+
* @returns A Promise of ListDiscountsResponse
|
|
172
|
+
*/
|
|
173
|
+
listDiscounts = (request = {}) => resourcePaginator.enrichForPagination("discounts", this.pageOfListDiscounts, request);
|
|
174
|
+
}
|
|
175
|
+
exports.API = API;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
+
import type { DownloadInvoiceRequest, ExportInvoicesRequest, GetInvoiceRequest, Invoice, ListConsumptionsRequest, ListConsumptionsResponse, ListDiscountsRequest, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesResponse, ListTaxesRequest, ListTaxesResponse } from './types.gen';
|
|
3
|
+
/**
|
|
4
|
+
* Billing API.
|
|
5
|
+
*
|
|
6
|
+
* This API allows you to manage and query your Scaleway billing and
|
|
7
|
+
* consumption.
|
|
8
|
+
*/
|
|
9
|
+
export declare class API extends ParentAPI {
|
|
10
|
+
protected pageOfListConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or
|
|
13
|
+
* current consumption cost, by project or category.
|
|
14
|
+
*
|
|
15
|
+
* @param request - The request {@link ListConsumptionsRequest}
|
|
16
|
+
* @returns A Promise of ListConsumptionsResponse
|
|
17
|
+
*/
|
|
18
|
+
listConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse> & {
|
|
19
|
+
all: () => Promise<import("./types.gen").ListConsumptionsResponseConsumption[]>;
|
|
20
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ListConsumptionsResponseConsumption[], void, void>; /**
|
|
21
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
22
|
+
* past or current tax charges, by project or category.
|
|
23
|
+
*
|
|
24
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
25
|
+
* @returns A Promise of ListTaxesResponse
|
|
26
|
+
*/
|
|
27
|
+
};
|
|
28
|
+
protected pageOfListTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
31
|
+
* past or current tax charges, by project or category.
|
|
32
|
+
*
|
|
33
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
34
|
+
* @returns A Promise of ListTaxesResponse
|
|
35
|
+
*/
|
|
36
|
+
listTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse> & {
|
|
37
|
+
all: () => Promise<import("./types.gen").ListTaxesResponseTax[]>;
|
|
38
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ListTaxesResponseTax[], void, void>; /**
|
|
39
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
40
|
+
* past or current tax charges, by project or category.
|
|
41
|
+
*
|
|
42
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
43
|
+
* @returns A Promise of ListTaxesResponse
|
|
44
|
+
*/
|
|
45
|
+
};
|
|
46
|
+
protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* List invoices. List all your invoices, filtering by `start_date` and
|
|
49
|
+
* `invoice_type`. Each invoice has its own ID.
|
|
50
|
+
*
|
|
51
|
+
* @param request - The request {@link ListInvoicesRequest}
|
|
52
|
+
* @returns A Promise of ListInvoicesResponse
|
|
53
|
+
*/
|
|
54
|
+
listInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse> & {
|
|
55
|
+
all: () => Promise<Invoice[]>;
|
|
56
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Invoice[], void, void>; /**
|
|
57
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
58
|
+
* past or current tax charges, by project or category.
|
|
59
|
+
*
|
|
60
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
61
|
+
* @returns A Promise of ListTaxesResponse
|
|
62
|
+
*/
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Export invoices. Export invoices in a CSV file.
|
|
66
|
+
*
|
|
67
|
+
* @param request - The request {@link ExportInvoicesRequest}
|
|
68
|
+
* @returns A Promise of Blob
|
|
69
|
+
*/
|
|
70
|
+
exportInvoices: (request?: Readonly<ExportInvoicesRequest>) => Promise<Blob>;
|
|
71
|
+
/**
|
|
72
|
+
* Get an invoice. Get a specific invoice, specified by its ID.
|
|
73
|
+
*
|
|
74
|
+
* @param request - The request {@link GetInvoiceRequest}
|
|
75
|
+
* @returns A Promise of Invoice
|
|
76
|
+
*/
|
|
77
|
+
getInvoice: (request: Readonly<GetInvoiceRequest>) => Promise<Invoice>;
|
|
78
|
+
/**
|
|
79
|
+
* Download an invoice. Download a specific invoice, specified by its ID.
|
|
80
|
+
*
|
|
81
|
+
* @param request - The request {@link DownloadInvoiceRequest}
|
|
82
|
+
* @returns A Promise of Blob
|
|
83
|
+
*/
|
|
84
|
+
downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
|
|
85
|
+
protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* List discounts. List all discounts for your organization and usable
|
|
88
|
+
* categories, products, offers, references, regions and zones where the
|
|
89
|
+
* discount can be applied.
|
|
90
|
+
*
|
|
91
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
92
|
+
* @returns A Promise of ListDiscountsResponse
|
|
93
|
+
*/
|
|
94
|
+
listDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse> & {
|
|
95
|
+
all: () => Promise<import("./types.gen").Discount[]>;
|
|
96
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Discount[], void, void>; /**
|
|
97
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
98
|
+
* past or current tax charges, by project or category.
|
|
99
|
+
*
|
|
100
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
101
|
+
* @returns A Promise of ListTaxesResponse
|
|
102
|
+
*/
|
|
103
|
+
};
|
|
104
|
+
}
|