@scaleway/sdk 2.70.0 → 2.71.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 (95) hide show
  1. package/README.md +6 -5
  2. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
  4. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/api.gen.js +3 -1
  6. package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
  7. package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
  8. package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
  9. package/dist/api/block/v1/api.gen.cjs +6 -2
  10. package/dist/api/block/v1/api.gen.js +6 -2
  11. package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
  12. package/dist/api/block/v1alpha1/api.gen.js +6 -2
  13. package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
  14. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
  15. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
  16. package/dist/api/container/v1beta1/api.gen.cjs +18 -6
  17. package/dist/api/container/v1beta1/api.gen.js +18 -6
  18. package/dist/api/dedibox/v1/api.gen.cjs +9 -3
  19. package/dist/api/dedibox/v1/api.gen.js +9 -3
  20. package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
  21. package/dist/api/domain/v2beta1/api.gen.js +3 -1
  22. package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
  23. package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
  24. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
  25. package/dist/api/function/v1beta1/api.gen.cjs +18 -6
  26. package/dist/api/function/v1beta1/api.gen.js +18 -6
  27. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  28. package/dist/api/iam/v1alpha1/api.gen.cjs +8 -14
  29. package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -14
  30. package/dist/api/iam/v1alpha1/api.gen.js +8 -14
  31. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
  32. package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
  33. package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -1
  34. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
  35. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
  36. package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
  37. package/dist/api/inference/v1/api.gen.cjs +6 -2
  38. package/dist/api/inference/v1/api.gen.js +6 -2
  39. package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
  40. package/dist/api/inference/v1/marshalling.gen.js +4 -4
  41. package/dist/api/inference/v1/types.gen.d.ts +32 -30
  42. package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
  43. package/dist/api/inference/v1beta1/api.gen.js +3 -1
  44. package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
  45. package/dist/api/instance/v1/marshalling.gen.js +0 -1
  46. package/dist/api/instance/v1/types.gen.d.ts +0 -2
  47. package/dist/api/k8s/v1/api.gen.cjs +3 -1
  48. package/dist/api/k8s/v1/api.gen.js +3 -1
  49. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  50. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  51. package/dist/api/k8s/v1/types.gen.d.ts +5 -0
  52. package/dist/api/lb/v1/types.gen.d.ts +3 -3
  53. package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
  54. package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
  55. package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
  56. package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
  57. package/dist/api/rdb/v1/api.gen.cjs +6 -2
  58. package/dist/api/rdb/v1/api.gen.js +6 -2
  59. package/dist/api/redis/v1/api.gen.cjs +3 -1
  60. package/dist/api/redis/v1/api.gen.js +3 -1
  61. package/dist/api/registry/v1/api.gen.cjs +9 -3
  62. package/dist/api/registry/v1/api.gen.js +9 -3
  63. package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
  64. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  65. package/dist/api/secret/v1beta1/api.gen.js +32 -0
  66. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  67. package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
  68. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
  69. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
  70. package/dist/api/vpc/v2/api.gen.cjs +33 -0
  71. package/dist/api/vpc/v2/api.gen.d.ts +17 -1
  72. package/dist/api/vpc/v2/api.gen.js +34 -1
  73. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  74. package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
  75. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  76. package/dist/api/vpc/v2/marshalling.gen.js +59 -0
  77. package/dist/api/vpc/v2/types.gen.d.ts +80 -0
  78. package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
  79. package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
  80. package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
  81. package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
  82. package/dist/api/vpcgw/v1/api.gen.js +3 -1
  83. package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
  84. package/dist/api/vpcgw/v2/api.gen.js +3 -1
  85. package/dist/api/webhosting/v1/api.gen.cjs +6 -2
  86. package/dist/api/webhosting/v1/api.gen.js +6 -2
  87. package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
  88. package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
  89. package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
  90. package/dist/package.json.cjs +76 -0
  91. package/dist/package.json.js +76 -0
  92. package/dist/scw/constants.cjs +2 -1
  93. package/dist/scw/constants.d.ts +2 -2
  94. package/dist/scw/constants.js +2 -1
  95. package/package.json +2 -3
@@ -61,7 +61,9 @@ class API extends API$1 {
61
61
  * @returns A Promise of Namespace
62
62
  */
63
63
  waitForNamespace = (request, options) => waitForResource(
64
- options?.stop ?? ((res) => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))),
64
+ options?.stop ?? ((res) => Promise.resolve(
65
+ !NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
66
+ )),
65
67
  this.getNamespace,
66
68
  request,
67
69
  options
@@ -162,7 +164,9 @@ class API extends API$1 {
162
164
  * @returns A Promise of Container
163
165
  */
164
166
  waitForContainer = (request, options) => waitForResource(
165
- options?.stop ?? ((res) => Promise.resolve(!CONTAINER_TRANSIENT_STATUSES.includes(res.status))),
167
+ options?.stop ?? ((res) => Promise.resolve(
168
+ !CONTAINER_TRANSIENT_STATUSES.includes(res.status)
169
+ )),
166
170
  this.getContainer,
167
171
  request,
168
172
  options
@@ -274,7 +278,9 @@ class API extends API$1 {
274
278
  * @returns A Promise of Cron
275
279
  */
276
280
  waitForCron = (request, options) => waitForResource(
277
- options?.stop ?? ((res) => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))),
281
+ options?.stop ?? ((res) => Promise.resolve(
282
+ !CRON_TRANSIENT_STATUSES.includes(res.status)
283
+ )),
278
284
  this.getCron,
279
285
  request,
280
286
  options
@@ -371,7 +377,9 @@ class API extends API$1 {
371
377
  * @returns A Promise of Domain
372
378
  */
373
379
  waitForDomain = (request, options) => waitForResource(
374
- options?.stop ?? ((res) => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
380
+ options?.stop ?? ((res) => Promise.resolve(
381
+ !DOMAIN_TRANSIENT_STATUSES.includes(res.status)
382
+ )),
375
383
  this.getDomain,
376
384
  request,
377
385
  options
@@ -445,7 +453,9 @@ class API extends API$1 {
445
453
  * @returns A Promise of Token
446
454
  */
447
455
  waitForToken = (request, options) => waitForResource(
448
- options?.stop ?? ((res) => Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))),
456
+ options?.stop ?? ((res) => Promise.resolve(
457
+ !TOKEN_TRANSIENT_STATUSES.includes(res.status)
458
+ )),
449
459
  this.getToken,
450
460
  request,
451
461
  options
@@ -526,7 +536,9 @@ class API extends API$1 {
526
536
  * @returns A Promise of Trigger
527
537
  */
528
538
  waitForTrigger = (request, options) => waitForResource(
529
- options?.stop ?? ((res) => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))),
539
+ options?.stop ?? ((res) => Promise.resolve(
540
+ !TRIGGER_TRANSIENT_STATUSES.includes(res.status)
541
+ )),
530
542
  this.getTrigger,
531
543
  request,
532
544
  options
@@ -66,7 +66,9 @@ class API extends api.API {
66
66
  * @returns A Promise of Server
67
67
  */
68
68
  waitForServer = (request, options) => intervalRetrier.waitForResource(
69
- options?.stop ?? ((res) => Promise.resolve(!content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status))),
69
+ options?.stop ?? ((res) => Promise.resolve(
70
+ !content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status)
71
+ )),
70
72
  this.getServer,
71
73
  request,
72
74
  options
@@ -452,7 +454,9 @@ class API extends api.API {
452
454
  * @returns A Promise of BMCAccess
453
455
  */
454
456
  waitForBMCAccess = (request, options) => intervalRetrier.waitForResource(
455
- options?.stop ?? ((res) => Promise.resolve(!content_gen.BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))),
457
+ options?.stop ?? ((res) => Promise.resolve(
458
+ !content_gen.BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status)
459
+ )),
456
460
  this.getBMCAccess,
457
461
  request,
458
462
  options
@@ -1049,7 +1053,9 @@ class RpnSanAPI extends api.API {
1049
1053
  * @returns A Promise of RpnSan
1050
1054
  */
1051
1055
  waitForRpnSan = (request, options) => intervalRetrier.waitForResource(
1052
- options?.stop ?? ((res) => Promise.resolve(!content_gen.RPN_SAN_TRANSIENT_STATUSES.includes(res.status))),
1056
+ options?.stop ?? ((res) => Promise.resolve(
1057
+ !content_gen.RPN_SAN_TRANSIENT_STATUSES.includes(res.status)
1058
+ )),
1053
1059
  this.getRpnSan,
1054
1060
  request,
1055
1061
  options
@@ -64,7 +64,9 @@ class API extends API$1 {
64
64
  * @returns A Promise of Server
65
65
  */
66
66
  waitForServer = (request, options) => waitForResource(
67
- options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
67
+ options?.stop ?? ((res) => Promise.resolve(
68
+ !SERVER_TRANSIENT_STATUSES.includes(res.status)
69
+ )),
68
70
  this.getServer,
69
71
  request,
70
72
  options
@@ -450,7 +452,9 @@ class API extends API$1 {
450
452
  * @returns A Promise of BMCAccess
451
453
  */
452
454
  waitForBMCAccess = (request, options) => waitForResource(
453
- options?.stop ?? ((res) => Promise.resolve(!BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))),
455
+ options?.stop ?? ((res) => Promise.resolve(
456
+ !BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status)
457
+ )),
454
458
  this.getBMCAccess,
455
459
  request,
456
460
  options
@@ -1047,7 +1051,9 @@ class RpnSanAPI extends API$1 {
1047
1051
  * @returns A Promise of RpnSan
1048
1052
  */
1049
1053
  waitForRpnSan = (request, options) => waitForResource(
1050
- options?.stop ?? ((res) => Promise.resolve(!RPN_SAN_TRANSIENT_STATUSES.includes(res.status))),
1054
+ options?.stop ?? ((res) => Promise.resolve(
1055
+ !RPN_SAN_TRANSIENT_STATUSES.includes(res.status)
1056
+ )),
1051
1057
  this.getRpnSan,
1052
1058
  request,
1053
1059
  options
@@ -781,7 +781,9 @@ class RegistrarAPI extends api.API {
781
781
  * @returns A Promise of Domain
782
782
  */
783
783
  waitForDomain = (request, options) => intervalRetrier.waitForResource(
784
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
784
+ options?.stop ?? ((res) => Promise.resolve(
785
+ !content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status)
786
+ )),
785
787
  this.getDomain,
786
788
  request,
787
789
  options
@@ -779,7 +779,9 @@ class RegistrarAPI extends API$1 {
779
779
  * @returns A Promise of Domain
780
780
  */
781
781
  waitForDomain = (request, options) => waitForResource(
782
- options?.stop ?? ((res) => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
782
+ options?.stop ?? ((res) => Promise.resolve(
783
+ !DOMAIN_TRANSIENT_STATUSES.includes(res.status)
784
+ )),
783
785
  this.getDomain,
784
786
  request,
785
787
  options
@@ -82,7 +82,9 @@ class API extends api.API {
82
82
  * @returns A Promise of Pipeline
83
83
  */
84
84
  waitForPipeline = (request, options) => intervalRetrier.waitForResource(
85
- options?.stop ?? ((res) => Promise.resolve(!content_gen.PIPELINE_TRANSIENT_STATUSES.includes(res.status))),
85
+ options?.stop ?? ((res) => Promise.resolve(
86
+ !content_gen.PIPELINE_TRANSIENT_STATUSES.includes(res.status)
87
+ )),
86
88
  this.getPipeline,
87
89
  request,
88
90
  options
@@ -875,7 +877,9 @@ class API extends api.API {
875
877
  */
876
878
  waitForPurgeRequest = (request, options) => intervalRetrier.waitForResource(
877
879
  options?.stop ?? ((res) => Promise.resolve(
878
- !content_gen.PURGE_REQUEST_TRANSIENT_STATUSES.includes(res.status)
880
+ !content_gen.PURGE_REQUEST_TRANSIENT_STATUSES.includes(
881
+ res.status
882
+ )
879
883
  )),
880
884
  this.getPurgeRequest,
881
885
  request,
@@ -80,7 +80,9 @@ class API extends API$1 {
80
80
  * @returns A Promise of Pipeline
81
81
  */
82
82
  waitForPipeline = (request, options) => waitForResource(
83
- options?.stop ?? ((res) => Promise.resolve(!PIPELINE_TRANSIENT_STATUSES.includes(res.status))),
83
+ options?.stop ?? ((res) => Promise.resolve(
84
+ !PIPELINE_TRANSIENT_STATUSES.includes(res.status)
85
+ )),
84
86
  this.getPipeline,
85
87
  request,
86
88
  options
@@ -873,7 +875,9 @@ class API extends API$1 {
873
875
  */
874
876
  waitForPurgeRequest = (request, options) => waitForResource(
875
877
  options?.stop ?? ((res) => Promise.resolve(
876
- !PURGE_REQUEST_TRANSIENT_STATUSES.includes(res.status)
878
+ !PURGE_REQUEST_TRANSIENT_STATUSES.includes(
879
+ res.status
880
+ )
877
881
  )),
878
882
  this.getPurgeRequest,
879
883
  request,
@@ -14,7 +14,7 @@ export type PipelineErrorCode = 'unknown_code' | 'dns_invalid_format' | 'dns_inv
14
14
  export type PipelineErrorSeverity = 'unknown_severity' | 'warning' | 'critical';
15
15
  export type PipelineErrorStage = 'unknown_stage' | 'dns' | 'tls' | 'cache' | 'backend';
16
16
  export type PipelineErrorType = 'unknown_type' | 'runtime' | 'config';
17
- export type PipelineStatus = 'unknown_status' | 'ready' | 'error' | 'pending' | 'warning';
17
+ export type PipelineStatus = 'unknown_status' | 'ready' | 'error' | 'pending' | 'warning' | 'locked';
18
18
  export type PlanName = 'unknown_name' | 'starter' | 'professional' | 'advanced';
19
19
  export type PurgeRequestStatus = 'unknown_status' | 'done' | 'error' | 'pending';
20
20
  export type RuleHttpMatchMethodFilter = 'unknown_method_filter' | 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head' | 'options';
@@ -64,7 +64,9 @@ class API extends api.API {
64
64
  * @returns A Promise of Namespace
65
65
  */
66
66
  waitForNamespace = (request, options) => intervalRetrier.waitForResource(
67
- options?.stop ?? ((res) => Promise.resolve(!content_gen.NAMESPACE_TRANSIENT_STATUSES.includes(res.status))),
67
+ options?.stop ?? ((res) => Promise.resolve(
68
+ !content_gen.NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
69
+ )),
68
70
  this.getNamespace,
69
71
  request,
70
72
  options
@@ -166,7 +168,9 @@ class API extends api.API {
166
168
  * @returns A Promise of Function
167
169
  */
168
170
  waitForFunction = (request, options) => intervalRetrier.waitForResource(
169
- options?.stop ?? ((res) => Promise.resolve(!content_gen.FUNCTION_TRANSIENT_STATUSES.includes(res.status))),
171
+ options?.stop ?? ((res) => Promise.resolve(
172
+ !content_gen.FUNCTION_TRANSIENT_STATUSES.includes(res.status)
173
+ )),
170
174
  this.getFunction,
171
175
  request,
172
176
  options
@@ -321,7 +325,9 @@ class API extends api.API {
321
325
  * @returns A Promise of Cron
322
326
  */
323
327
  waitForCron = (request, options) => intervalRetrier.waitForResource(
324
- options?.stop ?? ((res) => Promise.resolve(!content_gen.CRON_TRANSIENT_STATUSES.includes(res.status))),
328
+ options?.stop ?? ((res) => Promise.resolve(
329
+ !content_gen.CRON_TRANSIENT_STATUSES.includes(res.status)
330
+ )),
325
331
  this.getCron,
326
332
  request,
327
333
  options
@@ -420,7 +426,9 @@ class API extends api.API {
420
426
  * @returns A Promise of Domain
421
427
  */
422
428
  waitForDomain = (request, options) => intervalRetrier.waitForResource(
423
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
429
+ options?.stop ?? ((res) => Promise.resolve(
430
+ !content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status)
431
+ )),
424
432
  this.getDomain,
425
433
  request,
426
434
  options
@@ -495,7 +503,9 @@ class API extends api.API {
495
503
  * @returns A Promise of Token
496
504
  */
497
505
  waitForToken = (request, options) => intervalRetrier.waitForResource(
498
- options?.stop ?? ((res) => Promise.resolve(!content_gen.TOKEN_TRANSIENT_STATUSES.includes(res.status))),
506
+ options?.stop ?? ((res) => Promise.resolve(
507
+ !content_gen.TOKEN_TRANSIENT_STATUSES.includes(res.status)
508
+ )),
499
509
  this.getToken,
500
510
  request,
501
511
  options
@@ -575,7 +585,9 @@ class API extends api.API {
575
585
  * @returns A Promise of Trigger
576
586
  */
577
587
  waitForTrigger = (request, options) => intervalRetrier.waitForResource(
578
- options?.stop ?? ((res) => Promise.resolve(!content_gen.TRIGGER_TRANSIENT_STATUSES.includes(res.status))),
588
+ options?.stop ?? ((res) => Promise.resolve(
589
+ !content_gen.TRIGGER_TRANSIENT_STATUSES.includes(res.status)
590
+ )),
579
591
  this.getTrigger,
580
592
  request,
581
593
  options
@@ -62,7 +62,9 @@ class API extends API$1 {
62
62
  * @returns A Promise of Namespace
63
63
  */
64
64
  waitForNamespace = (request, options) => waitForResource(
65
- options?.stop ?? ((res) => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))),
65
+ options?.stop ?? ((res) => Promise.resolve(
66
+ !NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
67
+ )),
66
68
  this.getNamespace,
67
69
  request,
68
70
  options
@@ -164,7 +166,9 @@ class API extends API$1 {
164
166
  * @returns A Promise of Function
165
167
  */
166
168
  waitForFunction = (request, options) => waitForResource(
167
- options?.stop ?? ((res) => Promise.resolve(!FUNCTION_TRANSIENT_STATUSES.includes(res.status))),
169
+ options?.stop ?? ((res) => Promise.resolve(
170
+ !FUNCTION_TRANSIENT_STATUSES.includes(res.status)
171
+ )),
168
172
  this.getFunction,
169
173
  request,
170
174
  options
@@ -319,7 +323,9 @@ class API extends API$1 {
319
323
  * @returns A Promise of Cron
320
324
  */
321
325
  waitForCron = (request, options) => waitForResource(
322
- options?.stop ?? ((res) => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))),
326
+ options?.stop ?? ((res) => Promise.resolve(
327
+ !CRON_TRANSIENT_STATUSES.includes(res.status)
328
+ )),
323
329
  this.getCron,
324
330
  request,
325
331
  options
@@ -418,7 +424,9 @@ class API extends API$1 {
418
424
  * @returns A Promise of Domain
419
425
  */
420
426
  waitForDomain = (request, options) => waitForResource(
421
- options?.stop ?? ((res) => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
427
+ options?.stop ?? ((res) => Promise.resolve(
428
+ !DOMAIN_TRANSIENT_STATUSES.includes(res.status)
429
+ )),
422
430
  this.getDomain,
423
431
  request,
424
432
  options
@@ -493,7 +501,9 @@ class API extends API$1 {
493
501
  * @returns A Promise of Token
494
502
  */
495
503
  waitForToken = (request, options) => waitForResource(
496
- options?.stop ?? ((res) => Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))),
504
+ options?.stop ?? ((res) => Promise.resolve(
505
+ !TOKEN_TRANSIENT_STATUSES.includes(res.status)
506
+ )),
497
507
  this.getToken,
498
508
  request,
499
509
  options
@@ -573,7 +583,9 @@ class API extends API$1 {
573
583
  * @returns A Promise of Trigger
574
584
  */
575
585
  waitForTrigger = (request, options) => waitForResource(
576
- options?.stop ?? ((res) => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))),
586
+ options?.stop ?? ((res) => Promise.resolve(
587
+ !TRIGGER_TRANSIENT_STATUSES.includes(res.status)
588
+ )),
577
589
  this.getTrigger,
578
590
  request,
579
591
  options
@@ -3,7 +3,7 @@ export type CronStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' |
3
3
  export type DomainStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
4
4
  export type FunctionHttpOption = 'unknown_http_option' | 'enabled' | 'redirected';
5
5
  export type FunctionPrivacy = 'unknown_privacy' | 'public' | 'private';
6
- export type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311' | 'php82' | 'node19' | 'go120' | 'node20' | 'go121' | 'node22' | 'python312' | 'php83' | 'go122' | 'rust179';
6
+ export type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311' | 'php82' | 'node19' | 'go120' | 'node20' | 'go121' | 'node22' | 'python312' | 'php83' | 'go122' | 'rust179' | 'go123' | 'go124' | 'python313' | 'rust185' | 'php84';
7
7
  export type FunctionSandbox = 'unknown_sandbox' | 'v1' | 'v2';
8
8
  export type FunctionStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creating' | 'pending' | 'created';
9
9
  export type ListCronsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
@@ -198,8 +198,7 @@ class API extends api.API {
198
198
  marshalling_gen.unmarshalUser
199
199
  );
200
200
  /**
201
- * Update an user's username. Private Beta feature.. Update an user's
202
- * username. Private Beta feature.
201
+ * Update an user's username.. Update an user's username.
203
202
  *
204
203
  * @param request - The request {@link UpdateUserUsernameRequest}
205
204
  * @returns A Promise of User
@@ -216,8 +215,7 @@ class API extends api.API {
216
215
  marshalling_gen.unmarshalUser
217
216
  );
218
217
  /**
219
- * Update an user's password. Private Beta feature.. Update an user's
220
- * password. Private Beta feature.
218
+ * Update an user's password.. Update an user's password.
221
219
  *
222
220
  * @param request - The request {@link UpdateUserPasswordRequest}
223
221
  * @returns A Promise of User
@@ -234,8 +232,7 @@ class API extends api.API {
234
232
  marshalling_gen.unmarshalUser
235
233
  );
236
234
  /**
237
- * Create a MFA OTP. Private Beta feature.. Create a MFA OTP. Private Beta
238
- * feature.
235
+ * Create a MFA OTP.. Create a MFA OTP.
239
236
  *
240
237
  * @param request - The request {@link CreateUserMFAOTPRequest}
241
238
  * @returns A Promise of MFAOTP
@@ -250,8 +247,7 @@ class API extends api.API {
250
247
  marshalling_gen.unmarshalMFAOTP
251
248
  );
252
249
  /**
253
- * Validate a MFA OTP. Private Beta feature.. Validate a MFA OTP. Private Beta
254
- * feature.
250
+ * Validate a MFA OTP.. Validate a MFA OTP.
255
251
  *
256
252
  * @param request - The request {@link ValidateUserMFAOTPRequest}
257
253
  * @returns A Promise of ValidateUserMFAOTPResponse
@@ -268,8 +264,7 @@ class API extends api.API {
268
264
  marshalling_gen.unmarshalValidateUserMFAOTPResponse
269
265
  );
270
266
  /**
271
- * Delete a MFA OTP. Private Beta feature.. Delete a MFA OTP. Private Beta
272
- * feature.
267
+ * Delete a MFA OTP.. Delete a MFA OTP.
273
268
  *
274
269
  * @param request - The request {@link DeleteUserMFAOTPRequest}
275
270
  */
@@ -281,7 +276,7 @@ class API extends api.API {
281
276
  });
282
277
  /**
283
278
  * Lock a member. Lock a member. A locked member cannot log in or use API keys
284
- * until the locked status is removed. Private Beta feature.
279
+ * until the locked status is removed.
285
280
  *
286
281
  * @param request - The request {@link LockUserRequest}
287
282
  * @returns A Promise of User
@@ -296,7 +291,7 @@ class API extends api.API {
296
291
  marshalling_gen.unmarshalUser
297
292
  );
298
293
  /**
299
- * Unlock a member. Unlock a member. Private Beta feature.
294
+ * Unlock a member.
300
295
  *
301
296
  * @param request - The request {@link UnlockUserRequest}
302
297
  * @returns A Promise of User
@@ -311,8 +306,7 @@ class API extends api.API {
311
306
  marshalling_gen.unmarshalUser
312
307
  );
313
308
  /**
314
- * List grace periods of a member. List the grace periods of a member. Private
315
- * Beta feature.
309
+ * List grace periods of a member. List the grace periods of a member.
316
310
  *
317
311
  * @param request - The request {@link ListGracePeriodsRequest}
318
312
  * @returns A Promise of ListGracePeriodsResponse
@@ -104,62 +104,56 @@ export declare class API extends ParentAPI {
104
104
  */
105
105
  createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
106
106
  /**
107
- * Update an user's username. Private Beta feature.. Update an user's
108
- * username. Private Beta feature.
107
+ * Update an user's username.. Update an user's username.
109
108
  *
110
109
  * @param request - The request {@link UpdateUserUsernameRequest}
111
110
  * @returns A Promise of User
112
111
  */
113
112
  updateUserUsername: (request: Readonly<UpdateUserUsernameRequest>) => Promise<User>;
114
113
  /**
115
- * Update an user's password. Private Beta feature.. Update an user's
116
- * password. Private Beta feature.
114
+ * Update an user's password.. Update an user's password.
117
115
  *
118
116
  * @param request - The request {@link UpdateUserPasswordRequest}
119
117
  * @returns A Promise of User
120
118
  */
121
119
  updateUserPassword: (request: Readonly<UpdateUserPasswordRequest>) => Promise<User>;
122
120
  /**
123
- * Create a MFA OTP. Private Beta feature.. Create a MFA OTP. Private Beta
124
- * feature.
121
+ * Create a MFA OTP.. Create a MFA OTP.
125
122
  *
126
123
  * @param request - The request {@link CreateUserMFAOTPRequest}
127
124
  * @returns A Promise of MFAOTP
128
125
  */
129
126
  createUserMFAOTP: (request: Readonly<CreateUserMFAOTPRequest>) => Promise<MFAOTP>;
130
127
  /**
131
- * Validate a MFA OTP. Private Beta feature.. Validate a MFA OTP. Private Beta
132
- * feature.
128
+ * Validate a MFA OTP.. Validate a MFA OTP.
133
129
  *
134
130
  * @param request - The request {@link ValidateUserMFAOTPRequest}
135
131
  * @returns A Promise of ValidateUserMFAOTPResponse
136
132
  */
137
133
  validateUserMFAOTP: (request: Readonly<ValidateUserMFAOTPRequest>) => Promise<ValidateUserMFAOTPResponse>;
138
134
  /**
139
- * Delete a MFA OTP. Private Beta feature.. Delete a MFA OTP. Private Beta
140
- * feature.
135
+ * Delete a MFA OTP.. Delete a MFA OTP.
141
136
  *
142
137
  * @param request - The request {@link DeleteUserMFAOTPRequest}
143
138
  */
144
139
  deleteUserMFAOTP: (request: Readonly<DeleteUserMFAOTPRequest>) => Promise<void>;
145
140
  /**
146
141
  * Lock a member. Lock a member. A locked member cannot log in or use API keys
147
- * until the locked status is removed. Private Beta feature.
142
+ * until the locked status is removed.
148
143
  *
149
144
  * @param request - The request {@link LockUserRequest}
150
145
  * @returns A Promise of User
151
146
  */
152
147
  lockUser: (request: Readonly<LockUserRequest>) => Promise<User>;
153
148
  /**
154
- * Unlock a member. Unlock a member. Private Beta feature.
149
+ * Unlock a member.
155
150
  *
156
151
  * @param request - The request {@link UnlockUserRequest}
157
152
  * @returns A Promise of User
158
153
  */
159
154
  unlockUser: (request: Readonly<UnlockUserRequest>) => Promise<User>;
160
155
  /**
161
- * List grace periods of a member. List the grace periods of a member. Private
162
- * Beta feature.
156
+ * List grace periods of a member. List the grace periods of a member.
163
157
  *
164
158
  * @param request - The request {@link ListGracePeriodsRequest}
165
159
  * @returns A Promise of ListGracePeriodsResponse
@@ -196,8 +196,7 @@ class API extends API$1 {
196
196
  unmarshalUser
197
197
  );
198
198
  /**
199
- * Update an user's username. Private Beta feature.. Update an user's
200
- * username. Private Beta feature.
199
+ * Update an user's username.. Update an user's username.
201
200
  *
202
201
  * @param request - The request {@link UpdateUserUsernameRequest}
203
202
  * @returns A Promise of User
@@ -214,8 +213,7 @@ class API extends API$1 {
214
213
  unmarshalUser
215
214
  );
216
215
  /**
217
- * Update an user's password. Private Beta feature.. Update an user's
218
- * password. Private Beta feature.
216
+ * Update an user's password.. Update an user's password.
219
217
  *
220
218
  * @param request - The request {@link UpdateUserPasswordRequest}
221
219
  * @returns A Promise of User
@@ -232,8 +230,7 @@ class API extends API$1 {
232
230
  unmarshalUser
233
231
  );
234
232
  /**
235
- * Create a MFA OTP. Private Beta feature.. Create a MFA OTP. Private Beta
236
- * feature.
233
+ * Create a MFA OTP.. Create a MFA OTP.
237
234
  *
238
235
  * @param request - The request {@link CreateUserMFAOTPRequest}
239
236
  * @returns A Promise of MFAOTP
@@ -248,8 +245,7 @@ class API extends API$1 {
248
245
  unmarshalMFAOTP
249
246
  );
250
247
  /**
251
- * Validate a MFA OTP. Private Beta feature.. Validate a MFA OTP. Private Beta
252
- * feature.
248
+ * Validate a MFA OTP.. Validate a MFA OTP.
253
249
  *
254
250
  * @param request - The request {@link ValidateUserMFAOTPRequest}
255
251
  * @returns A Promise of ValidateUserMFAOTPResponse
@@ -266,8 +262,7 @@ class API extends API$1 {
266
262
  unmarshalValidateUserMFAOTPResponse
267
263
  );
268
264
  /**
269
- * Delete a MFA OTP. Private Beta feature.. Delete a MFA OTP. Private Beta
270
- * feature.
265
+ * Delete a MFA OTP.. Delete a MFA OTP.
271
266
  *
272
267
  * @param request - The request {@link DeleteUserMFAOTPRequest}
273
268
  */
@@ -279,7 +274,7 @@ class API extends API$1 {
279
274
  });
280
275
  /**
281
276
  * Lock a member. Lock a member. A locked member cannot log in or use API keys
282
- * until the locked status is removed. Private Beta feature.
277
+ * until the locked status is removed.
283
278
  *
284
279
  * @param request - The request {@link LockUserRequest}
285
280
  * @returns A Promise of User
@@ -294,7 +289,7 @@ class API extends API$1 {
294
289
  unmarshalUser
295
290
  );
296
291
  /**
297
- * Unlock a member. Unlock a member. Private Beta feature.
292
+ * Unlock a member.
298
293
  *
299
294
  * @param request - The request {@link UnlockUserRequest}
300
295
  * @returns A Promise of User
@@ -309,8 +304,7 @@ class API extends API$1 {
309
304
  unmarshalUser
310
305
  );
311
306
  /**
312
- * List grace periods of a member. List the grace periods of a member. Private
313
- * Beta feature.
307
+ * List grace periods of a member. List the grace periods of a member.
314
308
  *
315
309
  * @param request - The request {@link ListGracePeriodsRequest}
316
310
  * @returns A Promise of ListGracePeriodsResponse
@@ -188,11 +188,15 @@ const unmarshalUser = (data) => {
188
188
  createdAt: marshalling.unmarshalDate(data.created_at),
189
189
  deletable: data.deletable,
190
190
  email: data.email,
191
+ firstName: data.first_name,
191
192
  id: data.id,
192
193
  lastLoginAt: marshalling.unmarshalDate(data.last_login_at),
194
+ lastName: data.last_name,
195
+ locale: data.locale,
193
196
  locked: data.locked,
194
197
  mfa: data.mfa,
195
198
  organizationId: data.organization_id,
199
+ phoneNumber: data.phone_number,
196
200
  status: data.status,
197
201
  tags: data.tags,
198
202
  twoFactorEnabled: data.two_factor_enabled,
@@ -545,7 +549,11 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
545
549
  });
546
550
  const marshalCreateUserRequestMember = (request, defaults) => ({
547
551
  email: request.email,
552
+ first_name: request.firstName,
553
+ last_name: request.lastName,
554
+ locale: request.locale,
548
555
  password: request.password,
556
+ phone_number: request.phoneNumber,
549
557
  send_password_email: request.sendPasswordEmail,
550
558
  send_welcome_email: request.sendWelcomeEmail,
551
559
  username: request.username
@@ -614,6 +622,10 @@ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
614
622
  });
615
623
  const marshalUpdateUserRequest = (request, defaults) => ({
616
624
  email: request.email,
625
+ first_name: request.firstName,
626
+ last_name: request.lastName,
627
+ locale: request.locale,
628
+ phone_number: request.phoneNumber,
617
629
  tags: request.tags
618
630
  });
619
631
  const marshalUpdateUserUsernameRequest = (request, defaults) => ({
@@ -186,11 +186,15 @@ const unmarshalUser = (data) => {
186
186
  createdAt: unmarshalDate(data.created_at),
187
187
  deletable: data.deletable,
188
188
  email: data.email,
189
+ firstName: data.first_name,
189
190
  id: data.id,
190
191
  lastLoginAt: unmarshalDate(data.last_login_at),
192
+ lastName: data.last_name,
193
+ locale: data.locale,
191
194
  locked: data.locked,
192
195
  mfa: data.mfa,
193
196
  organizationId: data.organization_id,
197
+ phoneNumber: data.phone_number,
194
198
  status: data.status,
195
199
  tags: data.tags,
196
200
  twoFactorEnabled: data.two_factor_enabled,
@@ -543,7 +547,11 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
543
547
  });
544
548
  const marshalCreateUserRequestMember = (request, defaults) => ({
545
549
  email: request.email,
550
+ first_name: request.firstName,
551
+ last_name: request.lastName,
552
+ locale: request.locale,
546
553
  password: request.password,
554
+ phone_number: request.phoneNumber,
547
555
  send_password_email: request.sendPasswordEmail,
548
556
  send_welcome_email: request.sendWelcomeEmail,
549
557
  username: request.username
@@ -612,6 +620,10 @@ const marshalUpdateUserPasswordRequest = (request, defaults) => ({
612
620
  });
613
621
  const marshalUpdateUserRequest = (request, defaults) => ({
614
622
  email: request.email,
623
+ first_name: request.firstName,
624
+ last_name: request.lastName,
625
+ locale: request.locale,
626
+ phone_number: request.phoneNumber,
615
627
  tags: request.tags
616
628
  });
617
629
  const marshalUpdateUserUsernameRequest = (request, defaults) => ({