@scaleway/sdk-edge-services 2.12.0 → 2.13.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/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +6 -6
- package/dist/metadata.gen.js +6 -2
- package/dist/v1beta1/api.gen.d.ts +2 -2
- package/dist/v1beta1/api.gen.js +293 -567
- package/dist/v1beta1/content.gen.js +2 -2
- package/dist/v1beta1/marshalling.gen.js +81 -81
- package/dist/v1beta1/metadata.gen.js +1 -1
- package/dist/v1beta1/validation-rules.gen.js +3 -3
- package/package.json +8 -6
- package/LICENSE +0 -191
- package/dist/metadata.gen.json +0 -6
- package/dist/metadata2.gen.js +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/v1beta1/content.gen.ts
|
|
2
2
|
/** Lists transient statutes of the enum {@link PipelineStatus}. */
|
|
3
|
-
|
|
3
|
+
const PIPELINE_TRANSIENT_STATUSES = ["pending"];
|
|
4
4
|
/** Lists transient statutes of the enum {@link PurgeRequestStatus}. */
|
|
5
|
-
|
|
5
|
+
const PURGE_REQUEST_TRANSIENT_STATUSES = ["pending"];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v1beta1/marshalling.gen.ts
|
|
3
|
-
|
|
3
|
+
const unmarshalScalewayLb = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`);
|
|
5
5
|
return {
|
|
6
6
|
domainName: data.domain_name,
|
|
@@ -11,11 +11,11 @@ var unmarshalScalewayLb = (data) => {
|
|
|
11
11
|
zone: data.zone
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const unmarshalScalewayLbBackendConfig = (data) => {
|
|
15
15
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayLbBackendConfig' failed as data isn't a dictionary.`);
|
|
16
16
|
return { lbs: unmarshalArrayOfObject(data.lbs, unmarshalScalewayLb) };
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
const unmarshalScalewayS3BackendConfig = (data) => {
|
|
19
19
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayS3BackendConfig' failed as data isn't a dictionary.`);
|
|
20
20
|
return {
|
|
21
21
|
bucketName: data.bucket_name,
|
|
@@ -23,21 +23,21 @@ var unmarshalScalewayS3BackendConfig = (data) => {
|
|
|
23
23
|
isWebsite: data.is_website
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
const unmarshalScalewayServerlessContainerBackendConfig = (data) => {
|
|
27
27
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayServerlessContainerBackendConfig' failed as data isn't a dictionary.`);
|
|
28
28
|
return {
|
|
29
29
|
containerId: data.container_id,
|
|
30
30
|
region: data.region
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
const unmarshalScalewayServerlessFunctionBackendConfig = (data) => {
|
|
34
34
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayServerlessFunctionBackendConfig' failed as data isn't a dictionary.`);
|
|
35
35
|
return {
|
|
36
36
|
functionId: data.function_id,
|
|
37
37
|
region: data.region
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
const unmarshalBackendStage = (data) => {
|
|
41
41
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`);
|
|
42
42
|
return {
|
|
43
43
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -51,7 +51,7 @@ var unmarshalBackendStage = (data) => {
|
|
|
51
51
|
updatedAt: unmarshalDate(data.updated_at)
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
const unmarshalCacheStage = (data) => {
|
|
55
55
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`);
|
|
56
56
|
return {
|
|
57
57
|
backendStageId: data.backend_stage_id,
|
|
@@ -66,7 +66,7 @@ var unmarshalCacheStage = (data) => {
|
|
|
66
66
|
wafStageId: data.waf_stage_id
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
const unmarshalDNSStage = (data) => {
|
|
70
70
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`);
|
|
71
71
|
return {
|
|
72
72
|
backendStageId: data.backend_stage_id,
|
|
@@ -83,7 +83,7 @@ var unmarshalDNSStage = (data) => {
|
|
|
83
83
|
wildcardDomain: data.wildcard_domain
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
const unmarshalPipelineError = (data) => {
|
|
87
87
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PipelineError' failed as data isn't a dictionary.`);
|
|
88
88
|
return {
|
|
89
89
|
code: data.code,
|
|
@@ -93,7 +93,7 @@ var unmarshalPipelineError = (data) => {
|
|
|
93
93
|
type: data.type
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
const unmarshalPipeline = (data) => {
|
|
97
97
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`);
|
|
98
98
|
return {
|
|
99
99
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -107,7 +107,7 @@ var unmarshalPipeline = (data) => {
|
|
|
107
107
|
updatedAt: unmarshalDate(data.updated_at)
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
const unmarshalRouteStage = (data) => {
|
|
111
111
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteStage' failed as data isn't a dictionary.`);
|
|
112
112
|
return {
|
|
113
113
|
backendStageId: data.backend_stage_id,
|
|
@@ -119,14 +119,14 @@ var unmarshalRouteStage = (data) => {
|
|
|
119
119
|
wafStageId: data.waf_stage_id
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
const unmarshalTLSSecret = (data) => {
|
|
123
123
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TLSSecret' failed as data isn't a dictionary.`);
|
|
124
124
|
return {
|
|
125
125
|
region: data.region,
|
|
126
126
|
secretId: data.secret_id
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
|
-
|
|
129
|
+
const unmarshalTLSStage = (data) => {
|
|
130
130
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`);
|
|
131
131
|
return {
|
|
132
132
|
backendStageId: data.backend_stage_id,
|
|
@@ -143,7 +143,7 @@ var unmarshalTLSStage = (data) => {
|
|
|
143
143
|
wafStageId: data.waf_stage_id
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
const unmarshalWafStage = (data) => {
|
|
147
147
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafStage' failed as data isn't a dictionary.`);
|
|
148
148
|
return {
|
|
149
149
|
backendStageId: data.backend_stage_id,
|
|
@@ -156,7 +156,7 @@ var unmarshalWafStage = (data) => {
|
|
|
156
156
|
updatedAt: unmarshalDate(data.updated_at)
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
const unmarshalPipelineStages = (data) => {
|
|
160
160
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PipelineStages' failed as data isn't a dictionary.`);
|
|
161
161
|
return {
|
|
162
162
|
backendStages: unmarshalArrayOfObject(data.backend_stages, unmarshalBackendStage),
|
|
@@ -168,7 +168,7 @@ var unmarshalPipelineStages = (data) => {
|
|
|
168
168
|
wafStages: unmarshalArrayOfObject(data.waf_stages, unmarshalWafStage)
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
|
-
|
|
171
|
+
const unmarshalPurgeRequest = (data) => {
|
|
172
172
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`);
|
|
173
173
|
return {
|
|
174
174
|
all: data.all,
|
|
@@ -180,21 +180,21 @@ var unmarshalPurgeRequest = (data) => {
|
|
|
180
180
|
updatedAt: unmarshalDate(data.updated_at)
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
const unmarshalRuleHttpMatchHostFilter = (data) => {
|
|
184
184
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchHostFilter' failed as data isn't a dictionary.`);
|
|
185
185
|
return {
|
|
186
186
|
hostFilterType: data.host_filter_type,
|
|
187
187
|
value: data.value
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
const unmarshalRuleHttpMatchPathFilter = (data) => {
|
|
191
191
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchPathFilter' failed as data isn't a dictionary.`);
|
|
192
192
|
return {
|
|
193
193
|
pathFilterType: data.path_filter_type,
|
|
194
194
|
value: data.value
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
const unmarshalRuleHttpMatch = (data) => {
|
|
198
198
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatch' failed as data isn't a dictionary.`);
|
|
199
199
|
return {
|
|
200
200
|
hostFilter: data.host_filter ? unmarshalRuleHttpMatchHostFilter(data.host_filter) : void 0,
|
|
@@ -202,7 +202,7 @@ var unmarshalRuleHttpMatch = (data) => {
|
|
|
202
202
|
pathFilter: data.path_filter ? unmarshalRuleHttpMatchPathFilter(data.path_filter) : void 0
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
|
-
|
|
205
|
+
const unmarshalRouteRule = (data) => {
|
|
206
206
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteRule' failed as data isn't a dictionary.`);
|
|
207
207
|
return {
|
|
208
208
|
backendStageId: data.backend_stage_id,
|
|
@@ -212,26 +212,26 @@ var unmarshalRouteRule = (data) => {
|
|
|
212
212
|
wafStageId: data.waf_stage_id
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
const unmarshalAddRouteRulesResponse = (data) => {
|
|
216
216
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
217
217
|
return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
|
|
218
218
|
};
|
|
219
|
-
|
|
219
|
+
const unmarshalCheckDomainResponse = (data) => {
|
|
220
220
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`);
|
|
221
221
|
return { isValid: data.is_valid };
|
|
222
222
|
};
|
|
223
|
-
|
|
223
|
+
const unmarshalCheckLbOriginResponse = (data) => {
|
|
224
224
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`);
|
|
225
225
|
return {
|
|
226
226
|
errorType: data.error_type,
|
|
227
227
|
isValid: data.is_valid
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
|
-
|
|
230
|
+
const unmarshalCheckPEMChainResponse = (data) => {
|
|
231
231
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`);
|
|
232
232
|
return { isValid: data.is_valid };
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
const unmarshalPlanDetails = (data) => {
|
|
235
235
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlanDetails' failed as data isn't a dictionary.`);
|
|
236
236
|
return {
|
|
237
237
|
backendLimit: data.backend_limit,
|
|
@@ -242,11 +242,11 @@ var unmarshalPlanDetails = (data) => {
|
|
|
242
242
|
wildcardDomain: data.wildcard_domain
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
|
-
|
|
245
|
+
const unmarshalPlanUsageDetails = (data) => {
|
|
246
246
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`);
|
|
247
247
|
return { planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0 };
|
|
248
248
|
};
|
|
249
|
-
|
|
249
|
+
const unmarshalGetBillingResponse = (data) => {
|
|
250
250
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetBillingResponse' failed as data isn't a dictionary.`);
|
|
251
251
|
return {
|
|
252
252
|
currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
|
|
@@ -264,124 +264,124 @@ var unmarshalGetBillingResponse = (data) => {
|
|
|
264
264
|
wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : void 0
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
|
-
|
|
267
|
+
const unmarshalHeadStageResponseHeadStage = (data) => {
|
|
268
268
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponseHeadStage' failed as data isn't a dictionary.`);
|
|
269
269
|
return { dnsStageId: data.dns_stage_id };
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
const unmarshalHeadStageResponse = (data) => {
|
|
272
272
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponse' failed as data isn't a dictionary.`);
|
|
273
273
|
return { headStage: data.head_stage ? unmarshalHeadStageResponseHeadStage(data.head_stage) : void 0 };
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
const unmarshalListBackendStagesResponse = (data) => {
|
|
276
276
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`);
|
|
277
277
|
return {
|
|
278
278
|
stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
|
|
279
279
|
totalCount: data.total_count
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
const unmarshalListCacheStagesResponse = (data) => {
|
|
283
283
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`);
|
|
284
284
|
return {
|
|
285
285
|
stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
|
|
286
286
|
totalCount: data.total_count
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
|
|
289
|
+
const unmarshalListDNSStagesResponse = (data) => {
|
|
290
290
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`);
|
|
291
291
|
return {
|
|
292
292
|
stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
|
|
293
293
|
totalCount: data.total_count
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
|
|
296
|
+
const unmarshalListHeadStagesResponseHeadStage = (data) => {
|
|
297
297
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponseHeadStage' failed as data isn't a dictionary.`);
|
|
298
298
|
return { dnsStageId: data.dns_stage_id };
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
const unmarshalListHeadStagesResponse = (data) => {
|
|
301
301
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponse' failed as data isn't a dictionary.`);
|
|
302
302
|
return {
|
|
303
303
|
headStages: unmarshalArrayOfObject(data.head_stages, unmarshalListHeadStagesResponseHeadStage),
|
|
304
304
|
totalCount: data.total_count
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
|
-
|
|
307
|
+
const unmarshalListPipelinesResponse = (data) => {
|
|
308
308
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`);
|
|
309
309
|
return {
|
|
310
310
|
pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
|
|
311
311
|
totalCount: data.total_count
|
|
312
312
|
};
|
|
313
313
|
};
|
|
314
|
-
|
|
314
|
+
const unmarshalListPipelinesWithStagesResponse = (data) => {
|
|
315
315
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesWithStagesResponse' failed as data isn't a dictionary.`);
|
|
316
316
|
return {
|
|
317
317
|
pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipelineStages),
|
|
318
318
|
totalCount: data.total_count
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
const unmarshalListPlansResponse = (data) => {
|
|
322
322
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPlansResponse' failed as data isn't a dictionary.`);
|
|
323
323
|
return {
|
|
324
324
|
plans: unmarshalArrayOfObject(data.plans, unmarshalPlanDetails),
|
|
325
325
|
totalCount: data.total_count
|
|
326
326
|
};
|
|
327
327
|
};
|
|
328
|
-
|
|
328
|
+
const unmarshalListPurgeRequestsResponse = (data) => {
|
|
329
329
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`);
|
|
330
330
|
return {
|
|
331
331
|
purgeRequests: unmarshalArrayOfObject(data.purge_requests, unmarshalPurgeRequest),
|
|
332
332
|
totalCount: data.total_count
|
|
333
333
|
};
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
const unmarshalListRouteRulesResponse = (data) => {
|
|
336
336
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
337
337
|
return {
|
|
338
338
|
routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule),
|
|
339
339
|
totalCount: data.total_count
|
|
340
340
|
};
|
|
341
341
|
};
|
|
342
|
-
|
|
342
|
+
const unmarshalListRouteStagesResponse = (data) => {
|
|
343
343
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteStagesResponse' failed as data isn't a dictionary.`);
|
|
344
344
|
return {
|
|
345
345
|
stages: unmarshalArrayOfObject(data.stages, unmarshalRouteStage),
|
|
346
346
|
totalCount: data.total_count
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
|
-
|
|
349
|
+
const unmarshalListTLSStagesResponse = (data) => {
|
|
350
350
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`);
|
|
351
351
|
return {
|
|
352
352
|
stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
|
|
353
353
|
totalCount: data.total_count
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
|
|
356
|
+
const unmarshalListWafStagesResponse = (data) => {
|
|
357
357
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWafStagesResponse' failed as data isn't a dictionary.`);
|
|
358
358
|
return {
|
|
359
359
|
stages: unmarshalArrayOfObject(data.stages, unmarshalWafStage),
|
|
360
360
|
totalCount: data.total_count
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
|
-
|
|
363
|
+
const unmarshalPlan = (data) => {
|
|
364
364
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Plan' failed as data isn't a dictionary.`);
|
|
365
365
|
return { planName: data.plan_name };
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
const unmarshalSetRouteRulesResponse = (data) => {
|
|
368
368
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetRouteRulesResponse' failed as data isn't a dictionary.`);
|
|
369
369
|
return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
|
|
370
370
|
};
|
|
371
|
-
|
|
371
|
+
const marshalRuleHttpMatchHostFilter = (request, defaults) => ({
|
|
372
372
|
host_filter_type: request.hostFilterType,
|
|
373
373
|
value: request.value
|
|
374
374
|
});
|
|
375
|
-
|
|
375
|
+
const marshalRuleHttpMatchPathFilter = (request, defaults) => ({
|
|
376
376
|
path_filter_type: request.pathFilterType,
|
|
377
377
|
value: request.value
|
|
378
378
|
});
|
|
379
|
-
|
|
379
|
+
const marshalRuleHttpMatch = (request, defaults) => ({
|
|
380
380
|
host_filter: request.hostFilter !== void 0 ? marshalRuleHttpMatchHostFilter(request.hostFilter, defaults) : void 0,
|
|
381
381
|
method_filters: request.methodFilters,
|
|
382
382
|
path_filter: request.pathFilter !== void 0 ? marshalRuleHttpMatchPathFilter(request.pathFilter, defaults) : void 0
|
|
383
383
|
});
|
|
384
|
-
|
|
384
|
+
const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
385
385
|
...resolveOneOf([{
|
|
386
386
|
param: "rule_http_match",
|
|
387
387
|
value: request.ruleHttpMatch !== void 0 ? marshalRuleHttpMatch(request.ruleHttpMatch, defaults) : void 0
|
|
@@ -394,7 +394,7 @@ var marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
|
394
394
|
value: request.wafStageId
|
|
395
395
|
}])
|
|
396
396
|
});
|
|
397
|
-
|
|
397
|
+
const marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
398
398
|
route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0,
|
|
399
399
|
...resolveOneOf([{
|
|
400
400
|
param: "after_position",
|
|
@@ -404,12 +404,12 @@ var marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
|
404
404
|
value: request.beforePosition
|
|
405
405
|
}])
|
|
406
406
|
});
|
|
407
|
-
|
|
407
|
+
const marshalCheckDomainRequest = (request, defaults) => ({
|
|
408
408
|
cname: request.cname,
|
|
409
409
|
fqdn: request.fqdn,
|
|
410
410
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
411
411
|
});
|
|
412
|
-
|
|
412
|
+
const marshalScalewayLb = (request, defaults) => ({
|
|
413
413
|
domain_name: request.domainName,
|
|
414
414
|
frontend_id: request.frontendId,
|
|
415
415
|
has_websocket: request.hasWebsocket,
|
|
@@ -417,12 +417,12 @@ var marshalScalewayLb = (request, defaults) => ({
|
|
|
417
417
|
is_ssl: request.isSsl,
|
|
418
418
|
zone: request.zone
|
|
419
419
|
});
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
const marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb, defaults) : void 0 });
|
|
421
|
+
const marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
|
|
422
422
|
secret_id: request.secretId,
|
|
423
423
|
secret_region: request.secretRegion
|
|
424
424
|
});
|
|
425
|
-
|
|
425
|
+
const marshalCheckPEMChainRequest = (request, defaults) => ({
|
|
426
426
|
fqdn: request.fqdn,
|
|
427
427
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
428
428
|
...resolveOneOf([{
|
|
@@ -433,21 +433,21 @@ var marshalCheckPEMChainRequest = (request, defaults) => ({
|
|
|
433
433
|
value: request.raw
|
|
434
434
|
}])
|
|
435
435
|
});
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
const marshalScalewayLbBackendConfig = (request, defaults) => ({ lbs: request.lbs.map((elt) => marshalScalewayLb(elt, defaults)) });
|
|
437
|
+
const marshalScalewayS3BackendConfig = (request, defaults) => ({
|
|
438
438
|
bucket_name: request.bucketName,
|
|
439
439
|
bucket_region: request.bucketRegion,
|
|
440
440
|
is_website: request.isWebsite
|
|
441
441
|
});
|
|
442
|
-
|
|
442
|
+
const marshalScalewayServerlessContainerBackendConfig = (request, defaults) => ({
|
|
443
443
|
container_id: request.containerId,
|
|
444
444
|
region: request.region
|
|
445
445
|
});
|
|
446
|
-
|
|
446
|
+
const marshalScalewayServerlessFunctionBackendConfig = (request, defaults) => ({
|
|
447
447
|
function_id: request.functionId,
|
|
448
448
|
region: request.region
|
|
449
449
|
});
|
|
450
|
-
|
|
450
|
+
const marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
451
451
|
{
|
|
452
452
|
param: "scaleway_s3",
|
|
453
453
|
value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
|
|
@@ -465,7 +465,7 @@ var marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf
|
|
|
465
465
|
value: request.scalewayServerlessFunction !== void 0 ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
|
|
466
466
|
}
|
|
467
467
|
]) });
|
|
468
|
-
|
|
468
|
+
const marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
469
469
|
fallback_ttl: request.fallbackTtl,
|
|
470
470
|
include_cookies: request.includeCookies,
|
|
471
471
|
...resolveOneOf([
|
|
@@ -483,7 +483,7 @@ var marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
|
483
483
|
}
|
|
484
484
|
])
|
|
485
485
|
});
|
|
486
|
-
|
|
486
|
+
const marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
487
487
|
fqdns: request.fqdns,
|
|
488
488
|
wildcard_domain: request.wildcardDomain,
|
|
489
489
|
...resolveOneOf([
|
|
@@ -501,12 +501,12 @@ var marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
|
501
501
|
}
|
|
502
502
|
])
|
|
503
503
|
});
|
|
504
|
-
|
|
504
|
+
const marshalCreatePipelineRequest = (request, defaults) => ({
|
|
505
505
|
description: request.description,
|
|
506
506
|
name: request.name,
|
|
507
507
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
508
508
|
});
|
|
509
|
-
|
|
509
|
+
const marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
510
510
|
pipeline_id: request.pipelineId,
|
|
511
511
|
...resolveOneOf([{
|
|
512
512
|
param: "assets",
|
|
@@ -516,18 +516,18 @@ var marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
|
516
516
|
value: request.all
|
|
517
517
|
}])
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
const marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
520
520
|
param: "waf_stage_id",
|
|
521
521
|
value: request.wafStageId
|
|
522
522
|
}, {
|
|
523
523
|
param: "backend_stage_id",
|
|
524
524
|
value: request.backendStageId
|
|
525
525
|
}]) });
|
|
526
|
-
|
|
526
|
+
const marshalTLSSecret = (request, defaults) => ({
|
|
527
527
|
region: request.region,
|
|
528
528
|
secret_id: request.secretId
|
|
529
529
|
});
|
|
530
|
-
|
|
530
|
+
const marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
531
531
|
managed_certificate: request.managedCertificate,
|
|
532
532
|
secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt, defaults)) : void 0,
|
|
533
533
|
...resolveOneOf([
|
|
@@ -549,7 +549,7 @@ var marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
|
549
549
|
}
|
|
550
550
|
])
|
|
551
551
|
});
|
|
552
|
-
|
|
552
|
+
const marshalCreateWafStageRequest = (request, defaults) => ({
|
|
553
553
|
mode: request.mode,
|
|
554
554
|
paranoia_level: request.paranoiaLevel,
|
|
555
555
|
...resolveOneOf([{
|
|
@@ -557,17 +557,17 @@ var marshalCreateWafStageRequest = (request, defaults) => ({
|
|
|
557
557
|
value: request.backendStageId
|
|
558
558
|
}])
|
|
559
559
|
});
|
|
560
|
-
|
|
560
|
+
const marshalSelectPlanRequest = (request, defaults) => ({
|
|
561
561
|
plan_name: request.planName,
|
|
562
562
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
563
563
|
});
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
const marshalSetHeadStageRequestAddNewHeadStage = (request, defaults) => ({ new_stage_id: request.newStageId });
|
|
565
|
+
const marshalSetHeadStageRequestRemoveHeadStage = (request, defaults) => ({ remove_stage_id: request.removeStageId });
|
|
566
|
+
const marshalSetHeadStageRequestSwapHeadStage = (request, defaults) => ({
|
|
567
567
|
current_stage_id: request.currentStageId,
|
|
568
568
|
new_stage_id: request.newStageId
|
|
569
569
|
});
|
|
570
|
-
|
|
570
|
+
const marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
571
571
|
{
|
|
572
572
|
param: "add_new_head_stage",
|
|
573
573
|
value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage, defaults) : void 0
|
|
@@ -581,8 +581,8 @@ var marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
|
581
581
|
value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage, defaults) : void 0
|
|
582
582
|
}
|
|
583
583
|
]) });
|
|
584
|
-
|
|
585
|
-
|
|
584
|
+
const marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
|
|
585
|
+
const marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
586
586
|
pipeline_id: request.pipelineId,
|
|
587
587
|
...resolveOneOf([
|
|
588
588
|
{
|
|
@@ -603,7 +603,7 @@ var marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
|
603
603
|
}
|
|
604
604
|
])
|
|
605
605
|
});
|
|
606
|
-
|
|
606
|
+
const marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
607
607
|
fallback_ttl: request.fallbackTtl,
|
|
608
608
|
include_cookies: request.includeCookies,
|
|
609
609
|
...resolveOneOf([
|
|
@@ -621,7 +621,7 @@ var marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
|
621
621
|
}
|
|
622
622
|
])
|
|
623
623
|
});
|
|
624
|
-
|
|
624
|
+
const marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
625
625
|
fqdns: request.fqdns,
|
|
626
626
|
wildcard_domain: request.wildcardDomain,
|
|
627
627
|
...resolveOneOf([
|
|
@@ -639,19 +639,19 @@ var marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
|
639
639
|
}
|
|
640
640
|
])
|
|
641
641
|
});
|
|
642
|
-
|
|
642
|
+
const marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
643
643
|
description: request.description,
|
|
644
644
|
name: request.name
|
|
645
645
|
});
|
|
646
|
-
|
|
646
|
+
const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
647
647
|
param: "waf_stage_id",
|
|
648
648
|
value: request.wafStageId
|
|
649
649
|
}, {
|
|
650
650
|
param: "backend_stage_id",
|
|
651
651
|
value: request.backendStageId
|
|
652
652
|
}]) });
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
const marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
|
|
654
|
+
const marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
655
655
|
managed_certificate: request.managedCertificate,
|
|
656
656
|
tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig, defaults) : void 0,
|
|
657
657
|
...resolveOneOf([
|
|
@@ -673,7 +673,7 @@ var marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
|
673
673
|
}
|
|
674
674
|
])
|
|
675
675
|
});
|
|
676
|
-
|
|
676
|
+
const marshalUpdateWafStageRequest = (request, defaults) => ({
|
|
677
677
|
mode: request.mode,
|
|
678
678
|
paranoia_level: request.paranoiaLevel,
|
|
679
679
|
...resolveOneOf([{
|
|
@@ -5,15 +5,15 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
5
5
|
UpdateWafStageRequest: () => UpdateWafStageRequest,
|
|
6
6
|
WafStage: () => WafStage
|
|
7
7
|
});
|
|
8
|
-
|
|
8
|
+
const CreateWafStageRequest = { paranoiaLevel: {
|
|
9
9
|
greaterThanOrEqual: 1,
|
|
10
10
|
lessThanOrEqual: 4
|
|
11
11
|
} };
|
|
12
|
-
|
|
12
|
+
const UpdateWafStageRequest = { paranoiaLevel: {
|
|
13
13
|
greaterThanOrEqual: 1,
|
|
14
14
|
lessThanOrEqual: 4
|
|
15
15
|
} };
|
|
16
|
-
|
|
16
|
+
const WafStage = { paranoiaLevel: {
|
|
17
17
|
greaterThanOrEqual: 1,
|
|
18
18
|
lessThanOrEqual: 4
|
|
19
19
|
} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-edge-services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Scaleway SDK edge-services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -35,18 +35,20 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@scaleway/random-name": "5.1.4",
|
|
38
|
-
"@scaleway/sdk-std": "2.
|
|
38
|
+
"@scaleway/sdk-std": "2.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@
|
|
41
|
+
"@repo/configs": "^0.1.1",
|
|
42
|
+
"@scaleway/sdk-client": "^2.3.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
+
"@repo/configs": "^0.1.1",
|
|
46
|
+
"@scaleway/sdk-client": "^2.3.0"
|
|
45
47
|
},
|
|
46
48
|
"scripts": {
|
|
47
49
|
"package:check": "pnpm publint",
|
|
48
|
-
"typecheck": "
|
|
49
|
-
"type:generate": "
|
|
50
|
+
"typecheck": "tsgo --noEmit",
|
|
51
|
+
"type:generate": "tsgo --declaration -p tsconfig.build.json",
|
|
50
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
51
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
52
54
|
}
|