@scaleway/sdk 2.58.0 → 2.60.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 (98) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
  2. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
  4. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
  5. package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
  6. package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
  7. package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
  8. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
  9. package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
  10. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
  11. package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
  12. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
  13. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
  14. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  15. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
  16. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
  17. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
  18. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
  19. package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
  20. package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
  21. package/dist/api/iam/v1alpha1/api.gen.js +55 -1
  22. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
  24. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
  25. package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
  26. package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
  27. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
  28. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
  29. package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
  30. package/dist/api/index.gen.d.ts +2 -1
  31. package/dist/api/interlink/index.gen.cjs +4 -0
  32. package/dist/api/interlink/index.gen.d.ts +5 -0
  33. package/dist/api/interlink/index.gen.js +4 -0
  34. package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
  35. package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
  36. package/dist/api/interlink/v1beta1/api.gen.js +405 -0
  37. package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
  38. package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
  39. package/dist/api/interlink/v1beta1/index.gen.js +6 -0
  40. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
  41. package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
  42. package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
  43. package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
  44. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
  45. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
  46. package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
  47. package/dist/api/ipam/v1/api.gen.cjs +1 -0
  48. package/dist/api/ipam/v1/api.gen.js +1 -0
  49. package/dist/api/ipam/v1/types.gen.d.ts +12 -10
  50. package/dist/api/k8s/v1/api.gen.cjs +22 -20
  51. package/dist/api/k8s/v1/api.gen.d.ts +22 -20
  52. package/dist/api/k8s/v1/api.gen.js +22 -20
  53. package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
  54. package/dist/api/k8s/v1/marshalling.gen.js +2 -5
  55. package/dist/api/k8s/v1/types.gen.d.ts +65 -49
  56. package/dist/api/lb/v1/types.gen.d.ts +6 -6
  57. package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
  58. package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
  59. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
  60. package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
  61. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
  63. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  64. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  65. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  66. package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
  67. package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
  68. package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
  69. package/dist/api/vpcgw/index.gen.cjs +2 -0
  70. package/dist/api/vpcgw/index.gen.d.ts +1 -0
  71. package/dist/api/vpcgw/index.gen.js +3 -1
  72. package/dist/api/vpcgw/v2/api.gen.cjs +518 -0
  73. package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
  74. package/dist/api/vpcgw/v2/api.gen.js +518 -0
  75. package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
  76. package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
  77. package/dist/api/vpcgw/v2/content.gen.js +15 -0
  78. package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
  79. package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
  80. package/dist/api/vpcgw/v2/index.gen.js +7 -0
  81. package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
  82. package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
  83. package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
  84. package/dist/api/vpcgw/v2/types.gen.d.ts +452 -0
  85. package/dist/api/webhosting/v1/api.gen.cjs +20 -0
  86. package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
  87. package/dist/api/webhosting/v1/api.gen.js +21 -1
  88. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  89. package/dist/api/webhosting/v1/marshalling.gen.cjs +30 -2
  90. package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
  91. package/dist/api/webhosting/v1/marshalling.gen.js +31 -3
  92. package/dist/api/webhosting/v1/types.gen.d.ts +50 -2
  93. package/dist/index.cjs +26 -24
  94. package/dist/index.js +26 -24
  95. package/dist/scw/constants.cjs +1 -1
  96. package/dist/scw/constants.d.ts +2 -2
  97. package/dist/scw/constants.js +1 -1
  98. package/package.json +2 -2
@@ -6,7 +6,7 @@ export type ClusterStatus = 'unknown' | 'creating' | 'ready' | 'deleting' | 'del
6
6
  export type ClusterTypeAvailability = 'available' | 'scarce' | 'shortage';
7
7
  export type ClusterTypeResiliency = 'unknown_resiliency' | 'standard' | 'high_availability';
8
8
  export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
9
- export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
9
+ export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
10
10
  export type ListPoolsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
11
11
  export type MaintenanceWindowDayOfTheWeek = 'any' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
12
12
  export type NodeStatus = 'unknown' | 'creating' | 'not_ready' | 'ready' | 'deleting' | 'deleted' | 'locked' | 'rebooting' | 'creation_error' | 'upgrading' | 'starting' | 'registering';
@@ -38,7 +38,7 @@ export interface ClusterAutoUpgrade {
38
38
  export interface ClusterAutoscalerConfig {
39
39
  /** Disable the cluster autoscaler. */
40
40
  scaleDownDisabled: boolean;
41
- /** How long after scale up that scale down evaluation resumes. */
41
+ /** How long after scale up the scale down evaluation resumes. */
42
42
  scaleDownDelayAfterAdd: string;
43
43
  /** Type of resource estimator to be used in scale up. */
44
44
  estimator: AutoscalerEstimator;
@@ -148,17 +148,19 @@ export interface Pool {
148
148
  * when autoscaling is enabled on the pool.
149
149
  */
150
150
  maxSize: number;
151
- /**
152
- * Customization of the container runtime is available for each pool. Note
153
- * that `docker` has been deprecated since version 1.20 and will be removed by
154
- * version 1.24.
155
- */
151
+ /** Customization of the container runtime is available for each pool. */
156
152
  containerRuntime: Runtime;
157
153
  /** Defines whether the autohealing feature is enabled for the pool. */
158
154
  autohealing: boolean;
159
- /** Tags associated with the pool. */
155
+ /**
156
+ * Tags associated with the pool, see [managing
157
+ * tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
158
+ */
160
159
  tags: string[];
161
- /** Placement group ID in which all the nodes of the pool will be created. */
160
+ /**
161
+ * Placement group ID in which all the nodes of the pool will be created,
162
+ * placement groups are limited to 20 instances.
163
+ */
162
164
  placementGroupId?: string;
163
165
  /**
164
166
  * Kubelet arguments to be used by this pool. Note that this feature is
@@ -170,11 +172,15 @@ export interface Pool {
170
172
  /** Zone in which the pool's nodes will be spawned. */
171
173
  zone: Zone;
172
174
  /**
173
- * Defines the system volume disk type. Two different types of volume
174
- * (`volume_type`) are provided: `l_ssd` is a local block storage which means
175
- * your system is stored locally on your node's hypervisor. `b_ssd` is a
176
- * remote block storage which means your system is stored on a centralized and
177
- * resilient cluster.
175
+ * - `l_ssd` is a local block storage which means your system is stored locally
176
+ * on your node's hypervisor. This type is not available for all node types
177
+ * `sbs-5k` is a remote block storage which means your system is stored on a
178
+ * centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
179
+ * faster remote block storage which means your system is stored on a
180
+ * centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
181
+ * legacy remote block storage which means your system is stored on a
182
+ * centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
183
+ * instead.
178
184
  */
179
185
  rootVolumeType: PoolVolumeType;
180
186
  /** System volume disk size. */
@@ -231,7 +237,7 @@ export interface CreateClusterRequestAutoUpgrade {
231
237
  export interface CreateClusterRequestAutoscalerConfig {
232
238
  /** Disable the cluster autoscaler. */
233
239
  scaleDownDisabled?: boolean;
234
- /** How long after scale up that scale down evaluation resumes. */
240
+ /** How long after scale up the scale down evaluation resumes. */
235
241
  scaleDownDelayAfterAdd?: string;
236
242
  /** Type of resource estimator to be used in scale up. */
237
243
  estimator: AutoscalerEstimator;
@@ -315,7 +321,10 @@ export interface CreateClusterRequestPoolConfig {
315
321
  * cloud providers in a Kosmos Cluster.
316
322
  */
317
323
  nodeType: string;
318
- /** Placement group ID in which all the nodes of the pool will be created. */
324
+ /**
325
+ * Placement group ID in which all the nodes of the pool will be created,
326
+ * placement groups are limited to 20 instances.
327
+ */
319
328
  placementGroupId?: string;
320
329
  /** Defines whether the autoscaling feature is enabled for the pool. */
321
330
  autoscaling: boolean;
@@ -331,15 +340,14 @@ export interface CreateClusterRequestPoolConfig {
331
340
  * when autoscaling is enabled on the pool.
332
341
  */
333
342
  maxSize?: number;
334
- /**
335
- * Customization of the container runtime is available for each pool. Note
336
- * that `docker` has been deprecated since version 1.20 and will be removed by
337
- * version 1.24.
338
- */
343
+ /** Customization of the container runtime is available for each pool. */
339
344
  containerRuntime: Runtime;
340
345
  /** Defines whether the autohealing feature is enabled for the pool. */
341
346
  autohealing: boolean;
342
- /** Tags associated with the pool. */
347
+ /**
348
+ * Tags associated with the pool, see [managing
349
+ * tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
350
+ */
343
351
  tags: string[];
344
352
  /**
345
353
  * Kubelet arguments to be used by this pool. Note that this feature is
@@ -351,11 +359,15 @@ export interface CreateClusterRequestPoolConfig {
351
359
  /** Zone in which the pool's nodes will be spawned. */
352
360
  zone: Zone;
353
361
  /**
354
- * Defines the system volume disk type. Two different types of volume
355
- * (`volume_type`) are provided: `l_ssd` is a local block storage which means
356
- * your system is stored locally on your node's hypervisor. `b_ssd` is a
357
- * remote block storage which means your system is stored on a centralized and
358
- * resilient cluster.
362
+ * - `l_ssd` is a local block storage which means your system is stored locally
363
+ * on your node's hypervisor. This type is not available for all node types
364
+ * `sbs-5k` is a remote block storage which means your system is stored on a
365
+ * centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
366
+ * faster remote block storage which means your system is stored on a
367
+ * centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
368
+ * legacy remote block storage which means your system is stored on a
369
+ * centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
370
+ * instead.
359
371
  */
360
372
  rootVolumeType: PoolVolumeType;
361
373
  /** System volume disk size. */
@@ -452,7 +464,7 @@ export interface Cluster {
452
464
  updatedAt?: Date;
453
465
  /** Autoscaler config for the cluster. */
454
466
  autoscalerConfig?: ClusterAutoscalerConfig;
455
- /** Auto upgrade configuration of the cluster. */
467
+ /** Auto upgrade Kubernetes version of the cluster. */
456
468
  autoUpgrade?: ClusterAutoUpgrade;
457
469
  /** Defines whether a new Kubernetes version is available. */
458
470
  upgradeAvailable: boolean;
@@ -531,7 +543,7 @@ export interface UpdateClusterRequestAutoUpgrade {
531
543
  export interface UpdateClusterRequestAutoscalerConfig {
532
544
  /** Disable the cluster autoscaler. */
533
545
  scaleDownDisabled?: boolean;
534
- /** How long after scale up that scale down evaluation resumes. */
546
+ /** How long after scale up the scale down evaluation resumes. */
535
547
  scaleDownDelayAfterAdd?: string;
536
548
  /** Type of resource estimator to be used in scale up. */
537
549
  estimator: AutoscalerEstimator;
@@ -654,8 +666,9 @@ export type CreateClusterRequest = {
654
666
  */
655
667
  projectId?: string;
656
668
  /**
657
- * Type of the cluster (possible values are kapsule, multicloud,
658
- * kapsule-dedicated-8, kapsule-dedicated-16).
669
+ * Type of the cluster. See [list available cluster
670
+ * types](#list-available-cluster-types-for-a-cluster) for a list of valid
671
+ * types.
659
672
  */
660
673
  type: string;
661
674
  /** Cluster name. */
@@ -728,7 +741,10 @@ export type CreatePoolRequest = {
728
741
  * cloud providers in a Kosmos Cluster.
729
742
  */
730
743
  nodeType: string;
731
- /** Placement group ID in which all the nodes of the pool will be created. */
744
+ /**
745
+ * Placement group ID in which all the nodes of the pool will be created,
746
+ * placement groups are limited to 20 instances.
747
+ */
732
748
  placementGroupId?: string;
733
749
  /** Defines whether the autoscaling feature is enabled for the pool. */
734
750
  autoscaling: boolean;
@@ -744,15 +760,14 @@ export type CreatePoolRequest = {
744
760
  * when autoscaling is enabled on the pool.
745
761
  */
746
762
  maxSize?: number;
747
- /**
748
- * Customization of the container runtime is available for each pool. Note
749
- * that `docker` has been deprecated since version 1.20 and will be removed by
750
- * version 1.24.
751
- */
763
+ /** Customization of the container runtime is available for each pool. */
752
764
  containerRuntime?: Runtime;
753
765
  /** Defines whether the autohealing feature is enabled for the pool. */
754
766
  autohealing: boolean;
755
- /** Tags associated with the pool. */
767
+ /**
768
+ * Tags associated with the pool, see [managing
769
+ * tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
770
+ */
756
771
  tags?: string[];
757
772
  /**
758
773
  * Kubelet arguments to be used by this pool. Note that this feature is
@@ -764,11 +779,15 @@ export type CreatePoolRequest = {
764
779
  /** Zone in which the pool's nodes will be spawned. */
765
780
  zone?: Zone;
766
781
  /**
767
- * Defines the system volume disk type. Two different types of volume
768
- * (`volume_type`) are provided: `l_ssd` is a local block storage which means
769
- * your system is stored locally on your node's hypervisor. `b_ssd` is a
770
- * remote block storage which means your system is stored on a centralized and
771
- * resilient cluster.
782
+ * - `l_ssd` is a local block storage which means your system is stored locally
783
+ * on your node's hypervisor. This type is not available for all node types
784
+ * `sbs-5k` is a remote block storage which means your system is stored on a
785
+ * centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
786
+ * faster remote block storage which means your system is stored on a
787
+ * centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
788
+ * legacy remote block storage which means your system is stored on a
789
+ * centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
790
+ * instead.
772
791
  */
773
792
  rootVolumeType?: PoolVolumeType;
774
793
  /** System volume disk size. */
@@ -845,8 +864,8 @@ export interface ExternalNode {
845
864
  nodeTaints: ExternalNodeCoreV1Taint[];
846
865
  }
847
866
  export interface ExternalNodeAuth {
848
- nodeToken: string;
849
- apiUrl: string;
867
+ nodeSecretKey: string;
868
+ metadataUrl: string;
850
869
  }
851
870
  export type GetClusterKubeConfigRequest = {
852
871
  /**
@@ -1094,9 +1113,6 @@ export interface NodeMetadata {
1094
1113
  kubeletConfig: string;
1095
1114
  nodeLabels: Record<string, string>;
1096
1115
  nodeTaints: NodeMetadataCoreV1Taint[];
1097
- privateNetworkMode: string;
1098
- kapsuleIfaceMac: string;
1099
- fullIsolation: boolean;
1100
1116
  hasGpu: boolean;
1101
1117
  externalIp: string;
1102
1118
  repoUri: string;
@@ -1174,7 +1190,7 @@ export type UpdateClusterRequest = {
1174
1190
  /** New autoscaler config for the cluster. */
1175
1191
  autoscalerConfig?: UpdateClusterRequestAutoscalerConfig;
1176
1192
  /**
1177
- * New auto upgrade configuration for the cluster. Note that all fields need
1193
+ * New auto upgrade configuration for the cluster. Note that all fields needs
1178
1194
  * to be set.
1179
1195
  */
1180
1196
  autoUpgrade?: UpdateClusterRequestAutoUpgrade;
@@ -163,8 +163,8 @@ export interface HealthCheck {
163
163
  */
164
164
  tcpConfig?: HealthCheckTcpConfig;
165
165
  /**
166
- * Object to configure a MySQL health check. The check requires MySQL >=3.22,
167
- * for older versions, use a TCP health check.
166
+ * Object to configure a MySQL health check. The check requires MySQL >=3.22
167
+ * or <9.0. For older or newer versions, use a TCP health check.
168
168
  *
169
169
  * One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
170
170
  * 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
@@ -1660,8 +1660,8 @@ export type UpdateHealthCheckRequest = {
1660
1660
  */
1661
1661
  tcpConfig?: HealthCheckTcpConfig;
1662
1662
  /**
1663
- * Object to configure a MySQL health check. The check requires MySQL >=3.22,
1664
- * for older versions, use a TCP health check.
1663
+ * Object to configure a MySQL health check. The check requires MySQL >=3.22
1664
+ * or <9.0. For older or newer versions, use a TCP health check.
1665
1665
  *
1666
1666
  * One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
1667
1667
  * 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
@@ -2622,8 +2622,8 @@ export type ZonedApiUpdateHealthCheckRequest = {
2622
2622
  */
2623
2623
  tcpConfig?: HealthCheckTcpConfig;
2624
2624
  /**
2625
- * Object to configure a MySQL health check. The check requires MySQL >=3.22,
2626
- * for older versions, use a TCP health check.
2625
+ * Object to configure a MySQL health check. The check requires MySQL >=3.22
2626
+ * or <9.0. For older or newer versions, use a TCP health check.
2627
2627
  *
2628
2628
  * One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
2629
2629
  * 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
@@ -25,7 +25,10 @@ export interface Image {
25
25
  updatedAt?: Date;
26
26
  /** Expiration date of this image. */
27
27
  validUntil?: Date;
28
- /** Typically an identifier for a distribution (ex. "ubuntu_focal"). */
28
+ /**
29
+ * Typically an identifier for a distribution (ex. "ubuntu_focal"). This label
30
+ * can be used in the image field of the server creation request.
31
+ */
29
32
  label: string;
30
33
  }
31
34
  export interface LocalImage {
@@ -37,7 +40,7 @@ export interface LocalImage {
37
40
  arch: string;
38
41
  /** Availability Zone where this local image is available. */
39
42
  zone: Zone;
40
- /** Image label this image belongs to. */
43
+ /** This label can be used in the image field of the server creation request. */
41
44
  label: string;
42
45
  /** Type of this local image. */
43
46
  type: LocalImageType;
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
12
12
  };
13
13
  class API extends api.API {
14
14
  /** Lists the available regions of the API. */
15
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
15
+ static LOCALITIES = ["fr-par"];
16
16
  pageOfListNodeTypes = (request = {}) => this.client.fetch(
17
17
  {
18
18
  method: "GET",
@@ -395,6 +395,18 @@ class API extends api.API {
395
395
  },
396
396
  marshalling_gen.unmarshalUser
397
397
  );
398
+ /**
399
+ * Delete a user on a Database Instance. Delete an existing user on a Database
400
+ * Instance.
401
+ *
402
+ * @param request - The request {@link DeleteUserRequest}
403
+ */
404
+ deleteUser = (request) => this.client.fetch({
405
+ body: "{}",
406
+ headers: jsonContentHeaders,
407
+ method: "DELETE",
408
+ path: `/mongodb/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${marshalling.validatePathParam("instanceId", request.instanceId)}/users/${marshalling.validatePathParam("name", request.name)}`
409
+ });
398
410
  /**
399
411
  * Delete a Database Instance endpoint. Delete the endpoint of a Database
400
412
  * Instance. You must specify the `endpoint_id` parameter of the endpoint you
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
3
- import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, Endpoint, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, RestoreSnapshotRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
3
+ import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, RestoreSnapshotRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
4
4
  /**
5
5
  * Managed Database for MongoDB®.
6
6
  *
@@ -208,6 +208,13 @@ export declare class API extends ParentAPI {
208
208
  * @returns A Promise of User
209
209
  */
210
210
  updateUser: (request: Readonly<UpdateUserRequest>) => Promise<User>;
211
+ /**
212
+ * Delete a user on a Database Instance. Delete an existing user on a Database
213
+ * Instance.
214
+ *
215
+ * @param request - The request {@link DeleteUserRequest}
216
+ */
217
+ deleteUser: (request: Readonly<DeleteUserRequest>) => Promise<void>;
211
218
  /**
212
219
  * Delete a Database Instance endpoint. Delete the endpoint of a Database
213
220
  * Instance. You must specify the `endpoint_id` parameter of the endpoint you
@@ -10,7 +10,7 @@ const jsonContentHeaders = {
10
10
  };
11
11
  class API extends API$1 {
12
12
  /** Lists the available regions of the API. */
13
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
13
+ static LOCALITIES = ["fr-par"];
14
14
  pageOfListNodeTypes = (request = {}) => this.client.fetch(
15
15
  {
16
16
  method: "GET",
@@ -393,6 +393,18 @@ class API extends API$1 {
393
393
  },
394
394
  unmarshalUser
395
395
  );
396
+ /**
397
+ * Delete a user on a Database Instance. Delete an existing user on a Database
398
+ * Instance.
399
+ *
400
+ * @param request - The request {@link DeleteUserRequest}
401
+ */
402
+ deleteUser = (request) => this.client.fetch({
403
+ body: "{}",
404
+ headers: jsonContentHeaders,
405
+ method: "DELETE",
406
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
407
+ });
396
408
  /**
397
409
  * Delete a Database Instance endpoint. Delete the endpoint of a Database
398
410
  * Instance. You must specify the `endpoint_id` parameter of the endpoint you
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { CreateEndpointRequest, CreateInstanceRequest, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Version, Volume, VolumeType, } from './types.gen';
3
+ export type { CreateEndpointRequest, CreateInstanceRequest, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Version, Volume, VolumeType, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -290,6 +290,17 @@ export type DeleteSnapshotRequest = {
290
290
  /** UUID of the snapshot. */
291
291
  snapshotId: string;
292
292
  };
293
+ export type DeleteUserRequest = {
294
+ /**
295
+ * Region to target. If none is passed will use default region from the
296
+ * config.
297
+ */
298
+ region?: Region;
299
+ /** UUID of the Database Instance the user belongs to. */
300
+ instanceId: string;
301
+ /** Name of the database user. */
302
+ name: string;
303
+ };
293
304
  export type GetInstanceCertificateRequest = {
294
305
  /**
295
306
  * Region to target. If none is passed will use default region from the
@@ -46,6 +46,13 @@ const CreateUserRequest = {
46
46
  minLength: 8
47
47
  }
48
48
  };
49
+ const DeleteUserRequest = {
50
+ name: {
51
+ maxLength: 63,
52
+ minLength: 1,
53
+ pattern: /^[a-zA-Z0-9_\-]*$/
54
+ }
55
+ };
49
56
  const ListInstancesRequest = {
50
57
  name: {
51
58
  maxLength: 255,
@@ -148,6 +155,7 @@ const UpdateUserRequest = {
148
155
  exports.CreateInstanceRequest = CreateInstanceRequest;
149
156
  exports.CreateSnapshotRequest = CreateSnapshotRequest;
150
157
  exports.CreateUserRequest = CreateUserRequest;
158
+ exports.DeleteUserRequest = DeleteUserRequest;
151
159
  exports.ListInstancesRequest = ListInstancesRequest;
152
160
  exports.ListNodeTypesRequest = ListNodeTypesRequest;
153
161
  exports.ListSnapshotsRequest = ListSnapshotsRequest;
@@ -44,6 +44,13 @@ export declare const CreateUserRequest: {
44
44
  minLength: number;
45
45
  };
46
46
  };
47
+ export declare const DeleteUserRequest: {
48
+ name: {
49
+ maxLength: number;
50
+ minLength: number;
51
+ pattern: RegExp;
52
+ };
53
+ };
47
54
  export declare const ListInstancesRequest: {
48
55
  name: {
49
56
  maxLength: number;
@@ -44,6 +44,13 @@ const CreateUserRequest = {
44
44
  minLength: 8
45
45
  }
46
46
  };
47
+ const DeleteUserRequest = {
48
+ name: {
49
+ maxLength: 63,
50
+ minLength: 1,
51
+ pattern: /^[a-zA-Z0-9_\-]*$/
52
+ }
53
+ };
47
54
  const ListInstancesRequest = {
48
55
  name: {
49
56
  maxLength: 255,
@@ -147,6 +154,7 @@ export {
147
154
  CreateInstanceRequest,
148
155
  CreateSnapshotRequest,
149
156
  CreateUserRequest,
157
+ DeleteUserRequest,
150
158
  ListInstancesRequest,
151
159
  ListNodeTypesRequest,
152
160
  ListSnapshotsRequest,
@@ -23,6 +23,7 @@ const unmarshalSecretVersion = (data) => {
23
23
  }
24
24
  return {
25
25
  createdAt: marshalling.unmarshalDate(data.created_at),
26
+ deletedAt: marshalling.unmarshalDate(data.deleted_at),
26
27
  description: data.description,
27
28
  ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
28
29
  latest: data.latest,
@@ -21,6 +21,7 @@ const unmarshalSecretVersion = (data) => {
21
21
  }
22
22
  return {
23
23
  createdAt: unmarshalDate(data.created_at),
24
+ deletedAt: unmarshalDate(data.deleted_at),
24
25
  description: data.description,
25
26
  ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
26
27
  latest: data.latest,
@@ -66,6 +66,8 @@ export interface SecretVersion {
66
66
  createdAt?: Date;
67
67
  /** Last update of the version. */
68
68
  updatedAt?: Date;
69
+ /** Date and time of the version's deletion. */
70
+ deletedAt?: Date;
69
71
  /** Description of the version. */
70
72
  description?: string;
71
73
  /** Returns `true` if the version is the latest. */
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index_gen = require("./v1/index.gen.cjs");
4
+ const index_gen$1 = require("./v2/index.gen.cjs");
4
5
  exports.v1 = index_gen;
6
+ exports.v2 = index_gen$1;
@@ -3,3 +3,4 @@
3
3
  * EDIT HERE
4
4
  */
5
5
  export * as v1 from './v1/index.gen';
6
+ export * as v2 from './v2/index.gen';
@@ -1,4 +1,6 @@
1
1
  import * as index_gen from "./v1/index.gen.js";
2
+ import * as index_gen$1 from "./v2/index.gen.js";
2
3
  export {
3
- index_gen as v1
4
+ index_gen as v1,
5
+ index_gen$1 as v2
4
6
  };