@scaleway/sdk-edge-services 1.3.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/dist/v1beta1/api.gen.d.ts +2 -2
- package/dist/v1beta1/api.gen.js +66 -105
- package/dist/v1beta1/content.gen.js +3 -1
- package/dist/v1beta1/index.gen.d.ts +2 -2
- package/dist/v1beta1/marshalling.gen.js +159 -61
- package/dist/v1beta1/types.gen.d.ts +32 -6
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v1beta1/api.gen.cjs +0 -895
- package/dist/v1beta1/content.gen.cjs +0 -8
- package/dist/v1beta1/index.gen.cjs +0 -62
- package/dist/v1beta1/marshalling.gen.cjs +0 -812
- package/dist/v1beta1/validation-rules.gen.cjs +0 -23
|
@@ -8,6 +8,7 @@ const unmarshalScalewayLb = (data) => {
|
|
|
8
8
|
return {
|
|
9
9
|
domainName: data.domain_name,
|
|
10
10
|
frontendId: data.frontend_id,
|
|
11
|
+
hasWebsocket: data.has_websocket,
|
|
11
12
|
id: data.id,
|
|
12
13
|
isSsl: data.is_ssl,
|
|
13
14
|
zone: data.zone
|
|
@@ -35,6 +36,17 @@ const unmarshalScalewayS3BackendConfig = (data) => {
|
|
|
35
36
|
isWebsite: data.is_website
|
|
36
37
|
};
|
|
37
38
|
};
|
|
39
|
+
const unmarshalScalewayServerlessContainerBackendConfig = (data) => {
|
|
40
|
+
if (!isJSONObject(data)) {
|
|
41
|
+
throw new TypeError(
|
|
42
|
+
`Unmarshalling the type 'ScalewayServerlessContainerBackendConfig' failed as data isn't a dictionary.`
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
containerId: data.container_id,
|
|
47
|
+
region: data.region
|
|
48
|
+
};
|
|
49
|
+
};
|
|
38
50
|
const unmarshalBackendStage = (data) => {
|
|
39
51
|
if (!isJSONObject(data)) {
|
|
40
52
|
throw new TypeError(
|
|
@@ -47,6 +59,7 @@ const unmarshalBackendStage = (data) => {
|
|
|
47
59
|
pipelineId: data.pipeline_id,
|
|
48
60
|
scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : void 0,
|
|
49
61
|
scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
|
|
62
|
+
scalewayServerlessContainer: data.scaleway_serverless_container ? unmarshalScalewayServerlessContainerBackendConfig(data.scaleway_serverless_container) : void 0,
|
|
50
63
|
updatedAt: unmarshalDate(data.updated_at)
|
|
51
64
|
};
|
|
52
65
|
};
|
|
@@ -187,10 +200,7 @@ const unmarshalPipelineStages = (data) => {
|
|
|
187
200
|
);
|
|
188
201
|
}
|
|
189
202
|
return {
|
|
190
|
-
backendStages: unmarshalArrayOfObject(
|
|
191
|
-
data.backend_stages,
|
|
192
|
-
unmarshalBackendStage
|
|
193
|
-
),
|
|
203
|
+
backendStages: unmarshalArrayOfObject(data.backend_stages, unmarshalBackendStage),
|
|
194
204
|
cacheStages: unmarshalArrayOfObject(data.cache_stages, unmarshalCacheStage),
|
|
195
205
|
dnsStages: unmarshalArrayOfObject(data.dns_stages, unmarshalDNSStage),
|
|
196
206
|
pipeline: data.pipeline ? unmarshalPipeline(data.pipeline) : void 0,
|
|
@@ -331,10 +341,7 @@ const unmarshalGetBillingResponse = (data) => {
|
|
|
331
341
|
extraWafUsage: data.extra_waf_usage,
|
|
332
342
|
pipelineNumber: data.pipeline_number,
|
|
333
343
|
planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : void 0,
|
|
334
|
-
plansUsageDetails: unmarshalMapOfObject(
|
|
335
|
-
data.plans_usage_details,
|
|
336
|
-
unmarshalPlanUsageDetails
|
|
337
|
-
),
|
|
344
|
+
plansUsageDetails: unmarshalMapOfObject(data.plans_usage_details, unmarshalPlanUsageDetails),
|
|
338
345
|
totalCost: data.total_cost ? unmarshalMoney(data.total_cost) : void 0,
|
|
339
346
|
wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : void 0
|
|
340
347
|
};
|
|
@@ -409,10 +416,7 @@ const unmarshalListHeadStagesResponse = (data) => {
|
|
|
409
416
|
);
|
|
410
417
|
}
|
|
411
418
|
return {
|
|
412
|
-
headStages: unmarshalArrayOfObject(
|
|
413
|
-
data.head_stages,
|
|
414
|
-
unmarshalListHeadStagesResponseHeadStage
|
|
415
|
-
),
|
|
419
|
+
headStages: unmarshalArrayOfObject(data.head_stages, unmarshalListHeadStagesResponseHeadStage),
|
|
416
420
|
totalCount: data.total_count
|
|
417
421
|
};
|
|
418
422
|
};
|
|
@@ -456,10 +460,7 @@ const unmarshalListPurgeRequestsResponse = (data) => {
|
|
|
456
460
|
);
|
|
457
461
|
}
|
|
458
462
|
return {
|
|
459
|
-
purgeRequests: unmarshalArrayOfObject(
|
|
460
|
-
data.purge_requests,
|
|
461
|
-
unmarshalPurgeRequest
|
|
462
|
-
),
|
|
463
|
+
purgeRequests: unmarshalArrayOfObject(data.purge_requests, unmarshalPurgeRequest),
|
|
463
464
|
totalCount: data.total_count
|
|
464
465
|
};
|
|
465
466
|
};
|
|
@@ -543,16 +544,23 @@ const marshalSetRouteRulesRequestRouteRule = (request, defaults) => ({
|
|
|
543
544
|
}
|
|
544
545
|
]),
|
|
545
546
|
...resolveOneOf([
|
|
546
|
-
{
|
|
547
|
+
{
|
|
548
|
+
param: "backend_stage_id",
|
|
549
|
+
value: request.backendStageId
|
|
550
|
+
}
|
|
547
551
|
])
|
|
548
552
|
});
|
|
549
553
|
const marshalAddRouteRulesRequest = (request, defaults) => ({
|
|
550
|
-
route_rules: request.routeRules !== void 0 ? request.routeRules.map(
|
|
551
|
-
(elt) => marshalSetRouteRulesRequestRouteRule(elt)
|
|
552
|
-
) : void 0,
|
|
554
|
+
route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt)) : void 0,
|
|
553
555
|
...resolveOneOf([
|
|
554
|
-
{
|
|
555
|
-
|
|
556
|
+
{
|
|
557
|
+
param: "after_position",
|
|
558
|
+
value: request.afterPosition
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
param: "before_position",
|
|
562
|
+
value: request.beforePosition
|
|
563
|
+
}
|
|
556
564
|
])
|
|
557
565
|
});
|
|
558
566
|
const marshalCheckDomainRequest = (request, defaults) => ({
|
|
@@ -563,6 +571,7 @@ const marshalCheckDomainRequest = (request, defaults) => ({
|
|
|
563
571
|
const marshalScalewayLb = (request, defaults) => ({
|
|
564
572
|
domain_name: request.domainName,
|
|
565
573
|
frontend_id: request.frontendId,
|
|
574
|
+
has_websocket: request.hasWebsocket,
|
|
566
575
|
id: request.id,
|
|
567
576
|
is_ssl: request.isSsl,
|
|
568
577
|
zone: request.zone
|
|
@@ -582,7 +591,10 @@ const marshalCheckPEMChainRequest = (request, defaults) => ({
|
|
|
582
591
|
param: "secret",
|
|
583
592
|
value: request.secret !== void 0 ? marshalCheckPEMChainRequestSecretChain(request.secret) : void 0
|
|
584
593
|
},
|
|
585
|
-
{
|
|
594
|
+
{
|
|
595
|
+
param: "raw",
|
|
596
|
+
value: request.raw
|
|
597
|
+
}
|
|
586
598
|
])
|
|
587
599
|
});
|
|
588
600
|
const marshalScalewayLbBackendConfig = (request, defaults) => ({
|
|
@@ -593,6 +605,10 @@ const marshalScalewayS3BackendConfig = (request, defaults) => ({
|
|
|
593
605
|
bucket_region: request.bucketRegion,
|
|
594
606
|
is_website: request.isWebsite
|
|
595
607
|
});
|
|
608
|
+
const marshalScalewayServerlessContainerBackendConfig = (request, defaults) => ({
|
|
609
|
+
container_id: request.containerId,
|
|
610
|
+
region: request.region
|
|
611
|
+
});
|
|
596
612
|
const marshalCreateBackendStageRequest = (request, defaults) => ({
|
|
597
613
|
...resolveOneOf([
|
|
598
614
|
{
|
|
@@ -602,6 +618,10 @@ const marshalCreateBackendStageRequest = (request, defaults) => ({
|
|
|
602
618
|
{
|
|
603
619
|
param: "scaleway_lb",
|
|
604
620
|
value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
param: "scaleway_serverless_container",
|
|
624
|
+
value: request.scalewayServerlessContainer !== void 0 ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer) : void 0
|
|
605
625
|
}
|
|
606
626
|
])
|
|
607
627
|
});
|
|
@@ -609,17 +629,35 @@ const marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
|
609
629
|
fallback_ttl: request.fallbackTtl,
|
|
610
630
|
include_cookies: request.includeCookies,
|
|
611
631
|
...resolveOneOf([
|
|
612
|
-
{
|
|
613
|
-
|
|
614
|
-
|
|
632
|
+
{
|
|
633
|
+
param: "backend_stage_id",
|
|
634
|
+
value: request.backendStageId
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
param: "waf_stage_id",
|
|
638
|
+
value: request.wafStageId
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
param: "route_stage_id",
|
|
642
|
+
value: request.routeStageId
|
|
643
|
+
}
|
|
615
644
|
])
|
|
616
645
|
});
|
|
617
646
|
const marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
618
647
|
fqdns: request.fqdns,
|
|
619
648
|
...resolveOneOf([
|
|
620
|
-
{
|
|
621
|
-
|
|
622
|
-
|
|
649
|
+
{
|
|
650
|
+
param: "tls_stage_id",
|
|
651
|
+
value: request.tlsStageId
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
param: "cache_stage_id",
|
|
655
|
+
value: request.cacheStageId
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
param: "backend_stage_id",
|
|
659
|
+
value: request.backendStageId
|
|
660
|
+
}
|
|
623
661
|
])
|
|
624
662
|
});
|
|
625
663
|
const marshalCreatePipelineRequest = (request, defaults) => ({
|
|
@@ -630,12 +668,23 @@ const marshalCreatePipelineRequest = (request, defaults) => ({
|
|
|
630
668
|
const marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
631
669
|
pipeline_id: request.pipelineId,
|
|
632
670
|
...resolveOneOf([
|
|
633
|
-
{
|
|
634
|
-
|
|
671
|
+
{
|
|
672
|
+
param: "assets",
|
|
673
|
+
value: request.assets
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
param: "all",
|
|
677
|
+
value: request.all
|
|
678
|
+
}
|
|
635
679
|
])
|
|
636
680
|
});
|
|
637
681
|
const marshalCreateRouteStageRequest = (request, defaults) => ({
|
|
638
|
-
...resolveOneOf([
|
|
682
|
+
...resolveOneOf([
|
|
683
|
+
{
|
|
684
|
+
param: "waf_stage_id",
|
|
685
|
+
value: request.wafStageId
|
|
686
|
+
}
|
|
687
|
+
])
|
|
639
688
|
});
|
|
640
689
|
const marshalTLSSecret = (request, defaults) => ({
|
|
641
690
|
region: request.region,
|
|
@@ -645,17 +694,32 @@ const marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
|
645
694
|
managed_certificate: request.managedCertificate,
|
|
646
695
|
secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt)) : void 0,
|
|
647
696
|
...resolveOneOf([
|
|
648
|
-
{
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
697
|
+
{
|
|
698
|
+
param: "cache_stage_id",
|
|
699
|
+
value: request.cacheStageId
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
param: "backend_stage_id",
|
|
703
|
+
value: request.backendStageId
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
param: "route_stage_id",
|
|
707
|
+
value: request.routeStageId
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
param: "waf_stage_id",
|
|
711
|
+
value: request.wafStageId
|
|
712
|
+
}
|
|
652
713
|
])
|
|
653
714
|
});
|
|
654
715
|
const marshalCreateWafStageRequest = (request, defaults) => ({
|
|
655
716
|
mode: request.mode,
|
|
656
717
|
paranoia_level: request.paranoiaLevel,
|
|
657
718
|
...resolveOneOf([
|
|
658
|
-
{
|
|
719
|
+
{
|
|
720
|
+
param: "backend_stage_id",
|
|
721
|
+
value: request.backendStageId
|
|
722
|
+
}
|
|
659
723
|
])
|
|
660
724
|
});
|
|
661
725
|
const marshalSelectPlanRequest = (request, defaults) => ({
|
|
@@ -676,28 +740,20 @@ const marshalSetHeadStageRequest = (request, defaults) => ({
|
|
|
676
740
|
...resolveOneOf([
|
|
677
741
|
{
|
|
678
742
|
param: "add_new_head_stage",
|
|
679
|
-
value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(
|
|
680
|
-
request.addNewHeadStage
|
|
681
|
-
) : void 0
|
|
743
|
+
value: request.addNewHeadStage !== void 0 ? marshalSetHeadStageRequestAddNewHeadStage(request.addNewHeadStage) : void 0
|
|
682
744
|
},
|
|
683
745
|
{
|
|
684
746
|
param: "remove_head_stage",
|
|
685
|
-
value: request.removeHeadStage !== void 0 ? marshalSetHeadStageRequestRemoveHeadStage(
|
|
686
|
-
request.removeHeadStage
|
|
687
|
-
) : void 0
|
|
747
|
+
value: request.removeHeadStage !== void 0 ? marshalSetHeadStageRequestRemoveHeadStage(request.removeHeadStage) : void 0
|
|
688
748
|
},
|
|
689
749
|
{
|
|
690
750
|
param: "swap_head_stage",
|
|
691
|
-
value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(
|
|
692
|
-
request.swapHeadStage
|
|
693
|
-
) : void 0
|
|
751
|
+
value: request.swapHeadStage !== void 0 ? marshalSetHeadStageRequestSwapHeadStage(request.swapHeadStage) : void 0
|
|
694
752
|
}
|
|
695
753
|
])
|
|
696
754
|
});
|
|
697
755
|
const marshalSetRouteRulesRequest = (request, defaults) => ({
|
|
698
|
-
route_rules: request.routeRules !== void 0 ? request.routeRules.map(
|
|
699
|
-
(elt) => marshalSetRouteRulesRequestRouteRule(elt)
|
|
700
|
-
) : void 0
|
|
756
|
+
route_rules: request.routeRules !== void 0 ? request.routeRules.map((elt) => marshalSetRouteRulesRequestRouteRule(elt)) : void 0
|
|
701
757
|
});
|
|
702
758
|
const marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
703
759
|
pipeline_id: request.pipelineId,
|
|
@@ -709,6 +765,10 @@ const marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
|
709
765
|
{
|
|
710
766
|
param: "scaleway_lb",
|
|
711
767
|
value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
param: "scaleway_serverless_container",
|
|
771
|
+
value: request.scalewayServerlessContainer !== void 0 ? marshalScalewayServerlessContainerBackendConfig(request.scalewayServerlessContainer) : void 0
|
|
712
772
|
}
|
|
713
773
|
])
|
|
714
774
|
});
|
|
@@ -716,17 +776,35 @@ const marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
|
716
776
|
fallback_ttl: request.fallbackTtl,
|
|
717
777
|
include_cookies: request.includeCookies,
|
|
718
778
|
...resolveOneOf([
|
|
719
|
-
{
|
|
720
|
-
|
|
721
|
-
|
|
779
|
+
{
|
|
780
|
+
param: "backend_stage_id",
|
|
781
|
+
value: request.backendStageId
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
param: "waf_stage_id",
|
|
785
|
+
value: request.wafStageId
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
param: "route_stage_id",
|
|
789
|
+
value: request.routeStageId
|
|
790
|
+
}
|
|
722
791
|
])
|
|
723
792
|
});
|
|
724
793
|
const marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
725
794
|
fqdns: request.fqdns,
|
|
726
795
|
...resolveOneOf([
|
|
727
|
-
{
|
|
728
|
-
|
|
729
|
-
|
|
796
|
+
{
|
|
797
|
+
param: "tls_stage_id",
|
|
798
|
+
value: request.tlsStageId
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
param: "cache_stage_id",
|
|
802
|
+
value: request.cacheStageId
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
param: "backend_stage_id",
|
|
806
|
+
value: request.backendStageId
|
|
807
|
+
}
|
|
730
808
|
])
|
|
731
809
|
});
|
|
732
810
|
const marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
@@ -734,7 +812,12 @@ const marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
|
734
812
|
name: request.name
|
|
735
813
|
});
|
|
736
814
|
const marshalUpdateRouteStageRequest = (request, defaults) => ({
|
|
737
|
-
...resolveOneOf([
|
|
815
|
+
...resolveOneOf([
|
|
816
|
+
{
|
|
817
|
+
param: "waf_stage_id",
|
|
818
|
+
value: request.wafStageId
|
|
819
|
+
}
|
|
820
|
+
])
|
|
738
821
|
});
|
|
739
822
|
const marshalTLSSecretsConfig = (request, defaults) => ({
|
|
740
823
|
tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt))
|
|
@@ -743,17 +826,32 @@ const marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
|
743
826
|
managed_certificate: request.managedCertificate,
|
|
744
827
|
tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig) : void 0,
|
|
745
828
|
...resolveOneOf([
|
|
746
|
-
{
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
829
|
+
{
|
|
830
|
+
param: "cache_stage_id",
|
|
831
|
+
value: request.cacheStageId
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
param: "backend_stage_id",
|
|
835
|
+
value: request.backendStageId
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
param: "route_stage_id",
|
|
839
|
+
value: request.routeStageId
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
param: "waf_stage_id",
|
|
843
|
+
value: request.wafStageId
|
|
844
|
+
}
|
|
750
845
|
])
|
|
751
846
|
});
|
|
752
847
|
const marshalUpdateWafStageRequest = (request, defaults) => ({
|
|
753
848
|
mode: request.mode,
|
|
754
849
|
paranoia_level: request.paranoiaLevel,
|
|
755
850
|
...resolveOneOf([
|
|
756
|
-
{
|
|
851
|
+
{
|
|
852
|
+
param: "backend_stage_id",
|
|
853
|
+
value: request.backendStageId
|
|
854
|
+
}
|
|
757
855
|
])
|
|
758
856
|
});
|
|
759
857
|
export {
|
|
@@ -44,6 +44,10 @@ export interface ScalewayLb {
|
|
|
44
44
|
* Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer.
|
|
45
45
|
*/
|
|
46
46
|
domainName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Defines whether to forward websocket requests to the load balancer.
|
|
49
|
+
*/
|
|
50
|
+
hasWebsocket?: boolean;
|
|
47
51
|
}
|
|
48
52
|
export interface RuleHttpMatchPathFilter {
|
|
49
53
|
/**
|
|
@@ -75,6 +79,13 @@ export interface ScalewayS3BackendConfig {
|
|
|
75
79
|
*/
|
|
76
80
|
isWebsite?: boolean;
|
|
77
81
|
}
|
|
82
|
+
export interface ScalewayServerlessContainerBackendConfig {
|
|
83
|
+
/**
|
|
84
|
+
* Region to target. If none is passed will use default region from the config.
|
|
85
|
+
*/
|
|
86
|
+
region: ScwRegion;
|
|
87
|
+
containerId: string;
|
|
88
|
+
}
|
|
78
89
|
export interface PipelineError {
|
|
79
90
|
stage: PipelineErrorStage;
|
|
80
91
|
code: PipelineErrorCode;
|
|
@@ -122,15 +133,20 @@ export interface BackendStage {
|
|
|
122
133
|
/**
|
|
123
134
|
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
124
135
|
*
|
|
125
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
136
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
126
137
|
*/
|
|
127
138
|
scalewayS3?: ScalewayS3BackendConfig;
|
|
128
139
|
/**
|
|
129
140
|
* Scaleway Load Balancer origin linked to the backend stage.
|
|
130
141
|
*
|
|
131
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
142
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
132
143
|
*/
|
|
133
144
|
scalewayLb?: ScalewayLbBackendConfig;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
148
|
+
*/
|
|
149
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
134
150
|
}
|
|
135
151
|
export interface CacheStage {
|
|
136
152
|
/**
|
|
@@ -573,15 +589,20 @@ export type CreateBackendStageRequest = {
|
|
|
573
589
|
/**
|
|
574
590
|
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
575
591
|
*
|
|
576
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
592
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
577
593
|
*/
|
|
578
594
|
scalewayS3?: ScalewayS3BackendConfig;
|
|
579
595
|
/**
|
|
580
596
|
* Scaleway Load Balancer origin linked to the backend stage.
|
|
581
597
|
*
|
|
582
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
598
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
583
599
|
*/
|
|
584
600
|
scalewayLb?: ScalewayLbBackendConfig;
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
604
|
+
*/
|
|
605
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
585
606
|
};
|
|
586
607
|
export type CreateCacheStageRequest = {
|
|
587
608
|
/**
|
|
@@ -1301,19 +1322,24 @@ export type UpdateBackendStageRequest = {
|
|
|
1301
1322
|
/**
|
|
1302
1323
|
* Scaleway Object Storage origin bucket (S3) linked to the backend stage.
|
|
1303
1324
|
*
|
|
1304
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
1325
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
1305
1326
|
*/
|
|
1306
1327
|
scalewayS3?: ScalewayS3BackendConfig;
|
|
1307
1328
|
/**
|
|
1308
1329
|
* Scaleway Load Balancer origin linked to the backend stage.
|
|
1309
1330
|
*
|
|
1310
|
-
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb' could be set.
|
|
1331
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
1311
1332
|
*/
|
|
1312
1333
|
scalewayLb?: ScalewayLbBackendConfig;
|
|
1313
1334
|
/**
|
|
1314
1335
|
* Pipeline ID the Backend stage belongs to.
|
|
1315
1336
|
*/
|
|
1316
1337
|
pipelineId: string;
|
|
1338
|
+
/**
|
|
1339
|
+
*
|
|
1340
|
+
* One-of ('backendConfig'): at most one of 'scalewayS3', 'scalewayLb', 'scalewayServerlessContainer' could be set.
|
|
1341
|
+
*/
|
|
1342
|
+
scalewayServerlessContainer?: ScalewayServerlessContainerBackendConfig;
|
|
1317
1343
|
};
|
|
1318
1344
|
export type UpdateCacheStageRequest = {
|
|
1319
1345
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-edge-services",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Scaleway SDK edge-services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
|
+
"README.md",
|
|
7
8
|
"dist"
|
|
8
9
|
],
|
|
9
10
|
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/index.gen.d.ts",
|
|
13
|
-
"import": "./dist/index.gen.js",
|
|
14
|
-
"require": "./dist/index.gen.cjs",
|
|
15
14
|
"default": "./dist/index.gen.js"
|
|
16
15
|
},
|
|
17
16
|
"./*": {
|
|
18
17
|
"types": "./dist/*/index.gen.d.ts",
|
|
19
|
-
"import": "./dist/*/index.gen.js",
|
|
20
|
-
"require": "./dist/*/index.gen.cjs",
|
|
21
18
|
"default": "./dist/*/index.gen.js"
|
|
22
19
|
}
|
|
23
20
|
},
|
|
@@ -26,17 +23,17 @@
|
|
|
26
23
|
"directory": "packages_generated/edge-services"
|
|
27
24
|
},
|
|
28
25
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
26
|
+
"node": ">=20.19.6"
|
|
30
27
|
},
|
|
31
28
|
"dependencies": {
|
|
32
29
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "
|
|
30
|
+
"@scaleway/sdk-std": "2.1.0"
|
|
34
31
|
},
|
|
35
32
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
33
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
40
37
|
},
|
|
41
38
|
"scripts": {
|
|
42
39
|
"package:check": "pnpm publint",
|
package/dist/index.gen.cjs
DELETED