@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,11 +1,10 @@
|
|
|
1
|
-
import { isJSONObject } from
|
|
2
|
-
import { unmarshalDate, unmarshalArrayOfObject } from
|
|
3
|
-
|
|
4
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
|
-
const unmarshalEmailTry = data => {
|
|
1
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
2
|
+
import { unmarshalDate, unmarshalArrayOfObject } from "../../../helpers/marshalling.js";
|
|
3
|
+
const unmarshalEmailTry = (data) => {
|
|
7
4
|
if (!isJSONObject(data)) {
|
|
8
|
-
throw new TypeError(
|
|
5
|
+
throw new TypeError(
|
|
6
|
+
`Unmarshalling the type 'EmailTry' failed as data isn't a dictionary.`
|
|
7
|
+
);
|
|
9
8
|
}
|
|
10
9
|
return {
|
|
11
10
|
code: data.code,
|
|
@@ -14,9 +13,11 @@ const unmarshalEmailTry = data => {
|
|
|
14
13
|
triedAt: unmarshalDate(data.tried_at)
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
|
-
const unmarshalEmail = data => {
|
|
16
|
+
const unmarshalEmail = (data) => {
|
|
18
17
|
if (!isJSONObject(data)) {
|
|
19
|
-
throw new TypeError(
|
|
18
|
+
throw new TypeError(
|
|
19
|
+
`Unmarshalling the type 'Email' failed as data isn't a dictionary.`
|
|
20
|
+
);
|
|
20
21
|
}
|
|
21
22
|
return {
|
|
22
23
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -36,26 +37,32 @@ const unmarshalEmail = data => {
|
|
|
36
37
|
updatedAt: unmarshalDate(data.updated_at)
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
|
-
const unmarshalDomainRecordsDMARC = data => {
|
|
40
|
+
const unmarshalDomainRecordsDMARC = (data) => {
|
|
40
41
|
if (!isJSONObject(data)) {
|
|
41
|
-
throw new TypeError(
|
|
42
|
+
throw new TypeError(
|
|
43
|
+
`Unmarshalling the type 'DomainRecordsDMARC' failed as data isn't a dictionary.`
|
|
44
|
+
);
|
|
42
45
|
}
|
|
43
46
|
return {
|
|
44
47
|
name: data.name,
|
|
45
48
|
value: data.value
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
|
-
const unmarshalDomainRecords = data => {
|
|
51
|
+
const unmarshalDomainRecords = (data) => {
|
|
49
52
|
if (!isJSONObject(data)) {
|
|
50
|
-
throw new TypeError(
|
|
53
|
+
throw new TypeError(
|
|
54
|
+
`Unmarshalling the type 'DomainRecords' failed as data isn't a dictionary.`
|
|
55
|
+
);
|
|
51
56
|
}
|
|
52
57
|
return {
|
|
53
|
-
dmarc: data.dmarc ? unmarshalDomainRecordsDMARC(data.dmarc) :
|
|
58
|
+
dmarc: data.dmarc ? unmarshalDomainRecordsDMARC(data.dmarc) : void 0
|
|
54
59
|
};
|
|
55
60
|
};
|
|
56
|
-
const unmarshalDomainReputation = data => {
|
|
61
|
+
const unmarshalDomainReputation = (data) => {
|
|
57
62
|
if (!isJSONObject(data)) {
|
|
58
|
-
throw new TypeError(
|
|
63
|
+
throw new TypeError(
|
|
64
|
+
`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`
|
|
65
|
+
);
|
|
59
66
|
}
|
|
60
67
|
return {
|
|
61
68
|
previousScore: data.previous_score,
|
|
@@ -65,9 +72,11 @@ const unmarshalDomainReputation = data => {
|
|
|
65
72
|
status: data.status
|
|
66
73
|
};
|
|
67
74
|
};
|
|
68
|
-
const unmarshalDomainStatistics = data => {
|
|
75
|
+
const unmarshalDomainStatistics = (data) => {
|
|
69
76
|
if (!isJSONObject(data)) {
|
|
70
|
-
throw new TypeError(
|
|
77
|
+
throw new TypeError(
|
|
78
|
+
`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`
|
|
79
|
+
);
|
|
71
80
|
}
|
|
72
81
|
return {
|
|
73
82
|
canceledCount: data.canceled_count,
|
|
@@ -76,9 +85,11 @@ const unmarshalDomainStatistics = data => {
|
|
|
76
85
|
totalCount: data.total_count
|
|
77
86
|
};
|
|
78
87
|
};
|
|
79
|
-
const unmarshalDomain = data => {
|
|
88
|
+
const unmarshalDomain = (data) => {
|
|
80
89
|
if (!isJSONObject(data)) {
|
|
81
|
-
throw new TypeError(
|
|
90
|
+
throw new TypeError(
|
|
91
|
+
`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`
|
|
92
|
+
);
|
|
82
93
|
}
|
|
83
94
|
return {
|
|
84
95
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -90,26 +101,30 @@ const unmarshalDomain = data => {
|
|
|
90
101
|
nextCheckAt: unmarshalDate(data.next_check_at),
|
|
91
102
|
organizationId: data.organization_id,
|
|
92
103
|
projectId: data.project_id,
|
|
93
|
-
records: data.records ? unmarshalDomainRecords(data.records) :
|
|
104
|
+
records: data.records ? unmarshalDomainRecords(data.records) : void 0,
|
|
94
105
|
region: data.region,
|
|
95
|
-
reputation: data.reputation ? unmarshalDomainReputation(data.reputation) :
|
|
106
|
+
reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : void 0,
|
|
96
107
|
revokedAt: unmarshalDate(data.revoked_at),
|
|
97
108
|
spfConfig: data.spf_config,
|
|
98
|
-
statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) :
|
|
109
|
+
statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : void 0,
|
|
99
110
|
status: data.status
|
|
100
111
|
};
|
|
101
112
|
};
|
|
102
|
-
const unmarshalCreateEmailResponse = data => {
|
|
113
|
+
const unmarshalCreateEmailResponse = (data) => {
|
|
103
114
|
if (!isJSONObject(data)) {
|
|
104
|
-
throw new TypeError(
|
|
115
|
+
throw new TypeError(
|
|
116
|
+
`Unmarshalling the type 'CreateEmailResponse' failed as data isn't a dictionary.`
|
|
117
|
+
);
|
|
105
118
|
}
|
|
106
119
|
return {
|
|
107
120
|
emails: unmarshalArrayOfObject(data.emails, unmarshalEmail)
|
|
108
121
|
};
|
|
109
122
|
};
|
|
110
|
-
const unmarshalDomainLastStatusDkimRecord = data => {
|
|
123
|
+
const unmarshalDomainLastStatusDkimRecord = (data) => {
|
|
111
124
|
if (!isJSONObject(data)) {
|
|
112
|
-
throw new TypeError(
|
|
125
|
+
throw new TypeError(
|
|
126
|
+
`Unmarshalling the type 'DomainLastStatusDkimRecord' failed as data isn't a dictionary.`
|
|
127
|
+
);
|
|
113
128
|
}
|
|
114
129
|
return {
|
|
115
130
|
error: data.error,
|
|
@@ -117,9 +132,11 @@ const unmarshalDomainLastStatusDkimRecord = data => {
|
|
|
117
132
|
status: data.status
|
|
118
133
|
};
|
|
119
134
|
};
|
|
120
|
-
const unmarshalDomainLastStatusDmarcRecord = data => {
|
|
135
|
+
const unmarshalDomainLastStatusDmarcRecord = (data) => {
|
|
121
136
|
if (!isJSONObject(data)) {
|
|
122
|
-
throw new TypeError(
|
|
137
|
+
throw new TypeError(
|
|
138
|
+
`Unmarshalling the type 'DomainLastStatusDmarcRecord' failed as data isn't a dictionary.`
|
|
139
|
+
);
|
|
123
140
|
}
|
|
124
141
|
return {
|
|
125
142
|
error: data.error,
|
|
@@ -127,9 +144,11 @@ const unmarshalDomainLastStatusDmarcRecord = data => {
|
|
|
127
144
|
status: data.status
|
|
128
145
|
};
|
|
129
146
|
};
|
|
130
|
-
const unmarshalDomainLastStatusSpfRecord = data => {
|
|
147
|
+
const unmarshalDomainLastStatusSpfRecord = (data) => {
|
|
131
148
|
if (!isJSONObject(data)) {
|
|
132
|
-
throw new TypeError(
|
|
149
|
+
throw new TypeError(
|
|
150
|
+
`Unmarshalling the type 'DomainLastStatusSpfRecord' failed as data isn't a dictionary.`
|
|
151
|
+
);
|
|
133
152
|
}
|
|
134
153
|
return {
|
|
135
154
|
error: data.error,
|
|
@@ -137,39 +156,47 @@ const unmarshalDomainLastStatusSpfRecord = data => {
|
|
|
137
156
|
status: data.status
|
|
138
157
|
};
|
|
139
158
|
};
|
|
140
|
-
const unmarshalDomainLastStatus = data => {
|
|
159
|
+
const unmarshalDomainLastStatus = (data) => {
|
|
141
160
|
if (!isJSONObject(data)) {
|
|
142
|
-
throw new TypeError(
|
|
161
|
+
throw new TypeError(
|
|
162
|
+
`Unmarshalling the type 'DomainLastStatus' failed as data isn't a dictionary.`
|
|
163
|
+
);
|
|
143
164
|
}
|
|
144
165
|
return {
|
|
145
|
-
dkimRecord: data.dkim_record ? unmarshalDomainLastStatusDkimRecord(data.dkim_record) :
|
|
146
|
-
dmarcRecord: data.dmarc_record ? unmarshalDomainLastStatusDmarcRecord(data.dmarc_record) :
|
|
166
|
+
dkimRecord: data.dkim_record ? unmarshalDomainLastStatusDkimRecord(data.dkim_record) : void 0,
|
|
167
|
+
dmarcRecord: data.dmarc_record ? unmarshalDomainLastStatusDmarcRecord(data.dmarc_record) : void 0,
|
|
147
168
|
domainId: data.domain_id,
|
|
148
169
|
domainName: data.domain_name,
|
|
149
|
-
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) :
|
|
170
|
+
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : void 0
|
|
150
171
|
};
|
|
151
172
|
};
|
|
152
|
-
const unmarshalListDomainsResponse = data => {
|
|
173
|
+
const unmarshalListDomainsResponse = (data) => {
|
|
153
174
|
if (!isJSONObject(data)) {
|
|
154
|
-
throw new TypeError(
|
|
175
|
+
throw new TypeError(
|
|
176
|
+
`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`
|
|
177
|
+
);
|
|
155
178
|
}
|
|
156
179
|
return {
|
|
157
180
|
domains: unmarshalArrayOfObject(data.domains, unmarshalDomain),
|
|
158
181
|
totalCount: data.total_count
|
|
159
182
|
};
|
|
160
183
|
};
|
|
161
|
-
const unmarshalListEmailsResponse = data => {
|
|
184
|
+
const unmarshalListEmailsResponse = (data) => {
|
|
162
185
|
if (!isJSONObject(data)) {
|
|
163
|
-
throw new TypeError(
|
|
186
|
+
throw new TypeError(
|
|
187
|
+
`Unmarshalling the type 'ListEmailsResponse' failed as data isn't a dictionary.`
|
|
188
|
+
);
|
|
164
189
|
}
|
|
165
190
|
return {
|
|
166
191
|
emails: unmarshalArrayOfObject(data.emails, unmarshalEmail),
|
|
167
192
|
totalCount: data.total_count
|
|
168
193
|
};
|
|
169
194
|
};
|
|
170
|
-
const unmarshalStatistics = data => {
|
|
195
|
+
const unmarshalStatistics = (data) => {
|
|
171
196
|
if (!isJSONObject(data)) {
|
|
172
|
-
throw new TypeError(
|
|
197
|
+
throw new TypeError(
|
|
198
|
+
`Unmarshalling the type 'Statistics' failed as data isn't a dictionary.`
|
|
199
|
+
);
|
|
173
200
|
}
|
|
174
201
|
return {
|
|
175
202
|
canceledCount: data.canceled_count,
|
|
@@ -199,17 +226,30 @@ const marshalCreateEmailRequestHeader = (request, defaults) => ({
|
|
|
199
226
|
value: request.value
|
|
200
227
|
});
|
|
201
228
|
const marshalCreateEmailRequest = (request, defaults) => ({
|
|
202
|
-
additional_headers: request.additionalHeaders !==
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
229
|
+
additional_headers: request.additionalHeaders !== void 0 ? request.additionalHeaders.map(
|
|
230
|
+
(elt) => marshalCreateEmailRequestHeader(elt)
|
|
231
|
+
) : void 0,
|
|
232
|
+
attachments: request.attachments !== void 0 ? request.attachments.map(
|
|
233
|
+
(elt) => marshalCreateEmailRequestAttachment(elt)
|
|
234
|
+
) : void 0,
|
|
235
|
+
bcc: request.bcc !== void 0 ? request.bcc.map((elt) => marshalCreateEmailRequestAddress(elt)) : void 0,
|
|
236
|
+
cc: request.cc !== void 0 ? request.cc.map((elt) => marshalCreateEmailRequestAddress(elt)) : void 0,
|
|
237
|
+
from: request.from !== void 0 ? marshalCreateEmailRequestAddress(request.from) : void 0,
|
|
207
238
|
html: request.html,
|
|
208
239
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
209
240
|
send_before: request.sendBefore,
|
|
210
241
|
subject: request.subject,
|
|
211
242
|
text: request.text,
|
|
212
|
-
to: request.to !==
|
|
243
|
+
to: request.to !== void 0 ? request.to.map((elt) => marshalCreateEmailRequestAddress(elt)) : void 0
|
|
213
244
|
});
|
|
214
|
-
|
|
215
|
-
|
|
245
|
+
export {
|
|
246
|
+
marshalCreateDomainRequest,
|
|
247
|
+
marshalCreateEmailRequest,
|
|
248
|
+
unmarshalCreateEmailResponse,
|
|
249
|
+
unmarshalDomain,
|
|
250
|
+
unmarshalDomainLastStatus,
|
|
251
|
+
unmarshalEmail,
|
|
252
|
+
unmarshalListDomainsResponse,
|
|
253
|
+
unmarshalListEmailsResponse,
|
|
254
|
+
unmarshalStatistics
|
|
255
|
+
};
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import type { Region } from '../../../bridge';
|
|
2
|
+
export type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
|
|
3
|
+
export type DomainReputationStatus = 'unknown_status' | 'excellent' | 'good' | 'average' | 'bad';
|
|
4
|
+
export type DomainStatus = 'unknown' | 'checked' | 'unchecked' | 'invalid' | 'locked' | 'revoked' | 'pending';
|
|
5
|
+
export type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam' | 'mailbox_full' | 'mailbox_not_found' | 'greylisted' | 'send_before_expiration';
|
|
6
|
+
export type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc';
|
|
7
|
+
export type EmailStatus = 'unknown' | 'new' | 'sending' | 'sent' | 'failed' | 'canceled';
|
|
8
|
+
export type ListEmailsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'status_desc' | 'status_asc' | 'mail_from_desc' | 'mail_from_asc' | 'mail_rcpt_desc' | 'mail_rcpt_asc' | 'subject_desc' | 'subject_asc';
|
|
9
|
+
export interface DomainRecordsDMARC {
|
|
10
|
+
/** Name of the DMARC TXT record. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Value of the DMARC TXT record. */
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EmailTry {
|
|
16
|
+
/** Rank number of this attempt to send the email. */
|
|
17
|
+
rank: number;
|
|
18
|
+
/** Date of the attempt to send the email. */
|
|
19
|
+
triedAt?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* The SMTP status code received after the attempt. 0 if the attempt did not
|
|
22
|
+
* reach an SMTP server.
|
|
23
|
+
*/
|
|
24
|
+
code: number;
|
|
25
|
+
/**
|
|
26
|
+
* The SMTP message received. If the attempt did not reach an SMTP server, the
|
|
27
|
+
* message returned explains what happened.
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DomainRecords {
|
|
32
|
+
/** DMARC TXT record specification. */
|
|
33
|
+
dmarc?: DomainRecordsDMARC;
|
|
34
|
+
}
|
|
35
|
+
export interface DomainReputation {
|
|
36
|
+
/** Status of your domain's reputation. */
|
|
37
|
+
status: DomainReputationStatus;
|
|
38
|
+
/**
|
|
39
|
+
* A range from 0 to 100 that determines your domain's reputation score. A
|
|
40
|
+
* score of `0` means a bad domain reputation and a score of `100` means an
|
|
41
|
+
* excellent domain reputation.
|
|
42
|
+
*/
|
|
43
|
+
score: number;
|
|
44
|
+
/** Time and date the score was calculated. */
|
|
45
|
+
scoredAt?: Date;
|
|
46
|
+
/** The previously-calculated domain's reputation score. */
|
|
47
|
+
previousScore?: number;
|
|
48
|
+
/** Time and date the previous reputation score was calculated. */
|
|
49
|
+
previousScoredAt?: Date;
|
|
50
|
+
}
|
|
51
|
+
export interface DomainStatistics {
|
|
52
|
+
totalCount: number;
|
|
53
|
+
sentCount: number;
|
|
54
|
+
failedCount: number;
|
|
55
|
+
canceledCount: number;
|
|
56
|
+
}
|
|
57
|
+
export interface CreateEmailRequestAddress {
|
|
58
|
+
/** Email address. */
|
|
59
|
+
email: string;
|
|
60
|
+
/** (Optional) Name displayed. */
|
|
61
|
+
name?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface CreateEmailRequestAttachment {
|
|
64
|
+
/** Filename of the attachment. */
|
|
65
|
+
name: string;
|
|
66
|
+
/** MIME type of the attachment. */
|
|
67
|
+
type: string;
|
|
68
|
+
/** Content of the attachment encoded in base64. */
|
|
69
|
+
content: string;
|
|
70
|
+
}
|
|
71
|
+
export interface CreateEmailRequestHeader {
|
|
72
|
+
/** Email header key. */
|
|
73
|
+
key: string;
|
|
74
|
+
/** Email header value. */
|
|
75
|
+
value: string;
|
|
76
|
+
}
|
|
77
|
+
export interface Email {
|
|
78
|
+
/** Technical ID of the email. */
|
|
79
|
+
id: string;
|
|
80
|
+
/** Message ID of the email. */
|
|
81
|
+
messageId: string;
|
|
82
|
+
/** ID of the Project to which the email belongs. */
|
|
83
|
+
projectId: string;
|
|
84
|
+
/** Email address of the sender. */
|
|
85
|
+
mailFrom: string;
|
|
86
|
+
/** @deprecated Email address of the recipient. */
|
|
87
|
+
rcptTo?: string;
|
|
88
|
+
/** Email address of the recipient. */
|
|
89
|
+
mailRcpt: string;
|
|
90
|
+
/** Type of recipient. */
|
|
91
|
+
rcptType: EmailRcptType;
|
|
92
|
+
/** Subject of the email. */
|
|
93
|
+
subject: string;
|
|
94
|
+
/** Creation date of the email object. */
|
|
95
|
+
createdAt?: Date;
|
|
96
|
+
/** Last update of the email object. */
|
|
97
|
+
updatedAt?: Date;
|
|
98
|
+
/** Status of the email. */
|
|
99
|
+
status: EmailStatus;
|
|
100
|
+
/** Additional status information. */
|
|
101
|
+
statusDetails?: string;
|
|
102
|
+
/** Number of attempts to send the email. */
|
|
103
|
+
tryCount: number;
|
|
104
|
+
/** Information about the last three attempts to send the email. */
|
|
105
|
+
lastTries: EmailTry[];
|
|
106
|
+
/**
|
|
107
|
+
* Flags categorize emails. They allow you to obtain more information about
|
|
108
|
+
* recurring errors, for example.
|
|
109
|
+
*/
|
|
110
|
+
flags: EmailFlag[];
|
|
111
|
+
}
|
|
112
|
+
export interface DomainLastStatusDkimRecord {
|
|
113
|
+
/** Status of the DKIM record's configuration. */
|
|
114
|
+
status: DomainLastStatusRecordStatus;
|
|
115
|
+
/** Time and date the DKIM record was last valid. */
|
|
116
|
+
lastValidAt?: Date;
|
|
117
|
+
/** An error text displays in case the record is not valid. */
|
|
118
|
+
error?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DomainLastStatusDmarcRecord {
|
|
121
|
+
/** Status of the DMARC record's configuration. */
|
|
122
|
+
status: DomainLastStatusRecordStatus;
|
|
123
|
+
/** Time and date the DMARC record was last valid. */
|
|
124
|
+
lastValidAt?: Date;
|
|
125
|
+
/** An error text displays in case the record is not valid. */
|
|
126
|
+
error?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface DomainLastStatusSpfRecord {
|
|
129
|
+
/** Status of the SPF record's configuration. */
|
|
130
|
+
status: DomainLastStatusRecordStatus;
|
|
131
|
+
/** Time and date the SPF record was last valid. */
|
|
132
|
+
lastValidAt?: Date;
|
|
133
|
+
/** An error text displays in case the record is not valid. */
|
|
134
|
+
error?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface Domain {
|
|
137
|
+
/** ID of the domain. */
|
|
138
|
+
id: string;
|
|
139
|
+
/** ID of the domain's Organization. */
|
|
140
|
+
organizationId: string;
|
|
141
|
+
/** ID of the domain's Project. */
|
|
142
|
+
projectId: string;
|
|
143
|
+
/** Domain name (example.com). */
|
|
144
|
+
name: string;
|
|
145
|
+
/** Status of the domain. */
|
|
146
|
+
status: DomainStatus;
|
|
147
|
+
/** Date and time of domain creation. */
|
|
148
|
+
createdAt?: Date;
|
|
149
|
+
/** Date and time of the next scheduled check. */
|
|
150
|
+
nextCheckAt?: Date;
|
|
151
|
+
/** Date and time the domain was last valid. */
|
|
152
|
+
lastValidAt?: Date;
|
|
153
|
+
/** Date and time of the domain's deletion. */
|
|
154
|
+
revokedAt?: Date;
|
|
155
|
+
/** @deprecated Error message returned if the last check failed. */
|
|
156
|
+
lastError?: string;
|
|
157
|
+
/** Snippet of the SPF record to register in the DNS zone. */
|
|
158
|
+
spfConfig: string;
|
|
159
|
+
/** DKIM public key to record in the DNS zone. */
|
|
160
|
+
dkimConfig: string;
|
|
161
|
+
/** Domain's statistics. */
|
|
162
|
+
statistics?: DomainStatistics;
|
|
163
|
+
/**
|
|
164
|
+
* The domain's reputation is available when your domain is checked and has
|
|
165
|
+
* sent enough emails.
|
|
166
|
+
*/
|
|
167
|
+
reputation?: DomainReputation;
|
|
168
|
+
/** List of records to configure to validate a domain. */
|
|
169
|
+
records?: DomainRecords;
|
|
170
|
+
/**
|
|
171
|
+
* Region to target. If none is passed will use default region from the
|
|
172
|
+
* config.
|
|
173
|
+
*/
|
|
174
|
+
region: Region;
|
|
175
|
+
}
|
|
176
|
+
export type CancelEmailRequest = {
|
|
177
|
+
/**
|
|
178
|
+
* Region to target. If none is passed will use default region from the
|
|
179
|
+
* config.
|
|
180
|
+
*/
|
|
181
|
+
region?: Region;
|
|
182
|
+
/** ID of the email to cancel. */
|
|
183
|
+
emailId: string;
|
|
184
|
+
};
|
|
185
|
+
export type CheckDomainRequest = {
|
|
186
|
+
/**
|
|
187
|
+
* Region to target. If none is passed will use default region from the
|
|
188
|
+
* config.
|
|
189
|
+
*/
|
|
190
|
+
region?: Region;
|
|
191
|
+
/** ID of the domain to check. */
|
|
192
|
+
domainId: string;
|
|
193
|
+
};
|
|
194
|
+
export type CreateDomainRequest = {
|
|
195
|
+
/**
|
|
196
|
+
* Region to target. If none is passed will use default region from the
|
|
197
|
+
* config.
|
|
198
|
+
*/
|
|
199
|
+
region?: Region;
|
|
200
|
+
/** ID of the project to which the domain belongs. */
|
|
201
|
+
projectId?: string;
|
|
202
|
+
/** Fully qualified domain dame. */
|
|
203
|
+
domainName: string;
|
|
204
|
+
/** Accept Scaleway's Terms of Service. */
|
|
205
|
+
acceptTos: boolean;
|
|
206
|
+
};
|
|
207
|
+
export type CreateEmailRequest = {
|
|
208
|
+
/**
|
|
209
|
+
* Region to target. If none is passed will use default region from the
|
|
210
|
+
* config.
|
|
211
|
+
*/
|
|
212
|
+
region?: Region;
|
|
213
|
+
/** Sender information. Must be from a checked domain declared in the Project. */
|
|
214
|
+
from?: CreateEmailRequestAddress;
|
|
215
|
+
/** An array of the primary recipient's information. */
|
|
216
|
+
to?: CreateEmailRequestAddress[];
|
|
217
|
+
/** An array of the carbon copy recipient's information. */
|
|
218
|
+
cc?: CreateEmailRequestAddress[];
|
|
219
|
+
/** An array of the blind carbon copy recipient's information. */
|
|
220
|
+
bcc?: CreateEmailRequestAddress[];
|
|
221
|
+
/** Subject of the email. */
|
|
222
|
+
subject: string;
|
|
223
|
+
/** Text content. */
|
|
224
|
+
text: string;
|
|
225
|
+
/** HTML content. */
|
|
226
|
+
html: string;
|
|
227
|
+
/** ID of the Project in which to create the email. */
|
|
228
|
+
projectId?: string;
|
|
229
|
+
/** Array of attachments. */
|
|
230
|
+
attachments?: CreateEmailRequestAttachment[];
|
|
231
|
+
/** Maximum date to deliver the email. */
|
|
232
|
+
sendBefore?: Date;
|
|
233
|
+
/** Array of additional headers as key-value. */
|
|
234
|
+
additionalHeaders?: CreateEmailRequestHeader[];
|
|
235
|
+
};
|
|
236
|
+
export interface CreateEmailResponse {
|
|
237
|
+
/** Single page of emails matching the requested criteria. */
|
|
238
|
+
emails: Email[];
|
|
239
|
+
}
|
|
240
|
+
export interface DomainLastStatus {
|
|
241
|
+
/** The ID of the domain. */
|
|
242
|
+
domainId: string;
|
|
243
|
+
/** The domain name (example.com). */
|
|
244
|
+
domainName: string;
|
|
245
|
+
/** The SPF record verification data. */
|
|
246
|
+
spfRecord?: DomainLastStatusSpfRecord;
|
|
247
|
+
/** The DKIM record verification data. */
|
|
248
|
+
dkimRecord?: DomainLastStatusDkimRecord;
|
|
249
|
+
/** The DMARC record verification data. */
|
|
250
|
+
dmarcRecord?: DomainLastStatusDmarcRecord;
|
|
251
|
+
}
|
|
252
|
+
export type GetDomainLastStatusRequest = {
|
|
253
|
+
/**
|
|
254
|
+
* Region to target. If none is passed will use default region from the
|
|
255
|
+
* config.
|
|
256
|
+
*/
|
|
257
|
+
region?: Region;
|
|
258
|
+
/** ID of the domain to delete. */
|
|
259
|
+
domainId: string;
|
|
260
|
+
};
|
|
261
|
+
export type GetDomainRequest = {
|
|
262
|
+
/**
|
|
263
|
+
* Region to target. If none is passed will use default region from the
|
|
264
|
+
* config.
|
|
265
|
+
*/
|
|
266
|
+
region?: Region;
|
|
267
|
+
/** ID of the domain. */
|
|
268
|
+
domainId: string;
|
|
269
|
+
};
|
|
270
|
+
export type GetEmailRequest = {
|
|
271
|
+
/**
|
|
272
|
+
* Region to target. If none is passed will use default region from the
|
|
273
|
+
* config.
|
|
274
|
+
*/
|
|
275
|
+
region?: Region;
|
|
276
|
+
/** ID of the email to retrieve. */
|
|
277
|
+
emailId: string;
|
|
278
|
+
};
|
|
279
|
+
export type GetStatisticsRequest = {
|
|
280
|
+
/**
|
|
281
|
+
* Region to target. If none is passed will use default region from the
|
|
282
|
+
* config.
|
|
283
|
+
*/
|
|
284
|
+
region?: Region;
|
|
285
|
+
/** (Optional) Number of emails for this Project. */
|
|
286
|
+
projectId?: string;
|
|
287
|
+
/**
|
|
288
|
+
* (Optional) Number of emails sent from this domain (must be coherent with
|
|
289
|
+
* the `project_id` and the `organization_id`).
|
|
290
|
+
*/
|
|
291
|
+
domainId?: string;
|
|
292
|
+
/** (Optional) Number of emails created after this date. */
|
|
293
|
+
since?: Date;
|
|
294
|
+
/** (Optional) Number of emails created before this date. */
|
|
295
|
+
until?: Date;
|
|
296
|
+
/** (Optional) Number of emails sent with this sender's email address. */
|
|
297
|
+
mailFrom?: string;
|
|
298
|
+
};
|
|
299
|
+
export type ListDomainsRequest = {
|
|
300
|
+
/**
|
|
301
|
+
* Region to target. If none is passed will use default region from the
|
|
302
|
+
* config.
|
|
303
|
+
*/
|
|
304
|
+
region?: Region;
|
|
305
|
+
/** Requested page number. Value must be greater or equal to 1. */
|
|
306
|
+
page?: number;
|
|
307
|
+
/** Requested page size. Value must be between 1 and 1000. */
|
|
308
|
+
pageSize?: number;
|
|
309
|
+
/** (Optional) ID of the Project in which to list the domains. */
|
|
310
|
+
projectId?: string;
|
|
311
|
+
/** (Optional) List domains under specific statuses. */
|
|
312
|
+
status?: DomainStatus[];
|
|
313
|
+
/** (Optional) ID of the Organization in which to list the domains. */
|
|
314
|
+
organizationId?: string;
|
|
315
|
+
/** (Optional) Names of the domains to list. */
|
|
316
|
+
name?: string;
|
|
317
|
+
};
|
|
318
|
+
export interface ListDomainsResponse {
|
|
319
|
+
/** Number of domains that match the request (without pagination). */
|
|
320
|
+
totalCount: number;
|
|
321
|
+
domains: Domain[];
|
|
322
|
+
}
|
|
323
|
+
export type ListEmailsRequest = {
|
|
324
|
+
/**
|
|
325
|
+
* Region to target. If none is passed will use default region from the
|
|
326
|
+
* config.
|
|
327
|
+
*/
|
|
328
|
+
region?: Region;
|
|
329
|
+
page?: number;
|
|
330
|
+
pageSize?: number;
|
|
331
|
+
/** (Optional) ID of the Project in which to list the emails. */
|
|
332
|
+
projectId?: string;
|
|
333
|
+
/** (Optional) ID of the domain for which to list the emails. */
|
|
334
|
+
domainId?: string;
|
|
335
|
+
/** (Optional) ID of the message for which to list the emails. */
|
|
336
|
+
messageId?: string;
|
|
337
|
+
/** (Optional) List emails created after this date. */
|
|
338
|
+
since?: Date;
|
|
339
|
+
/** (Optional) List emails created before this date. */
|
|
340
|
+
until?: Date;
|
|
341
|
+
/** (Optional) List emails sent with this sender's email address. */
|
|
342
|
+
mailFrom?: string;
|
|
343
|
+
/** @deprecated List emails sent to this recipient's email address. */
|
|
344
|
+
mailTo?: string;
|
|
345
|
+
/** (Optional) List emails sent to this recipient's email address. */
|
|
346
|
+
mailRcpt?: string;
|
|
347
|
+
/** (Optional) List emails with any of these statuses. */
|
|
348
|
+
statuses?: EmailStatus[];
|
|
349
|
+
/** (Optional) List emails with this subject. */
|
|
350
|
+
subject?: string;
|
|
351
|
+
/** (Optional) List emails by searching to all fields. */
|
|
352
|
+
search?: string;
|
|
353
|
+
/** (Optional) List emails corresponding to specific criteria. */
|
|
354
|
+
orderBy?: ListEmailsRequestOrderBy;
|
|
355
|
+
/** (Optional) List emails containing only specific flags. */
|
|
356
|
+
flags?: EmailFlag[];
|
|
357
|
+
};
|
|
358
|
+
export interface ListEmailsResponse {
|
|
359
|
+
/** Number of emails matching the requested criteria. */
|
|
360
|
+
totalCount: number;
|
|
361
|
+
/** Single page of emails matching the requested criteria. */
|
|
362
|
+
emails: Email[];
|
|
363
|
+
}
|
|
364
|
+
export type RevokeDomainRequest = {
|
|
365
|
+
/**
|
|
366
|
+
* Region to target. If none is passed will use default region from the
|
|
367
|
+
* config.
|
|
368
|
+
*/
|
|
369
|
+
region?: Region;
|
|
370
|
+
/** ID of the domain to delete. */
|
|
371
|
+
domainId: string;
|
|
372
|
+
};
|
|
373
|
+
export interface Statistics {
|
|
374
|
+
/** Total number of emails matching the requested criteria. */
|
|
375
|
+
totalCount: number;
|
|
376
|
+
/**
|
|
377
|
+
* Number of emails still in the `new` transient state. This means emails
|
|
378
|
+
* received from the API but not yet processed.
|
|
379
|
+
*/
|
|
380
|
+
newCount: number;
|
|
381
|
+
/**
|
|
382
|
+
* Number of emails still in the `sending` transient state. This means emails
|
|
383
|
+
* received from the API but not yet in their final status.
|
|
384
|
+
*/
|
|
385
|
+
sendingCount: number;
|
|
386
|
+
/**
|
|
387
|
+
* Number of emails in the final `sent` state. This means emails that have
|
|
388
|
+
* been delivered to the target mail system.
|
|
389
|
+
*/
|
|
390
|
+
sentCount: number;
|
|
391
|
+
/**
|
|
392
|
+
* Number of emails in the final `failed` state. This means emails that have
|
|
393
|
+
* been refused by the target mail system with a final error status.
|
|
394
|
+
*/
|
|
395
|
+
failedCount: number;
|
|
396
|
+
/**
|
|
397
|
+
* Number of emails in the final `canceled` state. This means emails that have
|
|
398
|
+
* been canceled upon request.
|
|
399
|
+
*/
|
|
400
|
+
canceledCount: number;
|
|
401
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from './v1/index.gen';
|
package/dist/api/test/index.js
CHANGED