@scaleway/sdk 2.65.0 → 2.66.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 (77) hide show
  1. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
  3. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
  4. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
  5. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
  6. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  7. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
  8. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
  9. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
  10. package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
  11. package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
  12. package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
  13. package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
  14. package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
  15. package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
  16. package/dist/api/container/v1beta1/api.gen.cjs +5 -1
  17. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  18. package/dist/api/container/v1beta1/api.gen.js +5 -1
  19. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  20. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  21. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  22. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  24. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  25. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  26. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  27. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  28. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  29. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  30. package/dist/api/function/v1beta1/api.gen.js +5 -1
  31. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  32. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  33. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  34. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  35. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  36. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  37. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  38. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  39. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  40. package/dist/api/k8s/v1/api.gen.js +5 -1
  41. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  42. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  43. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  44. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  45. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  46. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  47. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  48. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  49. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  50. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  51. package/dist/api/rdb/v1/api.gen.js +5 -1
  52. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  53. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  54. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  55. package/dist/api/registry/v1/api.gen.cjs +5 -1
  56. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  57. package/dist/api/registry/v1/api.gen.js +5 -1
  58. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  59. package/dist/api/secret/v1beta1/api.gen.cjs +5 -1
  60. package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
  61. package/dist/api/secret/v1beta1/api.gen.js +5 -1
  62. package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
  63. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  64. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  65. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  66. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  67. package/dist/api/vpcgw/v1/api.gen.d.ts +2 -2
  68. package/dist/api/vpcgw/v1/types.gen.d.ts +44 -44
  69. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  70. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  71. package/dist/scw/client-settings.cjs +2 -2
  72. package/dist/scw/client-settings.d.ts +2 -2
  73. package/dist/scw/client-settings.js +2 -2
  74. package/dist/scw/constants.cjs +1 -1
  75. package/dist/scw/constants.d.ts +2 -2
  76. package/dist/scw/constants.js +1 -1
  77. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { Zone } from '../../../bridge';
1
+ import type { Zone as ScwZone } from '../../../bridge';
2
2
  export type DHCPEntryType = 'unknown' | 'reservation' | 'lease';
3
3
  export type GatewayNetworkStatus = 'unknown' | 'created' | 'attaching' | 'configuring' | 'ready' | 'detaching' | 'deleted';
4
4
  export type GatewayStatus = 'unknown' | 'stopped' | 'allocating' | 'configuring' | 'running' | 'stopping' | 'failed' | 'deleting' | 'deleted' | 'locked';
@@ -78,7 +78,7 @@ export interface DHCP {
78
78
  */
79
79
  dnsLocalName: string;
80
80
  /** Zone of this DHCP configuration. */
81
- zone: Zone;
81
+ zone: ScwZone;
82
82
  }
83
83
  export interface IpamConfig {
84
84
  /** Defines whether the default route is enabled on that Gateway Network. */
@@ -118,7 +118,7 @@ export interface GatewayNetwork {
118
118
  /** IPAM IP configuration used. */
119
119
  ipamConfig?: IpamConfig;
120
120
  /** Zone of the GatewayNetwork connection. */
121
- zone: Zone;
121
+ zone: ScwZone;
122
122
  }
123
123
  export interface GatewayType {
124
124
  /** Public Gateway type name. */
@@ -130,7 +130,7 @@ export interface GatewayType {
130
130
  */
131
131
  bandwidth: number;
132
132
  /** Zone the Public Gateway type is available in. */
133
- zone: Zone;
133
+ zone: ScwZone;
134
134
  }
135
135
  export interface IP {
136
136
  /** IP address ID. */
@@ -152,11 +152,11 @@ export interface IP {
152
152
  /** Public Gateway associated with the IP address. */
153
153
  gatewayId?: string;
154
154
  /** Zone of the IP address. */
155
- zone: Zone;
155
+ zone: ScwZone;
156
156
  }
157
157
  export type CreateDHCPRequest = {
158
158
  /** Zone to target. If none is passed will use default zone from the config. */
159
- zone?: Zone;
159
+ zone?: ScwZone;
160
160
  /** Project to create the DHCP configuration in. */
161
161
  projectId?: string;
162
162
  /** Subnet for the DHCP server. */
@@ -241,7 +241,7 @@ export interface DHCPEntry {
241
241
  /** Entry type, either static (DHCP reservation) or dynamic (DHCP lease). */
242
242
  type: DHCPEntryType;
243
243
  /** Zone of this DHCP entry. */
244
- zone: Zone;
244
+ zone: ScwZone;
245
245
  }
246
246
  export interface Gateway {
247
247
  /** ID of the gateway. */
@@ -292,7 +292,7 @@ export interface Gateway {
292
292
  */
293
293
  ipMobilityEnabled: boolean;
294
294
  /** Zone of the gateway. */
295
- zone: Zone;
295
+ zone: ScwZone;
296
296
  }
297
297
  export interface PATRule {
298
298
  /** PAT rule ID. */
@@ -312,7 +312,7 @@ export interface PATRule {
312
312
  /** Protocol the rule applies to. */
313
313
  protocol: PATRuleProtocol;
314
314
  /** Zone of the PAT rule. */
315
- zone: Zone;
315
+ zone: ScwZone;
316
316
  }
317
317
  export interface SetDHCPEntriesRequestEntry {
318
318
  /**
@@ -344,7 +344,7 @@ export interface UpdateGatewayNetworkRequestIpamConfig {
344
344
  }
345
345
  export type CreateDHCPEntryRequest = {
346
346
  /** Zone to target. If none is passed will use default zone from the config. */
347
- zone?: Zone;
347
+ zone?: ScwZone;
348
348
  /** GatewayNetwork on which to create a DHCP reservation. */
349
349
  gatewayNetworkId: string;
350
350
  /** MAC address to give a static entry to. */
@@ -354,7 +354,7 @@ export type CreateDHCPEntryRequest = {
354
354
  };
355
355
  export type CreateGatewayNetworkRequest = {
356
356
  /** Zone to target. If none is passed will use default zone from the config. */
357
- zone?: Zone;
357
+ zone?: ScwZone;
358
358
  /** Public Gateway to connect. */
359
359
  gatewayId: string;
360
360
  /** Private Network to connect. */
@@ -401,7 +401,7 @@ export type CreateGatewayNetworkRequest = {
401
401
  };
402
402
  export type CreateGatewayRequest = {
403
403
  /** Zone to target. If none is passed will use default zone from the config. */
404
- zone?: Zone;
404
+ zone?: ScwZone;
405
405
  /** Scaleway Project to create the gateway in. */
406
406
  projectId?: string;
407
407
  /** Name for the gateway. */
@@ -426,7 +426,7 @@ export type CreateGatewayRequest = {
426
426
  };
427
427
  export type CreateIPRequest = {
428
428
  /** Zone to target. If none is passed will use default zone from the config. */
429
- zone?: Zone;
429
+ zone?: ScwZone;
430
430
  /** Project to create the IP address in. */
431
431
  projectId?: string;
432
432
  /** Tags to give to the IP address. */
@@ -434,7 +434,7 @@ export type CreateIPRequest = {
434
434
  };
435
435
  export type CreatePATRuleRequest = {
436
436
  /** Zone to target. If none is passed will use default zone from the config. */
437
- zone?: Zone;
437
+ zone?: ScwZone;
438
438
  /** ID of the Gateway on which to create the rule. */
439
439
  gatewayId: string;
440
440
  /** Public port to listen on. */
@@ -448,19 +448,19 @@ export type CreatePATRuleRequest = {
448
448
  };
449
449
  export type DeleteDHCPEntryRequest = {
450
450
  /** Zone to target. If none is passed will use default zone from the config. */
451
- zone?: Zone;
451
+ zone?: ScwZone;
452
452
  /** ID of the DHCP entry to delete. */
453
453
  dhcpEntryId: string;
454
454
  };
455
455
  export type DeleteDHCPRequest = {
456
456
  /** Zone to target. If none is passed will use default zone from the config. */
457
- zone?: Zone;
457
+ zone?: ScwZone;
458
458
  /** DHCP configuration ID to delete. */
459
459
  dhcpId: string;
460
460
  };
461
461
  export type DeleteGatewayNetworkRequest = {
462
462
  /** Zone to target. If none is passed will use default zone from the config. */
463
- zone?: Zone;
463
+ zone?: ScwZone;
464
464
  /** ID of the GatewayNetwork to delete. */
465
465
  gatewayNetworkId: string;
466
466
  /**
@@ -471,7 +471,7 @@ export type DeleteGatewayNetworkRequest = {
471
471
  };
472
472
  export type DeleteGatewayRequest = {
473
473
  /** Zone to target. If none is passed will use default zone from the config. */
474
- zone?: Zone;
474
+ zone?: ScwZone;
475
475
  /** ID of the gateway to delete. */
476
476
  gatewayId: string;
477
477
  /**
@@ -482,61 +482,61 @@ export type DeleteGatewayRequest = {
482
482
  };
483
483
  export type DeleteIPRequest = {
484
484
  /** Zone to target. If none is passed will use default zone from the config. */
485
- zone?: Zone;
485
+ zone?: ScwZone;
486
486
  /** ID of the IP address to delete. */
487
487
  ipId: string;
488
488
  };
489
489
  export type DeletePATRuleRequest = {
490
490
  /** Zone to target. If none is passed will use default zone from the config. */
491
- zone?: Zone;
491
+ zone?: ScwZone;
492
492
  /** ID of the PAT rule to delete. */
493
493
  patRuleId: string;
494
494
  };
495
495
  export type EnableIPMobilityRequest = {
496
496
  /** Zone to target. If none is passed will use default zone from the config. */
497
- zone?: Zone;
497
+ zone?: ScwZone;
498
498
  /** ID of the gateway to upgrade to IP mobility. */
499
499
  gatewayId: string;
500
500
  };
501
501
  export type GetDHCPEntryRequest = {
502
502
  /** Zone to target. If none is passed will use default zone from the config. */
503
- zone?: Zone;
503
+ zone?: ScwZone;
504
504
  /** ID of the DHCP entry to fetch. */
505
505
  dhcpEntryId: string;
506
506
  };
507
507
  export type GetDHCPRequest = {
508
508
  /** Zone to target. If none is passed will use default zone from the config. */
509
- zone?: Zone;
509
+ zone?: ScwZone;
510
510
  /** ID of the DHCP configuration to fetch. */
511
511
  dhcpId: string;
512
512
  };
513
513
  export type GetGatewayNetworkRequest = {
514
514
  /** Zone to target. If none is passed will use default zone from the config. */
515
- zone?: Zone;
515
+ zone?: ScwZone;
516
516
  /** ID of the GatewayNetwork to fetch. */
517
517
  gatewayNetworkId: string;
518
518
  };
519
519
  export type GetGatewayRequest = {
520
520
  /** Zone to target. If none is passed will use default zone from the config. */
521
- zone?: Zone;
521
+ zone?: ScwZone;
522
522
  /** ID of the gateway to fetch. */
523
523
  gatewayId: string;
524
524
  };
525
525
  export type GetIPRequest = {
526
526
  /** Zone to target. If none is passed will use default zone from the config. */
527
- zone?: Zone;
527
+ zone?: ScwZone;
528
528
  /** ID of the IP address to get. */
529
529
  ipId: string;
530
530
  };
531
531
  export type GetPATRuleRequest = {
532
532
  /** Zone to target. If none is passed will use default zone from the config. */
533
- zone?: Zone;
533
+ zone?: ScwZone;
534
534
  /** ID of the PAT rule to get. */
535
535
  patRuleId: string;
536
536
  };
537
537
  export type ListDHCPEntriesRequest = {
538
538
  /** Zone to target. If none is passed will use default zone from the config. */
539
- zone?: Zone;
539
+ zone?: ScwZone;
540
540
  /** Order in which to return results. */
541
541
  orderBy?: ListDHCPEntriesRequestOrderBy;
542
542
  /** Page number. */
@@ -562,7 +562,7 @@ export interface ListDHCPEntriesResponse {
562
562
  }
563
563
  export type ListDHCPsRequest = {
564
564
  /** Zone to target. If none is passed will use default zone from the config. */
565
- zone?: Zone;
565
+ zone?: ScwZone;
566
566
  /** Order in which to return results. */
567
567
  orderBy?: ListDHCPsRequestOrderBy;
568
568
  /** Page number. */
@@ -592,7 +592,7 @@ export interface ListDHCPsResponse {
592
592
  }
593
593
  export type ListGatewayNetworksRequest = {
594
594
  /** Zone to target. If none is passed will use default zone from the config. */
595
- zone?: Zone;
595
+ zone?: ScwZone;
596
596
  /** Order in which to return results. */
597
597
  orderBy?: ListGatewayNetworksRequestOrderBy;
598
598
  /** Page number. */
@@ -621,7 +621,7 @@ export interface ListGatewayNetworksResponse {
621
621
  }
622
622
  export type ListGatewayTypesRequest = {
623
623
  /** Zone to target. If none is passed will use default zone from the config. */
624
- zone?: Zone;
624
+ zone?: ScwZone;
625
625
  };
626
626
  export interface ListGatewayTypesResponse {
627
627
  /** Available types of Public Gateway. */
@@ -629,7 +629,7 @@ export interface ListGatewayTypesResponse {
629
629
  }
630
630
  export type ListGatewaysRequest = {
631
631
  /** Zone to target. If none is passed will use default zone from the config. */
632
- zone?: Zone;
632
+ zone?: ScwZone;
633
633
  /** Order in which to return results. */
634
634
  orderBy?: ListGatewaysRequestOrderBy;
635
635
  /** Page number to return. */
@@ -662,7 +662,7 @@ export interface ListGatewaysResponse {
662
662
  }
663
663
  export type ListIPsRequest = {
664
664
  /** Zone to target. If none is passed will use default zone from the config. */
665
- zone?: Zone;
665
+ zone?: ScwZone;
666
666
  /** Order in which to return results. */
667
667
  orderBy?: ListIPsRequestOrderBy;
668
668
  /** Page number. */
@@ -688,7 +688,7 @@ export interface ListIPsResponse {
688
688
  }
689
689
  export type ListPATRulesRequest = {
690
690
  /** Zone to target. If none is passed will use default zone from the config. */
691
- zone?: Zone;
691
+ zone?: ScwZone;
692
692
  /** Order in which to return results. */
693
693
  orderBy?: ListPATRulesRequestOrderBy;
694
694
  /** Page number. */
@@ -710,13 +710,13 @@ export interface ListPATRulesResponse {
710
710
  }
711
711
  export type RefreshSSHKeysRequest = {
712
712
  /** Zone to target. If none is passed will use default zone from the config. */
713
- zone?: Zone;
713
+ zone?: ScwZone;
714
714
  /** ID of the gateway to refresh SSH keys on. */
715
715
  gatewayId: string;
716
716
  };
717
717
  export type SetDHCPEntriesRequest = {
718
718
  /** Zone to target. If none is passed will use default zone from the config. */
719
- zone?: Zone;
719
+ zone?: ScwZone;
720
720
  /** ID of the Gateway Network on which to set DHCP reservation list. */
721
721
  gatewayNetworkId: string;
722
722
  /** New list of DHCP reservations. */
@@ -728,7 +728,7 @@ export interface SetDHCPEntriesResponse {
728
728
  }
729
729
  export type SetPATRulesRequest = {
730
730
  /** Zone to target. If none is passed will use default zone from the config. */
731
- zone?: Zone;
731
+ zone?: ScwZone;
732
732
  /** ID of the gateway on which to set the PAT rules. */
733
733
  gatewayId: string;
734
734
  /** New list of PAT rules. */
@@ -740,7 +740,7 @@ export interface SetPATRulesResponse {
740
740
  }
741
741
  export type UpdateDHCPEntryRequest = {
742
742
  /** Zone to target. If none is passed will use default zone from the config. */
743
- zone?: Zone;
743
+ zone?: ScwZone;
744
744
  /** ID of the DHCP entry to update. */
745
745
  dhcpEntryId: string;
746
746
  /** New IP address to give to the device. */
@@ -748,7 +748,7 @@ export type UpdateDHCPEntryRequest = {
748
748
  };
749
749
  export type UpdateDHCPRequest = {
750
750
  /** Zone to target. If none is passed will use default zone from the config. */
751
- zone?: Zone;
751
+ zone?: ScwZone;
752
752
  /** DHCP configuration to update. */
753
753
  dhcpId: string;
754
754
  /** Subnet for the DHCP server. */
@@ -811,7 +811,7 @@ export type UpdateDHCPRequest = {
811
811
  };
812
812
  export type UpdateGatewayNetworkRequest = {
813
813
  /** Zone to target. If none is passed will use default zone from the config. */
814
- zone?: Zone;
814
+ zone?: ScwZone;
815
815
  /** ID of the GatewayNetwork to update. */
816
816
  gatewayNetworkId: string;
817
817
  /** Note: this setting is ignored when passing `ipam_config`. */
@@ -848,7 +848,7 @@ export type UpdateGatewayNetworkRequest = {
848
848
  };
849
849
  export type UpdateGatewayRequest = {
850
850
  /** Zone to target. If none is passed will use default zone from the config. */
851
- zone?: Zone;
851
+ zone?: ScwZone;
852
852
  /** ID of the gateway to update. */
853
853
  gatewayId: string;
854
854
  /** Name for the gateway. */
@@ -869,7 +869,7 @@ export type UpdateGatewayRequest = {
869
869
  };
870
870
  export type UpdateIPRequest = {
871
871
  /** Zone to target. If none is passed will use default zone from the config. */
872
- zone?: Zone;
872
+ zone?: ScwZone;
873
873
  /** ID of the IP address to update. */
874
874
  ipId: string;
875
875
  /** Tags to give to the IP address. */
@@ -881,7 +881,7 @@ export type UpdateIPRequest = {
881
881
  };
882
882
  export type UpdatePATRuleRequest = {
883
883
  /** Zone to target. If none is passed will use default zone from the config. */
884
- zone?: Zone;
884
+ zone?: ScwZone;
885
885
  /** ID of the PAT rule to update. */
886
886
  patRuleId: string;
887
887
  /** Public port to listen on. */
@@ -895,7 +895,7 @@ export type UpdatePATRuleRequest = {
895
895
  };
896
896
  export type UpgradeGatewayRequest = {
897
897
  /** Zone to target. If none is passed will use default zone from the config. */
898
- zone?: Zone;
898
+ zone?: ScwZone;
899
899
  /** ID of the gateway to upgrade. */
900
900
  gatewayId: string;
901
901
  /** Gateway type (commercial offer). */
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { WaitForOptions, Zone } from '../../../bridge';
2
+ import type { Zone as ScwZone, WaitForOptions } from '../../../bridge';
3
3
  import type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteBastionAllowedIPsRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPatRulesRequest, ListPatRulesResponse, PatRule, RefreshSSHKeysRequest, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
4
4
  /**
5
5
  * Public Gateways API.
@@ -8,7 +8,7 @@ import type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateG
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available zones of the API. */
11
- static readonly LOCALITIES: Zone[];
11
+ static readonly LOCALITIES: ScwZone[];
12
12
  protected pageOfListGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse>;
13
13
  /**
14
14
  * List Public Gateways. List Public Gateways in a given Scaleway Organization
@@ -1,4 +1,4 @@
1
- import type { Zone } from '../../../bridge';
1
+ import type { Zone as ScwZone } from '../../../bridge';
2
2
  export type GatewayNetworkStatus = 'unknown_status' | 'created' | 'attaching' | 'configuring' | 'ready' | 'detaching';
3
3
  export type GatewayStatus = 'unknown_status' | 'stopped' | 'allocating' | 'configuring' | 'running' | 'stopping' | 'failed' | 'deleting' | 'locked';
4
4
  export type ListGatewayNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'status_asc' | 'status_desc';
@@ -34,7 +34,7 @@ export interface GatewayNetwork {
34
34
  /** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */
35
35
  ipamIpId: string;
36
36
  /** Zone of the GatewayNetwork connection. */
37
- zone: Zone;
37
+ zone: ScwZone;
38
38
  }
39
39
  export interface IP {
40
40
  /** IP address ID. */
@@ -56,7 +56,7 @@ export interface IP {
56
56
  /** Public Gateway associated with the IP address. */
57
57
  gatewayId?: string;
58
58
  /** Zone of the IP address. */
59
- zone: Zone;
59
+ zone: ScwZone;
60
60
  }
61
61
  export interface GatewayType {
62
62
  /** Public Gateway type name. */
@@ -68,7 +68,7 @@ export interface GatewayType {
68
68
  */
69
69
  bandwidth: number;
70
70
  /** Zone the Public Gateway type is available in. */
71
- zone: Zone;
71
+ zone: ScwZone;
72
72
  }
73
73
  export interface Gateway {
74
74
  /** ID of the gateway. */
@@ -113,7 +113,7 @@ export interface Gateway {
113
113
  /** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. */
114
114
  bastionAllowedIps: string[];
115
115
  /** Zone of the gateway. */
116
- zone: Zone;
116
+ zone: ScwZone;
117
117
  }
118
118
  export interface PatRule {
119
119
  /** PAT rule ID. */
@@ -133,7 +133,7 @@ export interface PatRule {
133
133
  /** Protocol the rule applies to. */
134
134
  protocol: PatRuleProtocol;
135
135
  /** Zone of the PAT rule. */
136
- zone: Zone;
136
+ zone: ScwZone;
137
137
  }
138
138
  export interface SetPatRulesRequestRule {
139
139
  /**
@@ -150,7 +150,7 @@ export interface SetPatRulesRequestRule {
150
150
  }
151
151
  export type AddBastionAllowedIPsRequest = {
152
152
  /** Zone to target. If none is passed will use default zone from the config. */
153
- zone?: Zone;
153
+ zone?: ScwZone;
154
154
  /** ID of the gateway to add the allowed IP range to. */
155
155
  gatewayId: string;
156
156
  /** IP range allowed to connect to the SSH bastion. */
@@ -162,7 +162,7 @@ export interface AddBastionAllowedIPsResponse {
162
162
  }
163
163
  export type CreateGatewayNetworkRequest = {
164
164
  /** Zone to target. If none is passed will use default zone from the config. */
165
- zone?: Zone;
165
+ zone?: ScwZone;
166
166
  /** Public Gateway to connect. */
167
167
  gatewayId: string;
168
168
  /** Private Network to connect. */
@@ -176,7 +176,7 @@ export type CreateGatewayNetworkRequest = {
176
176
  };
177
177
  export type CreateGatewayRequest = {
178
178
  /** Zone to target. If none is passed will use default zone from the config. */
179
- zone?: Zone;
179
+ zone?: ScwZone;
180
180
  /** Scaleway Project to create the gateway in. */
181
181
  projectId?: string;
182
182
  /** Name for the gateway. */
@@ -196,7 +196,7 @@ export type CreateGatewayRequest = {
196
196
  };
197
197
  export type CreateIPRequest = {
198
198
  /** Zone to target. If none is passed will use default zone from the config. */
199
- zone?: Zone;
199
+ zone?: ScwZone;
200
200
  /** Project to create the IP address in. */
201
201
  projectId?: string;
202
202
  /** Tags to give to the IP address. */
@@ -204,7 +204,7 @@ export type CreateIPRequest = {
204
204
  };
205
205
  export type CreatePatRuleRequest = {
206
206
  /** Zone to target. If none is passed will use default zone from the config. */
207
- zone?: Zone;
207
+ zone?: ScwZone;
208
208
  /** ID of the Gateway on which to create the rule. */
209
209
  gatewayId: string;
210
210
  /** Public port to listen on. */
@@ -218,7 +218,7 @@ export type CreatePatRuleRequest = {
218
218
  };
219
219
  export type DeleteBastionAllowedIPsRequest = {
220
220
  /** Zone to target. If none is passed will use default zone from the config. */
221
- zone?: Zone;
221
+ zone?: ScwZone;
222
222
  /** ID of the gateway on which to delete the allowed IP range. */
223
223
  gatewayId: string;
224
224
  /** IP range to delete from SSH bastion's list of allowed IPs. */
@@ -226,13 +226,13 @@ export type DeleteBastionAllowedIPsRequest = {
226
226
  };
227
227
  export type DeleteGatewayNetworkRequest = {
228
228
  /** Zone to target. If none is passed will use default zone from the config. */
229
- zone?: Zone;
229
+ zone?: ScwZone;
230
230
  /** ID of the GatewayNetwork to delete. */
231
231
  gatewayNetworkId: string;
232
232
  };
233
233
  export type DeleteGatewayRequest = {
234
234
  /** Zone to target. If none is passed will use default zone from the config. */
235
- zone?: Zone;
235
+ zone?: ScwZone;
236
236
  /** ID of the gateway to delete. */
237
237
  gatewayId: string;
238
238
  /** Defines whether the PGW's IP should be deleted. */
@@ -240,43 +240,43 @@ export type DeleteGatewayRequest = {
240
240
  };
241
241
  export type DeleteIPRequest = {
242
242
  /** Zone to target. If none is passed will use default zone from the config. */
243
- zone?: Zone;
243
+ zone?: ScwZone;
244
244
  /** ID of the IP address to delete. */
245
245
  ipId: string;
246
246
  };
247
247
  export type DeletePatRuleRequest = {
248
248
  /** Zone to target. If none is passed will use default zone from the config. */
249
- zone?: Zone;
249
+ zone?: ScwZone;
250
250
  /** ID of the PAT rule to delete. */
251
251
  patRuleId: string;
252
252
  };
253
253
  export type GetGatewayNetworkRequest = {
254
254
  /** Zone to target. If none is passed will use default zone from the config. */
255
- zone?: Zone;
255
+ zone?: ScwZone;
256
256
  /** ID of the GatewayNetwork to fetch. */
257
257
  gatewayNetworkId: string;
258
258
  };
259
259
  export type GetGatewayRequest = {
260
260
  /** Zone to target. If none is passed will use default zone from the config. */
261
- zone?: Zone;
261
+ zone?: ScwZone;
262
262
  /** ID of the gateway to fetch. */
263
263
  gatewayId: string;
264
264
  };
265
265
  export type GetIPRequest = {
266
266
  /** Zone to target. If none is passed will use default zone from the config. */
267
- zone?: Zone;
267
+ zone?: ScwZone;
268
268
  /** ID of the IP address to get. */
269
269
  ipId: string;
270
270
  };
271
271
  export type GetPatRuleRequest = {
272
272
  /** Zone to target. If none is passed will use default zone from the config. */
273
- zone?: Zone;
273
+ zone?: ScwZone;
274
274
  /** ID of the PAT rule to get. */
275
275
  patRuleId: string;
276
276
  };
277
277
  export type ListGatewayNetworksRequest = {
278
278
  /** Zone to target. If none is passed will use default zone from the config. */
279
- zone?: Zone;
279
+ zone?: ScwZone;
280
280
  /** Order in which to return results. */
281
281
  orderBy?: ListGatewayNetworksRequestOrderBy;
282
282
  /** Page number. */
@@ -303,7 +303,7 @@ export interface ListGatewayNetworksResponse {
303
303
  }
304
304
  export type ListGatewayTypesRequest = {
305
305
  /** Zone to target. If none is passed will use default zone from the config. */
306
- zone?: Zone;
306
+ zone?: ScwZone;
307
307
  };
308
308
  export interface ListGatewayTypesResponse {
309
309
  /** Available types of Public Gateway. */
@@ -311,7 +311,7 @@ export interface ListGatewayTypesResponse {
311
311
  }
312
312
  export type ListGatewaysRequest = {
313
313
  /** Zone to target. If none is passed will use default zone from the config. */
314
- zone?: Zone;
314
+ zone?: ScwZone;
315
315
  /** Order in which to return results. */
316
316
  orderBy?: ListGatewaysRequestOrderBy;
317
317
  /** Page number to return. */
@@ -346,7 +346,7 @@ export interface ListGatewaysResponse {
346
346
  }
347
347
  export type ListIPsRequest = {
348
348
  /** Zone to target. If none is passed will use default zone from the config. */
349
- zone?: Zone;
349
+ zone?: ScwZone;
350
350
  /** Order in which to return results. */
351
351
  orderBy?: ListIPsRequestOrderBy;
352
352
  /** Page number. */
@@ -372,7 +372,7 @@ export interface ListIPsResponse {
372
372
  }
373
373
  export type ListPatRulesRequest = {
374
374
  /** Zone to target. If none is passed will use default zone from the config. */
375
- zone?: Zone;
375
+ zone?: ScwZone;
376
376
  /** Order in which to return results. */
377
377
  orderBy?: ListPatRulesRequestOrderBy;
378
378
  /** Page number. */
@@ -394,13 +394,13 @@ export interface ListPatRulesResponse {
394
394
  }
395
395
  export type RefreshSSHKeysRequest = {
396
396
  /** Zone to target. If none is passed will use default zone from the config. */
397
- zone?: Zone;
397
+ zone?: ScwZone;
398
398
  /** ID of the gateway to refresh SSH keys on. */
399
399
  gatewayId: string;
400
400
  };
401
401
  export type SetBastionAllowedIPsRequest = {
402
402
  /** Zone to target. If none is passed will use default zone from the config. */
403
- zone?: Zone;
403
+ zone?: ScwZone;
404
404
  /** ID of the gateway on which to set the allowed IP range. */
405
405
  gatewayId: string;
406
406
  /**
@@ -415,7 +415,7 @@ export interface SetBastionAllowedIPsResponse {
415
415
  }
416
416
  export type SetPatRulesRequest = {
417
417
  /** Zone to target. If none is passed will use default zone from the config. */
418
- zone?: Zone;
418
+ zone?: ScwZone;
419
419
  /** ID of the gateway on which to set the PAT rules. */
420
420
  gatewayId: string;
421
421
  /** New list of PAT rules. */
@@ -427,7 +427,7 @@ export interface SetPatRulesResponse {
427
427
  }
428
428
  export type UpdateGatewayNetworkRequest = {
429
429
  /** Zone to target. If none is passed will use default zone from the config. */
430
- zone?: Zone;
430
+ zone?: ScwZone;
431
431
  /** ID of the GatewayNetwork to update. */
432
432
  gatewayNetworkId: string;
433
433
  /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
@@ -439,7 +439,7 @@ export type UpdateGatewayNetworkRequest = {
439
439
  };
440
440
  export type UpdateGatewayRequest = {
441
441
  /** Zone to target. If none is passed will use default zone from the config. */
442
- zone?: Zone;
442
+ zone?: ScwZone;
443
443
  /** ID of the gateway to update. */
444
444
  gatewayId: string;
445
445
  /** Name for the gateway. */
@@ -455,7 +455,7 @@ export type UpdateGatewayRequest = {
455
455
  };
456
456
  export type UpdateIPRequest = {
457
457
  /** Zone to target. If none is passed will use default zone from the config. */
458
- zone?: Zone;
458
+ zone?: ScwZone;
459
459
  /** ID of the IP address to update. */
460
460
  ipId: string;
461
461
  /** Tags to give to the IP address. */
@@ -467,7 +467,7 @@ export type UpdateIPRequest = {
467
467
  };
468
468
  export type UpdatePatRuleRequest = {
469
469
  /** Zone to target. If none is passed will use default zone from the config. */
470
- zone?: Zone;
470
+ zone?: ScwZone;
471
471
  /** ID of the PAT rule to update. */
472
472
  patRuleId: string;
473
473
  /** Public port to listen on. */
@@ -481,7 +481,7 @@ export type UpdatePatRuleRequest = {
481
481
  };
482
482
  export type UpgradeGatewayRequest = {
483
483
  /** Zone to target. If none is passed will use default zone from the config. */
484
- zone?: Zone;
484
+ zone?: ScwZone;
485
485
  /** ID of the gateway to upgrade. */
486
486
  gatewayId: string;
487
487
  /** Gateway type (commercial offer). */
@@ -28,10 +28,10 @@ const assertValidSettings = (obj) => {
28
28
  if (obj.defaultZone && !stringValidation.isZone(obj.defaultZone)) {
29
29
  throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
30
30
  }
31
- if (!stringValidation.isURL(obj.apiURL)) {
31
+ if (obj.apiURL && !stringValidation.isURL(obj.apiURL)) {
32
32
  throw new Error(`Invalid URL ${obj.apiURL}`);
33
33
  }
34
- if (obj.apiURL.endsWith("/")) {
34
+ if (obj.apiURL?.endsWith("/")) {
35
35
  throw new Error(
36
36
  `Invalid URL ${obj.apiURL}: it should not have a trailing slash`
37
37
  );
@@ -1,11 +1,11 @@
1
1
  import type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor } from '../internal/interceptors/types';
2
- import type { ProfileDefaultValues } from './client-ini-profile.js';
2
+ import type { Profile } from './client-ini-profile.js';
3
3
  /**
4
4
  * Holds default values of settings.
5
5
  *
6
6
  * @public
7
7
  */
8
- export type DefaultValues = ProfileDefaultValues & {
8
+ export type DefaultValues = Profile & {
9
9
  /**
10
10
  * The default number of results when requesting a paginated resource.
11
11
  */
@@ -26,10 +26,10 @@ const assertValidSettings = (obj) => {
26
26
  if (obj.defaultZone && !isZone(obj.defaultZone)) {
27
27
  throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
28
28
  }
29
- if (!isURL(obj.apiURL)) {
29
+ if (obj.apiURL && !isURL(obj.apiURL)) {
30
30
  throw new Error(`Invalid URL ${obj.apiURL}`);
31
31
  }
32
- if (obj.apiURL.endsWith("/")) {
32
+ if (obj.apiURL?.endsWith("/")) {
33
33
  throw new Error(
34
34
  `Invalid URL ${obj.apiURL}: it should not have a trailing slash`
35
35
  );