@scaleway/sdk 2.46.0 → 2.47.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.
Files changed (174) hide show
  1. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  2. package/dist/api/baremetal/v1/api.gen.js +3 -1
  3. package/dist/api/edge_services/v1alpha1/api.gen.cjs +599 -0
  4. package/dist/api/edge_services/v1alpha1/api.gen.js +599 -0
  5. package/dist/api/edge_services/v1alpha1/content.gen.cjs +8 -0
  6. package/dist/api/edge_services/v1alpha1/content.gen.js +8 -0
  7. package/dist/api/edge_services/v1alpha1/index.gen.cjs +7 -0
  8. package/dist/api/edge_services/v1alpha1/index.gen.js +7 -0
  9. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +434 -0
  10. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +434 -0
  11. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +1 -0
  12. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  13. package/dist/api/iam/v1alpha1/types.gen.d.ts +2 -0
  14. package/dist/api/index.d.ts +65 -35
  15. package/dist/api/inference/v1beta1/api.gen.cjs +306 -0
  16. package/dist/api/inference/v1beta1/api.gen.js +306 -0
  17. package/dist/api/inference/v1beta1/content.gen.cjs +8 -0
  18. package/dist/api/inference/v1beta1/content.gen.js +8 -0
  19. package/dist/api/inference/v1beta1/index.gen.cjs +8 -0
  20. package/dist/api/inference/v1beta1/index.gen.js +8 -0
  21. package/dist/api/inference/v1beta1/marshalling.gen.cjs +273 -0
  22. package/dist/api/inference/v1beta1/marshalling.gen.js +273 -0
  23. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +56 -0
  24. package/dist/api/inference/v1beta1/validation-rules.gen.js +56 -0
  25. package/dist/api/k8s/v1/validation-rules.gen.cjs +65 -0
  26. package/dist/api/k8s/v1/validation-rules.gen.d.ts +62 -0
  27. package/dist/api/k8s/v1/validation-rules.gen.js +66 -1
  28. package/dist/api/mnq/index.gen.cjs +4 -0
  29. package/dist/api/mnq/index.gen.js +4 -0
  30. package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -0
  31. package/dist/api/qaas/v1alpha1/api.gen.js +527 -0
  32. package/dist/api/qaas/v1alpha1/content.gen.cjs +19 -0
  33. package/dist/api/qaas/v1alpha1/content.gen.js +19 -0
  34. package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -0
  35. package/dist/api/qaas/v1alpha1/index.gen.js +10 -0
  36. package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +320 -0
  37. package/dist/api/qaas/v1alpha1/marshalling.gen.js +320 -0
  38. package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
  39. package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
  40. package/dist/api/tem/index.gen.cjs +4 -0
  41. package/dist/api/tem/index.gen.js +4 -0
  42. package/dist/api/tem/v1alpha1/api.gen.cjs +32 -0
  43. package/dist/api/tem/v1alpha1/api.gen.d.ts +17 -1
  44. package/dist/api/tem/v1alpha1/api.gen.js +33 -1
  45. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  46. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +36 -0
  47. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +3 -1
  48. package/dist/api/tem/v1alpha1/marshalling.gen.js +36 -0
  49. package/dist/api/tem/v1alpha1/types.gen.d.ts +51 -0
  50. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
  51. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
  52. package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
  53. package/dist/api/webhosting/index.gen.cjs +6 -0
  54. package/dist/api/webhosting/index.gen.js +6 -0
  55. package/dist/api/webhosting/v1/api.gen.cjs +620 -0
  56. package/dist/api/webhosting/v1/api.gen.js +620 -0
  57. package/dist/api/webhosting/v1/content.gen.cjs +14 -0
  58. package/dist/api/webhosting/v1/content.gen.js +14 -0
  59. package/dist/api/webhosting/v1/index.gen.cjs +15 -0
  60. package/dist/api/webhosting/v1/index.gen.js +15 -0
  61. package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
  62. package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
  63. package/dist/api/webhosting/v1/types.gen.d.ts +5 -0
  64. package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -0
  65. package/dist/api/webhosting/v1/validation-rules.gen.js +82 -0
  66. package/dist/index.cjs +92 -70
  67. package/dist/index.js +92 -70
  68. package/dist/scw/constants.cjs +1 -1
  69. package/dist/scw/constants.d.ts +2 -2
  70. package/dist/scw/constants.js +1 -1
  71. package/package.json +2 -2
  72. package/dist/api/account/index.d.ts +0 -2
  73. package/dist/api/applesilicon/index.d.ts +0 -1
  74. package/dist/api/baremetal/index.d.ts +0 -1
  75. package/dist/api/billing/index.d.ts +0 -2
  76. package/dist/api/block/index.d.ts +0 -1
  77. package/dist/api/cockpit/index.d.ts +0 -2
  78. package/dist/api/container/index.d.ts +0 -1
  79. package/dist/api/dedibox/index.d.ts +0 -1
  80. package/dist/api/document_db/index.d.ts +0 -1
  81. package/dist/api/domain/index.d.ts +0 -1
  82. package/dist/api/edge_services/index.d.ts +0 -1
  83. package/dist/api/flexibleip/index.d.ts +0 -1
  84. package/dist/api/function/index.d.ts +0 -1
  85. package/dist/api/iam/index.d.ts +0 -1
  86. package/dist/api/instance/index.d.ts +0 -1
  87. package/dist/api/iot/index.d.ts +0 -1
  88. package/dist/api/ipam/index.d.ts +0 -1
  89. package/dist/api/ipfs/index.d.ts +0 -1
  90. package/dist/api/jobs/index.d.ts +0 -1
  91. package/dist/api/k8s/index.d.ts +0 -1
  92. package/dist/api/key_manager/index.d.ts +0 -1
  93. package/dist/api/lb/index.d.ts +0 -1
  94. package/dist/api/llm_inference/index.d.ts +0 -1
  95. package/dist/api/marketplace/index.d.ts +0 -1
  96. package/dist/api/mnq/index.d.ts +0 -1
  97. package/dist/api/rdb/index.d.ts +0 -1
  98. package/dist/api/redis/index.d.ts +0 -1
  99. package/dist/api/registry/index.d.ts +0 -1
  100. package/dist/api/secret/index.d.ts +0 -2
  101. package/dist/api/serverless_sqldb/index.d.ts +0 -1
  102. package/dist/api/tem/index.d.ts +0 -1
  103. package/dist/api/test/index.d.ts +0 -1
  104. package/dist/api/vpc/index.d.ts +0 -2
  105. package/dist/api/vpcgw/index.d.ts +0 -1
  106. package/dist/api/webhosting/index.d.ts +0 -1
  107. /package/dist/api/account/{index.cjs → index.gen.cjs} +0 -0
  108. /package/dist/api/account/{index.js → index.gen.js} +0 -0
  109. /package/dist/api/applesilicon/{index.cjs → index.gen.cjs} +0 -0
  110. /package/dist/api/applesilicon/{index.js → index.gen.js} +0 -0
  111. /package/dist/api/baremetal/{index.cjs → index.gen.cjs} +0 -0
  112. /package/dist/api/baremetal/{index.js → index.gen.js} +0 -0
  113. /package/dist/api/billing/{index.cjs → index.gen.cjs} +0 -0
  114. /package/dist/api/billing/{index.js → index.gen.js} +0 -0
  115. /package/dist/api/block/{index.cjs → index.gen.cjs} +0 -0
  116. /package/dist/api/block/{index.js → index.gen.js} +0 -0
  117. /package/dist/api/cockpit/{index.cjs → index.gen.cjs} +0 -0
  118. /package/dist/api/cockpit/{index.js → index.gen.js} +0 -0
  119. /package/dist/api/container/{index.cjs → index.gen.cjs} +0 -0
  120. /package/dist/api/container/{index.js → index.gen.js} +0 -0
  121. /package/dist/api/dedibox/{index.cjs → index.gen.cjs} +0 -0
  122. /package/dist/api/dedibox/{index.js → index.gen.js} +0 -0
  123. /package/dist/api/document_db/{index.cjs → index.gen.cjs} +0 -0
  124. /package/dist/api/document_db/{index.js → index.gen.js} +0 -0
  125. /package/dist/api/domain/{index.cjs → index.gen.cjs} +0 -0
  126. /package/dist/api/domain/{index.js → index.gen.js} +0 -0
  127. /package/dist/api/{flexibleip/index.cjs → edge_services/index.gen.cjs} +0 -0
  128. /package/dist/api/{flexibleip/index.js → edge_services/index.gen.js} +0 -0
  129. /package/dist/api/{iam/index.cjs → flexibleip/index.gen.cjs} +0 -0
  130. /package/dist/api/{iam/index.js → flexibleip/index.gen.js} +0 -0
  131. /package/dist/api/function/{index.cjs → index.gen.cjs} +0 -0
  132. /package/dist/api/function/{index.js → index.gen.js} +0 -0
  133. /package/dist/api/{ipfs/index.cjs → iam/index.gen.cjs} +0 -0
  134. /package/dist/api/{ipfs/index.js → iam/index.gen.js} +0 -0
  135. /package/dist/api/{llm_inference/index.cjs → inference/index.gen.cjs} +0 -0
  136. /package/dist/api/{llm_inference/index.js → inference/index.gen.js} +0 -0
  137. /package/dist/api/instance/{index.cjs → index.gen.cjs} +0 -0
  138. /package/dist/api/instance/{index.js → index.gen.js} +0 -0
  139. /package/dist/api/iot/{index.cjs → index.gen.cjs} +0 -0
  140. /package/dist/api/iot/{index.js → index.gen.js} +0 -0
  141. /package/dist/api/ipam/{index.cjs → index.gen.cjs} +0 -0
  142. /package/dist/api/ipam/{index.js → index.gen.js} +0 -0
  143. /package/dist/api/{jobs/index.cjs → ipfs/index.gen.cjs} +0 -0
  144. /package/dist/api/{jobs/index.js → ipfs/index.gen.js} +0 -0
  145. /package/dist/api/{key_manager/index.cjs → jobs/index.gen.cjs} +0 -0
  146. /package/dist/api/{key_manager/index.js → jobs/index.gen.js} +0 -0
  147. /package/dist/api/k8s/{index.cjs → index.gen.cjs} +0 -0
  148. /package/dist/api/k8s/{index.js → index.gen.js} +0 -0
  149. /package/dist/api/{serverless_sqldb/index.cjs → key_manager/index.gen.cjs} +0 -0
  150. /package/dist/api/{serverless_sqldb/index.js → key_manager/index.gen.js} +0 -0
  151. /package/dist/api/lb/{index.cjs → index.gen.cjs} +0 -0
  152. /package/dist/api/lb/{index.js → index.gen.js} +0 -0
  153. /package/dist/api/{mnq/index.cjs → llm_inference/index.gen.cjs} +0 -0
  154. /package/dist/api/{mnq/index.js → llm_inference/index.gen.js} +0 -0
  155. /package/dist/api/marketplace/{index.cjs → index.gen.cjs} +0 -0
  156. /package/dist/api/marketplace/{index.js → index.gen.js} +0 -0
  157. /package/dist/api/{tem/index.cjs → qaas/index.gen.cjs} +0 -0
  158. /package/dist/api/{tem/index.js → qaas/index.gen.js} +0 -0
  159. /package/dist/api/rdb/{index.cjs → index.gen.cjs} +0 -0
  160. /package/dist/api/rdb/{index.js → index.gen.js} +0 -0
  161. /package/dist/api/redis/{index.cjs → index.gen.cjs} +0 -0
  162. /package/dist/api/redis/{index.js → index.gen.js} +0 -0
  163. /package/dist/api/registry/{index.cjs → index.gen.cjs} +0 -0
  164. /package/dist/api/registry/{index.js → index.gen.js} +0 -0
  165. /package/dist/api/secret/{index.cjs → index.gen.cjs} +0 -0
  166. /package/dist/api/secret/{index.js → index.gen.js} +0 -0
  167. /package/dist/api/{webhosting/index.cjs → serverless_sqldb/index.gen.cjs} +0 -0
  168. /package/dist/api/{webhosting/index.js → serverless_sqldb/index.gen.js} +0 -0
  169. /package/dist/api/test/{index.cjs → index.gen.cjs} +0 -0
  170. /package/dist/api/test/{index.js → index.gen.js} +0 -0
  171. /package/dist/api/vpc/{index.cjs → index.gen.cjs} +0 -0
  172. /package/dist/api/vpc/{index.js → index.gen.js} +0 -0
  173. /package/dist/api/vpcgw/{index.cjs → index.gen.cjs} +0 -0
  174. /package/dist/api/vpcgw/{index.js → index.gen.js} +0 -0
@@ -0,0 +1,434 @@
1
+ import { isJSONObject } from "../../../helpers/json.js";
2
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
3
+ import "../../../vendor/base64/index.js";
4
+ const unmarshalScalewayLb = (data) => {
5
+ if (!isJSONObject(data)) {
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`
8
+ );
9
+ }
10
+ return {
11
+ domainName: data.domain_name,
12
+ frontendId: data.frontend_id,
13
+ id: data.id,
14
+ isSsl: data.is_ssl,
15
+ zone: data.zone
16
+ };
17
+ };
18
+ const unmarshalScalewayLbBackendConfig = (data) => {
19
+ if (!isJSONObject(data)) {
20
+ throw new TypeError(
21
+ `Unmarshalling the type 'ScalewayLbBackendConfig' failed as data isn't a dictionary.`
22
+ );
23
+ }
24
+ return {
25
+ lbs: unmarshalArrayOfObject(data.lbs, unmarshalScalewayLb)
26
+ };
27
+ };
28
+ const unmarshalScalewayS3BackendConfig = (data) => {
29
+ if (!isJSONObject(data)) {
30
+ throw new TypeError(
31
+ `Unmarshalling the type 'ScalewayS3BackendConfig' failed as data isn't a dictionary.`
32
+ );
33
+ }
34
+ return {
35
+ bucketName: data.bucket_name,
36
+ bucketRegion: data.bucket_region,
37
+ isWebsite: data.is_website
38
+ };
39
+ };
40
+ const unmarshalBackendStage = (data) => {
41
+ if (!isJSONObject(data)) {
42
+ throw new TypeError(
43
+ `Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`
44
+ );
45
+ }
46
+ return {
47
+ createdAt: unmarshalDate(data.created_at),
48
+ id: data.id,
49
+ pipelineId: data.pipeline_id,
50
+ projectId: data.project_id,
51
+ scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : void 0,
52
+ scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
53
+ updatedAt: unmarshalDate(data.updated_at)
54
+ };
55
+ };
56
+ const unmarshalCacheStage = (data) => {
57
+ if (!isJSONObject(data)) {
58
+ throw new TypeError(
59
+ `Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`
60
+ );
61
+ }
62
+ return {
63
+ backendStageId: data.backend_stage_id,
64
+ createdAt: unmarshalDate(data.created_at),
65
+ fallbackTtl: data.fallback_ttl,
66
+ id: data.id,
67
+ pipelineId: data.pipeline_id,
68
+ projectId: data.project_id,
69
+ updatedAt: unmarshalDate(data.updated_at)
70
+ };
71
+ };
72
+ const unmarshalDNSStage = (data) => {
73
+ if (!isJSONObject(data)) {
74
+ throw new TypeError(
75
+ `Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`
76
+ );
77
+ }
78
+ return {
79
+ backendStageId: data.backend_stage_id,
80
+ cacheStageId: data.cache_stage_id,
81
+ createdAt: unmarshalDate(data.created_at),
82
+ fqdns: data.fqdns,
83
+ id: data.id,
84
+ pipelineId: data.pipeline_id,
85
+ projectId: data.project_id,
86
+ tlsStageId: data.tls_stage_id,
87
+ type: data.type,
88
+ updatedAt: unmarshalDate(data.updated_at)
89
+ };
90
+ };
91
+ const unmarshalPipelineError = (data) => {
92
+ if (!isJSONObject(data)) {
93
+ throw new TypeError(
94
+ `Unmarshalling the type 'PipelineError' failed as data isn't a dictionary.`
95
+ );
96
+ }
97
+ return {
98
+ code: data.code,
99
+ message: data.message,
100
+ severity: data.severity,
101
+ stage: data.stage,
102
+ type: data.type
103
+ };
104
+ };
105
+ const unmarshalPipeline = (data) => {
106
+ if (!isJSONObject(data)) {
107
+ throw new TypeError(
108
+ `Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`
109
+ );
110
+ }
111
+ return {
112
+ createdAt: unmarshalDate(data.created_at),
113
+ description: data.description,
114
+ dnsStageId: data.dns_stage_id,
115
+ errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
116
+ id: data.id,
117
+ name: data.name,
118
+ projectId: data.project_id,
119
+ status: data.status,
120
+ updatedAt: unmarshalDate(data.updated_at)
121
+ };
122
+ };
123
+ const unmarshalPurgeRequest = (data) => {
124
+ if (!isJSONObject(data)) {
125
+ throw new TypeError(
126
+ `Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`
127
+ );
128
+ }
129
+ return {
130
+ all: data.all,
131
+ assets: data.assets,
132
+ createdAt: unmarshalDate(data.created_at),
133
+ id: data.id,
134
+ pipelineId: data.pipeline_id,
135
+ status: data.status,
136
+ updatedAt: unmarshalDate(data.updated_at)
137
+ };
138
+ };
139
+ const unmarshalTLSSecret = (data) => {
140
+ if (!isJSONObject(data)) {
141
+ throw new TypeError(
142
+ `Unmarshalling the type 'TLSSecret' failed as data isn't a dictionary.`
143
+ );
144
+ }
145
+ return {
146
+ region: data.region,
147
+ secretId: data.secret_id
148
+ };
149
+ };
150
+ const unmarshalTLSStage = (data) => {
151
+ if (!isJSONObject(data)) {
152
+ throw new TypeError(
153
+ `Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`
154
+ );
155
+ }
156
+ return {
157
+ backendStageId: data.backend_stage_id,
158
+ cacheStageId: data.cache_stage_id,
159
+ certificateExpiresAt: unmarshalDate(data.certificate_expires_at),
160
+ createdAt: unmarshalDate(data.created_at),
161
+ id: data.id,
162
+ managedCertificate: data.managed_certificate,
163
+ pipelineId: data.pipeline_id,
164
+ projectId: data.project_id,
165
+ secrets: unmarshalArrayOfObject(data.secrets, unmarshalTLSSecret),
166
+ updatedAt: unmarshalDate(data.updated_at)
167
+ };
168
+ };
169
+ const unmarshalCheckDomainResponse = (data) => {
170
+ if (!isJSONObject(data)) {
171
+ throw new TypeError(
172
+ `Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`
173
+ );
174
+ }
175
+ return {
176
+ isValid: data.is_valid
177
+ };
178
+ };
179
+ const unmarshalCheckLbOriginResponse = (data) => {
180
+ if (!isJSONObject(data)) {
181
+ throw new TypeError(
182
+ `Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`
183
+ );
184
+ }
185
+ return {
186
+ errorType: data.error_type,
187
+ isValid: data.is_valid
188
+ };
189
+ };
190
+ const unmarshalCheckPEMChainResponse = (data) => {
191
+ if (!isJSONObject(data)) {
192
+ throw new TypeError(
193
+ `Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`
194
+ );
195
+ }
196
+ return {
197
+ isValid: data.is_valid
198
+ };
199
+ };
200
+ const unmarshalListBackendStagesResponse = (data) => {
201
+ if (!isJSONObject(data)) {
202
+ throw new TypeError(
203
+ `Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`
204
+ );
205
+ }
206
+ return {
207
+ stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
208
+ totalCount: data.total_count
209
+ };
210
+ };
211
+ const unmarshalListCacheStagesResponse = (data) => {
212
+ if (!isJSONObject(data)) {
213
+ throw new TypeError(
214
+ `Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`
215
+ );
216
+ }
217
+ return {
218
+ stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
219
+ totalCount: data.total_count
220
+ };
221
+ };
222
+ const unmarshalListDNSStagesResponse = (data) => {
223
+ if (!isJSONObject(data)) {
224
+ throw new TypeError(
225
+ `Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`
226
+ );
227
+ }
228
+ return {
229
+ stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
230
+ totalCount: data.total_count
231
+ };
232
+ };
233
+ const unmarshalListPipelinesResponse = (data) => {
234
+ if (!isJSONObject(data)) {
235
+ throw new TypeError(
236
+ `Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`
237
+ );
238
+ }
239
+ return {
240
+ pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
241
+ totalCount: data.total_count
242
+ };
243
+ };
244
+ const unmarshalListPurgeRequestsResponse = (data) => {
245
+ if (!isJSONObject(data)) {
246
+ throw new TypeError(
247
+ `Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`
248
+ );
249
+ }
250
+ return {
251
+ purgeRequests: unmarshalArrayOfObject(
252
+ data.purge_requests,
253
+ unmarshalPurgeRequest
254
+ ),
255
+ totalCount: data.total_count
256
+ };
257
+ };
258
+ const unmarshalListTLSStagesResponse = (data) => {
259
+ if (!isJSONObject(data)) {
260
+ throw new TypeError(
261
+ `Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`
262
+ );
263
+ }
264
+ return {
265
+ stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
266
+ totalCount: data.total_count
267
+ };
268
+ };
269
+ const marshalCheckDomainRequest = (request, defaults) => ({
270
+ cname: request.cname,
271
+ fqdn: request.fqdn,
272
+ project_id: request.projectId ?? defaults.defaultProjectId
273
+ });
274
+ const marshalScalewayLb = (request, defaults) => ({
275
+ domain_name: request.domainName,
276
+ frontend_id: request.frontendId,
277
+ id: request.id,
278
+ is_ssl: request.isSsl,
279
+ zone: request.zone
280
+ });
281
+ const marshalCheckLbOriginRequest = (request, defaults) => ({
282
+ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb) : void 0
283
+ });
284
+ const marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
285
+ secret_id: request.secretId,
286
+ secret_region: request.secretRegion
287
+ });
288
+ const marshalCheckPEMChainRequest = (request, defaults) => ({
289
+ fqdn: request.fqdn,
290
+ project_id: request.projectId ?? defaults.defaultProjectId,
291
+ ...resolveOneOf([
292
+ {
293
+ param: "secret",
294
+ value: request.secret !== void 0 ? marshalCheckPEMChainRequestSecretChain(request.secret) : void 0
295
+ },
296
+ { param: "raw", value: request.raw }
297
+ ])
298
+ });
299
+ const marshalScalewayLbBackendConfig = (request, defaults) => ({
300
+ lbs: request.lbs.map((elt) => marshalScalewayLb(elt))
301
+ });
302
+ const marshalScalewayS3BackendConfig = (request, defaults) => ({
303
+ bucket_name: request.bucketName,
304
+ bucket_region: request.bucketRegion,
305
+ is_website: request.isWebsite
306
+ });
307
+ const marshalCreateBackendStageRequest = (request, defaults) => ({
308
+ project_id: request.projectId ?? defaults.defaultProjectId,
309
+ ...resolveOneOf([
310
+ {
311
+ param: "scaleway_s3",
312
+ value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
313
+ },
314
+ {
315
+ param: "scaleway_lb",
316
+ value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
317
+ }
318
+ ])
319
+ });
320
+ const marshalCreateCacheStageRequest = (request, defaults) => ({
321
+ fallback_ttl: request.fallbackTtl,
322
+ project_id: request.projectId ?? defaults.defaultProjectId,
323
+ ...resolveOneOf([
324
+ { param: "backend_stage_id", value: request.backendStageId }
325
+ ])
326
+ });
327
+ const marshalCreateDNSStageRequest = (request, defaults) => ({
328
+ fqdns: request.fqdns,
329
+ project_id: request.projectId ?? defaults.defaultProjectId,
330
+ ...resolveOneOf([
331
+ { param: "tls_stage_id", value: request.tlsStageId },
332
+ { param: "cache_stage_id", value: request.cacheStageId },
333
+ { param: "backend_stage_id", value: request.backendStageId }
334
+ ])
335
+ });
336
+ const marshalCreatePipelineRequest = (request, defaults) => ({
337
+ description: request.description,
338
+ name: request.name,
339
+ project_id: request.projectId ?? defaults.defaultProjectId,
340
+ ...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
341
+ });
342
+ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
343
+ pipeline_id: request.pipelineId,
344
+ ...resolveOneOf([
345
+ { param: "assets", value: request.assets },
346
+ { param: "all", value: request.all }
347
+ ])
348
+ });
349
+ const marshalTLSSecret = (request, defaults) => ({
350
+ region: request.region,
351
+ secret_id: request.secretId
352
+ });
353
+ const marshalCreateTLSStageRequest = (request, defaults) => ({
354
+ managed_certificate: request.managedCertificate,
355
+ project_id: request.projectId ?? defaults.defaultProjectId,
356
+ secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt)) : void 0,
357
+ ...resolveOneOf([
358
+ { param: "cache_stage_id", value: request.cacheStageId },
359
+ { param: "backend_stage_id", value: request.backendStageId }
360
+ ])
361
+ });
362
+ const marshalUpdateBackendStageRequest = (request, defaults) => ({
363
+ ...resolveOneOf([
364
+ {
365
+ param: "scaleway_s3",
366
+ value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
367
+ },
368
+ {
369
+ param: "scaleway_lb",
370
+ value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
371
+ }
372
+ ])
373
+ });
374
+ const marshalUpdateCacheStageRequest = (request, defaults) => ({
375
+ fallback_ttl: request.fallbackTtl,
376
+ ...resolveOneOf([
377
+ { param: "backend_stage_id", value: request.backendStageId }
378
+ ])
379
+ });
380
+ const marshalUpdateDNSStageRequest = (request, defaults) => ({
381
+ fqdns: request.fqdns,
382
+ ...resolveOneOf([
383
+ { param: "tls_stage_id", value: request.tlsStageId },
384
+ { param: "cache_stage_id", value: request.cacheStageId },
385
+ { param: "backend_stage_id", value: request.backendStageId }
386
+ ])
387
+ });
388
+ const marshalUpdatePipelineRequest = (request, defaults) => ({
389
+ description: request.description,
390
+ name: request.name,
391
+ ...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
392
+ });
393
+ const marshalTLSSecretsConfig = (request, defaults) => ({
394
+ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt))
395
+ });
396
+ const marshalUpdateTLSStageRequest = (request, defaults) => ({
397
+ managed_certificate: request.managedCertificate,
398
+ tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig) : void 0,
399
+ ...resolveOneOf([
400
+ { param: "cache_stage_id", value: request.cacheStageId },
401
+ { param: "backend_stage_id", value: request.backendStageId }
402
+ ])
403
+ });
404
+ export {
405
+ marshalCheckDomainRequest,
406
+ marshalCheckLbOriginRequest,
407
+ marshalCheckPEMChainRequest,
408
+ marshalCreateBackendStageRequest,
409
+ marshalCreateCacheStageRequest,
410
+ marshalCreateDNSStageRequest,
411
+ marshalCreatePipelineRequest,
412
+ marshalCreatePurgeRequestRequest,
413
+ marshalCreateTLSStageRequest,
414
+ marshalUpdateBackendStageRequest,
415
+ marshalUpdateCacheStageRequest,
416
+ marshalUpdateDNSStageRequest,
417
+ marshalUpdatePipelineRequest,
418
+ marshalUpdateTLSStageRequest,
419
+ unmarshalBackendStage,
420
+ unmarshalCacheStage,
421
+ unmarshalCheckDomainResponse,
422
+ unmarshalCheckLbOriginResponse,
423
+ unmarshalCheckPEMChainResponse,
424
+ unmarshalDNSStage,
425
+ unmarshalListBackendStagesResponse,
426
+ unmarshalListCacheStagesResponse,
427
+ unmarshalListDNSStagesResponse,
428
+ unmarshalListPipelinesResponse,
429
+ unmarshalListPurgeRequestsResponse,
430
+ unmarshalListTLSStagesResponse,
431
+ unmarshalPipeline,
432
+ unmarshalPurgeRequest,
433
+ unmarshalTLSStage
434
+ };
@@ -165,6 +165,7 @@ const unmarshalUser = (data) => {
165
165
  email: data.email,
166
166
  id: data.id,
167
167
  lastLoginAt: marshalling.unmarshalDate(data.last_login_at),
168
+ locked: data.locked,
168
169
  mfa: data.mfa,
169
170
  organizationId: data.organization_id,
170
171
  status: data.status,
@@ -163,6 +163,7 @@ const unmarshalUser = (data) => {
163
163
  email: data.email,
164
164
  id: data.id,
165
165
  lastLoginAt: unmarshalDate(data.last_login_at),
166
+ locked: data.locked,
166
167
  mfa: data.mfa,
167
168
  organizationId: data.organization_id,
168
169
  status: data.status,
@@ -320,6 +320,8 @@ export interface User {
320
320
  accountRootUserId: string;
321
321
  /** Tags associated with the user. */
322
322
  tags: string[];
323
+ /** Defines whether the user is locked. */
324
+ locked: boolean;
323
325
  }
324
326
  export type AddGroupMemberRequest = {
325
327
  /** ID of the group. */
@@ -1,35 +1,65 @@
1
- export * as Account from './account';
2
- export * as AppleSilicon from './applesilicon';
3
- export * as BareMetal from './baremetal';
4
- export * as Billing from './billing';
5
- export * as Block from './block';
6
- export * as Cockpit from './cockpit';
7
- export * as Container from './container';
8
- export * as Dedibox from './dedibox';
9
- export * as DocumentDB from './document_db';
10
- export * as Domain from './domain';
11
- export * as FlexibleIP from './flexibleip';
12
- export * as Function from './function';
13
- export * as IAM from './iam';
14
- export * as Instance from './instance';
15
- export * as IOT from './iot';
16
- export * as IPAM from './ipam';
17
- export * as IPFS from './ipfs';
18
- export * as Jobs from './jobs';
19
- export * as K8S from './k8s';
20
- export * as KeyManager from './key_manager';
21
- export * as LB from './lb';
22
- export * as LLMInference from './llm_inference';
23
- export * as Marketplace from './marketplace';
24
- export * as MNQ from './mnq';
25
- export * as RDB from './rdb';
26
- export * as Redis from './redis';
27
- export * as Registry from './registry';
28
- export * as Secret from './secret';
29
- export * as ServerlessSQLDB from './serverless_sqldb';
30
- export * as Std from './std/index.gen';
31
- export * as Test from './test';
32
- export * as TransactionalEmail from './tem';
33
- export * as VPC from './vpc';
34
- export * as VPCGW from './vpcgw';
35
- export * as Webhosting from './webhosting';
1
+ export * from './index.gen';
2
+ /**
3
+ * @deprecated use Applesilicon namespace
4
+ */
5
+ export * as AppleSilicon from './applesilicon/index.gen';
6
+ /**
7
+ * @deprecated use Baremetal namespace
8
+ */
9
+ export * as BareMetal from './baremetal/index.gen';
10
+ /**
11
+ * @deprecated use DocumentDb namespace
12
+ */
13
+ export * as DocumentDB from './document_db/index.gen';
14
+ /**
15
+ * @deprecated use Flexibleip namespace
16
+ */
17
+ export * as FlexibleIP from './flexibleip/index.gen';
18
+ /**
19
+ * @deprecated use Iam namespace
20
+ */
21
+ export * as IAM from './iam/index.gen';
22
+ /**
23
+ * @deprecated use Iot namespace
24
+ */
25
+ export * as IOT from './iot/index.gen';
26
+ /**
27
+ * @deprecated use Ipam namespace
28
+ */
29
+ export * as IPAM from './ipam/index.gen';
30
+ /**
31
+ * @deprecated use Ipfs namespace
32
+ */
33
+ export * as IPFS from './ipfs/index.gen';
34
+ /**
35
+ * @deprecated use Lb namespace
36
+ */
37
+ export * as LB from './lb/index.gen';
38
+ /**
39
+ * @deprecated use Llm_Inference namespace
40
+ */
41
+ export * as LLMInference from './llm_inference/index.gen';
42
+ /**
43
+ * @deprecated use Mnq namespace
44
+ */
45
+ export * as MNQ from './mnq/index.gen';
46
+ /**
47
+ * @deprecated use Rdb namespace
48
+ */
49
+ export * as RDB from './rdb/index.gen';
50
+ /**
51
+ * @deprecated use ServerlessSqldb namespace
52
+ */
53
+ export * as ServerlessSQLDB from './serverless_sqldb/index.gen';
54
+ /**
55
+ * @deprecated use Tem namespace
56
+ */
57
+ export * as TransactionalEmail from './tem/index.gen';
58
+ /**
59
+ * @deprecated use Vpc namespace
60
+ */
61
+ export * as VPC from './vpc/index.gen';
62
+ /**
63
+ * @deprecated use Vpcgw namespace
64
+ */
65
+ export * as VPCGW from './vpcgw/index.gen';