@scaleway/sdk 2.68.0 → 2.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +1 -0
  2. package/dist/api/audit_trail/v1alpha1/api.gen.js +1 -0
  3. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +5 -0
  4. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +5 -0
  5. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +50 -14
  6. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.cjs +3 -0
  7. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.d.ts +3 -0
  8. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.js +3 -0
  9. package/dist/api/billing/v2beta1/api.gen.cjs +9 -2
  10. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -2
  11. package/dist/api/billing/v2beta1/api.gen.js +9 -2
  12. package/dist/api/billing/v2beta1/types.gen.d.ts +1 -1
  13. package/dist/api/edge_services/v1beta1/api.gen.cjs +1 -1
  14. package/dist/api/edge_services/v1beta1/api.gen.js +1 -1
  15. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +1 -0
  16. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +2 -1
  17. package/dist/api/edge_services/v1beta1/marshalling.gen.js +1 -0
  18. package/dist/api/edge_services/v1beta1/types.gen.d.ts +104 -104
  19. package/dist/api/iam/v1alpha1/api.gen.cjs +7 -0
  20. package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
  21. package/dist/api/iam/v1alpha1/api.gen.js +8 -1
  22. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +51 -0
  24. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  25. package/dist/api/iam/v1alpha1/marshalling.gen.js +51 -0
  26. package/dist/api/iam/v1alpha1/types.gen.d.ts +24 -0
  27. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
  28. package/dist/api/secret/v1beta1/api.gen.cjs +2 -34
  29. package/dist/api/secret/v1beta1/api.gen.d.ts +3 -19
  30. package/dist/api/secret/v1beta1/api.gen.js +2 -34
  31. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  32. package/dist/api/secret/v1beta1/types.gen.d.ts +3 -19
  33. package/dist/api/tem/v1alpha1/types.gen.d.ts +5 -5
  34. package/dist/api/vpcgw/v1/api.gen.cjs +7 -0
  35. package/dist/api/vpcgw/v1/api.gen.d.ts +7 -0
  36. package/dist/api/vpcgw/v1/api.gen.js +7 -0
  37. package/dist/api/vpcgw/v1/types.gen.d.ts +1 -0
  38. package/dist/scw/constants.cjs +1 -1
  39. package/dist/scw/constants.d.ts +2 -2
  40. package/dist/scw/constants.js +1 -1
  41. package/dist/scw/errors/standard/quotas-exceeded-error.cjs +1 -1
  42. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +4 -4
  43. package/dist/scw/errors/standard/quotas-exceeded-error.js +1 -1
  44. package/package.json +2 -2
@@ -397,7 +397,7 @@ export interface TLSSecretsConfig {
397
397
  /** Secret information (from Secret Manager). */
398
398
  tlsSecrets: TLSSecret[];
399
399
  }
400
- export interface AddRouteRulesRequest {
400
+ export type AddRouteRulesRequest = {
401
401
  /** ID of the route stage to update. */
402
402
  routeStageId: string;
403
403
  /**
@@ -421,7 +421,7 @@ export interface AddRouteRulesRequest {
421
421
  * be set.
422
422
  */
423
423
  beforePosition?: number;
424
- }
424
+ };
425
425
  export interface AddRouteRulesResponse {
426
426
  /**
427
427
  * List of rules to be checked against every HTTP request. The first matching
@@ -431,33 +431,33 @@ export interface AddRouteRulesResponse {
431
431
  */
432
432
  routeRules: RouteRule[];
433
433
  }
434
- export interface CheckDomainRequest {
434
+ export type CheckDomainRequest = {
435
435
  projectId?: string;
436
436
  fqdn: string;
437
437
  cname: string;
438
- }
438
+ };
439
439
  export interface CheckDomainResponse {
440
440
  isValid: boolean;
441
441
  }
442
- export interface CheckLbOriginRequest {
442
+ export type CheckLbOriginRequest = {
443
443
  lb?: ScalewayLb;
444
- }
444
+ };
445
445
  export interface CheckLbOriginResponse {
446
446
  isValid: boolean;
447
447
  errorType: LbOriginError;
448
448
  }
449
- export interface CheckPEMChainRequest {
449
+ export type CheckPEMChainRequest = {
450
450
  projectId?: string;
451
451
  fqdn: string;
452
452
  /** One-of ('chain'): at most one of 'secret', 'raw' could be set. */
453
453
  secret?: CheckPEMChainRequestSecretChain;
454
454
  /** One-of ('chain'): at most one of 'secret', 'raw' could be set. */
455
455
  raw?: string;
456
- }
456
+ };
457
457
  export interface CheckPEMChainResponse {
458
458
  isValid: boolean;
459
459
  }
460
- export interface CreateBackendStageRequest {
460
+ export type CreateBackendStageRequest = {
461
461
  /** Pipeline ID the Backend stage belongs to. */
462
462
  pipelineId: string;
463
463
  /**
@@ -474,8 +474,8 @@ export interface CreateBackendStageRequest {
474
474
  * be set.
475
475
  */
476
476
  scalewayLb?: ScalewayLbBackendConfig;
477
- }
478
- export interface CreateCacheStageRequest {
477
+ };
478
+ export type CreateCacheStageRequest = {
479
479
  /** Pipeline ID the Cache stage belongs to. */
480
480
  pipelineId: string;
481
481
  /** Time To Live (TTL) in seconds. Defines how long content is cached. */
@@ -497,8 +497,8 @@ export interface CreateCacheStageRequest {
497
497
  * 'routeStageId' could be set.
498
498
  */
499
499
  routeStageId?: string;
500
- }
501
- export interface CreateDNSStageRequest {
500
+ };
501
+ export type CreateDNSStageRequest = {
502
502
  /** Pipeline ID the DNS stage belongs to. */
503
503
  pipelineId: string;
504
504
  /**
@@ -527,16 +527,16 @@ export interface CreateDNSStageRequest {
527
527
  * 'backendStageId' could be set.
528
528
  */
529
529
  backendStageId?: string;
530
- }
531
- export interface CreatePipelineRequest {
530
+ };
531
+ export type CreatePipelineRequest = {
532
532
  /** Project ID in which the pipeline will be created. */
533
533
  projectId?: string;
534
534
  /** Name of the pipeline. */
535
535
  name: string;
536
536
  /** Description of the pipeline. */
537
537
  description: string;
538
- }
539
- export interface CreatePurgeRequestRequest {
538
+ };
539
+ export type CreatePurgeRequestRequest = {
540
540
  /** Pipeline ID in which the purge request will be created. */
541
541
  pipelineId: string;
542
542
  /**
@@ -551,8 +551,8 @@ export interface CreatePurgeRequestRequest {
551
551
  * One-of ('target'): at most one of 'assets', 'all' could be set.
552
552
  */
553
553
  all?: boolean;
554
- }
555
- export interface CreateRouteStageRequest {
554
+ };
555
+ export type CreateRouteStageRequest = {
556
556
  /** Pipeline ID the route stage belongs to. */
557
557
  pipelineId: string;
558
558
  /**
@@ -562,8 +562,8 @@ export interface CreateRouteStageRequest {
562
562
  * One-of ('next'): at most one of 'wafStageId' could be set.
563
563
  */
564
564
  wafStageId?: string;
565
- }
566
- export interface CreateTLSStageRequest {
565
+ };
566
+ export type CreateTLSStageRequest = {
567
567
  /** Pipeline ID the TLS stage belongs to. */
568
568
  pipelineId: string;
569
569
  /** Secret (from Scaleway Secret Manager) containing your custom certificate. */
@@ -597,8 +597,8 @@ export interface CreateTLSStageRequest {
597
597
  * 'routeStageId', 'wafStageId' could be set.
598
598
  */
599
599
  wafStageId?: string;
600
- }
601
- export interface CreateWafStageRequest {
600
+ };
601
+ export type CreateWafStageRequest = {
602
602
  /** Pipeline ID the WAF stage belongs to. */
603
603
  pipelineId: string;
604
604
  /** Mode defining WAF behavior (`disable`/`log_only`/`enable`). */
@@ -616,45 +616,45 @@ export interface CreateWafStageRequest {
616
616
  * One-of ('next'): at most one of 'backendStageId' could be set.
617
617
  */
618
618
  backendStageId?: string;
619
- }
620
- export interface DeleteBackendStageRequest {
619
+ };
620
+ export type DeleteBackendStageRequest = {
621
621
  /** ID of the backend stage to delete. */
622
622
  backendStageId: string;
623
- }
624
- export interface DeleteCacheStageRequest {
623
+ };
624
+ export type DeleteCacheStageRequest = {
625
625
  /** ID of the cache stage to delete. */
626
626
  cacheStageId: string;
627
- }
628
- export interface DeleteCurrentPlanRequest {
627
+ };
628
+ export type DeleteCurrentPlanRequest = {
629
629
  projectId?: string;
630
- }
631
- export interface DeleteDNSStageRequest {
630
+ };
631
+ export type DeleteDNSStageRequest = {
632
632
  /** ID of the DNS stage to delete. */
633
633
  dnsStageId: string;
634
- }
635
- export interface DeletePipelineRequest {
634
+ };
635
+ export type DeletePipelineRequest = {
636
636
  /** ID of the pipeline to delete. */
637
637
  pipelineId: string;
638
- }
639
- export interface DeleteRouteStageRequest {
638
+ };
639
+ export type DeleteRouteStageRequest = {
640
640
  /** ID of the route stage to delete. */
641
641
  routeStageId: string;
642
- }
643
- export interface DeleteTLSStageRequest {
642
+ };
643
+ export type DeleteTLSStageRequest = {
644
644
  /** ID of the TLS stage to delete. */
645
645
  tlsStageId: string;
646
- }
647
- export interface DeleteWafStageRequest {
646
+ };
647
+ export type DeleteWafStageRequest = {
648
648
  /** ID of the WAF stage to delete. */
649
649
  wafStageId: string;
650
- }
651
- export interface GetBackendStageRequest {
650
+ };
651
+ export type GetBackendStageRequest = {
652
652
  /** ID of the requested backend stage. */
653
653
  backendStageId: string;
654
- }
655
- export interface GetBillingRequest {
654
+ };
655
+ export type GetBillingRequest = {
656
656
  projectId?: string;
657
- }
657
+ };
658
658
  export interface GetBillingResponse {
659
659
  /**
660
660
  * Information on the currently-selected, active Edge Services subscription
@@ -721,42 +721,42 @@ export interface GetBillingResponse {
721
721
  */
722
722
  totalCost?: Money;
723
723
  }
724
- export interface GetCacheStageRequest {
724
+ export type GetCacheStageRequest = {
725
725
  /** ID of the requested cache stage. */
726
726
  cacheStageId: string;
727
- }
728
- export interface GetCurrentPlanRequest {
727
+ };
728
+ export type GetCurrentPlanRequest = {
729
729
  projectId?: string;
730
- }
731
- export interface GetDNSStageRequest {
730
+ };
731
+ export type GetDNSStageRequest = {
732
732
  /** ID of the requested DNS stage. */
733
733
  dnsStageId: string;
734
- }
735
- export interface GetPipelineRequest {
734
+ };
735
+ export type GetPipelineRequest = {
736
736
  /** ID of the requested pipeline. */
737
737
  pipelineId: string;
738
- }
739
- export interface GetPurgeRequestRequest {
738
+ };
739
+ export type GetPurgeRequestRequest = {
740
740
  /** ID of the requested purge request. */
741
741
  purgeRequestId: string;
742
- }
743
- export interface GetRouteStageRequest {
742
+ };
743
+ export type GetRouteStageRequest = {
744
744
  /** ID of the requested route stage. */
745
745
  routeStageId: string;
746
- }
747
- export interface GetTLSStageRequest {
746
+ };
747
+ export type GetTLSStageRequest = {
748
748
  /** ID of the requested TLS stage. */
749
749
  tlsStageId: string;
750
- }
751
- export interface GetWafStageRequest {
750
+ };
751
+ export type GetWafStageRequest = {
752
752
  /** ID of the requested WAF stage. */
753
753
  wafStageId: string;
754
- }
754
+ };
755
755
  export interface HeadStageResponse {
756
756
  /** Modified or created head stage. */
757
757
  headStage?: HeadStageResponseHeadStage;
758
758
  }
759
- export interface ListBackendStagesRequest {
759
+ export type ListBackendStagesRequest = {
760
760
  /**
761
761
  * Pipeline ID to filter for. Only backend stages from this pipeline will be
762
762
  * returned.
@@ -783,14 +783,14 @@ export interface ListBackendStagesRequest {
783
783
  * will be returned.
784
784
  */
785
785
  lbId?: string;
786
- }
786
+ };
787
787
  export interface ListBackendStagesResponse {
788
788
  /** Paginated list of backend stages. */
789
789
  stages: BackendStage[];
790
790
  /** Count of all backend stages matching the requested criteria. */
791
791
  totalCount: number;
792
792
  }
793
- export interface ListCacheStagesRequest {
793
+ export type ListCacheStagesRequest = {
794
794
  /**
795
795
  * Pipeline ID to filter for. Only cache stages from this pipeline will be
796
796
  * returned.
@@ -802,14 +802,14 @@ export interface ListCacheStagesRequest {
802
802
  page?: number;
803
803
  /** Number of cache stages to return per page. */
804
804
  pageSize?: number;
805
- }
805
+ };
806
806
  export interface ListCacheStagesResponse {
807
807
  /** Paginated list of cache stages. */
808
808
  stages: CacheStage[];
809
809
  /** Count of all cache stages matching the requested criteria. */
810
810
  totalCount: number;
811
811
  }
812
- export interface ListDNSStagesRequest {
812
+ export type ListDNSStagesRequest = {
813
813
  /**
814
814
  * Pipeline ID to filter for. Only DNS stages from this pipeline will be
815
815
  * returned.
@@ -826,28 +826,28 @@ export interface ListDNSStagesRequest {
826
826
  * subdomain.example.com). Only DNS stages with this FQDN will be returned.
827
827
  */
828
828
  fqdn?: string;
829
- }
829
+ };
830
830
  export interface ListDNSStagesResponse {
831
831
  /** Paginated list of DNS stages. */
832
832
  stages: DNSStage[];
833
833
  /** Count of all DNS stages matching the requested criteria. */
834
834
  totalCount: number;
835
835
  }
836
- export interface ListHeadStagesRequest {
836
+ export type ListHeadStagesRequest = {
837
837
  /** ID of the pipeline to update. */
838
838
  pipelineId: string;
839
839
  /** Page number to return, from the paginated results. */
840
840
  page?: number;
841
841
  /** Number of head stages to return per page. */
842
842
  pageSize?: number;
843
- }
843
+ };
844
844
  export interface ListHeadStagesResponse {
845
845
  /** Number of head stages to return per page. */
846
846
  headStages: ListHeadStagesResponseHeadStage[];
847
847
  /** Count of all head stages matching the requested pipeline_id. */
848
848
  totalCount: number;
849
849
  }
850
- export interface ListPipelinesRequest {
850
+ export type ListPipelinesRequest = {
851
851
  /** Sort order of pipelines in the response. */
852
852
  orderBy?: ListPipelinesRequestOrderBy;
853
853
  /** Page number to return, from the paginated results. */
@@ -874,21 +874,21 @@ export interface ListPipelinesRequest {
874
874
  * returned.
875
875
  */
876
876
  hasBackendStageLb?: boolean;
877
- }
877
+ };
878
878
  export interface ListPipelinesResponse {
879
879
  /** Paginated list of pipelines. */
880
880
  pipelines: Pipeline[];
881
881
  /** Count of all pipelines matching the requested criteria. */
882
882
  totalCount: number;
883
883
  }
884
- export interface ListPipelinesWithStagesRequest {
884
+ export type ListPipelinesWithStagesRequest = {
885
885
  orderBy?: ListPipelinesWithStagesRequestOrderBy;
886
886
  page?: number;
887
887
  pageSize?: number;
888
888
  name?: string;
889
889
  organizationId?: string;
890
890
  projectId?: string;
891
- }
891
+ };
892
892
  export interface ListPipelinesWithStagesResponse {
893
893
  pipelines: PipelineStages[];
894
894
  totalCount: number;
@@ -897,7 +897,7 @@ export interface ListPlansResponse {
897
897
  totalCount: number;
898
898
  plans: PlanDetails[];
899
899
  }
900
- export interface ListPurgeRequestsRequest {
900
+ export type ListPurgeRequestsRequest = {
901
901
  /** Sort order of purge requests in the response. */
902
902
  orderBy?: ListPurgeRequestsRequestOrderBy;
903
903
  /** Page number to return, from the paginated results. */
@@ -919,20 +919,20 @@ export interface ListPurgeRequestsRequest {
919
919
  * returned.
920
920
  */
921
921
  pipelineId?: string;
922
- }
922
+ };
923
923
  export interface ListPurgeRequestsResponse {
924
924
  /** Paginated list of purge requests. */
925
925
  purgeRequests: PurgeRequest[];
926
926
  /** Count of all purge requests matching the requested criteria. */
927
927
  totalCount: number;
928
928
  }
929
- export interface ListRouteRulesRequest {
929
+ export type ListRouteRulesRequest = {
930
930
  /**
931
931
  * Route stage ID to filter for. Only route rules from this route stage will
932
932
  * be returned.
933
933
  */
934
934
  routeStageId: string;
935
- }
935
+ };
936
936
  export interface ListRouteRulesResponse {
937
937
  /**
938
938
  * List of rules to be checked against every HTTP request. The first matching
@@ -942,7 +942,7 @@ export interface ListRouteRulesResponse {
942
942
  */
943
943
  routeRules: RouteRule[];
944
944
  }
945
- export interface ListRouteStagesRequest {
945
+ export type ListRouteStagesRequest = {
946
946
  /**
947
947
  * Pipeline ID to filter for. Only route stages from this pipeline will be
948
948
  * returned.
@@ -954,14 +954,14 @@ export interface ListRouteStagesRequest {
954
954
  page?: number;
955
955
  /** Number of route stages to return per page. */
956
956
  pageSize?: number;
957
- }
957
+ };
958
958
  export interface ListRouteStagesResponse {
959
959
  /** Paginated list of summarized route stages. */
960
960
  stages: RouteStage[];
961
961
  /** Count of all route stages matching the requested criteria. */
962
962
  totalCount: number;
963
963
  }
964
- export interface ListTLSStagesRequest {
964
+ export type ListTLSStagesRequest = {
965
965
  /**
966
966
  * Pipeline ID to filter for. Only TLS stages from this pipeline will be
967
967
  * returned.
@@ -983,14 +983,14 @@ export interface ListTLSStagesRequest {
983
983
  * will be returned.
984
984
  */
985
985
  secretRegion?: string;
986
- }
986
+ };
987
987
  export interface ListTLSStagesResponse {
988
988
  /** Paginated list of TLS stages. */
989
989
  stages: TLSStage[];
990
990
  /** Count of all TLS stages matching the requested criteria. */
991
991
  totalCount: number;
992
992
  }
993
- export interface ListWafStagesRequest {
993
+ export type ListWafStagesRequest = {
994
994
  /**
995
995
  * Pipeline ID to filter for. Only WAF stages from this pipeline will be
996
996
  * returned.
@@ -1002,7 +1002,7 @@ export interface ListWafStagesRequest {
1002
1002
  page?: number;
1003
1003
  /** Number of WAF stages to return per page. */
1004
1004
  pageSize?: number;
1005
- }
1005
+ };
1006
1006
  export interface ListWafStagesResponse {
1007
1007
  /** Paginated list of WAF stages. */
1008
1008
  stages: WafStage[];
@@ -1012,7 +1012,7 @@ export interface ListWafStagesResponse {
1012
1012
  export interface Plan {
1013
1013
  planName: PlanName;
1014
1014
  }
1015
- export interface SearchBackendStagesRequest {
1015
+ export type SearchBackendStagesRequest = {
1016
1016
  orderBy?: SearchBackendStagesRequestOrderBy;
1017
1017
  page?: number;
1018
1018
  pageSize?: number;
@@ -1020,12 +1020,12 @@ export interface SearchBackendStagesRequest {
1020
1020
  bucketName?: string;
1021
1021
  bucketRegion?: string;
1022
1022
  lbId?: string;
1023
- }
1024
- export interface SelectPlanRequest {
1023
+ };
1024
+ export type SelectPlanRequest = {
1025
1025
  projectId?: string;
1026
1026
  planName?: PlanName;
1027
- }
1028
- export interface SetHeadStageRequest {
1027
+ };
1028
+ export type SetHeadStageRequest = {
1029
1029
  /** ID of the pipeline to update. */
1030
1030
  pipelineId: string;
1031
1031
  /**
@@ -1049,8 +1049,8 @@ export interface SetHeadStageRequest {
1049
1049
  * 'swapHeadStage' could be set.
1050
1050
  */
1051
1051
  swapHeadStage?: SetHeadStageRequestSwapHeadStage;
1052
- }
1053
- export interface SetRouteRulesRequest {
1052
+ };
1053
+ export type SetRouteRulesRequest = {
1054
1054
  /** ID of the route stage to update. */
1055
1055
  routeStageId: string;
1056
1056
  /**
@@ -1060,7 +1060,7 @@ export interface SetRouteRulesRequest {
1060
1060
  * `waf_stage_id`.
1061
1061
  */
1062
1062
  routeRules?: SetRouteRulesRequestRouteRule[];
1063
- }
1063
+ };
1064
1064
  export interface SetRouteRulesResponse {
1065
1065
  /**
1066
1066
  * List of rules to be checked against every HTTP request. The first matching
@@ -1070,7 +1070,7 @@ export interface SetRouteRulesResponse {
1070
1070
  */
1071
1071
  routeRules: RouteRule[];
1072
1072
  }
1073
- export interface UpdateBackendStageRequest {
1073
+ export type UpdateBackendStageRequest = {
1074
1074
  /** ID of the backend stage to update. */
1075
1075
  backendStageId: string;
1076
1076
  /**
@@ -1089,8 +1089,8 @@ export interface UpdateBackendStageRequest {
1089
1089
  scalewayLb?: ScalewayLbBackendConfig;
1090
1090
  /** Pipeline ID the Backend stage belongs to. */
1091
1091
  pipelineId: string;
1092
- }
1093
- export interface UpdateCacheStageRequest {
1092
+ };
1093
+ export type UpdateCacheStageRequest = {
1094
1094
  /** ID of the cache stage to update. */
1095
1095
  cacheStageId: string;
1096
1096
  /** Time To Live (TTL) in seconds. Defines how long content is cached. */
@@ -1112,8 +1112,8 @@ export interface UpdateCacheStageRequest {
1112
1112
  * 'routeStageId' could be set.
1113
1113
  */
1114
1114
  routeStageId?: string;
1115
- }
1116
- export interface UpdateDNSStageRequest {
1115
+ };
1116
+ export type UpdateDNSStageRequest = {
1117
1117
  /** ID of the DNS stage to update. */
1118
1118
  dnsStageId: string;
1119
1119
  /**
@@ -1142,16 +1142,16 @@ export interface UpdateDNSStageRequest {
1142
1142
  * 'backendStageId' could be set.
1143
1143
  */
1144
1144
  backendStageId?: string;
1145
- }
1146
- export interface UpdatePipelineRequest {
1145
+ };
1146
+ export type UpdatePipelineRequest = {
1147
1147
  /** ID of the pipeline to update. */
1148
1148
  pipelineId: string;
1149
1149
  /** Name of the pipeline. */
1150
1150
  name?: string;
1151
1151
  /** Description of the pipeline. */
1152
1152
  description?: string;
1153
- }
1154
- export interface UpdateRouteStageRequest {
1153
+ };
1154
+ export type UpdateRouteStageRequest = {
1155
1155
  /** ID of the route stage to update. */
1156
1156
  routeStageId: string;
1157
1157
  /**
@@ -1161,8 +1161,8 @@ export interface UpdateRouteStageRequest {
1161
1161
  * One-of ('next'): at most one of 'wafStageId' could be set.
1162
1162
  */
1163
1163
  wafStageId?: string;
1164
- }
1165
- export interface UpdateTLSStageRequest {
1164
+ };
1165
+ export type UpdateTLSStageRequest = {
1166
1166
  /** ID of the TLS stage to update. */
1167
1167
  tlsStageId: string;
1168
1168
  /** Secret (from Scaleway Secret-Manager) containing your custom certificate. */
@@ -1196,8 +1196,8 @@ export interface UpdateTLSStageRequest {
1196
1196
  * 'routeStageId', 'wafStageId' could be set.
1197
1197
  */
1198
1198
  wafStageId?: string;
1199
- }
1200
- export interface UpdateWafStageRequest {
1199
+ };
1200
+ export type UpdateWafStageRequest = {
1201
1201
  /** ID of the WAF stage to update. */
1202
1202
  wafStageId: string;
1203
1203
  /** Mode defining WAF behavior (`disable`/`log_only`/`enable`). */
@@ -1215,4 +1215,4 @@ export interface UpdateWafStageRequest {
1215
1215
  * One-of ('next'): at most one of 'backendStageId' could be set.
1216
1216
  */
1217
1217
  backendStageId?: string;
1218
- }
1218
+ };
@@ -324,6 +324,13 @@ class API extends api.API {
324
324
  },
325
325
  marshalling_gen.unmarshalListGracePeriodsResponse
326
326
  );
327
+ getUserConnections = (request) => this.client.fetch(
328
+ {
329
+ method: "GET",
330
+ path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/connections`
331
+ },
332
+ marshalling_gen.unmarshalGetUserConnectionsResponse
333
+ );
327
334
  pageOfListApplications = (request = {}) => this.client.fetch(
328
335
  {
329
336
  method: "GET",
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, MFAOTP, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse } from './types.gen';
2
+ import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, MFAOTP, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse } from './types.gen';
3
3
  /**
4
4
  * IAM API.
5
5
  *
@@ -165,6 +165,7 @@ export declare class API extends ParentAPI {
165
165
  * @returns A Promise of ListGracePeriodsResponse
166
166
  */
167
167
  listGracePeriods: (request?: Readonly<ListGracePeriodsRequest>) => Promise<ListGracePeriodsResponse>;
168
+ getUserConnections: (request: Readonly<GetUserConnectionsRequest>) => Promise<GetUserConnectionsResponse>;
168
169
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
169
170
  /**
170
171
  * List applications of an Organization. List the applications of an
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
2
2
  import { urlParams, validatePathParam, resolveOneOf } from "../../../helpers/marshalling.js";
3
3
  import "../../../vendor/base64/index.js";
4
4
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
5
- import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateUserPasswordRequest, unmarshalMFAOTP, marshalValidateUserMFAOTPRequest, unmarshalValidateUserMFAOTPResponse, unmarshalListGracePeriodsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog, unmarshalOrganizationSecuritySettings, marshalUpdateOrganizationSecuritySettingsRequest } from "./marshalling.gen.js";
5
+ import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateUserPasswordRequest, unmarshalMFAOTP, marshalValidateUserMFAOTPRequest, unmarshalValidateUserMFAOTPResponse, unmarshalListGracePeriodsResponse, unmarshalGetUserConnectionsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog, unmarshalOrganizationSecuritySettings, marshalUpdateOrganizationSecuritySettingsRequest } from "./marshalling.gen.js";
6
6
  const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
@@ -322,6 +322,13 @@ class API extends API$1 {
322
322
  },
323
323
  unmarshalListGracePeriodsResponse
324
324
  );
325
+ getUserConnections = (request) => this.client.fetch(
326
+ {
327
+ method: "GET",
328
+ path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/connections`
329
+ },
330
+ unmarshalGetUserConnectionsResponse
331
+ );
325
332
  pageOfListApplications = (request = {}) => this.client.fetch(
326
333
  {
327
334
  method: "GET",
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen.js';
2
- export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LocalityType, LockUserRequest, Log, LogAction, LogResourceType, MFAOTP, OrganizationSecuritySettings, PermissionSet, PermissionSetScopeType, Policy, Quotum, QuotumLimit, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, } from './types.gen';
2
+ export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserConnectionsResponseConnection, GetUserConnectionsResponseConnectionConnectedOrganization, GetUserConnectionsResponseConnectionConnectedUser, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LocalityType, LockUserRequest, Log, LogAction, LogResourceType, MFAOTP, OrganizationSecuritySettings, PermissionSet, PermissionSetScopeType, Policy, Quotum, QuotumLimit, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, } from './types.gen';
3
3
  export * as ValidationRules from './validation-rules.gen.js';