@scaleway/sdk 2.51.0 → 2.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  2. package/dist/api/baremetal/v1/marshalling.gen.cjs +12 -0
  3. package/dist/api/baremetal/v1/marshalling.gen.js +12 -0
  4. package/dist/api/baremetal/v1/types.gen.d.ts +8 -0
  5. package/dist/api/block/v1alpha1/api.gen.cjs +3 -0
  6. package/dist/api/block/v1alpha1/api.gen.js +3 -0
  7. package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
  8. package/dist/api/container/v1beta1/marshalling.gen.cjs +21 -0
  9. package/dist/api/container/v1beta1/marshalling.gen.js +21 -0
  10. package/dist/api/container/v1beta1/types.gen.d.ts +30 -2
  11. package/dist/api/container/v1beta1/validation-rules.gen.cjs +2 -0
  12. package/dist/api/container/v1beta1/validation-rules.gen.d.ts +1 -0
  13. package/dist/api/container/v1beta1/validation-rules.gen.js +2 -0
  14. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +1 -0
  15. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +1 -0
  16. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +2 -0
  17. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +4 -1
  18. package/dist/api/flexibleip/v1alpha1/api.gen.js +4 -1
  19. package/dist/api/iam/v1alpha1/api.gen.cjs +11 -0
  20. package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
  21. package/dist/api/iam/v1alpha1/api.gen.js +12 -1
  22. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +5 -0
  24. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  25. package/dist/api/iam/v1alpha1/marshalling.gen.js +5 -0
  26. package/dist/api/iam/v1alpha1/types.gen.d.ts +23 -18
  27. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +7 -0
  28. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +6 -0
  29. package/dist/api/iam/v1alpha1/validation-rules.gen.js +8 -1
  30. package/dist/api/jobs/v1alpha1/api.gen.cjs +13 -0
  31. package/dist/api/jobs/v1alpha1/api.gen.d.ts +8 -1
  32. package/dist/api/jobs/v1alpha1/api.gen.js +14 -1
  33. package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
  34. package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +11 -0
  35. package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
  36. package/dist/api/jobs/v1alpha1/marshalling.gen.js +11 -0
  37. package/dist/api/jobs/v1alpha1/types.gen.d.ts +10 -0
  38. package/dist/api/k8s/v1/api.gen.cjs +0 -16
  39. package/dist/api/k8s/v1/api.gen.d.ts +1 -9
  40. package/dist/api/k8s/v1/api.gen.js +0 -16
  41. package/dist/api/k8s/v1/index.gen.d.ts +1 -1
  42. package/dist/api/k8s/v1/types.gen.d.ts +0 -9
  43. package/dist/api/k8s/v1/validation-rules.gen.cjs +8 -16
  44. package/dist/api/k8s/v1/validation-rules.gen.d.ts +0 -8
  45. package/dist/api/k8s/v1/validation-rules.gen.js +8 -16
  46. package/dist/api/mongodb/v1alpha1/api.gen.cjs +22 -15
  47. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +24 -17
  48. package/dist/api/mongodb/v1alpha1/api.gen.js +22 -15
  49. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +2 -1
  50. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +2 -1
  51. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +26 -26
  52. package/dist/scw/constants.cjs +1 -1
  53. package/dist/scw/constants.d.ts +2 -2
  54. package/dist/scw/constants.js +1 -1
  55. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
1
  export { API, PrivateNetworkAPI } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
3
+ export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -213,6 +213,17 @@ const unmarshalDisk = (data) => {
213
213
  type: data.type
214
214
  };
215
215
  };
216
+ const unmarshalGPU = (data) => {
217
+ if (!json.isJSONObject(data)) {
218
+ throw new TypeError(
219
+ `Unmarshalling the type 'GPU' failed as data isn't a dictionary.`
220
+ );
221
+ }
222
+ return {
223
+ name: data.name,
224
+ vram: data.vram
225
+ };
226
+ };
216
227
  const unmarshalMemory = (data) => {
217
228
  if (!json.isJSONObject(data)) {
218
229
  throw new TypeError(
@@ -283,6 +294,7 @@ const unmarshalOffer = (data) => {
283
294
  disks: marshalling.unmarshalArrayOfObject(data.disks, unmarshalDisk),
284
295
  enable: data.enable,
285
296
  fee: data.fee ? customMarshalling.unmarshalMoney(data.fee) : void 0,
297
+ gpus: marshalling.unmarshalArrayOfObject(data.gpus, unmarshalGPU),
286
298
  id: data.id,
287
299
  incompatibleOsIds: data.incompatible_os_ids,
288
300
  maxBandwidth: data.max_bandwidth,
@@ -211,6 +211,17 @@ const unmarshalDisk = (data) => {
211
211
  type: data.type
212
212
  };
213
213
  };
214
+ const unmarshalGPU = (data) => {
215
+ if (!isJSONObject(data)) {
216
+ throw new TypeError(
217
+ `Unmarshalling the type 'GPU' failed as data isn't a dictionary.`
218
+ );
219
+ }
220
+ return {
221
+ name: data.name,
222
+ vram: data.vram
223
+ };
224
+ };
214
225
  const unmarshalMemory = (data) => {
215
226
  if (!isJSONObject(data)) {
216
227
  throw new TypeError(
@@ -281,6 +292,7 @@ const unmarshalOffer = (data) => {
281
292
  disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
282
293
  enable: data.enable,
283
294
  fee: data.fee ? unmarshalMoney(data.fee) : void 0,
295
+ gpus: unmarshalArrayOfObject(data.gpus, unmarshalGPU),
284
296
  id: data.id,
285
297
  incompatibleOsIds: data.incompatible_os_ids,
286
298
  maxBandwidth: data.max_bandwidth,
@@ -89,6 +89,12 @@ export interface Disk {
89
89
  /** Type of the disk. */
90
90
  type: string;
91
91
  }
92
+ export interface GPU {
93
+ /** Name of the GPU. */
94
+ name: string;
95
+ /** Capacity of the vram in bytes. */
96
+ vram: number;
97
+ }
92
98
  export interface Memory {
93
99
  /** Capacity of the memory in bytes. */
94
100
  capacity: number;
@@ -358,6 +364,8 @@ export interface Offer {
358
364
  sharedBandwidth: boolean;
359
365
  /** Array of tags attached to the offer. */
360
366
  tags: string[];
367
+ /** GPU specifications of the offer. */
368
+ gpus: GPU[];
361
369
  }
362
370
  export interface Option {
363
371
  /** ID of the option. */
@@ -15,9 +15,12 @@ class API extends api.API {
15
15
  static LOCALITIES = [
16
16
  "fr-par-1",
17
17
  "fr-par-2",
18
+ "fr-par-3",
18
19
  "nl-ams-1",
19
20
  "nl-ams-2",
20
21
  "nl-ams-3",
22
+ "pl-waw-1",
23
+ "pl-waw-2",
21
24
  "pl-waw-3"
22
25
  ];
23
26
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
@@ -13,9 +13,12 @@ class API extends API$1 {
13
13
  static LOCALITIES = [
14
14
  "fr-par-1",
15
15
  "fr-par-2",
16
+ "fr-par-3",
16
17
  "nl-ams-1",
17
18
  "nl-ams-2",
18
19
  "nl-ams-3",
20
+ "pl-waw-1",
21
+ "pl-waw-2",
19
22
  "pl-waw-3"
20
23
  ];
21
24
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
3
+ export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerScalingOption, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -4,6 +4,16 @@ const randomName = require("@scaleway/random-name");
4
4
  const json = require("../../../helpers/json.cjs");
5
5
  const marshalling = require("../../../helpers/marshalling.cjs");
6
6
  require("../../../vendor/base64/index.cjs");
7
+ const unmarshalContainerScalingOption = (data) => {
8
+ if (!json.isJSONObject(data)) {
9
+ throw new TypeError(
10
+ `Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`
11
+ );
12
+ }
13
+ return {
14
+ concurrentRequestsThreshold: data.concurrent_requests_threshold
15
+ };
16
+ };
7
17
  const unmarshalSecretHashedValue = (data) => {
8
18
  if (!json.isJSONObject(data)) {
9
19
  throw new TypeError(
@@ -42,6 +52,7 @@ const unmarshalContainer = (data) => {
42
52
  region: data.region,
43
53
  registryImage: data.registry_image,
44
54
  sandbox: data.sandbox,
55
+ scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : void 0,
45
56
  secretEnvironmentVariables: marshalling.unmarshalArrayOfObject(
46
57
  data.secret_environment_variables,
47
58
  unmarshalSecretHashedValue
@@ -246,6 +257,14 @@ const unmarshalListTriggersResponse = (data) => {
246
257
  triggers: marshalling.unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
247
258
  };
248
259
  };
260
+ const marshalContainerScalingOption = (request, defaults) => ({
261
+ ...marshalling.resolveOneOf([
262
+ {
263
+ param: "concurrent_requests_threshold",
264
+ value: request.concurrentRequestsThreshold
265
+ }
266
+ ])
267
+ });
249
268
  const marshalSecret = (request, defaults) => ({
250
269
  key: request.key,
251
270
  value: request.value
@@ -267,6 +286,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
267
286
  protocol: request.protocol,
268
287
  registry_image: request.registryImage,
269
288
  sandbox: request.sandbox,
289
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
270
290
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
271
291
  (elt) => marshalSecret(elt)
272
292
  ) : void 0,
@@ -357,6 +377,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
357
377
  redeploy: request.redeploy,
358
378
  registry_image: request.registryImage,
359
379
  sandbox: request.sandbox,
380
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
360
381
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
361
382
  (elt) => marshalSecret(elt)
362
383
  ) : void 0,
@@ -2,6 +2,16 @@ import randomName from "@scaleway/random-name";
2
2
  import { isJSONObject } from "../../../helpers/json.js";
3
3
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from "../../../helpers/marshalling.js";
4
4
  import "../../../vendor/base64/index.js";
5
+ const unmarshalContainerScalingOption = (data) => {
6
+ if (!isJSONObject(data)) {
7
+ throw new TypeError(
8
+ `Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`
9
+ );
10
+ }
11
+ return {
12
+ concurrentRequestsThreshold: data.concurrent_requests_threshold
13
+ };
14
+ };
5
15
  const unmarshalSecretHashedValue = (data) => {
6
16
  if (!isJSONObject(data)) {
7
17
  throw new TypeError(
@@ -40,6 +50,7 @@ const unmarshalContainer = (data) => {
40
50
  region: data.region,
41
51
  registryImage: data.registry_image,
42
52
  sandbox: data.sandbox,
53
+ scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : void 0,
43
54
  secretEnvironmentVariables: unmarshalArrayOfObject(
44
55
  data.secret_environment_variables,
45
56
  unmarshalSecretHashedValue
@@ -244,6 +255,14 @@ const unmarshalListTriggersResponse = (data) => {
244
255
  triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
245
256
  };
246
257
  };
258
+ const marshalContainerScalingOption = (request, defaults) => ({
259
+ ...resolveOneOf([
260
+ {
261
+ param: "concurrent_requests_threshold",
262
+ value: request.concurrentRequestsThreshold
263
+ }
264
+ ])
265
+ });
247
266
  const marshalSecret = (request, defaults) => ({
248
267
  key: request.key,
249
268
  value: request.value
@@ -265,6 +284,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
265
284
  protocol: request.protocol,
266
285
  registry_image: request.registryImage,
267
286
  sandbox: request.sandbox,
287
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
268
288
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
269
289
  (elt) => marshalSecret(elt)
270
290
  ) : void 0,
@@ -355,6 +375,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
355
375
  redeploy: request.redeploy,
356
376
  registry_image: request.registryImage,
357
377
  sandbox: request.sandbox,
378
+ scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption) : void 0,
358
379
  secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
359
380
  (elt) => marshalSecret(elt)
360
381
  ) : void 0,
@@ -16,6 +16,13 @@ export type NamespaceStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'lock
16
16
  export type TokenStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating';
17
17
  export type TriggerInputType = 'unknown_input_type' | 'sqs' | 'scw_sqs' | 'nats' | 'scw_nats';
18
18
  export type TriggerStatus = 'unknown_status' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
19
+ export interface ContainerScalingOption {
20
+ /**
21
+ * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold' could
22
+ * be set.
23
+ */
24
+ concurrentRequestsThreshold?: number;
25
+ }
19
26
  export interface SecretHashedValue {
20
27
  key: string;
21
28
  hashedValue: string;
@@ -136,6 +143,13 @@ export interface Container {
136
143
  sandbox: ContainerSandbox;
137
144
  /** Local storage limit of the container (in MB). */
138
145
  localStorageLimit: number;
146
+ /**
147
+ * Possible values:
148
+ *
149
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
150
+ * requests being processed per container instance.
151
+ */
152
+ scalingOption?: ContainerScalingOption;
139
153
  /** Region in which the container will be deployed. */
140
154
  region: Region;
141
155
  }
@@ -291,7 +305,7 @@ export type CreateContainerRequest = {
291
305
  * "rg.fr-par.scw.cloud/something/image:tag").
292
306
  */
293
307
  registryImage?: string;
294
- /** Number of maximum concurrent executions of the container. */
308
+ /** @deprecated Number of maximum concurrent executions of the container. */
295
309
  maxConcurrency?: number;
296
310
  /** Protocol the container uses. */
297
311
  protocol?: ContainerProtocol;
@@ -311,6 +325,13 @@ export type CreateContainerRequest = {
311
325
  sandbox?: ContainerSandbox;
312
326
  /** Local storage limit of the container (in MB). */
313
327
  localStorageLimit?: number;
328
+ /**
329
+ * Possible values:
330
+ *
331
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
332
+ * requests being processed per container instance.
333
+ */
334
+ scalingOption?: ContainerScalingOption;
314
335
  };
315
336
  export type CreateCronRequest = {
316
337
  /**
@@ -715,7 +736,7 @@ export type UpdateContainerRequest = {
715
736
  * "rg.fr-par.scw.cloud/something/image:tag").
716
737
  */
717
738
  registryImage?: string;
718
- /** Number of maximum concurrent executions of the container. */
739
+ /** @deprecated Number of maximum concurrent executions of the container. */
719
740
  maxConcurrency?: number;
720
741
  protocol?: ContainerProtocol;
721
742
  port?: number;
@@ -732,6 +753,13 @@ export type UpdateContainerRequest = {
732
753
  sandbox?: ContainerSandbox;
733
754
  /** Local storage limit of the container (in MB). */
734
755
  localStorageLimit?: number;
756
+ /**
757
+ * Possible values:
758
+ *
759
+ * - Concurrent_requests_threshold: Scale depending on the number of concurrent
760
+ * requests being processed per container instance.
761
+ */
762
+ scalingOption?: ContainerScalingOption;
735
763
  };
736
764
  export type UpdateCronRequest = {
737
765
  /**
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ContainerScalingOption = {};
3
4
  const CreateTriggerRequest = {
4
5
  description: {
5
6
  maxLength: 255
@@ -39,6 +40,7 @@ const UpdateTriggerRequest = {
39
40
  minLength: 1
40
41
  }
41
42
  };
43
+ exports.ContainerScalingOption = ContainerScalingOption;
42
44
  exports.CreateTriggerRequest = CreateTriggerRequest;
43
45
  exports.CreateTriggerRequestMnqNatsClientConfig = CreateTriggerRequestMnqNatsClientConfig;
44
46
  exports.CreateTriggerRequestMnqSqsClientConfig = CreateTriggerRequestMnqSqsClientConfig;
@@ -1,3 +1,4 @@
1
+ export declare const ContainerScalingOption: {};
1
2
  export declare const CreateTriggerRequest: {
2
3
  description: {
3
4
  maxLength: number;
@@ -1,3 +1,4 @@
1
+ const ContainerScalingOption = {};
1
2
  const CreateTriggerRequest = {
2
3
  description: {
3
4
  maxLength: 255
@@ -38,6 +39,7 @@ const UpdateTriggerRequest = {
38
39
  }
39
40
  };
40
41
  export {
42
+ ContainerScalingOption,
41
43
  CreateTriggerRequest,
42
44
  CreateTriggerRequestMnqNatsClientConfig,
43
45
  CreateTriggerRequestMnqSqsClientConfig,
@@ -117,6 +117,7 @@ const unmarshalPipeline = (data) => {
117
117
  errors: marshalling.unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
118
118
  id: data.id,
119
119
  name: data.name,
120
+ organizationId: data.organization_id,
120
121
  projectId: data.project_id,
121
122
  status: data.status,
122
123
  updatedAt: marshalling.unmarshalDate(data.updated_at)
@@ -115,6 +115,7 @@ const unmarshalPipeline = (data) => {
115
115
  errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
116
116
  id: data.id,
117
117
  name: data.name,
118
+ organizationId: data.organization_id,
118
119
  projectId: data.project_id,
119
120
  status: data.status,
120
121
  updatedAt: unmarshalDate(data.updated_at)
@@ -151,6 +151,8 @@ export interface Pipeline {
151
151
  errors: PipelineError[];
152
152
  /** Project ID of the pipeline. */
153
153
  projectId: string;
154
+ /** Organization ID of the pipeline. */
155
+ organizationId: string;
154
156
  /** Date the pipeline was created. */
155
157
  createdAt?: Date;
156
158
  /** Date the pipeline was last updated. */
@@ -15,7 +15,10 @@ class API extends api.API {
15
15
  static LOCALITIES = [
16
16
  "fr-par-1",
17
17
  "fr-par-2",
18
- "nl-ams-1"
18
+ "nl-ams-1",
19
+ "nl-ams-2",
20
+ "pl-waw-2",
21
+ "pl-waw-3"
19
22
  ];
20
23
  /**
21
24
  * Create a new flexible IP. Generate a new flexible IP within a given zone,
@@ -13,7 +13,10 @@ class API extends API$1 {
13
13
  static LOCALITIES = [
14
14
  "fr-par-1",
15
15
  "fr-par-2",
16
- "nl-ams-1"
16
+ "nl-ams-1",
17
+ "nl-ams-2",
18
+ "pl-waw-2",
19
+ "pl-waw-3"
17
20
  ];
18
21
  /**
19
22
  * Create a new flexible IP. Generate a new flexible IP within a given zone,
@@ -196,6 +196,17 @@ class API extends api.API {
196
196
  },
197
197
  marshalling_gen.unmarshalUser
198
198
  );
199
+ updateUserPassword = (request) => this.client.fetch(
200
+ {
201
+ body: JSON.stringify(
202
+ marshalling_gen.marshalUpdateUserPasswordRequest(request, this.client.settings)
203
+ ),
204
+ headers: jsonContentHeaders,
205
+ method: "POST",
206
+ path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/update-password`
207
+ },
208
+ marshalling_gen.unmarshalUser
209
+ );
199
210
  pageOfListApplications = (request = {}) => this.client.fetch(
200
211
  {
201
212
  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, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User } from './types.gen';
2
+ import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
3
3
  /**
4
4
  * IAM API.
5
5
  *
@@ -103,6 +103,7 @@ export declare class API extends ParentAPI {
103
103
  * @returns A Promise of User
104
104
  */
105
105
  createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
106
+ updateUserPassword: (request: Readonly<UpdateUserPasswordRequest>) => Promise<User>;
106
107
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
107
108
  /**
108
109
  * 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, 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 } from "./marshalling.gen.js";
5
+ import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserPasswordRequest, 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 } from "./marshalling.gen.js";
6
6
  const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
@@ -194,6 +194,17 @@ class API extends API$1 {
194
194
  },
195
195
  unmarshalUser
196
196
  );
197
+ updateUserPassword = (request) => this.client.fetch(
198
+ {
199
+ body: JSON.stringify(
200
+ marshalUpdateUserPasswordRequest(request, this.client.settings)
201
+ ),
202
+ headers: jsonContentHeaders,
203
+ method: "POST",
204
+ path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-password`
205
+ },
206
+ unmarshalUser
207
+ );
197
208
  pageOfListApplications = (request = {}) => this.client.fetch(
198
209
  {
199
210
  method: "GET",
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen';
2
- export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, 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, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
2
+ export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, 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, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
3
3
  export * as ValidationRules from './validation-rules.gen';
@@ -485,6 +485,10 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
485
485
  disabled: request.disabled,
486
486
  name: request.name
487
487
  });
488
+ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
489
+ password: request.password,
490
+ send_email: request.sendEmail
491
+ });
488
492
  const marshalUpdateUserRequest = (request, defaults) => ({
489
493
  tags: request.tags
490
494
  });
@@ -505,6 +509,7 @@ exports.marshalUpdateApplicationRequest = marshalUpdateApplicationRequest;
505
509
  exports.marshalUpdateGroupRequest = marshalUpdateGroupRequest;
506
510
  exports.marshalUpdatePolicyRequest = marshalUpdatePolicyRequest;
507
511
  exports.marshalUpdateSSHKeyRequest = marshalUpdateSSHKeyRequest;
512
+ exports.marshalUpdateUserPasswordRequest = marshalUpdateUserPasswordRequest;
508
513
  exports.marshalUpdateUserRequest = marshalUpdateUserRequest;
509
514
  exports.unmarshalAPIKey = unmarshalAPIKey;
510
515
  exports.unmarshalApplication = unmarshalApplication;
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User } from './types.gen';
2
+ import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
3
3
  export declare const unmarshalJWT: (data: unknown) => JWT;
4
4
  export declare const unmarshalAPIKey: (data: unknown) => APIKey;
5
5
  export declare const unmarshalApplication: (data: unknown) => Application;
@@ -39,4 +39,5 @@ export declare const marshalUpdateApplicationRequest: (request: UpdateApplicatio
39
39
  export declare const marshalUpdateGroupRequest: (request: UpdateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
40
40
  export declare const marshalUpdatePolicyRequest: (request: UpdatePolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
41
41
  export declare const marshalUpdateSSHKeyRequest: (request: UpdateSSHKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
42
+ export declare const marshalUpdateUserPasswordRequest: (request: UpdateUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
42
43
  export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -483,6 +483,10 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
483
483
  disabled: request.disabled,
484
484
  name: request.name
485
485
  });
486
+ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
487
+ password: request.password,
488
+ send_email: request.sendEmail
489
+ });
486
490
  const marshalUpdateUserRequest = (request, defaults) => ({
487
491
  tags: request.tags
488
492
  });
@@ -504,6 +508,7 @@ export {
504
508
  marshalUpdateGroupRequest,
505
509
  marshalUpdatePolicyRequest,
506
510
  marshalUpdateSSHKeyRequest,
511
+ marshalUpdateUserPasswordRequest,
507
512
  marshalUpdateUserRequest,
508
513
  unmarshalAPIKey,
509
514
  unmarshalApplication,
@@ -14,6 +14,24 @@ export type LogResourceType = 'unknown_resource_type' | 'api_key' | 'user' | 'ap
14
14
  export type PermissionSetScopeType = 'unknown_scope_type' | 'projects' | 'organization' | 'account_root_user';
15
15
  export type UserStatus = 'unknown_status' | 'invitation_pending' | 'activated';
16
16
  export type UserType = 'unknown_type' | 'guest' | 'owner' | 'member';
17
+ export interface JWT {
18
+ /** JWT ID. */
19
+ jti: string;
20
+ /** ID of the user who issued the JWT. */
21
+ issuerId: string;
22
+ /** ID of the user targeted by the JWT. */
23
+ audienceId: string;
24
+ /** Creation date of the JWT. */
25
+ createdAt?: Date;
26
+ /** Last update date of the JWT. */
27
+ updatedAt?: Date;
28
+ /** Expiration date of the JWT. */
29
+ expiresAt?: Date;
30
+ /** IP address used during the creation of the JWT. */
31
+ ip: string;
32
+ /** User-agent used during the creation of the JWT. */
33
+ userAgent: string;
34
+ }
17
35
  export interface RuleSpecs {
18
36
  /** Names of permission sets bound to the rule. */
19
37
  permissionSetNames?: string[];
@@ -44,24 +62,6 @@ export interface CreateUserRequestMember {
44
62
  /** The member's password. */
45
63
  password: string;
46
64
  }
47
- export interface JWT {
48
- /** JWT ID. */
49
- jti: string;
50
- /** ID of the user who issued the JWT. */
51
- issuerId: string;
52
- /** ID of the user targeted by the JWT. */
53
- audienceId: string;
54
- /** Creation date of the JWT. */
55
- createdAt?: Date;
56
- /** Last update date of the JWT. */
57
- updatedAt?: Date;
58
- /** Expiration date of the JWT. */
59
- expiresAt?: Date;
60
- /** IP address used during the creation of the JWT. */
61
- ip: string;
62
- /** User-agent used during the creation of the JWT. */
63
- userAgent: string;
64
- }
65
65
  export interface APIKey {
66
66
  /** Access key of the API key. */
67
67
  accessKey: string;
@@ -924,6 +924,11 @@ export type UpdateSSHKeyRequest = {
924
924
  /** Enable or disable the SSH key. */
925
925
  disabled?: boolean;
926
926
  };
927
+ export type UpdateUserPasswordRequest = {
928
+ userId: string;
929
+ password: string;
930
+ sendEmail: boolean;
931
+ };
927
932
  export type UpdateUserRequest = {
928
933
  /** ID of the user to update. */
929
934
  userId: string;
@@ -230,6 +230,12 @@ const UpdateSSHKeyRequest = {
230
230
  maxLength: 1e3
231
231
  }
232
232
  };
233
+ const UpdateUserPasswordRequest = {
234
+ password: {
235
+ maxLength: 72,
236
+ minLength: 1
237
+ }
238
+ };
233
239
  exports.CreateAPIKeyRequest = CreateAPIKeyRequest;
234
240
  exports.CreateApplicationRequest = CreateApplicationRequest;
235
241
  exports.CreateGroupRequest = CreateGroupRequest;
@@ -254,3 +260,4 @@ exports.UpdateApplicationRequest = UpdateApplicationRequest;
254
260
  exports.UpdateGroupRequest = UpdateGroupRequest;
255
261
  exports.UpdatePolicyRequest = UpdatePolicyRequest;
256
262
  exports.UpdateSSHKeyRequest = UpdateSSHKeyRequest;
263
+ exports.UpdateUserPasswordRequest = UpdateUserPasswordRequest;
@@ -228,3 +228,9 @@ export declare const UpdateSSHKeyRequest: {
228
228
  maxLength: number;
229
229
  };
230
230
  };
231
+ export declare const UpdateUserPasswordRequest: {
232
+ password: {
233
+ maxLength: number;
234
+ minLength: number;
235
+ };
236
+ };
@@ -228,6 +228,12 @@ const UpdateSSHKeyRequest = {
228
228
  maxLength: 1e3
229
229
  }
230
230
  };
231
+ const UpdateUserPasswordRequest = {
232
+ password: {
233
+ maxLength: 72,
234
+ minLength: 1
235
+ }
236
+ };
231
237
  export {
232
238
  CreateAPIKeyRequest,
233
239
  CreateApplicationRequest,
@@ -252,5 +258,6 @@ export {
252
258
  UpdateApplicationRequest,
253
259
  UpdateGroupRequest,
254
260
  UpdatePolicyRequest,
255
- UpdateSSHKeyRequest
261
+ UpdateSSHKeyRequest,
262
+ UpdateUserPasswordRequest
256
263
  };