@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
|
@@ -0,0 +1,1472 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const json = require("../../../helpers/json.cjs");
|
|
4
|
+
const customMarshalling = require("../../../scw/custom-marshalling.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const unmarshalContactExtensionFRAssociationInfo = (data) => {
|
|
7
|
+
if (!json.isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Unmarshalling the type 'ContactExtensionFRAssociationInfo' failed as data isn't a dictionary.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
publicationJo: marshalling.unmarshalDate(data.publication_jo),
|
|
14
|
+
publicationJoPage: data.publication_jo_page
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
const unmarshalContactExtensionFRCodeAuthAfnicInfo = (data) => {
|
|
18
|
+
if (!json.isJSONObject(data)) {
|
|
19
|
+
throw new TypeError(
|
|
20
|
+
`Unmarshalling the type 'ContactExtensionFRCodeAuthAfnicInfo' failed as data isn't a dictionary.`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
codeAuthAfnic: data.code_auth_afnic
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
const unmarshalContactExtensionFRDunsInfo = (data) => {
|
|
28
|
+
if (!json.isJSONObject(data)) {
|
|
29
|
+
throw new TypeError(
|
|
30
|
+
`Unmarshalling the type 'ContactExtensionFRDunsInfo' failed as data isn't a dictionary.`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
dunsId: data.duns_id,
|
|
35
|
+
localId: data.local_id
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const unmarshalContactExtensionFRIndividualInfo = (data) => {
|
|
39
|
+
if (!json.isJSONObject(data)) {
|
|
40
|
+
throw new TypeError(
|
|
41
|
+
`Unmarshalling the type 'ContactExtensionFRIndividualInfo' failed as data isn't a dictionary.`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
whoisOptIn: data.whois_opt_in
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const unmarshalContactExtensionFRTrademarkInfo = (data) => {
|
|
49
|
+
if (!json.isJSONObject(data)) {
|
|
50
|
+
throw new TypeError(
|
|
51
|
+
`Unmarshalling the type 'ContactExtensionFRTrademarkInfo' failed as data isn't a dictionary.`
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
trademarkInpi: data.trademark_inpi
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const unmarshalContactExtensionEU = (data) => {
|
|
59
|
+
if (!json.isJSONObject(data)) {
|
|
60
|
+
throw new TypeError(
|
|
61
|
+
`Unmarshalling the type 'ContactExtensionEU' failed as data isn't a dictionary.`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
europeanCitizenship: data.european_citizenship
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
const unmarshalContactExtensionFR = (data) => {
|
|
69
|
+
if (!json.isJSONObject(data)) {
|
|
70
|
+
throw new TypeError(
|
|
71
|
+
`Unmarshalling the type 'ContactExtensionFR' failed as data isn't a dictionary.`
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
associationInfo: data.association_info ? unmarshalContactExtensionFRAssociationInfo(data.association_info) : void 0,
|
|
76
|
+
codeAuthAfnicInfo: data.code_auth_afnic_info ? unmarshalContactExtensionFRCodeAuthAfnicInfo(data.code_auth_afnic_info) : void 0,
|
|
77
|
+
dunsInfo: data.duns_info ? unmarshalContactExtensionFRDunsInfo(data.duns_info) : void 0,
|
|
78
|
+
individualInfo: data.individual_info ? unmarshalContactExtensionFRIndividualInfo(data.individual_info) : void 0,
|
|
79
|
+
mode: data.mode,
|
|
80
|
+
trademarkInfo: data.trademark_info ? unmarshalContactExtensionFRTrademarkInfo(data.trademark_info) : void 0
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
const unmarshalContactExtensionNL = (data) => {
|
|
84
|
+
if (!json.isJSONObject(data)) {
|
|
85
|
+
throw new TypeError(
|
|
86
|
+
`Unmarshalling the type 'ContactExtensionNL' failed as data isn't a dictionary.`
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
legalForm: data.legal_form,
|
|
91
|
+
legalFormRegistrationNumber: data.legal_form_registration_number
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
const unmarshalContactQuestion = (data) => {
|
|
95
|
+
if (!json.isJSONObject(data)) {
|
|
96
|
+
throw new TypeError(
|
|
97
|
+
`Unmarshalling the type 'ContactQuestion' failed as data isn't a dictionary.`
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
answer: data.answer,
|
|
102
|
+
question: data.question
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const unmarshalContact = (data) => {
|
|
106
|
+
if (!json.isJSONObject(data)) {
|
|
107
|
+
throw new TypeError(
|
|
108
|
+
`Unmarshalling the type 'Contact' failed as data isn't a dictionary.`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
addressLine1: data.address_line_1,
|
|
113
|
+
addressLine2: data.address_line_2,
|
|
114
|
+
city: data.city,
|
|
115
|
+
companyIdentificationCode: data.company_identification_code,
|
|
116
|
+
companyName: data.company_name,
|
|
117
|
+
country: data.country,
|
|
118
|
+
email: data.email,
|
|
119
|
+
emailAlt: data.email_alt,
|
|
120
|
+
emailStatus: data.email_status,
|
|
121
|
+
extensionEu: data.extension_eu ? unmarshalContactExtensionEU(data.extension_eu) : void 0,
|
|
122
|
+
extensionFr: data.extension_fr ? unmarshalContactExtensionFR(data.extension_fr) : void 0,
|
|
123
|
+
extensionNl: data.extension_nl ? unmarshalContactExtensionNL(data.extension_nl) : void 0,
|
|
124
|
+
faxNumber: data.fax_number,
|
|
125
|
+
firstname: data.firstname,
|
|
126
|
+
id: data.id,
|
|
127
|
+
lang: data.lang,
|
|
128
|
+
lastname: data.lastname,
|
|
129
|
+
legalForm: data.legal_form,
|
|
130
|
+
phoneNumber: data.phone_number,
|
|
131
|
+
questions: data.questions ? marshalling.unmarshalArrayOfObject(data.questions, unmarshalContactQuestion) : void 0,
|
|
132
|
+
resale: data.resale,
|
|
133
|
+
state: data.state,
|
|
134
|
+
status: data.status,
|
|
135
|
+
vatIdentificationCode: data.vat_identification_code,
|
|
136
|
+
whoisOptIn: data.whois_opt_in,
|
|
137
|
+
zip: data.zip
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
const unmarshalDNSZone = (data) => {
|
|
141
|
+
if (!json.isJSONObject(data)) {
|
|
142
|
+
throw new TypeError(
|
|
143
|
+
`Unmarshalling the type 'DNSZone' failed as data isn't a dictionary.`
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
domain: data.domain,
|
|
148
|
+
linkedProducts: data.linked_products,
|
|
149
|
+
message: data.message,
|
|
150
|
+
ns: data.ns,
|
|
151
|
+
nsDefault: data.ns_default,
|
|
152
|
+
nsMaster: data.ns_master,
|
|
153
|
+
projectId: data.project_id,
|
|
154
|
+
status: data.status,
|
|
155
|
+
subdomain: data.subdomain,
|
|
156
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
const unmarshalHost = (data) => {
|
|
160
|
+
if (!json.isJSONObject(data)) {
|
|
161
|
+
throw new TypeError(
|
|
162
|
+
`Unmarshalling the type 'Host' failed as data isn't a dictionary.`
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
domain: data.domain,
|
|
167
|
+
ips: data.ips,
|
|
168
|
+
name: data.name,
|
|
169
|
+
status: data.status
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const unmarshalSSLCertificate = (data) => {
|
|
173
|
+
if (!json.isJSONObject(data)) {
|
|
174
|
+
throw new TypeError(
|
|
175
|
+
`Unmarshalling the type 'SSLCertificate' failed as data isn't a dictionary.`
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
alternativeDnsZones: data.alternative_dns_zones,
|
|
180
|
+
certificateChain: data.certificate_chain,
|
|
181
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
182
|
+
dnsZone: data.dns_zone,
|
|
183
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
184
|
+
privateKey: data.private_key,
|
|
185
|
+
status: data.status
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
const unmarshalCheckContactsCompatibilityResponseContactCheckResult = (data) => {
|
|
189
|
+
if (!json.isJSONObject(data)) {
|
|
190
|
+
throw new TypeError(
|
|
191
|
+
`Unmarshalling the type 'CheckContactsCompatibilityResponseContactCheckResult' failed as data isn't a dictionary.`
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
compatible: data.compatible,
|
|
196
|
+
errorMessage: data.error_message
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
const unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
200
|
+
if (!json.isJSONObject(data)) {
|
|
201
|
+
throw new TypeError(
|
|
202
|
+
`Unmarshalling the type 'CheckContactsCompatibilityResponse' failed as data isn't a dictionary.`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
207
|
+
data.administrative_check_result
|
|
208
|
+
) : void 0,
|
|
209
|
+
compatible: data.compatible,
|
|
210
|
+
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
211
|
+
data.owner_check_result
|
|
212
|
+
) : void 0,
|
|
213
|
+
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
214
|
+
data.technical_check_result
|
|
215
|
+
) : void 0
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
const unmarshalClearDNSZoneRecordsResponse = (data) => {
|
|
219
|
+
if (!json.isJSONObject(data)) {
|
|
220
|
+
throw new TypeError(
|
|
221
|
+
`Unmarshalling the type 'ClearDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
return {};
|
|
225
|
+
};
|
|
226
|
+
const unmarshalDeleteDNSZoneResponse = (data) => {
|
|
227
|
+
if (!json.isJSONObject(data)) {
|
|
228
|
+
throw new TypeError(
|
|
229
|
+
`Unmarshalling the type 'DeleteDNSZoneResponse' failed as data isn't a dictionary.`
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
return {};
|
|
233
|
+
};
|
|
234
|
+
const unmarshalDeleteExternalDomainResponse = (data) => {
|
|
235
|
+
if (!json.isJSONObject(data)) {
|
|
236
|
+
throw new TypeError(
|
|
237
|
+
`Unmarshalling the type 'DeleteExternalDomainResponse' failed as data isn't a dictionary.`
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
return {};
|
|
241
|
+
};
|
|
242
|
+
const unmarshalDeleteSSLCertificateResponse = (data) => {
|
|
243
|
+
if (!json.isJSONObject(data)) {
|
|
244
|
+
throw new TypeError(
|
|
245
|
+
`Unmarshalling the type 'DeleteSSLCertificateResponse' failed as data isn't a dictionary.`
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
return {};
|
|
249
|
+
};
|
|
250
|
+
const unmarshalDSRecordPublicKey = (data) => {
|
|
251
|
+
if (!json.isJSONObject(data)) {
|
|
252
|
+
throw new TypeError(
|
|
253
|
+
`Unmarshalling the type 'DSRecordPublicKey' failed as data isn't a dictionary.`
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
key: data.key
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
const unmarshalDSRecordDigest = (data) => {
|
|
261
|
+
if (!json.isJSONObject(data)) {
|
|
262
|
+
throw new TypeError(
|
|
263
|
+
`Unmarshalling the type 'DSRecordDigest' failed as data isn't a dictionary.`
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
return {
|
|
267
|
+
digest: data.digest,
|
|
268
|
+
publicKey: data.public_key ? unmarshalDSRecordPublicKey(data.public_key) : void 0,
|
|
269
|
+
type: data.type
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
const unmarshalDSRecord = (data) => {
|
|
273
|
+
if (!json.isJSONObject(data)) {
|
|
274
|
+
throw new TypeError(
|
|
275
|
+
`Unmarshalling the type 'DSRecord' failed as data isn't a dictionary.`
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
return {
|
|
279
|
+
algorithm: data.algorithm,
|
|
280
|
+
digest: data.digest ? unmarshalDSRecordDigest(data.digest) : void 0,
|
|
281
|
+
keyId: data.key_id,
|
|
282
|
+
publicKey: data.public_key ? unmarshalDSRecordPublicKey(data.public_key) : void 0
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
const unmarshalTldOffer = (data) => {
|
|
286
|
+
if (!json.isJSONObject(data)) {
|
|
287
|
+
throw new TypeError(
|
|
288
|
+
`Unmarshalling the type 'TldOffer' failed as data isn't a dictionary.`
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
return {
|
|
292
|
+
action: data.action,
|
|
293
|
+
operationPath: data.operation_path,
|
|
294
|
+
price: data.price ? customMarshalling.unmarshalMoney(data.price) : void 0
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
const unmarshalDomainDNSSEC = (data) => {
|
|
298
|
+
if (!json.isJSONObject(data)) {
|
|
299
|
+
throw new TypeError(
|
|
300
|
+
`Unmarshalling the type 'DomainDNSSEC' failed as data isn't a dictionary.`
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
return {
|
|
304
|
+
dsRecords: marshalling.unmarshalArrayOfObject(data.ds_records, unmarshalDSRecord),
|
|
305
|
+
status: data.status
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
const unmarshalDomainRegistrationStatusExternalDomain = (data) => {
|
|
309
|
+
if (!json.isJSONObject(data)) {
|
|
310
|
+
throw new TypeError(
|
|
311
|
+
`Unmarshalling the type 'DomainRegistrationStatusExternalDomain' failed as data isn't a dictionary.`
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
validationToken: data.validation_token
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
const unmarshalDomainRegistrationStatusTransfer = (data) => {
|
|
319
|
+
if (!json.isJSONObject(data)) {
|
|
320
|
+
throw new TypeError(
|
|
321
|
+
`Unmarshalling the type 'DomainRegistrationStatusTransfer' failed as data isn't a dictionary.`
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
status: data.status,
|
|
326
|
+
voteCurrentOwner: data.vote_current_owner,
|
|
327
|
+
voteNewOwner: data.vote_new_owner
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
const unmarshalTld = (data) => {
|
|
331
|
+
if (!json.isJSONObject(data)) {
|
|
332
|
+
throw new TypeError(
|
|
333
|
+
`Unmarshalling the type 'Tld' failed as data isn't a dictionary.`
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
return {
|
|
337
|
+
dnssecSupport: data.dnssec_support,
|
|
338
|
+
durationInYearsMax: data.duration_in_years_max,
|
|
339
|
+
durationInYearsMin: data.duration_in_years_min,
|
|
340
|
+
idnSupport: data.idn_support,
|
|
341
|
+
name: data.name,
|
|
342
|
+
offers: marshalling.unmarshalMapOfObject(data.offers, unmarshalTldOffer),
|
|
343
|
+
specifications: data.specifications
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
const unmarshalDomain = (data) => {
|
|
347
|
+
if (!json.isJSONObject(data)) {
|
|
348
|
+
throw new TypeError(
|
|
349
|
+
`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
return {
|
|
353
|
+
administrativeContact: data.administrative_contact ? unmarshalContact(data.administrative_contact) : void 0,
|
|
354
|
+
autoRenewStatus: data.auto_renew_status,
|
|
355
|
+
dnsZones: marshalling.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone),
|
|
356
|
+
dnssec: data.dnssec ? unmarshalDomainDNSSEC(data.dnssec) : void 0,
|
|
357
|
+
domain: data.domain,
|
|
358
|
+
eppCode: data.epp_code,
|
|
359
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
360
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
361
|
+
data.external_domain_registration_status
|
|
362
|
+
) : void 0,
|
|
363
|
+
isExternal: data.is_external,
|
|
364
|
+
linkedProducts: data.linked_products,
|
|
365
|
+
organizationId: data.organization_id,
|
|
366
|
+
ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : void 0,
|
|
367
|
+
pendingTrade: data.pending_trade,
|
|
368
|
+
projectId: data.project_id,
|
|
369
|
+
registrar: data.registrar,
|
|
370
|
+
status: data.status,
|
|
371
|
+
technicalContact: data.technical_contact ? unmarshalContact(data.technical_contact) : void 0,
|
|
372
|
+
tld: data.tld ? unmarshalTld(data.tld) : void 0,
|
|
373
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
374
|
+
data.transfer_registration_status
|
|
375
|
+
) : void 0,
|
|
376
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
const unmarshalGetDNSZoneTsigKeyResponse = (data) => {
|
|
380
|
+
if (!json.isJSONObject(data)) {
|
|
381
|
+
throw new TypeError(
|
|
382
|
+
`Unmarshalling the type 'GetDNSZoneTsigKeyResponse' failed as data isn't a dictionary.`
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
algorithm: data.algorithm,
|
|
387
|
+
key: data.key,
|
|
388
|
+
name: data.name
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
const unmarshalDomainRecordGeoIPConfigMatch = (data) => {
|
|
392
|
+
if (!json.isJSONObject(data)) {
|
|
393
|
+
throw new TypeError(
|
|
394
|
+
`Unmarshalling the type 'DomainRecordGeoIPConfigMatch' failed as data isn't a dictionary.`
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
continents: data.continents,
|
|
399
|
+
countries: data.countries,
|
|
400
|
+
data: data.data
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
const unmarshalDomainRecordViewConfigView = (data) => {
|
|
404
|
+
if (!json.isJSONObject(data)) {
|
|
405
|
+
throw new TypeError(
|
|
406
|
+
`Unmarshalling the type 'DomainRecordViewConfigView' failed as data isn't a dictionary.`
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
data: data.data,
|
|
411
|
+
subnet: data.subnet
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
const unmarshalDomainRecordWeightedConfigWeightedIP = (data) => {
|
|
415
|
+
if (!json.isJSONObject(data)) {
|
|
416
|
+
throw new TypeError(
|
|
417
|
+
`Unmarshalling the type 'DomainRecordWeightedConfigWeightedIP' failed as data isn't a dictionary.`
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
ip: data.ip,
|
|
422
|
+
weight: data.weight
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
const unmarshalDomainRecordGeoIPConfig = (data) => {
|
|
426
|
+
if (!json.isJSONObject(data)) {
|
|
427
|
+
throw new TypeError(
|
|
428
|
+
`Unmarshalling the type 'DomainRecordGeoIPConfig' failed as data isn't a dictionary.`
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
return {
|
|
432
|
+
default: data.default,
|
|
433
|
+
matches: marshalling.unmarshalArrayOfObject(
|
|
434
|
+
data.matches,
|
|
435
|
+
unmarshalDomainRecordGeoIPConfigMatch
|
|
436
|
+
)
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
const unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
440
|
+
if (!json.isJSONObject(data)) {
|
|
441
|
+
throw new TypeError(
|
|
442
|
+
`Unmarshalling the type 'DomainRecordHTTPServiceConfig' failed as data isn't a dictionary.`
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
return {
|
|
446
|
+
ips: data.ips,
|
|
447
|
+
mustContain: data.must_contain,
|
|
448
|
+
strategy: data.strategy,
|
|
449
|
+
url: data.url,
|
|
450
|
+
userAgent: data.user_agent
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
const unmarshalDomainRecordViewConfig = (data) => {
|
|
454
|
+
if (!json.isJSONObject(data)) {
|
|
455
|
+
throw new TypeError(
|
|
456
|
+
`Unmarshalling the type 'DomainRecordViewConfig' failed as data isn't a dictionary.`
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
return {
|
|
460
|
+
views: marshalling.unmarshalArrayOfObject(
|
|
461
|
+
data.views,
|
|
462
|
+
unmarshalDomainRecordViewConfigView
|
|
463
|
+
)
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
467
|
+
if (!json.isJSONObject(data)) {
|
|
468
|
+
throw new TypeError(
|
|
469
|
+
`Unmarshalling the type 'DomainRecordWeightedConfig' failed as data isn't a dictionary.`
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
return {
|
|
473
|
+
weightedIps: marshalling.unmarshalArrayOfObject(
|
|
474
|
+
data.weighted_ips,
|
|
475
|
+
unmarshalDomainRecordWeightedConfigWeightedIP
|
|
476
|
+
)
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
const unmarshalDomainRecord = (data) => {
|
|
480
|
+
if (!json.isJSONObject(data)) {
|
|
481
|
+
throw new TypeError(
|
|
482
|
+
`Unmarshalling the type 'DomainRecord' failed as data isn't a dictionary.`
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
return {
|
|
486
|
+
comment: data.comment,
|
|
487
|
+
data: data.data,
|
|
488
|
+
geoIpConfig: data.geo_ip_config ? unmarshalDomainRecordGeoIPConfig(data.geo_ip_config) : void 0,
|
|
489
|
+
httpServiceConfig: data.http_service_config ? unmarshalDomainRecordHTTPServiceConfig(data.http_service_config) : void 0,
|
|
490
|
+
id: data.id,
|
|
491
|
+
name: data.name,
|
|
492
|
+
priority: data.priority,
|
|
493
|
+
ttl: data.ttl,
|
|
494
|
+
type: data.type,
|
|
495
|
+
viewConfig: data.view_config ? unmarshalDomainRecordViewConfig(data.view_config) : void 0,
|
|
496
|
+
weightedConfig: data.weighted_config ? unmarshalDomainRecordWeightedConfig(data.weighted_config) : void 0
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
const unmarshalRecordIdentifier = (data) => {
|
|
500
|
+
if (!json.isJSONObject(data)) {
|
|
501
|
+
throw new TypeError(
|
|
502
|
+
`Unmarshalling the type 'RecordIdentifier' failed as data isn't a dictionary.`
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
return {
|
|
506
|
+
data: data.data,
|
|
507
|
+
name: data.name,
|
|
508
|
+
ttl: data.ttl,
|
|
509
|
+
type: data.type
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
const unmarshalRecordChangeAdd = (data) => {
|
|
513
|
+
if (!json.isJSONObject(data)) {
|
|
514
|
+
throw new TypeError(
|
|
515
|
+
`Unmarshalling the type 'RecordChangeAdd' failed as data isn't a dictionary.`
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
return {
|
|
519
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
const unmarshalRecordChangeClear = (data) => {
|
|
523
|
+
if (!json.isJSONObject(data)) {
|
|
524
|
+
throw new TypeError(
|
|
525
|
+
`Unmarshalling the type 'RecordChangeClear' failed as data isn't a dictionary.`
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
return {};
|
|
529
|
+
};
|
|
530
|
+
const unmarshalRecordChangeDelete = (data) => {
|
|
531
|
+
if (!json.isJSONObject(data)) {
|
|
532
|
+
throw new TypeError(
|
|
533
|
+
`Unmarshalling the type 'RecordChangeDelete' failed as data isn't a dictionary.`
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
return {
|
|
537
|
+
id: data.id,
|
|
538
|
+
idFields: data.id_fields ? unmarshalRecordIdentifier(data.id_fields) : void 0
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
const unmarshalRecordChangeSet = (data) => {
|
|
542
|
+
if (!json.isJSONObject(data)) {
|
|
543
|
+
throw new TypeError(
|
|
544
|
+
`Unmarshalling the type 'RecordChangeSet' failed as data isn't a dictionary.`
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
return {
|
|
548
|
+
id: data.id,
|
|
549
|
+
idFields: data.id_fields ? unmarshalRecordIdentifier(data.id_fields) : void 0,
|
|
550
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
const unmarshalRecordChange = (data) => {
|
|
554
|
+
if (!json.isJSONObject(data)) {
|
|
555
|
+
throw new TypeError(
|
|
556
|
+
`Unmarshalling the type 'RecordChange' failed as data isn't a dictionary.`
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
return {
|
|
560
|
+
add: data.add ? unmarshalRecordChangeAdd(data.add) : void 0,
|
|
561
|
+
clear: data.clear ? unmarshalRecordChangeClear(data.clear) : void 0,
|
|
562
|
+
delete: data.delete ? unmarshalRecordChangeDelete(data.delete) : void 0,
|
|
563
|
+
set: data.set ? unmarshalRecordChangeSet(data.set) : void 0
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
const unmarshalGetDNSZoneVersionDiffResponse = (data) => {
|
|
567
|
+
if (!json.isJSONObject(data)) {
|
|
568
|
+
throw new TypeError(
|
|
569
|
+
`Unmarshalling the type 'GetDNSZoneVersionDiffResponse' failed as data isn't a dictionary.`
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
return {
|
|
573
|
+
changes: marshalling.unmarshalArrayOfObject(data.changes, unmarshalRecordChange)
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
const unmarshalGetDomainAuthCodeResponse = (data) => {
|
|
577
|
+
if (!json.isJSONObject(data)) {
|
|
578
|
+
throw new TypeError(
|
|
579
|
+
`Unmarshalling the type 'GetDomainAuthCodeResponse' failed as data isn't a dictionary.`
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
return {
|
|
583
|
+
authCode: data.auth_code
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
const unmarshalImportProviderDNSZoneResponse = (data) => {
|
|
587
|
+
if (!json.isJSONObject(data)) {
|
|
588
|
+
throw new TypeError(
|
|
589
|
+
`Unmarshalling the type 'ImportProviderDNSZoneResponse' failed as data isn't a dictionary.`
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
return {
|
|
593
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
const unmarshalImportRawDNSZoneResponse = (data) => {
|
|
597
|
+
if (!json.isJSONObject(data)) {
|
|
598
|
+
throw new TypeError(
|
|
599
|
+
`Unmarshalling the type 'ImportRawDNSZoneResponse' failed as data isn't a dictionary.`
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
return {
|
|
603
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
const unmarshalContactRolesRoles = (data) => {
|
|
607
|
+
if (!json.isJSONObject(data)) {
|
|
608
|
+
throw new TypeError(
|
|
609
|
+
`Unmarshalling the type 'ContactRolesRoles' failed as data isn't a dictionary.`
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
return {
|
|
613
|
+
isAdministrative: data.is_administrative,
|
|
614
|
+
isOwner: data.is_owner,
|
|
615
|
+
isTechnical: data.is_technical
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
const unmarshalContactRoles = (data) => {
|
|
619
|
+
if (!json.isJSONObject(data)) {
|
|
620
|
+
throw new TypeError(
|
|
621
|
+
`Unmarshalling the type 'ContactRoles' failed as data isn't a dictionary.`
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
return {
|
|
625
|
+
contact: data.contact ? unmarshalContact(data.contact) : void 0,
|
|
626
|
+
roles: marshalling.unmarshalMapOfObject(data.roles, unmarshalContactRolesRoles)
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
const unmarshalListContactsResponse = (data) => {
|
|
630
|
+
if (!json.isJSONObject(data)) {
|
|
631
|
+
throw new TypeError(
|
|
632
|
+
`Unmarshalling the type 'ListContactsResponse' failed as data isn't a dictionary.`
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
return {
|
|
636
|
+
contacts: marshalling.unmarshalArrayOfObject(data.contacts, unmarshalContactRoles),
|
|
637
|
+
totalCount: data.total_count
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
const unmarshalNameserver = (data) => {
|
|
641
|
+
if (!json.isJSONObject(data)) {
|
|
642
|
+
throw new TypeError(
|
|
643
|
+
`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
return {
|
|
647
|
+
ip: data.ip,
|
|
648
|
+
name: data.name
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
const unmarshalListDNSZoneNameserversResponse = (data) => {
|
|
652
|
+
if (!json.isJSONObject(data)) {
|
|
653
|
+
throw new TypeError(
|
|
654
|
+
`Unmarshalling the type 'ListDNSZoneNameserversResponse' failed as data isn't a dictionary.`
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
return {
|
|
658
|
+
ns: marshalling.unmarshalArrayOfObject(data.ns, unmarshalNameserver)
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
const unmarshalListDNSZoneRecordsResponse = (data) => {
|
|
662
|
+
if (!json.isJSONObject(data)) {
|
|
663
|
+
throw new TypeError(
|
|
664
|
+
`Unmarshalling the type 'ListDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
669
|
+
totalCount: data.total_count
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
const unmarshalListDNSZoneVersionRecordsResponse = (data) => {
|
|
673
|
+
if (!json.isJSONObject(data)) {
|
|
674
|
+
throw new TypeError(
|
|
675
|
+
`Unmarshalling the type 'ListDNSZoneVersionRecordsResponse' failed as data isn't a dictionary.`
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
return {
|
|
679
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
680
|
+
totalCount: data.total_count
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
const unmarshalDNSZoneVersion = (data) => {
|
|
684
|
+
if (!json.isJSONObject(data)) {
|
|
685
|
+
throw new TypeError(
|
|
686
|
+
`Unmarshalling the type 'DNSZoneVersion' failed as data isn't a dictionary.`
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
return {
|
|
690
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
691
|
+
id: data.id
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
const unmarshalListDNSZoneVersionsResponse = (data) => {
|
|
695
|
+
if (!json.isJSONObject(data)) {
|
|
696
|
+
throw new TypeError(
|
|
697
|
+
`Unmarshalling the type 'ListDNSZoneVersionsResponse' failed as data isn't a dictionary.`
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
return {
|
|
701
|
+
totalCount: data.total_count,
|
|
702
|
+
versions: marshalling.unmarshalArrayOfObject(data.versions, unmarshalDNSZoneVersion)
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
const unmarshalListDNSZonesResponse = (data) => {
|
|
706
|
+
if (!json.isJSONObject(data)) {
|
|
707
|
+
throw new TypeError(
|
|
708
|
+
`Unmarshalling the type 'ListDNSZonesResponse' failed as data isn't a dictionary.`
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
return {
|
|
712
|
+
dnsZones: marshalling.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone),
|
|
713
|
+
totalCount: data.total_count
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
const unmarshalListDomainHostsResponse = (data) => {
|
|
717
|
+
if (!json.isJSONObject(data)) {
|
|
718
|
+
throw new TypeError(
|
|
719
|
+
`Unmarshalling the type 'ListDomainHostsResponse' failed as data isn't a dictionary.`
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
return {
|
|
723
|
+
hosts: marshalling.unmarshalArrayOfObject(data.hosts, unmarshalHost),
|
|
724
|
+
totalCount: data.total_count
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
const unmarshalDomainSummary = (data) => {
|
|
728
|
+
if (!json.isJSONObject(data)) {
|
|
729
|
+
throw new TypeError(
|
|
730
|
+
`Unmarshalling the type 'DomainSummary' failed as data isn't a dictionary.`
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
return {
|
|
734
|
+
autoRenewStatus: data.auto_renew_status,
|
|
735
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
736
|
+
dnssecStatus: data.dnssec_status,
|
|
737
|
+
domain: data.domain,
|
|
738
|
+
eppCode: data.epp_code,
|
|
739
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
740
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
741
|
+
data.external_domain_registration_status
|
|
742
|
+
) : void 0,
|
|
743
|
+
isExternal: data.is_external,
|
|
744
|
+
organizationId: data.organization_id,
|
|
745
|
+
pendingTrade: data.pending_trade,
|
|
746
|
+
projectId: data.project_id,
|
|
747
|
+
registrar: data.registrar,
|
|
748
|
+
status: data.status,
|
|
749
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
750
|
+
data.transfer_registration_status
|
|
751
|
+
) : void 0,
|
|
752
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
const unmarshalListDomainsResponse = (data) => {
|
|
756
|
+
if (!json.isJSONObject(data)) {
|
|
757
|
+
throw new TypeError(
|
|
758
|
+
`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
return {
|
|
762
|
+
domains: marshalling.unmarshalArrayOfObject(data.domains, unmarshalDomainSummary),
|
|
763
|
+
totalCount: data.total_count
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
const unmarshalRenewableDomain = (data) => {
|
|
767
|
+
if (!json.isJSONObject(data)) {
|
|
768
|
+
throw new TypeError(
|
|
769
|
+
`Unmarshalling the type 'RenewableDomain' failed as data isn't a dictionary.`
|
|
770
|
+
);
|
|
771
|
+
}
|
|
772
|
+
return {
|
|
773
|
+
domain: data.domain,
|
|
774
|
+
estimatedDeleteAt: marshalling.unmarshalDate(data.estimated_delete_at),
|
|
775
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
776
|
+
limitRedemptionAt: marshalling.unmarshalDate(data.limit_redemption_at),
|
|
777
|
+
limitRenewAt: marshalling.unmarshalDate(data.limit_renew_at),
|
|
778
|
+
organizationId: data.organization_id,
|
|
779
|
+
projectId: data.project_id,
|
|
780
|
+
renewableDurationInYears: data.renewable_duration_in_years,
|
|
781
|
+
status: data.status,
|
|
782
|
+
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
const unmarshalListRenewableDomainsResponse = (data) => {
|
|
786
|
+
if (!json.isJSONObject(data)) {
|
|
787
|
+
throw new TypeError(
|
|
788
|
+
`Unmarshalling the type 'ListRenewableDomainsResponse' failed as data isn't a dictionary.`
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
return {
|
|
792
|
+
domains: marshalling.unmarshalArrayOfObject(data.domains, unmarshalRenewableDomain),
|
|
793
|
+
totalCount: data.total_count
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
const unmarshalListSSLCertificatesResponse = (data) => {
|
|
797
|
+
if (!json.isJSONObject(data)) {
|
|
798
|
+
throw new TypeError(
|
|
799
|
+
`Unmarshalling the type 'ListSSLCertificatesResponse' failed as data isn't a dictionary.`
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
return {
|
|
803
|
+
certificates: marshalling.unmarshalArrayOfObject(
|
|
804
|
+
data.certificates,
|
|
805
|
+
unmarshalSSLCertificate
|
|
806
|
+
),
|
|
807
|
+
totalCount: data.total_count
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
const unmarshalTask = (data) => {
|
|
811
|
+
if (!json.isJSONObject(data)) {
|
|
812
|
+
throw new TypeError(
|
|
813
|
+
`Unmarshalling the type 'Task' failed as data isn't a dictionary.`
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
return {
|
|
817
|
+
contactIdentifier: data.contact_identifier,
|
|
818
|
+
domain: data.domain,
|
|
819
|
+
id: data.id,
|
|
820
|
+
message: data.message,
|
|
821
|
+
organizationId: data.organization_id,
|
|
822
|
+
projectId: data.project_id,
|
|
823
|
+
startedAt: marshalling.unmarshalDate(data.started_at),
|
|
824
|
+
status: data.status,
|
|
825
|
+
type: data.type,
|
|
826
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
const unmarshalListTasksResponse = (data) => {
|
|
830
|
+
if (!json.isJSONObject(data)) {
|
|
831
|
+
throw new TypeError(
|
|
832
|
+
`Unmarshalling the type 'ListTasksResponse' failed as data isn't a dictionary.`
|
|
833
|
+
);
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
tasks: marshalling.unmarshalArrayOfObject(data.tasks, unmarshalTask),
|
|
837
|
+
totalCount: data.total_count
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
const unmarshalListTldsResponse = (data) => {
|
|
841
|
+
if (!json.isJSONObject(data)) {
|
|
842
|
+
throw new TypeError(
|
|
843
|
+
`Unmarshalling the type 'ListTldsResponse' failed as data isn't a dictionary.`
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
return {
|
|
847
|
+
tlds: marshalling.unmarshalArrayOfObject(data.tlds, unmarshalTld),
|
|
848
|
+
totalCount: data.total_count
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
const unmarshalOrderResponse = (data) => {
|
|
852
|
+
if (!json.isJSONObject(data)) {
|
|
853
|
+
throw new TypeError(
|
|
854
|
+
`Unmarshalling the type 'OrderResponse' failed as data isn't a dictionary.`
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
return {
|
|
858
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
859
|
+
domains: data.domains,
|
|
860
|
+
organizationId: data.organization_id,
|
|
861
|
+
projectId: data.project_id,
|
|
862
|
+
taskId: data.task_id
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
const unmarshalRefreshDNSZoneResponse = (data) => {
|
|
866
|
+
if (!json.isJSONObject(data)) {
|
|
867
|
+
throw new TypeError(
|
|
868
|
+
`Unmarshalling the type 'RefreshDNSZoneResponse' failed as data isn't a dictionary.`
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
return {
|
|
872
|
+
dnsZones: marshalling.unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone)
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
const unmarshalRegisterExternalDomainResponse = (data) => {
|
|
876
|
+
if (!json.isJSONObject(data)) {
|
|
877
|
+
throw new TypeError(
|
|
878
|
+
`Unmarshalling the type 'RegisterExternalDomainResponse' failed as data isn't a dictionary.`
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
return {
|
|
882
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
883
|
+
domain: data.domain,
|
|
884
|
+
organizationId: data.organization_id,
|
|
885
|
+
projectId: data.project_id,
|
|
886
|
+
validationToken: data.validation_token
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
const unmarshalRestoreDNSZoneVersionResponse = (data) => {
|
|
890
|
+
if (!json.isJSONObject(data)) {
|
|
891
|
+
throw new TypeError(
|
|
892
|
+
`Unmarshalling the type 'RestoreDNSZoneVersionResponse' failed as data isn't a dictionary.`
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
return {};
|
|
896
|
+
};
|
|
897
|
+
const unmarshalAvailableDomain = (data) => {
|
|
898
|
+
if (!json.isJSONObject(data)) {
|
|
899
|
+
throw new TypeError(
|
|
900
|
+
`Unmarshalling the type 'AvailableDomain' failed as data isn't a dictionary.`
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
return {
|
|
904
|
+
available: data.available,
|
|
905
|
+
domain: data.domain,
|
|
906
|
+
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
910
|
+
if (!json.isJSONObject(data)) {
|
|
911
|
+
throw new TypeError(
|
|
912
|
+
`Unmarshalling the type 'SearchAvailableDomainsResponse' failed as data isn't a dictionary.`
|
|
913
|
+
);
|
|
914
|
+
}
|
|
915
|
+
return {
|
|
916
|
+
availableDomains: marshalling.unmarshalArrayOfObject(
|
|
917
|
+
data.available_domains,
|
|
918
|
+
unmarshalAvailableDomain
|
|
919
|
+
)
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
const unmarshalUpdateDNSZoneNameserversResponse = (data) => {
|
|
923
|
+
if (!json.isJSONObject(data)) {
|
|
924
|
+
throw new TypeError(
|
|
925
|
+
`Unmarshalling the type 'UpdateDNSZoneNameserversResponse' failed as data isn't a dictionary.`
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
ns: marshalling.unmarshalArrayOfObject(data.ns, unmarshalNameserver)
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
const unmarshalUpdateDNSZoneRecordsResponse = (data) => {
|
|
933
|
+
if (!json.isJSONObject(data)) {
|
|
934
|
+
throw new TypeError(
|
|
935
|
+
`Unmarshalling the type 'UpdateDNSZoneRecordsResponse' failed as data isn't a dictionary.`
|
|
936
|
+
);
|
|
937
|
+
}
|
|
938
|
+
return {
|
|
939
|
+
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
const marshalCloneDNSZoneRequest = (request, defaults) => ({
|
|
943
|
+
dest_dns_zone: request.destDnsZone,
|
|
944
|
+
overwrite: request.overwrite,
|
|
945
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
946
|
+
});
|
|
947
|
+
const marshalCreateDNSZoneRequest = (request, defaults) => ({
|
|
948
|
+
domain: request.domain,
|
|
949
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
950
|
+
subdomain: request.subdomain
|
|
951
|
+
});
|
|
952
|
+
const marshalCreateSSLCertificateRequest = (request, defaults) => ({
|
|
953
|
+
alternative_dns_zones: request.alternativeDnsZones,
|
|
954
|
+
dns_zone: request.dnsZone
|
|
955
|
+
});
|
|
956
|
+
const marshalImportProviderDNSZoneRequestOnlineV1 = (request, defaults) => ({
|
|
957
|
+
token: request.token
|
|
958
|
+
});
|
|
959
|
+
const marshalImportProviderDNSZoneRequest = (request, defaults) => ({
|
|
960
|
+
...marshalling.resolveOneOf([
|
|
961
|
+
{
|
|
962
|
+
param: "online_v1",
|
|
963
|
+
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(
|
|
964
|
+
request.onlineV1
|
|
965
|
+
) : void 0
|
|
966
|
+
}
|
|
967
|
+
])
|
|
968
|
+
});
|
|
969
|
+
const marshalImportRawDNSZoneRequestTsigKey = (request, defaults) => ({
|
|
970
|
+
algorithm: request.algorithm,
|
|
971
|
+
key: request.key,
|
|
972
|
+
name: request.name
|
|
973
|
+
});
|
|
974
|
+
const marshalImportRawDNSZoneRequestAXFRSource = (request, defaults) => ({
|
|
975
|
+
name_server: request.nameServer,
|
|
976
|
+
tsig_key: request.tsigKey !== void 0 ? marshalImportRawDNSZoneRequestTsigKey(request.tsigKey) : void 0
|
|
977
|
+
});
|
|
978
|
+
const marshalImportRawDNSZoneRequestBindSource = (request, defaults) => ({
|
|
979
|
+
content: request.content
|
|
980
|
+
});
|
|
981
|
+
const marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
982
|
+
content: request.content,
|
|
983
|
+
format: request.format,
|
|
984
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
985
|
+
...marshalling.resolveOneOf([
|
|
986
|
+
{
|
|
987
|
+
param: "bind_source",
|
|
988
|
+
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(
|
|
989
|
+
request.bindSource
|
|
990
|
+
) : void 0
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
param: "axfr_source",
|
|
994
|
+
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(
|
|
995
|
+
request.axfrSource
|
|
996
|
+
) : void 0
|
|
997
|
+
}
|
|
998
|
+
])
|
|
999
|
+
});
|
|
1000
|
+
const marshalRefreshDNSZoneRequest = (request, defaults) => ({
|
|
1001
|
+
recreate_dns_zone: request.recreateDnsZone,
|
|
1002
|
+
recreate_sub_dns_zone: request.recreateSubDnsZone
|
|
1003
|
+
});
|
|
1004
|
+
const marshalContactExtensionFRAssociationInfo = (request, defaults) => ({
|
|
1005
|
+
publication_jo: request.publicationJo,
|
|
1006
|
+
publication_jo_page: request.publicationJoPage
|
|
1007
|
+
});
|
|
1008
|
+
const marshalContactExtensionFRCodeAuthAfnicInfo = (request, defaults) => ({
|
|
1009
|
+
code_auth_afnic: request.codeAuthAfnic
|
|
1010
|
+
});
|
|
1011
|
+
const marshalContactExtensionFRDunsInfo = (request, defaults) => ({
|
|
1012
|
+
duns_id: request.dunsId,
|
|
1013
|
+
local_id: request.localId
|
|
1014
|
+
});
|
|
1015
|
+
const marshalContactExtensionFRIndividualInfo = (request, defaults) => ({
|
|
1016
|
+
whois_opt_in: request.whoisOptIn
|
|
1017
|
+
});
|
|
1018
|
+
const marshalContactExtensionFRTrademarkInfo = (request, defaults) => ({
|
|
1019
|
+
trademark_inpi: request.trademarkInpi
|
|
1020
|
+
});
|
|
1021
|
+
const marshalContactExtensionEU = (request, defaults) => ({
|
|
1022
|
+
european_citizenship: request.europeanCitizenship
|
|
1023
|
+
});
|
|
1024
|
+
const marshalContactExtensionFR = (request, defaults) => ({
|
|
1025
|
+
mode: request.mode,
|
|
1026
|
+
...marshalling.resolveOneOf([
|
|
1027
|
+
{
|
|
1028
|
+
param: "individual_info",
|
|
1029
|
+
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(
|
|
1030
|
+
request.individualInfo
|
|
1031
|
+
) : void 0
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
param: "duns_info",
|
|
1035
|
+
value: request.dunsInfo !== void 0 ? marshalContactExtensionFRDunsInfo(request.dunsInfo) : void 0
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
param: "association_info",
|
|
1039
|
+
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(
|
|
1040
|
+
request.associationInfo
|
|
1041
|
+
) : void 0
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
param: "trademark_info",
|
|
1045
|
+
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(
|
|
1046
|
+
request.trademarkInfo
|
|
1047
|
+
) : void 0
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
param: "code_auth_afnic_info",
|
|
1051
|
+
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(
|
|
1052
|
+
request.codeAuthAfnicInfo
|
|
1053
|
+
) : void 0
|
|
1054
|
+
}
|
|
1055
|
+
])
|
|
1056
|
+
});
|
|
1057
|
+
const marshalContactExtensionNL = (request, defaults) => ({
|
|
1058
|
+
legal_form: request.legalForm,
|
|
1059
|
+
legal_form_registration_number: request.legalFormRegistrationNumber
|
|
1060
|
+
});
|
|
1061
|
+
const marshalContactQuestion = (request, defaults) => ({
|
|
1062
|
+
answer: request.answer,
|
|
1063
|
+
question: request.question
|
|
1064
|
+
});
|
|
1065
|
+
const marshalNewContact = (request, defaults) => ({
|
|
1066
|
+
address_line_1: request.addressLine1,
|
|
1067
|
+
address_line_2: request.addressLine2,
|
|
1068
|
+
city: request.city,
|
|
1069
|
+
company_identification_code: request.companyIdentificationCode,
|
|
1070
|
+
company_name: request.companyName,
|
|
1071
|
+
country: request.country,
|
|
1072
|
+
email: request.email,
|
|
1073
|
+
email_alt: request.emailAlt,
|
|
1074
|
+
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1075
|
+
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1076
|
+
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1077
|
+
fax_number: request.faxNumber,
|
|
1078
|
+
firstname: request.firstname,
|
|
1079
|
+
lang: request.lang,
|
|
1080
|
+
lastname: request.lastname,
|
|
1081
|
+
legal_form: request.legalForm,
|
|
1082
|
+
phone_number: request.phoneNumber,
|
|
1083
|
+
questions: request.questions !== void 0 ? request.questions.map((elt) => marshalContactQuestion(elt)) : void 0,
|
|
1084
|
+
resale: request.resale,
|
|
1085
|
+
state: request.state,
|
|
1086
|
+
vat_identification_code: request.vatIdentificationCode,
|
|
1087
|
+
whois_opt_in: request.whoisOptIn,
|
|
1088
|
+
zip: request.zip
|
|
1089
|
+
});
|
|
1090
|
+
const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
1091
|
+
domains: request.domains,
|
|
1092
|
+
duration_in_years: request.durationInYears,
|
|
1093
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1094
|
+
...marshalling.resolveOneOf([
|
|
1095
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1096
|
+
{
|
|
1097
|
+
param: "owner_contact",
|
|
1098
|
+
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1099
|
+
}
|
|
1100
|
+
]),
|
|
1101
|
+
...marshalling.resolveOneOf([
|
|
1102
|
+
{
|
|
1103
|
+
param: "administrative_contact_id",
|
|
1104
|
+
value: request.administrativeContactId
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
param: "administrative_contact",
|
|
1108
|
+
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1109
|
+
}
|
|
1110
|
+
]),
|
|
1111
|
+
...marshalling.resolveOneOf([
|
|
1112
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1113
|
+
{
|
|
1114
|
+
param: "technical_contact",
|
|
1115
|
+
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1116
|
+
}
|
|
1117
|
+
])
|
|
1118
|
+
});
|
|
1119
|
+
const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults) => ({
|
|
1120
|
+
domains: request.domains,
|
|
1121
|
+
tlds: request.tlds,
|
|
1122
|
+
...marshalling.resolveOneOf([
|
|
1123
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1124
|
+
{
|
|
1125
|
+
param: "owner_contact",
|
|
1126
|
+
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1127
|
+
}
|
|
1128
|
+
]),
|
|
1129
|
+
...marshalling.resolveOneOf([
|
|
1130
|
+
{
|
|
1131
|
+
param: "administrative_contact_id",
|
|
1132
|
+
value: request.administrativeContactId
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
param: "administrative_contact",
|
|
1136
|
+
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1137
|
+
}
|
|
1138
|
+
]),
|
|
1139
|
+
...marshalling.resolveOneOf([
|
|
1140
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1141
|
+
{
|
|
1142
|
+
param: "technical_contact",
|
|
1143
|
+
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1144
|
+
}
|
|
1145
|
+
])
|
|
1146
|
+
});
|
|
1147
|
+
const marshalRegistrarApiCreateDomainHostRequest = (request, defaults) => ({
|
|
1148
|
+
ips: request.ips,
|
|
1149
|
+
name: request.name
|
|
1150
|
+
});
|
|
1151
|
+
const marshalDSRecordPublicKey = (request, defaults) => ({
|
|
1152
|
+
key: request.key
|
|
1153
|
+
});
|
|
1154
|
+
const marshalDSRecordDigest = (request, defaults) => ({
|
|
1155
|
+
digest: request.digest,
|
|
1156
|
+
public_key: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey) : void 0,
|
|
1157
|
+
type: request.type
|
|
1158
|
+
});
|
|
1159
|
+
const marshalDSRecord = (request, defaults) => ({
|
|
1160
|
+
algorithm: request.algorithm,
|
|
1161
|
+
key_id: request.keyId,
|
|
1162
|
+
...marshalling.resolveOneOf([
|
|
1163
|
+
{
|
|
1164
|
+
param: "digest",
|
|
1165
|
+
value: request.digest !== void 0 ? marshalDSRecordDigest(request.digest) : void 0
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
param: "public_key",
|
|
1169
|
+
value: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey) : void 0
|
|
1170
|
+
}
|
|
1171
|
+
])
|
|
1172
|
+
});
|
|
1173
|
+
const marshalRegistrarApiEnableDomainDNSSECRequest = (request, defaults) => ({
|
|
1174
|
+
ds_record: request.dsRecord !== void 0 ? marshalDSRecord(request.dsRecord) : void 0
|
|
1175
|
+
});
|
|
1176
|
+
const marshalRegistrarApiRegisterExternalDomainRequest = (request, defaults) => ({
|
|
1177
|
+
domain: request.domain,
|
|
1178
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1179
|
+
});
|
|
1180
|
+
const marshalRegistrarApiRenewDomainsRequest = (request, defaults) => ({
|
|
1181
|
+
domains: request.domains,
|
|
1182
|
+
duration_in_years: request.durationInYears,
|
|
1183
|
+
force_late_renewal: request.forceLateRenewal
|
|
1184
|
+
});
|
|
1185
|
+
const marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
1186
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1187
|
+
...marshalling.resolveOneOf([
|
|
1188
|
+
{ param: "new_owner_contact_id", value: request.newOwnerContactId },
|
|
1189
|
+
{
|
|
1190
|
+
param: "new_owner_contact",
|
|
1191
|
+
value: request.newOwnerContact !== void 0 ? marshalNewContact(request.newOwnerContact) : void 0
|
|
1192
|
+
}
|
|
1193
|
+
])
|
|
1194
|
+
});
|
|
1195
|
+
const marshalTransferInDomainRequestTransferRequest = (request, defaults) => ({
|
|
1196
|
+
auth_code: request.authCode,
|
|
1197
|
+
domain: request.domain
|
|
1198
|
+
});
|
|
1199
|
+
const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
1200
|
+
domains: request.domains.map(
|
|
1201
|
+
(elt) => marshalTransferInDomainRequestTransferRequest(elt)
|
|
1202
|
+
),
|
|
1203
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1204
|
+
...marshalling.resolveOneOf([
|
|
1205
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1206
|
+
{
|
|
1207
|
+
param: "owner_contact",
|
|
1208
|
+
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1209
|
+
}
|
|
1210
|
+
]),
|
|
1211
|
+
...marshalling.resolveOneOf([
|
|
1212
|
+
{
|
|
1213
|
+
param: "administrative_contact_id",
|
|
1214
|
+
value: request.administrativeContactId
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
param: "administrative_contact",
|
|
1218
|
+
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1219
|
+
}
|
|
1220
|
+
]),
|
|
1221
|
+
...marshalling.resolveOneOf([
|
|
1222
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1223
|
+
{
|
|
1224
|
+
param: "technical_contact",
|
|
1225
|
+
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1226
|
+
}
|
|
1227
|
+
])
|
|
1228
|
+
});
|
|
1229
|
+
const marshalUpdateContactRequestQuestion = (request, defaults) => ({
|
|
1230
|
+
answer: request.answer,
|
|
1231
|
+
question: request.question
|
|
1232
|
+
});
|
|
1233
|
+
const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
1234
|
+
address_line_1: request.addressLine1,
|
|
1235
|
+
address_line_2: request.addressLine2,
|
|
1236
|
+
city: request.city,
|
|
1237
|
+
company_identification_code: request.companyIdentificationCode,
|
|
1238
|
+
country: request.country,
|
|
1239
|
+
email: request.email,
|
|
1240
|
+
email_alt: request.emailAlt,
|
|
1241
|
+
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1242
|
+
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1243
|
+
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1244
|
+
fax_number: request.faxNumber,
|
|
1245
|
+
lang: request.lang,
|
|
1246
|
+
phone_number: request.phoneNumber,
|
|
1247
|
+
questions: request.questions !== void 0 ? request.questions.map(
|
|
1248
|
+
(elt) => marshalUpdateContactRequestQuestion(elt)
|
|
1249
|
+
) : void 0,
|
|
1250
|
+
resale: request.resale,
|
|
1251
|
+
state: request.state,
|
|
1252
|
+
vat_identification_code: request.vatIdentificationCode,
|
|
1253
|
+
whois_opt_in: request.whoisOptIn,
|
|
1254
|
+
zip: request.zip
|
|
1255
|
+
});
|
|
1256
|
+
const marshalRegistrarApiUpdateDomainHostRequest = (request, defaults) => ({
|
|
1257
|
+
ips: request.ips
|
|
1258
|
+
});
|
|
1259
|
+
const marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
1260
|
+
...marshalling.resolveOneOf([
|
|
1261
|
+
{ param: "technical_contact_id", value: request.technicalContactId },
|
|
1262
|
+
{
|
|
1263
|
+
param: "technical_contact",
|
|
1264
|
+
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1265
|
+
}
|
|
1266
|
+
]),
|
|
1267
|
+
...marshalling.resolveOneOf([
|
|
1268
|
+
{ param: "owner_contact_id", value: request.ownerContactId },
|
|
1269
|
+
{
|
|
1270
|
+
param: "owner_contact",
|
|
1271
|
+
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
1272
|
+
}
|
|
1273
|
+
]),
|
|
1274
|
+
...marshalling.resolveOneOf([
|
|
1275
|
+
{
|
|
1276
|
+
param: "administrative_contact_id",
|
|
1277
|
+
value: request.administrativeContactId
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
param: "administrative_contact",
|
|
1281
|
+
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact) : void 0
|
|
1282
|
+
}
|
|
1283
|
+
])
|
|
1284
|
+
});
|
|
1285
|
+
const marshalNameserver = (request, defaults) => ({
|
|
1286
|
+
ip: request.ip,
|
|
1287
|
+
name: request.name
|
|
1288
|
+
});
|
|
1289
|
+
const marshalUpdateDNSZoneNameserversRequest = (request, defaults) => ({
|
|
1290
|
+
ns: request.ns.map((elt) => marshalNameserver(elt))
|
|
1291
|
+
});
|
|
1292
|
+
const marshalDomainRecordGeoIPConfigMatch = (request, defaults) => ({
|
|
1293
|
+
continents: request.continents,
|
|
1294
|
+
countries: request.countries,
|
|
1295
|
+
data: request.data
|
|
1296
|
+
});
|
|
1297
|
+
const marshalDomainRecordViewConfigView = (request, defaults) => ({
|
|
1298
|
+
data: request.data,
|
|
1299
|
+
subnet: request.subnet
|
|
1300
|
+
});
|
|
1301
|
+
const marshalDomainRecordWeightedConfigWeightedIP = (request, defaults) => ({
|
|
1302
|
+
ip: request.ip,
|
|
1303
|
+
weight: request.weight
|
|
1304
|
+
});
|
|
1305
|
+
const marshalDomainRecordGeoIPConfig = (request, defaults) => ({
|
|
1306
|
+
default: request.default,
|
|
1307
|
+
matches: request.matches.map(
|
|
1308
|
+
(elt) => marshalDomainRecordGeoIPConfigMatch(elt)
|
|
1309
|
+
)
|
|
1310
|
+
});
|
|
1311
|
+
const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
1312
|
+
ips: request.ips,
|
|
1313
|
+
must_contain: request.mustContain,
|
|
1314
|
+
strategy: request.strategy,
|
|
1315
|
+
url: request.url,
|
|
1316
|
+
user_agent: request.userAgent
|
|
1317
|
+
});
|
|
1318
|
+
const marshalDomainRecordViewConfig = (request, defaults) => ({
|
|
1319
|
+
views: request.views.map(
|
|
1320
|
+
(elt) => marshalDomainRecordViewConfigView(elt)
|
|
1321
|
+
)
|
|
1322
|
+
});
|
|
1323
|
+
const marshalDomainRecordWeightedConfig = (request, defaults) => ({
|
|
1324
|
+
weighted_ips: request.weightedIps.map(
|
|
1325
|
+
(elt) => marshalDomainRecordWeightedConfigWeightedIP(elt)
|
|
1326
|
+
)
|
|
1327
|
+
});
|
|
1328
|
+
const marshalDomainRecord = (request, defaults) => ({
|
|
1329
|
+
comment: request.comment,
|
|
1330
|
+
data: request.data,
|
|
1331
|
+
id: request.id,
|
|
1332
|
+
name: request.name,
|
|
1333
|
+
priority: request.priority,
|
|
1334
|
+
ttl: request.ttl,
|
|
1335
|
+
type: request.type,
|
|
1336
|
+
...marshalling.resolveOneOf([
|
|
1337
|
+
{
|
|
1338
|
+
param: "geo_ip_config",
|
|
1339
|
+
value: request.geoIpConfig !== void 0 ? marshalDomainRecordGeoIPConfig(request.geoIpConfig) : void 0
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
param: "http_service_config",
|
|
1343
|
+
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(
|
|
1344
|
+
request.httpServiceConfig
|
|
1345
|
+
) : void 0
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
param: "weighted_config",
|
|
1349
|
+
value: request.weightedConfig !== void 0 ? marshalDomainRecordWeightedConfig(request.weightedConfig) : void 0
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
param: "view_config",
|
|
1353
|
+
value: request.viewConfig !== void 0 ? marshalDomainRecordViewConfig(request.viewConfig) : void 0
|
|
1354
|
+
}
|
|
1355
|
+
])
|
|
1356
|
+
});
|
|
1357
|
+
const marshalRecordIdentifier = (request, defaults) => ({
|
|
1358
|
+
data: request.data,
|
|
1359
|
+
name: request.name,
|
|
1360
|
+
ttl: request.ttl,
|
|
1361
|
+
type: request.type
|
|
1362
|
+
});
|
|
1363
|
+
const marshalRecordChangeAdd = (request, defaults) => ({
|
|
1364
|
+
records: request.records.map((elt) => marshalDomainRecord(elt))
|
|
1365
|
+
});
|
|
1366
|
+
const marshalRecordChangeClear = (request, defaults) => ({});
|
|
1367
|
+
const marshalRecordChangeDelete = (request, defaults) => ({
|
|
1368
|
+
...marshalling.resolveOneOf([
|
|
1369
|
+
{ param: "id", value: request.id },
|
|
1370
|
+
{
|
|
1371
|
+
param: "id_fields",
|
|
1372
|
+
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
1373
|
+
}
|
|
1374
|
+
])
|
|
1375
|
+
});
|
|
1376
|
+
const marshalRecordChangeSet = (request, defaults) => ({
|
|
1377
|
+
records: request.records.map((elt) => marshalDomainRecord(elt)),
|
|
1378
|
+
...marshalling.resolveOneOf([
|
|
1379
|
+
{ param: "id", value: request.id },
|
|
1380
|
+
{
|
|
1381
|
+
param: "id_fields",
|
|
1382
|
+
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
1383
|
+
}
|
|
1384
|
+
])
|
|
1385
|
+
});
|
|
1386
|
+
const marshalRecordChange = (request, defaults) => ({
|
|
1387
|
+
...marshalling.resolveOneOf([
|
|
1388
|
+
{
|
|
1389
|
+
param: "add",
|
|
1390
|
+
value: request.add !== void 0 ? marshalRecordChangeAdd(request.add) : void 0
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
param: "set",
|
|
1394
|
+
value: request.set !== void 0 ? marshalRecordChangeSet(request.set) : void 0
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
param: "delete",
|
|
1398
|
+
value: request.delete !== void 0 ? marshalRecordChangeDelete(request.delete) : void 0
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
param: "clear",
|
|
1402
|
+
value: request.clear !== void 0 ? marshalRecordChangeClear(request.clear) : void 0
|
|
1403
|
+
}
|
|
1404
|
+
])
|
|
1405
|
+
});
|
|
1406
|
+
const marshalUpdateDNSZoneRecordsRequest = (request, defaults) => ({
|
|
1407
|
+
changes: request.changes.map((elt) => marshalRecordChange(elt)),
|
|
1408
|
+
disallow_new_zone_creation: request.disallowNewZoneCreation,
|
|
1409
|
+
return_all_records: request.returnAllRecords,
|
|
1410
|
+
serial: request.serial
|
|
1411
|
+
});
|
|
1412
|
+
const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
1413
|
+
new_dns_zone: request.newDnsZone,
|
|
1414
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1415
|
+
});
|
|
1416
|
+
exports.marshalCloneDNSZoneRequest = marshalCloneDNSZoneRequest;
|
|
1417
|
+
exports.marshalCreateDNSZoneRequest = marshalCreateDNSZoneRequest;
|
|
1418
|
+
exports.marshalCreateSSLCertificateRequest = marshalCreateSSLCertificateRequest;
|
|
1419
|
+
exports.marshalDSRecord = marshalDSRecord;
|
|
1420
|
+
exports.marshalImportProviderDNSZoneRequest = marshalImportProviderDNSZoneRequest;
|
|
1421
|
+
exports.marshalImportRawDNSZoneRequest = marshalImportRawDNSZoneRequest;
|
|
1422
|
+
exports.marshalRefreshDNSZoneRequest = marshalRefreshDNSZoneRequest;
|
|
1423
|
+
exports.marshalRegistrarApiBuyDomainsRequest = marshalRegistrarApiBuyDomainsRequest;
|
|
1424
|
+
exports.marshalRegistrarApiCheckContactsCompatibilityRequest = marshalRegistrarApiCheckContactsCompatibilityRequest;
|
|
1425
|
+
exports.marshalRegistrarApiCreateDomainHostRequest = marshalRegistrarApiCreateDomainHostRequest;
|
|
1426
|
+
exports.marshalRegistrarApiEnableDomainDNSSECRequest = marshalRegistrarApiEnableDomainDNSSECRequest;
|
|
1427
|
+
exports.marshalRegistrarApiRegisterExternalDomainRequest = marshalRegistrarApiRegisterExternalDomainRequest;
|
|
1428
|
+
exports.marshalRegistrarApiRenewDomainsRequest = marshalRegistrarApiRenewDomainsRequest;
|
|
1429
|
+
exports.marshalRegistrarApiTradeDomainRequest = marshalRegistrarApiTradeDomainRequest;
|
|
1430
|
+
exports.marshalRegistrarApiTransferInDomainRequest = marshalRegistrarApiTransferInDomainRequest;
|
|
1431
|
+
exports.marshalRegistrarApiUpdateContactRequest = marshalRegistrarApiUpdateContactRequest;
|
|
1432
|
+
exports.marshalRegistrarApiUpdateDomainHostRequest = marshalRegistrarApiUpdateDomainHostRequest;
|
|
1433
|
+
exports.marshalRegistrarApiUpdateDomainRequest = marshalRegistrarApiUpdateDomainRequest;
|
|
1434
|
+
exports.marshalUpdateDNSZoneNameserversRequest = marshalUpdateDNSZoneNameserversRequest;
|
|
1435
|
+
exports.marshalUpdateDNSZoneRecordsRequest = marshalUpdateDNSZoneRecordsRequest;
|
|
1436
|
+
exports.marshalUpdateDNSZoneRequest = marshalUpdateDNSZoneRequest;
|
|
1437
|
+
exports.unmarshalCheckContactsCompatibilityResponse = unmarshalCheckContactsCompatibilityResponse;
|
|
1438
|
+
exports.unmarshalClearDNSZoneRecordsResponse = unmarshalClearDNSZoneRecordsResponse;
|
|
1439
|
+
exports.unmarshalContact = unmarshalContact;
|
|
1440
|
+
exports.unmarshalDNSZone = unmarshalDNSZone;
|
|
1441
|
+
exports.unmarshalDSRecord = unmarshalDSRecord;
|
|
1442
|
+
exports.unmarshalDeleteDNSZoneResponse = unmarshalDeleteDNSZoneResponse;
|
|
1443
|
+
exports.unmarshalDeleteExternalDomainResponse = unmarshalDeleteExternalDomainResponse;
|
|
1444
|
+
exports.unmarshalDeleteSSLCertificateResponse = unmarshalDeleteSSLCertificateResponse;
|
|
1445
|
+
exports.unmarshalDomain = unmarshalDomain;
|
|
1446
|
+
exports.unmarshalGetDNSZoneTsigKeyResponse = unmarshalGetDNSZoneTsigKeyResponse;
|
|
1447
|
+
exports.unmarshalGetDNSZoneVersionDiffResponse = unmarshalGetDNSZoneVersionDiffResponse;
|
|
1448
|
+
exports.unmarshalGetDomainAuthCodeResponse = unmarshalGetDomainAuthCodeResponse;
|
|
1449
|
+
exports.unmarshalHost = unmarshalHost;
|
|
1450
|
+
exports.unmarshalImportProviderDNSZoneResponse = unmarshalImportProviderDNSZoneResponse;
|
|
1451
|
+
exports.unmarshalImportRawDNSZoneResponse = unmarshalImportRawDNSZoneResponse;
|
|
1452
|
+
exports.unmarshalListContactsResponse = unmarshalListContactsResponse;
|
|
1453
|
+
exports.unmarshalListDNSZoneNameserversResponse = unmarshalListDNSZoneNameserversResponse;
|
|
1454
|
+
exports.unmarshalListDNSZoneRecordsResponse = unmarshalListDNSZoneRecordsResponse;
|
|
1455
|
+
exports.unmarshalListDNSZoneVersionRecordsResponse = unmarshalListDNSZoneVersionRecordsResponse;
|
|
1456
|
+
exports.unmarshalListDNSZoneVersionsResponse = unmarshalListDNSZoneVersionsResponse;
|
|
1457
|
+
exports.unmarshalListDNSZonesResponse = unmarshalListDNSZonesResponse;
|
|
1458
|
+
exports.unmarshalListDomainHostsResponse = unmarshalListDomainHostsResponse;
|
|
1459
|
+
exports.unmarshalListDomainsResponse = unmarshalListDomainsResponse;
|
|
1460
|
+
exports.unmarshalListRenewableDomainsResponse = unmarshalListRenewableDomainsResponse;
|
|
1461
|
+
exports.unmarshalListSSLCertificatesResponse = unmarshalListSSLCertificatesResponse;
|
|
1462
|
+
exports.unmarshalListTasksResponse = unmarshalListTasksResponse;
|
|
1463
|
+
exports.unmarshalListTldsResponse = unmarshalListTldsResponse;
|
|
1464
|
+
exports.unmarshalOrderResponse = unmarshalOrderResponse;
|
|
1465
|
+
exports.unmarshalRefreshDNSZoneResponse = unmarshalRefreshDNSZoneResponse;
|
|
1466
|
+
exports.unmarshalRegisterExternalDomainResponse = unmarshalRegisterExternalDomainResponse;
|
|
1467
|
+
exports.unmarshalRestoreDNSZoneVersionResponse = unmarshalRestoreDNSZoneVersionResponse;
|
|
1468
|
+
exports.unmarshalSSLCertificate = unmarshalSSLCertificate;
|
|
1469
|
+
exports.unmarshalSearchAvailableDomainsResponse = unmarshalSearchAvailableDomainsResponse;
|
|
1470
|
+
exports.unmarshalTask = unmarshalTask;
|
|
1471
|
+
exports.unmarshalUpdateDNSZoneNameserversResponse = unmarshalUpdateDNSZoneNameserversResponse;
|
|
1472
|
+
exports.unmarshalUpdateDNSZoneRecordsResponse = unmarshalUpdateDNSZoneRecordsResponse;
|