@scaleway/sdk-edge-services 2.21.0 → 2.23.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,10 +1,11 @@
1
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
2
  import type { WaitForOptions } from '@scaleway/sdk-client';
3
- import type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, DNSStage, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteVPCEndpointRequest, DeleteWafStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetVPCEndpointRequest, GetWafStageRequest, HeadStageResponse, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesResponse, ListVPCEndpointsRequest, ListVPCEndpointsResponse, ListWafStagesRequest, ListWafStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, RouteStage, SearchBackendStagesRequest, SearchRouteRulesRequest, SearchWafStagesRequest, SelectPlanRequest, SetHeadStageRequest, SetPipelineVPCEndpointsRequest, SetPipelineVPCEndpointsResponse, SetRouteRulesRequest, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, VPCEndpoint, WafStage } from './types.gen.js';
3
+ import type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, DNSStage, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteVPCEndpointRequest, DeleteWafStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetVPCEndpointRequest, GetWafStageRequest, HeadStageResponse, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListNodesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesResponse, ListVPCEndpointsRequest, ListVPCEndpointsResponse, ListWafStagesRequest, ListWafStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, RouteStage, SearchBackendStagesRequest, SearchRouteRulesRequest, SearchWafStagesRequest, SelectPlanRequest, SetHeadStageRequest, SetPipelineVPCEndpointsRequest, SetPipelineVPCEndpointsResponse, SetRouteRulesRequest, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, VPCEndpoint, WafStage } from './types.gen.js';
4
4
  /**
5
5
  * Edge Services API.
6
6
  */
7
7
  export declare class API extends ParentAPI {
8
+ listNodes: () => Promise<ListNodesResponse>;
8
9
  protected pageOfListPipelines: (request?: Readonly<ListPipelinesRequest>) => Promise<ListPipelinesResponse>;
9
10
  /**
10
11
  * List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
@@ -433,7 +434,7 @@ export declare class API extends ParentAPI {
433
434
  */
434
435
  deleteCurrentPlan: (request?: Readonly<DeleteCurrentPlanRequest>) => Promise<void>;
435
436
  /**
436
- * Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.).
437
+ * Billing information. Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.).
437
438
  *
438
439
  * @param request - The request {@link GetBillingRequest}
439
440
  * @returns A Promise of GetBillingResponse
@@ -1,5 +1,5 @@
1
1
  import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from "./content.gen.js";
2
- import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, 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, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage } from "./marshalling.gen.js";
2
+ import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, marshalSetRouteRulesRequest, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListNodesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage } from "./marshalling.gen.js";
3
3
  import { API as API$1, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
4
  //#region src/v1beta1/api.gen.ts
5
5
  const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
@@ -9,6 +9,10 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
9
9
  var API = class extends API$1 {
10
10
  constructor(..._args) {
11
11
  super(..._args);
12
+ this.listNodes = () => this.client.fetch({
13
+ method: "GET",
14
+ path: `/edge-services/v1beta1/nodes`
15
+ }, unmarshalListNodesResponse);
12
16
  this.pageOfListPipelines = (request = {}) => this.client.fetch({
13
17
  method: "GET",
14
18
  path: `/edge-services/v1beta1/pipelines`,
@@ -2,5 +2,5 @@ export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './constants.gen.js';
4
4
  export * from './marshalling.gen.js';
5
- export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteVPCEndpointRequest, DeleteWafStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetVPCEndpointRequest, 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, ListVPCEndpointsRequest, ListVPCEndpointsRequestOrderBy, ListVPCEndpointsResponse, 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, SetPipelineVPCEndpointsRequest, SetPipelineVPCEndpointsResponse, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, StageStatus, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, VPCEndpoint, WafStage, WafStageMode, } from './types.gen.js';
5
+ export type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteRouteStageRequest, DeleteTLSStageRequest, DeleteVPCEndpointRequest, DeleteWafStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetRouteStageRequest, GetTLSStageRequest, GetVPCEndpointRequest, GetWafStageRequest, HeadStageResponse, HeadStageResponseHeadStage, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListHeadStagesRequest, ListHeadStagesResponse, ListHeadStagesResponseHeadStage, ListNodesResponse, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListRouteRulesRequest, ListRouteRulesResponse, ListRouteStagesRequest, ListRouteStagesRequestOrderBy, ListRouteStagesResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, ListVPCEndpointsRequest, ListVPCEndpointsRequestOrderBy, ListVPCEndpointsResponse, ListWafStagesRequest, ListWafStagesRequestOrderBy, ListWafStagesResponse, Node, 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, SetPipelineVPCEndpointsRequest, SetPipelineVPCEndpointsResponse, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, StageStatus, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, VPCEndpoint, WafExclusionRule, WafStage, WafStageMode, } from './types.gen.js';
6
6
  export * as ValidationRules from './validation-rules.gen.js';
@@ -1,6 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, 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, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage } from "./marshalling.gen.js";
3
+ import { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListNodesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
5
  import { DNS_STAGE_TYPES, LB_ORIGIN_ERRORS, LIST_BACKEND_STAGES_REQUEST_ORDER_BIES, LIST_CACHE_STAGES_REQUEST_ORDER_BIES, LIST_DNS_STAGES_REQUEST_ORDER_BIES, LIST_PIPELINES_REQUEST_ORDER_BIES, LIST_PIPELINES_WITH_STAGES_REQUEST_ORDER_BIES, LIST_PURGE_REQUESTS_REQUEST_ORDER_BIES, LIST_ROUTE_STAGES_REQUEST_ORDER_BIES, LIST_TLS_STAGES_REQUEST_ORDER_BIES, LIST_VPC_ENDPOINTS_REQUEST_ORDER_BIES, LIST_WAF_STAGES_REQUEST_ORDER_BIES, PIPELINE_ERROR_CODES, PIPELINE_ERROR_SEVERITIES, PIPELINE_ERROR_STAGES, PIPELINE_ERROR_TYPES, PIPELINE_STATUSES, PLAN_NAMES, PURGE_REQUEST_STATUSES, RULE_HTTP_MATCH_HOST_FILTER_HOST_FILTER_TYPES, RULE_HTTP_MATCH_METHOD_FILTERS, RULE_HTTP_MATCH_PATH_FILTER_PATH_FILTER_TYPES, SEARCH_BACKEND_STAGES_REQUEST_ORDER_BIES, SEARCH_ROUTE_RULES_REQUEST_ORDER_BIES, SEARCH_WAF_STAGES_REQUEST_ORDER_BIES, STAGE_STATUSES, WAF_STAGE_MODES } from "./constants.gen.js";
6
6
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
@@ -75,6 +75,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
75
75
  unmarshalListCacheStagesResponse: () => unmarshalListCacheStagesResponse,
76
76
  unmarshalListDNSStagesResponse: () => unmarshalListDNSStagesResponse,
77
77
  unmarshalListHeadStagesResponse: () => unmarshalListHeadStagesResponse,
78
+ unmarshalListNodesResponse: () => unmarshalListNodesResponse,
78
79
  unmarshalListPipelinesResponse: () => unmarshalListPipelinesResponse,
79
80
  unmarshalListPipelinesWithStagesResponse: () => unmarshalListPipelinesWithStagesResponse,
80
81
  unmarshalListPlansResponse: () => unmarshalListPlansResponse,
@@ -96,4 +97,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
96
97
  unmarshalWafStage: () => unmarshalWafStage
97
98
  });
98
99
  //#endregion
99
- export { API, DNS_STAGE_TYPES, LB_ORIGIN_ERRORS, LIST_BACKEND_STAGES_REQUEST_ORDER_BIES, LIST_CACHE_STAGES_REQUEST_ORDER_BIES, LIST_DNS_STAGES_REQUEST_ORDER_BIES, LIST_PIPELINES_REQUEST_ORDER_BIES, LIST_PIPELINES_WITH_STAGES_REQUEST_ORDER_BIES, LIST_PURGE_REQUESTS_REQUEST_ORDER_BIES, LIST_ROUTE_STAGES_REQUEST_ORDER_BIES, LIST_TLS_STAGES_REQUEST_ORDER_BIES, LIST_VPC_ENDPOINTS_REQUEST_ORDER_BIES, LIST_WAF_STAGES_REQUEST_ORDER_BIES, PIPELINE_ERROR_CODES, PIPELINE_ERROR_SEVERITIES, PIPELINE_ERROR_STAGES, PIPELINE_ERROR_TYPES, PIPELINE_STATUSES, PIPELINE_TRANSIENT_STATUSES, PLAN_NAMES, PURGE_REQUEST_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES, RULE_HTTP_MATCH_HOST_FILTER_HOST_FILTER_TYPES, RULE_HTTP_MATCH_METHOD_FILTERS, RULE_HTTP_MATCH_PATH_FILTER_PATH_FILTER_TYPES, SEARCH_BACKEND_STAGES_REQUEST_ORDER_BIES, SEARCH_ROUTE_RULES_REQUEST_ORDER_BIES, SEARCH_WAF_STAGES_REQUEST_ORDER_BIES, STAGE_STATUSES, validation_rules_gen_exports as ValidationRules, WAF_STAGE_MODES, index_gen_exports, marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, 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, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage };
100
+ export { API, DNS_STAGE_TYPES, LB_ORIGIN_ERRORS, LIST_BACKEND_STAGES_REQUEST_ORDER_BIES, LIST_CACHE_STAGES_REQUEST_ORDER_BIES, LIST_DNS_STAGES_REQUEST_ORDER_BIES, LIST_PIPELINES_REQUEST_ORDER_BIES, LIST_PIPELINES_WITH_STAGES_REQUEST_ORDER_BIES, LIST_PURGE_REQUESTS_REQUEST_ORDER_BIES, LIST_ROUTE_STAGES_REQUEST_ORDER_BIES, LIST_TLS_STAGES_REQUEST_ORDER_BIES, LIST_VPC_ENDPOINTS_REQUEST_ORDER_BIES, LIST_WAF_STAGES_REQUEST_ORDER_BIES, PIPELINE_ERROR_CODES, PIPELINE_ERROR_SEVERITIES, PIPELINE_ERROR_STAGES, PIPELINE_ERROR_TYPES, PIPELINE_STATUSES, PIPELINE_TRANSIENT_STATUSES, PLAN_NAMES, PURGE_REQUEST_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES, RULE_HTTP_MATCH_HOST_FILTER_HOST_FILTER_TYPES, RULE_HTTP_MATCH_METHOD_FILTERS, RULE_HTTP_MATCH_PATH_FILTER_PATH_FILTER_TYPES, SEARCH_BACKEND_STAGES_REQUEST_ORDER_BIES, SEARCH_ROUTE_RULES_REQUEST_ORDER_BIES, SEARCH_WAF_STAGES_REQUEST_ORDER_BIES, STAGE_STATUSES, validation_rules_gen_exports as ValidationRules, WAF_STAGE_MODES, index_gen_exports, marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListNodesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage };
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { BackendStage, CacheStage, DNSStage, Pipeline, RouteStage, TLSStage, WafStage, PipelineStages, PurgeRequest, VPCEndpoint, AddRouteRulesResponse, CheckDomainResponse, CheckLbOriginResponse, CheckPEMChainResponse, GetBillingResponse, HeadStageResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListHeadStagesResponse, ListPipelinesResponse, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListRouteRulesResponse, ListRouteStagesResponse, ListTLSStagesResponse, ListVPCEndpointsResponse, ListWafStagesResponse, Plan, SetPipelineVPCEndpointsResponse, SetRouteRulesResponse, SetRouteRulesRequestRouteRule, AddRouteRulesRequest, CheckDomainRequest, CheckLbOriginRequest, CheckPEMChainRequest, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, SelectPlanRequest, SetHeadStageRequest, SetPipelineVPCEndpointsRequest, SetRouteRulesRequest, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest } from './types.gen.js';
2
+ import type { BackendStage, CacheStage, DNSStage, Pipeline, RouteStage, TLSStage, WafStage, PipelineStages, PurgeRequest, VPCEndpoint, AddRouteRulesResponse, CheckDomainResponse, CheckLbOriginResponse, CheckPEMChainResponse, GetBillingResponse, HeadStageResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListHeadStagesResponse, ListNodesResponse, ListPipelinesResponse, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListRouteRulesResponse, ListRouteStagesResponse, ListTLSStagesResponse, ListVPCEndpointsResponse, ListWafStagesResponse, Plan, SetPipelineVPCEndpointsResponse, SetRouteRulesResponse, SetRouteRulesRequestRouteRule, AddRouteRulesRequest, CheckDomainRequest, CheckLbOriginRequest, CheckPEMChainRequest, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateVPCEndpointRequest, CreateWafStageRequest, SelectPlanRequest, SetHeadStageRequest, SetPipelineVPCEndpointsRequest, SetRouteRulesRequest, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest } from './types.gen.js';
3
3
  export declare const unmarshalBackendStage: (data: unknown) => BackendStage;
4
4
  export declare const unmarshalCacheStage: (data: unknown) => CacheStage;
5
5
  export declare const unmarshalDNSStage: (data: unknown) => DNSStage;
@@ -20,6 +20,7 @@ export declare const unmarshalListBackendStagesResponse: (data: unknown) => List
20
20
  export declare const unmarshalListCacheStagesResponse: (data: unknown) => ListCacheStagesResponse;
21
21
  export declare const unmarshalListDNSStagesResponse: (data: unknown) => ListDNSStagesResponse;
22
22
  export declare const unmarshalListHeadStagesResponse: (data: unknown) => ListHeadStagesResponse;
23
+ export declare const unmarshalListNodesResponse: (data: unknown) => ListNodesResponse;
23
24
  export declare const unmarshalListPipelinesResponse: (data: unknown) => ListPipelinesResponse;
24
25
  export declare const unmarshalListPipelinesWithStagesResponse: (data: unknown) => ListPipelinesWithStagesResponse;
25
26
  export declare const unmarshalListPlansResponse: (data: unknown) => ListPlansResponse;
@@ -147,11 +147,16 @@ const unmarshalTLSStage = (data) => {
147
147
  wafStageId: data.waf_stage_id
148
148
  };
149
149
  };
150
+ const unmarshalWafExclusionRule = (data) => {
151
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafExclusionRule' failed as data isn't a dictionary.`);
152
+ return { ruleId: data.rule_id };
153
+ };
150
154
  const unmarshalWafStage = (data) => {
151
155
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WafStage' failed as data isn't a dictionary.`);
152
156
  return {
153
157
  backendStageId: data.backend_stage_id,
154
158
  createdAt: unmarshalDate(data.created_at),
159
+ exclusionRules: unmarshalArrayOfObject(data.exclusion_rules, unmarshalWafExclusionRule),
155
160
  id: data.id,
156
161
  mode: data.mode,
157
162
  paranoiaLevel: data.paranoia_level,
@@ -319,6 +324,17 @@ const unmarshalListHeadStagesResponse = (data) => {
319
324
  totalCount: data.total_count
320
325
  };
321
326
  };
327
+ const unmarshalNode = (data) => {
328
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
329
+ return { ip: data.ip };
330
+ };
331
+ const unmarshalListNodesResponse = (data) => {
332
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary.`);
333
+ return {
334
+ nodes: unmarshalArrayOfObject(data.nodes, unmarshalNode),
335
+ totalCount: data.total_count
336
+ };
337
+ };
322
338
  const unmarshalListPipelinesResponse = (data) => {
323
339
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`);
324
340
  return {
@@ -586,7 +602,9 @@ const marshalCreateVPCEndpointRequest = (request, defaults) => ({
586
602
  project_id: request.projectId ?? defaults.defaultProjectId,
587
603
  region: request.region ?? defaults.defaultRegion
588
604
  });
605
+ const marshalWafExclusionRule = (request, defaults) => ({ rule_id: request.ruleId });
589
606
  const marshalCreateWafStageRequest = (request, defaults) => ({
607
+ exclusion_rules: request.exclusionRules !== void 0 ? request.exclusionRules.map((elt) => marshalWafExclusionRule(elt, defaults)) : void 0,
590
608
  mode: request.mode,
591
609
  paranoia_level: request.paranoiaLevel,
592
610
  ...resolveOneOf([{
@@ -713,6 +731,7 @@ const marshalUpdateTLSStageRequest = (request, defaults) => ({
713
731
  ])
714
732
  });
715
733
  const marshalUpdateWafStageRequest = (request, defaults) => ({
734
+ exclusion_rules: request.exclusionRules !== void 0 ? request.exclusionRules.map((elt) => marshalWafExclusionRule(elt, defaults)) : void 0,
716
735
  mode: request.mode,
717
736
  paranoia_level: request.paranoiaLevel,
718
737
  ...resolveOneOf([{
@@ -721,4 +740,4 @@ const marshalUpdateWafStageRequest = (request, defaults) => ({
721
740
  }])
722
741
  });
723
742
  //#endregion
724
- export { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, 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, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage };
743
+ export { marshalAddRouteRulesRequest, marshalCheckDomainRequest, marshalCheckLbOriginRequest, marshalCheckPEMChainRequest, marshalCreateBackendStageRequest, marshalCreateCacheStageRequest, marshalCreateDNSStageRequest, marshalCreatePipelineRequest, marshalCreatePurgeRequestRequest, marshalCreateRouteStageRequest, marshalCreateTLSStageRequest, marshalCreateVPCEndpointRequest, marshalCreateWafStageRequest, marshalSelectPlanRequest, marshalSetHeadStageRequest, marshalSetPipelineVPCEndpointsRequest, marshalSetRouteRulesRequest, marshalSetRouteRulesRequestRouteRule, marshalUpdateBackendStageRequest, marshalUpdateCacheStageRequest, marshalUpdateDNSStageRequest, marshalUpdatePipelineRequest, marshalUpdateRouteStageRequest, marshalUpdateTLSStageRequest, marshalUpdateWafStageRequest, unmarshalAddRouteRulesResponse, unmarshalBackendStage, unmarshalCacheStage, unmarshalCheckDomainResponse, unmarshalCheckLbOriginResponse, unmarshalCheckPEMChainResponse, unmarshalDNSStage, unmarshalGetBillingResponse, unmarshalHeadStageResponse, unmarshalListBackendStagesResponse, unmarshalListCacheStagesResponse, unmarshalListDNSStagesResponse, unmarshalListHeadStagesResponse, unmarshalListNodesResponse, unmarshalListPipelinesResponse, unmarshalListPipelinesWithStagesResponse, unmarshalListPlansResponse, unmarshalListPurgeRequestsResponse, unmarshalListRouteRulesResponse, unmarshalListRouteStagesResponse, unmarshalListTLSStagesResponse, unmarshalListVPCEndpointsResponse, unmarshalListWafStagesResponse, unmarshalPipeline, unmarshalPipelineStages, unmarshalPlan, unmarshalPurgeRequest, unmarshalRouteStage, unmarshalSetPipelineVPCEndpointsResponse, unmarshalSetRouteRulesResponse, unmarshalTLSStage, unmarshalVPCEndpoint, unmarshalWafStage };
@@ -5,6 +5,16 @@ export declare const queriesMetadata: {
5
5
  readonly services: readonly [{
6
6
  readonly apiClass: 'API';
7
7
  readonly methods: readonly [{
8
+ readonly methodName: 'listNodes';
9
+ readonly protoName: 'ListNodes';
10
+ readonly paramsType: '';
11
+ readonly returnType: 'ListNodesResponse';
12
+ readonly returnTypeNamespace: '@scaleway/sdk-edge-services/v1beta1';
13
+ readonly isList: false;
14
+ readonly paginationType: 'none';
15
+ readonly isPrivate: false;
16
+ readonly description: '"';
17
+ }, {
8
18
  readonly methodName: 'listPipelines';
9
19
  readonly protoName: 'ListPipelines';
10
20
  readonly paramsType: 'ListPipelinesRequest';
@@ -6,6 +6,17 @@ const queriesMetadata = {
6
6
  services: [{
7
7
  apiClass: "API",
8
8
  methods: [
9
+ {
10
+ methodName: "listNodes",
11
+ protoName: "ListNodes",
12
+ paramsType: "",
13
+ returnType: "ListNodesResponse",
14
+ returnTypeNamespace: "@scaleway/sdk-edge-services/v1beta1",
15
+ isList: false,
16
+ paginationType: "none",
17
+ isPrivate: false,
18
+ description: "\""
19
+ },
9
20
  {
10
21
  methodName: "listPipelines",
11
22
  protoName: "ListPipelines",
@@ -118,6 +118,9 @@ export interface TLSSecret {
118
118
  */
119
119
  region: ScwRegion;
120
120
  }
121
+ export interface WafExclusionRule {
122
+ ruleId: number;
123
+ }
121
124
  export interface RuleHttpMatch {
122
125
  /**
123
126
  * HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are `get`, `post`, `put`, `patch`, `delete`, `head`, `options`. All methods will match if none is provided.
@@ -230,12 +233,12 @@ export interface DNSStage {
230
233
  */
231
234
  id: string;
232
235
  /**
233
- * Default Fully Qualified Domain Name attached to the stage.
236
+ * Default Fully Qualified Domain Name provided for the Pipeline.
234
237
  */
235
238
  defaultFqdn: string;
236
239
  defaultPrivateFqdn: string;
237
240
  /**
238
- * List of additional (custom) Fully Qualified Domain Names attached to the stage.
241
+ * Custom Fully Qualified Domain Names configured (only the first one is valid).
239
242
  */
240
243
  fqdns: string[];
241
244
  /**
@@ -449,6 +452,10 @@ export interface WafStage {
449
452
  * One-of ('next'): at most one of 'backendStageId' could be set.
450
453
  */
451
454
  backendStageId?: string;
455
+ /**
456
+ * List of OWASP® CRS rule IDs excluded from WAF.
457
+ */
458
+ exclusionRules: WafExclusionRule[];
452
459
  }
453
460
  export interface SetRouteRulesRequestRouteRule {
454
461
  /**
@@ -548,6 +555,9 @@ export interface ListHeadStagesResponseHeadStage {
548
555
  */
549
556
  dnsStageId?: string;
550
557
  }
558
+ export interface Node {
559
+ ip: string;
560
+ }
551
561
  export interface PipelineStages {
552
562
  pipeline?: Pipeline;
553
563
  dnsStages: DNSStage[];
@@ -759,7 +769,7 @@ export type CreateDNSStageRequest = {
759
769
  */
760
770
  pipelineId: string;
761
771
  /**
762
- * Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
772
+ * Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).
763
773
  */
764
774
  fqdns?: string[];
765
775
  /**
@@ -902,6 +912,10 @@ export type CreateWafStageRequest = {
902
912
  * Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
903
913
  */
904
914
  paranoiaLevel: number;
915
+ /**
916
+ * List of OWASP® CRS rule IDs excluded from WAF.
917
+ */
918
+ exclusionRules?: WafExclusionRule[];
905
919
  /**
906
920
  * ID of the backend stage to forward requests to after the WAF stage.
907
921
  *
@@ -1204,6 +1218,10 @@ export interface ListHeadStagesResponse {
1204
1218
  */
1205
1219
  totalCount: number;
1206
1220
  }
1221
+ export interface ListNodesResponse {
1222
+ nodes: Node[];
1223
+ totalCount: number;
1224
+ }
1207
1225
  export type ListPipelinesRequest = {
1208
1226
  /**
1209
1227
  * Sort order of pipelines in the response.
@@ -1599,7 +1617,7 @@ export type UpdateDNSStageRequest = {
1599
1617
  */
1600
1618
  dnsStageId: string;
1601
1619
  /**
1602
- * Fully Qualified Domain Name (in the format subdomain.example.com) attached to the stage.
1620
+ * Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).
1603
1621
  */
1604
1622
  fqdns?: string[];
1605
1623
  /**
@@ -1710,6 +1728,10 @@ export type UpdateWafStageRequest = {
1710
1728
  * Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
1711
1729
  */
1712
1730
  paranoiaLevel?: number;
1731
+ /**
1732
+ * List of OWASP® CRS rule IDs excluded from WAF.
1733
+ */
1734
+ exclusionRules?: WafExclusionRule[];
1713
1735
  /**
1714
1736
  * ID of the backend stage to forward requests to after the WAF stage.
1715
1737
  *
@@ -19,6 +19,11 @@ export declare const UpdateWafStageRequest: {
19
19
  lessThanOrEqual: number;
20
20
  };
21
21
  };
22
+ export declare const WafExclusionRule: {
23
+ ruleId: {
24
+ greaterThan: number;
25
+ };
26
+ };
22
27
  export declare const WafStage: {
23
28
  paranoiaLevel: {
24
29
  greaterThanOrEqual: number;
@@ -4,6 +4,7 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
4
4
  CreateWafStageRequest: () => CreateWafStageRequest,
5
5
  ListVPCEndpointsRequest: () => ListVPCEndpointsRequest,
6
6
  UpdateWafStageRequest: () => UpdateWafStageRequest,
7
+ WafExclusionRule: () => WafExclusionRule,
7
8
  WafStage: () => WafStage
8
9
  });
9
10
  const CreateWafStageRequest = { paranoiaLevel: {
@@ -21,9 +22,10 @@ const UpdateWafStageRequest = { paranoiaLevel: {
21
22
  greaterThanOrEqual: 1,
22
23
  lessThanOrEqual: 4
23
24
  } };
25
+ const WafExclusionRule = { ruleId: { greaterThan: 0 } };
24
26
  const WafStage = { paranoiaLevel: {
25
27
  greaterThanOrEqual: 1,
26
28
  lessThanOrEqual: 4
27
29
  } };
28
30
  //#endregion
29
- export { CreateWafStageRequest, ListVPCEndpointsRequest, UpdateWafStageRequest, WafStage, validation_rules_gen_exports };
31
+ export { CreateWafStageRequest, ListVPCEndpointsRequest, UpdateWafStageRequest, WafExclusionRule, 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.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "Scaleway SDK edge-services",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@scaleway/random-name": "6.0.2",
36
- "@scaleway/sdk-std": "2.8.0"
36
+ "@scaleway/sdk-std": "2.8.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.8.0"
40
+ "@scaleway/sdk-client": "^2.9.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.8.0"
43
+ "@scaleway/sdk-client": "^2.9.0"
44
44
  },
45
45
  "scripts": {
46
46
  "package:check": "pnpm publint",