@scaleway/sdk-edge-services 2.7.0 → 2.9.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.
@@ -1,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,11 +1,12 @@
1
1
  import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1beta1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Edge Services API.
7
8
  */
8
- var API$1 = class extends API {
9
+ var API = class extends API$1 {
9
10
  pageOfListPipelines = (request = {}) => this.client.fetch({
10
11
  method: "GET",
11
12
  path: `/edge-services/v1beta1/pipelines`,
@@ -573,4 +574,5 @@ var API$1 = class extends API {
573
574
  path: `/edge-services/v1beta1/billing/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
574
575
  }, unmarshalGetBillingResponse);
575
576
  };
576
- export { API$1 as API };
577
+ //#endregion
578
+ export { API };
@@ -1,5 +1,7 @@
1
+ //#region src/v1beta1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link PipelineStatus}. */
2
- const PIPELINE_TRANSIENT_STATUSES = ["pending"];
3
+ var PIPELINE_TRANSIENT_STATUSES = ["pending"];
3
4
  /** Lists transient statutes of the enum {@link PurgeRequestStatus}. */
4
- const PURGE_REQUEST_TRANSIENT_STATUSES = ["pending"];
5
+ var PURGE_REQUEST_TRANSIENT_STATUSES = ["pending"];
6
+ //#endregion
5
7
  export { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES };
@@ -1,5 +1,5 @@
1
1
  export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './marshalling.gen.js';
4
- export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, DNSStageType, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, RouteRule, RouteStage, RuleHttpMatch, RuleHttpMatchMethodFilter, RuleHttpMatchPathFilter, RuleHttpMatchPathFilterPathFilterType, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, ScalewayServerlessContainerBackendConfig, ScalewayServerlessFunctionBackendConfig, SearchBackendStagesRequest, SearchBackendStagesRequestOrderBy, SearchRouteRulesRequest, SearchRouteRulesRequestOrderBy, SearchWafStagesRequest, SearchWafStagesRequestOrderBy, SelectPlanRequest, SetHeadStageRequest, SetHeadStageRequestAddNewHeadStage, SetHeadStageRequestRemoveHeadStage, SetHeadStageRequestSwapHeadStage, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage, WafStageMode, } from './types.gen.js';
4
+ export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteWafStageRequest, DNSStage, DNSStageType, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PlanUsageDetails, PurgeRequest, PurgeRequestStatus, RouteRule, RouteStage, RuleHttpMatch, RuleHttpMatchHostFilter, RuleHttpMatchHostFilterHostFilterType, RuleHttpMatchMethodFilter, RuleHttpMatchPathFilter, RuleHttpMatchPathFilterPathFilterType, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, ScalewayServerlessContainerBackendConfig, ScalewayServerlessFunctionBackendConfig, SearchBackendStagesRequest, SearchBackendStagesRequestOrderBy, SearchRouteRulesRequest, SearchRouteRulesRequestOrderBy, SearchWafStagesRequest, SearchWafStagesRequestOrderBy, SelectPlanRequest, SetHeadStageRequest, SetHeadStageRequestAddNewHeadStage, SetHeadStageRequestRemoveHeadStage, SetHeadStageRequestSwapHeadStage, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage, WafStageMode, } from './types.gen.js';
5
5
  export * as ValidationRules from './validation-rules.gen.js';
@@ -3,6 +3,7 @@ import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from ".
3
3
  import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1beta1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  PIPELINE_TRANSIENT_STATUSES: () => PIPELINE_TRANSIENT_STATUSES,
@@ -61,4 +62,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
61
62
  unmarshalTLSStage: () => unmarshalTLSStage,
62
63
  unmarshalWafStage: () => unmarshalWafStage
63
64
  });
64
- export { index_gen_exports };
65
+ //#endregion
66
+ export { API, PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage };
@@ -1,4 +1,5 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney } from "@scaleway/sdk-client";
2
+ //#region src/v1beta1/marshalling.gen.ts
2
3
  var unmarshalScalewayLb = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`);
4
5
  return {
@@ -36,7 +37,7 @@ var unmarshalScalewayServerlessFunctionBackendConfig = (data) => {
36
37
  region: data.region
37
38
  };
38
39
  };
39
- const unmarshalBackendStage = (data) => {
40
+ var unmarshalBackendStage = (data) => {
40
41
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`);
41
42
  return {
42
43
  createdAt: unmarshalDate(data.created_at),
@@ -49,7 +50,7 @@ const unmarshalBackendStage = (data) => {
49
50
  updatedAt: unmarshalDate(data.updated_at)
50
51
  };
51
52
  };
52
- const unmarshalCacheStage = (data) => {
53
+ var unmarshalCacheStage = (data) => {
53
54
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`);
54
55
  return {
55
56
  backendStageId: data.backend_stage_id,
@@ -63,7 +64,7 @@ const unmarshalCacheStage = (data) => {
63
64
  wafStageId: data.waf_stage_id
64
65
  };
65
66
  };
66
- const unmarshalDNSStage = (data) => {
67
+ var unmarshalDNSStage = (data) => {
67
68
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`);
68
69
  return {
69
70
  backendStageId: data.backend_stage_id,
@@ -75,7 +76,8 @@ const unmarshalDNSStage = (data) => {
75
76
  pipelineId: data.pipeline_id,
76
77
  tlsStageId: data.tls_stage_id,
77
78
  type: data.type,
78
- updatedAt: unmarshalDate(data.updated_at)
79
+ updatedAt: unmarshalDate(data.updated_at),
80
+ wildcardDomain: data.wildcard_domain
79
81
  };
80
82
  };
81
83
  var unmarshalPipelineError = (data) => {
@@ -88,7 +90,7 @@ var unmarshalPipelineError = (data) => {
88
90
  type: data.type
89
91
  };
90
92
  };
91
- const unmarshalPipeline = (data) => {
93
+ var unmarshalPipeline = (data) => {
92
94
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`);
93
95
  return {
94
96
  createdAt: unmarshalDate(data.created_at),
@@ -102,7 +104,7 @@ const unmarshalPipeline = (data) => {
102
104
  updatedAt: unmarshalDate(data.updated_at)
103
105
  };
104
106
  };
105
- const unmarshalRouteStage = (data) => {
107
+ var unmarshalRouteStage = (data) => {
106
108
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteStage' failed as data isn't a dictionary.`);
107
109
  return {
108
110
  backendStageId: data.backend_stage_id,
@@ -120,7 +122,7 @@ var unmarshalTLSSecret = (data) => {
120
122
  secretId: data.secret_id
121
123
  };
122
124
  };
123
- const unmarshalTLSStage = (data) => {
125
+ var unmarshalTLSStage = (data) => {
124
126
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`);
125
127
  return {
126
128
  backendStageId: data.backend_stage_id,
@@ -136,7 +138,7 @@ const unmarshalTLSStage = (data) => {
136
138
  wafStageId: data.waf_stage_id
137
139
  };
138
140
  };
139
- const unmarshalWafStage = (data) => {
141
+ var unmarshalWafStage = (data) => {
140
142
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafStage' failed as data isn't a dictionary.`);
141
143
  return {
142
144
  backendStageId: data.backend_stage_id,
@@ -148,7 +150,7 @@ const unmarshalWafStage = (data) => {
148
150
  updatedAt: unmarshalDate(data.updated_at)
149
151
  };
150
152
  };
151
- const unmarshalPipelineStages = (data) => {
153
+ var unmarshalPipelineStages = (data) => {
152
154
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PipelineStages' failed as data isn't a dictionary.`);
153
155
  return {
154
156
  backendStages: unmarshalArrayOfObject(data.backend_stages, unmarshalBackendStage),
@@ -160,7 +162,7 @@ const unmarshalPipelineStages = (data) => {
160
162
  wafStages: unmarshalArrayOfObject(data.waf_stages, unmarshalWafStage)
161
163
  };
162
164
  };
163
- const unmarshalPurgeRequest = (data) => {
165
+ var unmarshalPurgeRequest = (data) => {
164
166
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`);
165
167
  return {
166
168
  all: data.all,
@@ -172,6 +174,13 @@ const unmarshalPurgeRequest = (data) => {
172
174
  updatedAt: unmarshalDate(data.updated_at)
173
175
  };
174
176
  };
177
+ var unmarshalRuleHttpMatchHostFilter = (data) => {
178
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchHostFilter' failed as data isn't a dictionary.`);
179
+ return {
180
+ hostFilterType: data.host_filter_type,
181
+ value: data.value
182
+ };
183
+ };
175
184
  var unmarshalRuleHttpMatchPathFilter = (data) => {
176
185
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatchPathFilter' failed as data isn't a dictionary.`);
177
186
  return {
@@ -182,6 +191,7 @@ var unmarshalRuleHttpMatchPathFilter = (data) => {
182
191
  var unmarshalRuleHttpMatch = (data) => {
183
192
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RuleHttpMatch' failed as data isn't a dictionary.`);
184
193
  return {
194
+ hostFilter: data.host_filter ? unmarshalRuleHttpMatchHostFilter(data.host_filter) : void 0,
185
195
  methodFilters: data.method_filters,
186
196
  pathFilter: data.path_filter ? unmarshalRuleHttpMatchPathFilter(data.path_filter) : void 0
187
197
  };
@@ -196,22 +206,22 @@ var unmarshalRouteRule = (data) => {
196
206
  wafStageId: data.waf_stage_id
197
207
  };
198
208
  };
199
- const unmarshalAddRouteRulesResponse = (data) => {
209
+ var unmarshalAddRouteRulesResponse = (data) => {
200
210
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddRouteRulesResponse' failed as data isn't a dictionary.`);
201
211
  return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
202
212
  };
203
- const unmarshalCheckDomainResponse = (data) => {
213
+ var unmarshalCheckDomainResponse = (data) => {
204
214
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`);
205
215
  return { isValid: data.is_valid };
206
216
  };
207
- const unmarshalCheckLbOriginResponse = (data) => {
217
+ var unmarshalCheckLbOriginResponse = (data) => {
208
218
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`);
209
219
  return {
210
220
  errorType: data.error_type,
211
221
  isValid: data.is_valid
212
222
  };
213
223
  };
214
- const unmarshalCheckPEMChainResponse = (data) => {
224
+ var unmarshalCheckPEMChainResponse = (data) => {
215
225
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`);
216
226
  return { isValid: data.is_valid };
217
227
  };
@@ -222,14 +232,15 @@ var unmarshalPlanDetails = (data) => {
222
232
  packageGb: data.package_gb,
223
233
  pipelineLimit: data.pipeline_limit,
224
234
  planName: data.plan_name,
225
- wafRequests: data.waf_requests
235
+ wafRequests: data.waf_requests,
236
+ wildcardDomain: data.wildcard_domain
226
237
  };
227
238
  };
228
239
  var unmarshalPlanUsageDetails = (data) => {
229
240
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`);
230
241
  return { planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0 };
231
242
  };
232
- const unmarshalGetBillingResponse = (data) => {
243
+ var unmarshalGetBillingResponse = (data) => {
233
244
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetBillingResponse' failed as data isn't a dictionary.`);
234
245
  return {
235
246
  currentPlan: data.current_plan ? unmarshalPlanDetails(data.current_plan) : void 0,
@@ -251,25 +262,25 @@ var unmarshalHeadStageResponseHeadStage = (data) => {
251
262
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponseHeadStage' failed as data isn't a dictionary.`);
252
263
  return { dnsStageId: data.dns_stage_id };
253
264
  };
254
- const unmarshalHeadStageResponse = (data) => {
265
+ var unmarshalHeadStageResponse = (data) => {
255
266
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HeadStageResponse' failed as data isn't a dictionary.`);
256
267
  return { headStage: data.head_stage ? unmarshalHeadStageResponseHeadStage(data.head_stage) : void 0 };
257
268
  };
258
- const unmarshalListBackendStagesResponse = (data) => {
269
+ var unmarshalListBackendStagesResponse = (data) => {
259
270
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`);
260
271
  return {
261
272
  stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
262
273
  totalCount: data.total_count
263
274
  };
264
275
  };
265
- const unmarshalListCacheStagesResponse = (data) => {
276
+ var unmarshalListCacheStagesResponse = (data) => {
266
277
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`);
267
278
  return {
268
279
  stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
269
280
  totalCount: data.total_count
270
281
  };
271
282
  };
272
- const unmarshalListDNSStagesResponse = (data) => {
283
+ var unmarshalListDNSStagesResponse = (data) => {
273
284
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`);
274
285
  return {
275
286
  stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
@@ -280,86 +291,91 @@ var unmarshalListHeadStagesResponseHeadStage = (data) => {
280
291
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponseHeadStage' failed as data isn't a dictionary.`);
281
292
  return { dnsStageId: data.dns_stage_id };
282
293
  };
283
- const unmarshalListHeadStagesResponse = (data) => {
294
+ var unmarshalListHeadStagesResponse = (data) => {
284
295
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHeadStagesResponse' failed as data isn't a dictionary.`);
285
296
  return {
286
297
  headStages: unmarshalArrayOfObject(data.head_stages, unmarshalListHeadStagesResponseHeadStage),
287
298
  totalCount: data.total_count
288
299
  };
289
300
  };
290
- const unmarshalListPipelinesResponse = (data) => {
301
+ var unmarshalListPipelinesResponse = (data) => {
291
302
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`);
292
303
  return {
293
304
  pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
294
305
  totalCount: data.total_count
295
306
  };
296
307
  };
297
- const unmarshalListPipelinesWithStagesResponse = (data) => {
308
+ var unmarshalListPipelinesWithStagesResponse = (data) => {
298
309
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesWithStagesResponse' failed as data isn't a dictionary.`);
299
310
  return {
300
311
  pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipelineStages),
301
312
  totalCount: data.total_count
302
313
  };
303
314
  };
304
- const unmarshalListPlansResponse = (data) => {
315
+ var unmarshalListPlansResponse = (data) => {
305
316
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPlansResponse' failed as data isn't a dictionary.`);
306
317
  return {
307
318
  plans: unmarshalArrayOfObject(data.plans, unmarshalPlanDetails),
308
319
  totalCount: data.total_count
309
320
  };
310
321
  };
311
- const unmarshalListPurgeRequestsResponse = (data) => {
322
+ var unmarshalListPurgeRequestsResponse = (data) => {
312
323
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`);
313
324
  return {
314
325
  purgeRequests: unmarshalArrayOfObject(data.purge_requests, unmarshalPurgeRequest),
315
326
  totalCount: data.total_count
316
327
  };
317
328
  };
318
- const unmarshalListRouteRulesResponse = (data) => {
329
+ var unmarshalListRouteRulesResponse = (data) => {
319
330
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteRulesResponse' failed as data isn't a dictionary.`);
320
331
  return {
321
332
  routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule),
322
333
  totalCount: data.total_count
323
334
  };
324
335
  };
325
- const unmarshalListRouteStagesResponse = (data) => {
336
+ var unmarshalListRouteStagesResponse = (data) => {
326
337
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRouteStagesResponse' failed as data isn't a dictionary.`);
327
338
  return {
328
339
  stages: unmarshalArrayOfObject(data.stages, unmarshalRouteStage),
329
340
  totalCount: data.total_count
330
341
  };
331
342
  };
332
- const unmarshalListTLSStagesResponse = (data) => {
343
+ var unmarshalListTLSStagesResponse = (data) => {
333
344
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`);
334
345
  return {
335
346
  stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
336
347
  totalCount: data.total_count
337
348
  };
338
349
  };
339
- const unmarshalListWafStagesResponse = (data) => {
350
+ var unmarshalListWafStagesResponse = (data) => {
340
351
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWafStagesResponse' failed as data isn't a dictionary.`);
341
352
  return {
342
353
  stages: unmarshalArrayOfObject(data.stages, unmarshalWafStage),
343
354
  totalCount: data.total_count
344
355
  };
345
356
  };
346
- const unmarshalPlan = (data) => {
357
+ var unmarshalPlan = (data) => {
347
358
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Plan' failed as data isn't a dictionary.`);
348
359
  return { planName: data.plan_name };
349
360
  };
350
- const unmarshalSetRouteRulesResponse = (data) => {
361
+ var unmarshalSetRouteRulesResponse = (data) => {
351
362
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetRouteRulesResponse' failed as data isn't a dictionary.`);
352
363
  return { routeRules: unmarshalArrayOfObject(data.route_rules, unmarshalRouteRule) };
353
364
  };
365
+ var marshalRuleHttpMatchHostFilter = (request, defaults) => ({
366
+ host_filter_type: request.hostFilterType,
367
+ value: request.value
368
+ });
354
369
  var marshalRuleHttpMatchPathFilter = (request, defaults) => ({
355
370
  path_filter_type: request.pathFilterType,
356
371
  value: request.value
357
372
  });
358
373
  var marshalRuleHttpMatch = (request, defaults) => ({
374
+ host_filter: request.hostFilter !== void 0 ? marshalRuleHttpMatchHostFilter(request.hostFilter, defaults) : void 0,
359
375
  method_filters: request.methodFilters,
360
376
  path_filter: request.pathFilter !== void 0 ? marshalRuleHttpMatchPathFilter(request.pathFilter, defaults) : void 0
361
377
  });
362
- const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
378
+ var marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
363
379
  ...resolveOneOf([{
364
380
  param: "rule_http_match",
365
381
  value: request.ruleHttpMatch !== void 0 ? marshalRuleHttpMatch(request.ruleHttpMatch, defaults) : void 0
@@ -372,7 +388,7 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
372
388
  value: request.wafStageId
373
389
  }])
374
390
  });
375
- const marshalAddRouteRulesRequest = (request, defaults) => ({
391
+ var marshalAddRouteRulesRequest = (request, defaults) => ({
376
392
  route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0,
377
393
  ...resolveOneOf([{
378
394
  param: "after_position",
@@ -382,7 +398,7 @@ const marshalAddRouteRulesRequest = (request, defaults) => ({
382
398
  value: request.beforePosition
383
399
  }])
384
400
  });
385
- const marshalCheckDomainRequest = (request, defaults) => ({
401
+ var marshalCheckDomainRequest = (request, defaults) => ({
386
402
  cname: request.cname,
387
403
  fqdn: request.fqdn,
388
404
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -395,12 +411,12 @@ var marshalScalewayLb = (request, defaults) => ({
395
411
  is_ssl: request.isSsl,
396
412
  zone: request.zone
397
413
  });
398
- const marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb, defaults) : void 0 });
414
+ var marshalCheckLbOriginRequest = (request, defaults) => ({ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb, defaults) : void 0 });
399
415
  var marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
400
416
  secret_id: request.secretId,
401
417
  secret_region: request.secretRegion
402
418
  });
403
- const marshalCheckPEMChainRequest = (request, defaults) => ({
419
+ var marshalCheckPEMChainRequest = (request, defaults) => ({
404
420
  fqdn: request.fqdn,
405
421
  project_id: request.projectId ?? defaults.defaultProjectId,
406
422
  ...resolveOneOf([{
@@ -425,7 +441,7 @@ var marshalScalewayServerlessFunctionBackendConfig = (request, defaults) => ({
425
441
  function_id: request.functionId,
426
442
  region: request.region
427
443
  });
428
- const marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf([
444
+ var marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOneOf([
429
445
  {
430
446
  param: "scaleway_s3",
431
447
  value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3, defaults) : void 0
@@ -443,7 +459,7 @@ const marshalCreateBackendStageRequest = (request, defaults) => ({ ...resolveOne
443
459
  value: request.scalewayServerlessFunction !== void 0 ? marshalScalewayServerlessFunctionBackendConfig(request.scalewayServerlessFunction, defaults) : void 0
444
460
  }
445
461
  ]) });
446
- const marshalCreateCacheStageRequest = (request, defaults) => ({
462
+ var marshalCreateCacheStageRequest = (request, defaults) => ({
447
463
  fallback_ttl: request.fallbackTtl,
448
464
  include_cookies: request.includeCookies,
449
465
  ...resolveOneOf([
@@ -461,8 +477,9 @@ const marshalCreateCacheStageRequest = (request, defaults) => ({
461
477
  }
462
478
  ])
463
479
  });
464
- const marshalCreateDNSStageRequest = (request, defaults) => ({
480
+ var marshalCreateDNSStageRequest = (request, defaults) => ({
465
481
  fqdns: request.fqdns,
482
+ wildcard_domain: request.wildcardDomain,
466
483
  ...resolveOneOf([
467
484
  {
468
485
  param: "tls_stage_id",
@@ -478,12 +495,12 @@ const marshalCreateDNSStageRequest = (request, defaults) => ({
478
495
  }
479
496
  ])
480
497
  });
481
- const marshalCreatePipelineRequest = (request, defaults) => ({
498
+ var marshalCreatePipelineRequest = (request, defaults) => ({
482
499
  description: request.description,
483
500
  name: request.name,
484
501
  project_id: request.projectId ?? defaults.defaultProjectId
485
502
  });
486
- const marshalCreatePurgeRequestRequest = (request, defaults) => ({
503
+ var marshalCreatePurgeRequestRequest = (request, defaults) => ({
487
504
  pipeline_id: request.pipelineId,
488
505
  ...resolveOneOf([{
489
506
  param: "assets",
@@ -493,7 +510,7 @@ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
493
510
  value: request.all
494
511
  }])
495
512
  });
496
- const marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
513
+ var marshalCreateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
497
514
  param: "waf_stage_id",
498
515
  value: request.wafStageId
499
516
  }, {
@@ -504,7 +521,7 @@ var marshalTLSSecret = (request, defaults) => ({
504
521
  region: request.region,
505
522
  secret_id: request.secretId
506
523
  });
507
- const marshalCreateTLSStageRequest = (request, defaults) => ({
524
+ var marshalCreateTLSStageRequest = (request, defaults) => ({
508
525
  managed_certificate: request.managedCertificate,
509
526
  secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt, defaults)) : void 0,
510
527
  ...resolveOneOf([
@@ -526,7 +543,7 @@ const marshalCreateTLSStageRequest = (request, defaults) => ({
526
543
  }
527
544
  ])
528
545
  });
529
- const marshalCreateWafStageRequest = (request, defaults) => ({
546
+ var marshalCreateWafStageRequest = (request, defaults) => ({
530
547
  mode: request.mode,
531
548
  paranoia_level: request.paranoiaLevel,
532
549
  ...resolveOneOf([{
@@ -534,7 +551,7 @@ const marshalCreateWafStageRequest = (request, defaults) => ({
534
551
  value: request.backendStageId
535
552
  }])
536
553
  });
537
- const marshalSelectPlanRequest = (request, defaults) => ({
554
+ var marshalSelectPlanRequest = (request, defaults) => ({
538
555
  plan_name: request.planName,
539
556
  project_id: request.projectId ?? defaults.defaultProjectId
540
557
  });
@@ -544,7 +561,7 @@ var marshalSetHeadStageRequestSwapHeadStage = (request, defaults) => ({
544
561
  current_stage_id: request.currentStageId,
545
562
  new_stage_id: request.newStageId
546
563
  });
547
- const marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
564
+ var marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
548
565
  {
549
566
  param: "add_new_head_stage",
550
567
  value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage, defaults) : void 0
@@ -558,8 +575,8 @@ const marshalSetHeadStageRequest = (request, defaults) => ({ ...resolveOneOf([
558
575
  value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage, defaults) : void 0
559
576
  }
560
577
  ]) });
561
- const marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
562
- const marshalUpdateBackendStageRequest = (request, defaults) => ({
578
+ var marshalSetRouteRulesRequest = (request, defaults) => ({ route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt, defaults)) : void 0 });
579
+ var marshalUpdateBackendStageRequest = (request, defaults) => ({
563
580
  pipeline_id: request.pipelineId,
564
581
  ...resolveOneOf([
565
582
  {
@@ -580,7 +597,7 @@ const marshalUpdateBackendStageRequest = (request, defaults) => ({
580
597
  }
581
598
  ])
582
599
  });
583
- const marshalUpdateCacheStageRequest = (request, defaults) => ({
600
+ var marshalUpdateCacheStageRequest = (request, defaults) => ({
584
601
  fallback_ttl: request.fallbackTtl,
585
602
  include_cookies: request.includeCookies,
586
603
  ...resolveOneOf([
@@ -598,8 +615,9 @@ const marshalUpdateCacheStageRequest = (request, defaults) => ({
598
615
  }
599
616
  ])
600
617
  });
601
- const marshalUpdateDNSStageRequest = (request, defaults) => ({
618
+ var marshalUpdateDNSStageRequest = (request, defaults) => ({
602
619
  fqdns: request.fqdns,
620
+ wildcard_domain: request.wildcardDomain,
603
621
  ...resolveOneOf([
604
622
  {
605
623
  param: "tls_stage_id",
@@ -615,11 +633,11 @@ const marshalUpdateDNSStageRequest = (request, defaults) => ({
615
633
  }
616
634
  ])
617
635
  });
618
- const marshalUpdatePipelineRequest = (request, defaults) => ({
636
+ var marshalUpdatePipelineRequest = (request, defaults) => ({
619
637
  description: request.description,
620
638
  name: request.name
621
639
  });
622
- const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
640
+ var marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf([{
623
641
  param: "waf_stage_id",
624
642
  value: request.wafStageId
625
643
  }, {
@@ -627,7 +645,7 @@ const marshalUpdateRouteStageRequest = (request, defaults) => ({ ...resolveOneOf
627
645
  value: request.backendStageId
628
646
  }]) });
629
647
  var marshalTLSSecretsConfig = (request, defaults) => ({ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt, defaults)) });
630
- const marshalUpdateTLSStageRequest = (request, defaults) => ({
648
+ var marshalUpdateTLSStageRequest = (request, defaults) => ({
631
649
  managed_certificate: request.managedCertificate,
632
650
  tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig, defaults) : void 0,
633
651
  ...resolveOneOf([
@@ -649,7 +667,7 @@ const marshalUpdateTLSStageRequest = (request, defaults) => ({
649
667
  }
650
668
  ])
651
669
  });
652
- const marshalUpdateWafStageRequest = (request, defaults) => ({
670
+ var marshalUpdateWafStageRequest = (request, defaults) => ({
653
671
  mode: request.mode,
654
672
  paranoia_level: request.paranoiaLevel,
655
673
  ...resolveOneOf([{
@@ -657,4 +675,5 @@ const marshalUpdateWafStageRequest = (request, defaults) => ({
657
675
  value: request.backendStageId
658
676
  }])
659
677
  });
678
+ //#endregion
660
679
  export { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalWafStage };
@@ -10,13 +10,14 @@ export type ListPurgeRequestsRequestOrderBy = 'created_at_asc' | 'created_at_des
10
10
  export type ListRouteStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
11
11
  export type ListTLSStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
12
12
  export type ListWafStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13
- export type PipelineErrorCode = 'unknown_code' | 'dns_invalid_format' | 'dns_invalid_tld' | 'dns_forbidden_root_domain' | 'dns_forbidden_scw_cloud' | 'dns_domain_dont_exist' | 'dns_cname_dont_exist' | 'dns_cname_resolve' | 'dns_fqdn_already_exists' | 'dns_fqdn_already_in_use' | 'tls_cert_deleted' | 'tls_cert_disabled' | 'tls_cert_expired' | 'tls_cert_invalid_format' | 'tls_cert_missing' | 'tls_chain_order' | 'tls_key_invalid_format' | 'tls_key_missing' | 'tls_key_too_many' | 'tls_managed_domain_rate_limit' | 'tls_managed_internal' | 'tls_pair_mismatch' | 'tls_root_inconsistent' | 'tls_root_incorrect' | 'tls_root_missing' | 'tls_san_mismatch' | 'tls_self_signed' | 'tls_caa_malfunction' | 'pipeline_invalid_workflow' | 'pipeline_missing_head_stage' | 'pipeline_websocket_limit';
13
+ export type PipelineErrorCode = 'unknown_code' | 'dns_invalid_format' | 'dns_invalid_tld' | 'dns_forbidden_root_domain' | 'dns_forbidden_scw_cloud' | 'dns_domain_dont_exist' | 'dns_cname_dont_exist' | 'dns_cname_resolve' | 'dns_fqdn_already_exists' | 'dns_fqdn_already_in_use' | 'tls_cert_deleted' | 'tls_cert_disabled' | 'tls_cert_expired' | 'tls_cert_invalid_format' | 'tls_cert_missing' | 'tls_chain_order' | 'tls_key_invalid_format' | 'tls_key_missing' | 'tls_key_too_many' | 'tls_managed_domain_rate_limit' | 'tls_managed_internal' | 'tls_managed_unsupported' | 'tls_not_wildcard' | 'tls_pair_mismatch' | 'tls_root_inconsistent' | 'tls_root_incorrect' | 'tls_root_missing' | 'tls_san_mismatch' | 'tls_self_signed' | 'tls_caa_malfunction' | 'pipeline_invalid_workflow' | 'pipeline_missing_head_stage' | 'pipeline_websocket_limit';
14
14
  export type PipelineErrorSeverity = 'unknown_severity' | 'warning' | 'critical';
15
15
  export type PipelineErrorStage = 'unknown_stage' | 'dns' | 'tls' | 'cache' | 'backend';
16
16
  export type PipelineErrorType = 'unknown_type' | 'runtime' | 'config';
17
17
  export type PipelineStatus = 'unknown_status' | 'ready' | 'error' | 'pending' | 'warning' | 'locked';
18
18
  export type PlanName = 'unknown_name' | 'starter' | 'professional' | 'advanced';
19
19
  export type PurgeRequestStatus = 'unknown_status' | 'done' | 'error' | 'pending';
20
+ export type RuleHttpMatchHostFilterHostFilterType = 'unknown_host_filter' | 'regex';
20
21
  export type RuleHttpMatchMethodFilter = 'unknown_method_filter' | 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head' | 'options';
21
22
  export type RuleHttpMatchPathFilterPathFilterType = 'unknown_path_filter' | 'regex';
22
23
  export type SearchBackendStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
@@ -49,6 +50,10 @@ export interface ScalewayLb {
49
50
  */
50
51
  hasWebsocket?: boolean;
51
52
  }
53
+ export interface RuleHttpMatchHostFilter {
54
+ hostFilterType: RuleHttpMatchHostFilterHostFilterType;
55
+ value: string;
56
+ }
52
57
  export interface RuleHttpMatchPathFilter {
53
58
  /**
54
59
  * Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type.
@@ -119,6 +124,10 @@ export interface RuleHttpMatch {
119
124
  * HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided.
120
125
  */
121
126
  pathFilter?: RuleHttpMatchPathFilter;
127
+ /**
128
+ * Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided.
129
+ */
130
+ hostFilter?: RuleHttpMatchHostFilter;
122
131
  }
123
132
  export interface BackendStage {
124
133
  /**
@@ -249,6 +258,10 @@ export interface DNSStage {
249
258
  * One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
250
259
  */
251
260
  backendStageId?: string;
261
+ /**
262
+ * Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
263
+ */
264
+ wildcardDomain: boolean;
252
265
  }
253
266
  export interface Pipeline {
254
267
  /**
@@ -303,6 +316,12 @@ export interface RouteStage {
303
316
  * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
304
317
  */
305
318
  wafStageId?: string;
319
+ /**
320
+ * ID of the backend stage HTTP requests should be forwarded to when no rules are matched.
321
+ *
322
+ * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
323
+ */
324
+ backendStageId?: string;
306
325
  /**
307
326
  * Date the route stage was created.
308
327
  */
@@ -311,11 +330,6 @@ export interface RouteStage {
311
330
  * Date the route stage was last updated.
312
331
  */
313
332
  updatedAt?: Date;
314
- /**
315
- *
316
- * One-of ('next'): at most one of 'wafStageId', 'backendStageId' could be set.
317
- */
318
- backendStageId?: string;
319
333
  }
320
334
  export interface TLSStage {
321
335
  /**
@@ -415,6 +429,7 @@ export interface SetRouteRulesRequestRouteRule {
415
429
  */
416
430
  backendStageId?: string;
417
431
  /**
432
+ * ID of the WAF stage that requests matching the rule should be forwarded to.
418
433
  *
419
434
  * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
420
435
  */
@@ -442,6 +457,7 @@ export interface RouteRule {
442
457
  */
443
458
  routeStageId: string;
444
459
  /**
460
+ * ID of the WAF stage that requests matching the rule should be forwarded to.
445
461
  *
446
462
  * One-of ('next'): at most one of 'backendStageId', 'wafStageId' could be set.
447
463
  */
@@ -472,6 +488,10 @@ export interface PlanDetails {
472
488
  * Number of backends per pipeline included in subscription plan.
473
489
  */
474
490
  backendLimit: number;
491
+ /**
492
+ * Support of wildcard subdomains for the customized domain.
493
+ */
494
+ wildcardDomain: boolean;
475
495
  }
476
496
  export interface PlanUsageDetails {
477
497
  /**
@@ -697,6 +717,10 @@ export type CreateDNSStageRequest = {
697
717
  * One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
698
718
  */
699
719
  backendStageId?: string;
720
+ /**
721
+ * Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
722
+ */
723
+ wildcardDomain?: boolean;
700
724
  };
701
725
  export type CreatePipelineRequest = {
702
726
  /**
@@ -1444,6 +1468,10 @@ export type UpdateDNSStageRequest = {
1444
1468
  * One-of ('next'): at most one of 'tlsStageId', 'cacheStageId', 'backendStageId' could be set.
1445
1469
  */
1446
1470
  backendStageId?: string;
1471
+ /**
1472
+ * Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).
1473
+ */
1474
+ wildcardDomain?: boolean;
1447
1475
  };
1448
1476
  export type UpdatePipelineRequest = {
1449
1477
  /**
File without changes
@@ -1,19 +1,21 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1beta1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  CreateWafStageRequest: () => CreateWafStageRequest,
4
5
  UpdateWafStageRequest: () => UpdateWafStageRequest,
5
6
  WafStage: () => WafStage
6
7
  });
7
- const CreateWafStageRequest = { paranoiaLevel: {
8
+ var CreateWafStageRequest = { paranoiaLevel: {
8
9
  greaterThanOrEqual: 1,
9
10
  lessThanOrEqual: 4
10
11
  } };
11
- const UpdateWafStageRequest = { paranoiaLevel: {
12
+ var UpdateWafStageRequest = { paranoiaLevel: {
12
13
  greaterThanOrEqual: 1,
13
14
  lessThanOrEqual: 4
14
15
  } };
15
- const WafStage = { paranoiaLevel: {
16
+ var WafStage = { paranoiaLevel: {
16
17
  greaterThanOrEqual: 1,
17
18
  lessThanOrEqual: 4
18
19
  } };
19
- export { validation_rules_gen_exports };
20
+ //#endregion
21
+ export { CreateWafStageRequest, UpdateWafStageRequest, WafStage, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-edge-services",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",