appwrite-cli 2.0.2 → 3.0.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 (102) hide show
  1. package/README.md +11 -6
  2. package/docs/examples/account/delete-identity.md +2 -0
  3. package/docs/examples/account/list-identities.md +2 -0
  4. package/docs/examples/assistant/chat.md +2 -0
  5. package/docs/examples/databases/create-collection.md +1 -0
  6. package/docs/examples/databases/create-string-attribute.md +1 -0
  7. package/docs/examples/databases/create.md +2 -1
  8. package/docs/examples/databases/list-attributes.md +2 -1
  9. package/docs/examples/databases/list-indexes.md +2 -1
  10. package/docs/examples/databases/update.md +2 -1
  11. package/docs/examples/functions/create-deployment.md +3 -2
  12. package/docs/examples/functions/create-execution.md +3 -0
  13. package/docs/examples/functions/create.md +12 -0
  14. package/docs/examples/functions/download-deployment.md +3 -0
  15. package/docs/examples/functions/update.md +9 -0
  16. package/docs/examples/health/get-pub-sub.md +1 -0
  17. package/docs/examples/health/get-queue.md +1 -0
  18. package/docs/examples/locale/list-codes.md +1 -0
  19. package/docs/examples/migrations/create-appwrite-migration.md +5 -0
  20. package/docs/examples/migrations/create-firebase-migration.md +3 -0
  21. package/docs/examples/migrations/create-firebase-o-auth-migration.md +3 -0
  22. package/docs/examples/migrations/create-n-host-migration.md +9 -0
  23. package/docs/examples/migrations/create-supabase-migration.md +8 -0
  24. package/docs/examples/migrations/delete-firebase-auth.md +1 -0
  25. package/docs/examples/migrations/delete.md +2 -0
  26. package/docs/examples/migrations/get-appwrite-report.md +5 -0
  27. package/docs/examples/migrations/get-firebase-report-o-auth.md +3 -0
  28. package/docs/examples/migrations/get-firebase-report.md +3 -0
  29. package/docs/examples/migrations/get-n-host-report.md +9 -0
  30. package/docs/examples/migrations/get-supabase-report.md +8 -0
  31. package/docs/examples/migrations/get.md +2 -0
  32. package/docs/examples/migrations/list-firebase-projects.md +1 -0
  33. package/docs/examples/migrations/list.md +3 -0
  34. package/docs/examples/migrations/retry.md +2 -0
  35. package/docs/examples/project/create-variable.md +3 -0
  36. package/docs/examples/project/delete-variable.md +2 -0
  37. package/docs/examples/project/get-usage.md +2 -0
  38. package/docs/examples/project/get-variable.md +2 -0
  39. package/docs/examples/project/list-variables.md +1 -0
  40. package/docs/examples/project/update-variable.md +4 -0
  41. package/docs/examples/projects/create.md +1 -1
  42. package/docs/examples/projects/delete-email-template.md +4 -0
  43. package/docs/examples/projects/delete-sms-template.md +4 -0
  44. package/docs/examples/projects/delete.md +1 -2
  45. package/docs/examples/projects/get-email-template.md +4 -0
  46. package/docs/examples/projects/get-sms-template.md +4 -0
  47. package/docs/examples/projects/update-email-template.md +9 -0
  48. package/docs/examples/projects/update-personal-data-check.md +3 -0
  49. package/docs/examples/projects/update-service-status-all.md +3 -0
  50. package/docs/examples/projects/update-sms-template.md +5 -0
  51. package/docs/examples/projects/update-smtp-configuration.md +11 -0
  52. package/docs/examples/projects/update-team.md +3 -0
  53. package/docs/examples/proxy/create-rule.md +4 -0
  54. package/docs/examples/proxy/delete-rule.md +2 -0
  55. package/docs/examples/proxy/get-rule.md +2 -0
  56. package/docs/examples/proxy/list-rules.md +3 -0
  57. package/docs/examples/proxy/update-rule-verification.md +2 -0
  58. package/docs/examples/storage/update-file.md +1 -0
  59. package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +1 -1
  60. package/docs/examples/users/delete-identity.md +2 -0
  61. package/docs/examples/users/list-identities.md +3 -0
  62. package/docs/examples/users/update-labels.md +3 -0
  63. package/docs/examples/vcs/create-repository-detection.md +4 -0
  64. package/docs/examples/vcs/create-repository.md +4 -0
  65. package/docs/examples/vcs/delete-installation.md +2 -0
  66. package/docs/examples/vcs/get-installation.md +2 -0
  67. package/docs/examples/vcs/get-repository.md +3 -0
  68. package/docs/examples/vcs/list-installations.md +3 -0
  69. package/docs/examples/vcs/list-repositories.md +3 -0
  70. package/docs/examples/vcs/list-repository-branches.md +3 -0
  71. package/docs/examples/vcs/update-external-deployments.md +4 -0
  72. package/index.js +10 -0
  73. package/install.ps1 +2 -2
  74. package/install.sh +1 -1
  75. package/lib/client.js +3 -3
  76. package/lib/commands/account.js +122 -67
  77. package/lib/commands/assistant.js +53 -0
  78. package/lib/commands/avatars.js +21 -21
  79. package/lib/commands/console.js +2 -2
  80. package/lib/commands/databases.js +146 -104
  81. package/lib/commands/functions.js +277 -70
  82. package/lib/commands/generic.js +1 -0
  83. package/lib/commands/graphql.js +4 -4
  84. package/lib/commands/health.js +68 -22
  85. package/lib/commands/locale.js +37 -14
  86. package/lib/commands/migrations.js +708 -0
  87. package/lib/commands/project.js +204 -0
  88. package/lib/commands/projects.js +459 -196
  89. package/lib/commands/proxy.js +177 -0
  90. package/lib/commands/storage.js +47 -40
  91. package/lib/commands/teams.js +33 -33
  92. package/lib/commands/users.js +147 -52
  93. package/lib/commands/vcs.js +305 -0
  94. package/lib/config.js +1 -2
  95. package/lib/parser.js +2 -2
  96. package/package.json +1 -1
  97. package/scoop/appwrite.json +30 -0
  98. package/docs/examples/projects/create-domain.md +0 -3
  99. package/docs/examples/projects/delete-domain.md +0 -3
  100. package/docs/examples/projects/get-domain.md +0 -3
  101. package/docs/examples/projects/list-domains.md +0 -2
  102. package/docs/examples/projects/update-domain-verification.md +0 -3
@@ -19,7 +19,7 @@ const projectsList = async ({ queries, search, parseOutput = true, sdk = undefin
19
19
  /* @param {string} search */
20
20
 
21
21
  let client = !sdk ? await sdkForConsole() : sdk;
22
- let path = '/projects';
22
+ let apiPath = '/projects';
23
23
  let payload = {};
24
24
 
25
25
  /** Query Params */
@@ -30,7 +30,7 @@ const projectsList = async ({ queries, search, parseOutput = true, sdk = undefin
30
30
  payload['search'] = search;
31
31
  }
32
32
  let response = undefined;
33
- response = await client.call('get', path, {
33
+ response = await client.call('get', apiPath, {
34
34
  'content-type': 'application/json',
35
35
  }, payload);
36
36
 
@@ -57,7 +57,7 @@ const projectsCreate = async ({ projectId, name, teamId, region, description, lo
57
57
  /* @param {string} legalTaxId */
58
58
 
59
59
  let client = !sdk ? await sdkForConsole() : sdk;
60
- let path = '/projects';
60
+ let apiPath = '/projects';
61
61
  let payload = {};
62
62
 
63
63
  /** Body Params */
@@ -127,7 +127,7 @@ const projectsCreate = async ({ projectId, name, teamId, region, description, lo
127
127
  }
128
128
 
129
129
  let response = undefined;
130
- response = await client.call('post', path, {
130
+ response = await client.call('post', apiPath, {
131
131
  'content-type': 'application/json',
132
132
  }, payload);
133
133
 
@@ -142,10 +142,10 @@ const projectsGet = async ({ projectId, parseOutput = true, sdk = undefined}) =>
142
142
  /* @param {string} projectId */
143
143
 
144
144
  let client = !sdk ? await sdkForConsole() : sdk;
145
- let path = '/projects/{projectId}'.replace('{projectId}', projectId);
145
+ let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
146
146
  let payload = {};
147
147
  let response = undefined;
148
- response = await client.call('get', path, {
148
+ response = await client.call('get', apiPath, {
149
149
  'content-type': 'application/json',
150
150
  }, payload);
151
151
 
@@ -170,7 +170,7 @@ const projectsUpdate = async ({ projectId, name, description, logo, url, legalNa
170
170
  /* @param {string} legalTaxId */
171
171
 
172
172
  let client = !sdk ? await sdkForConsole() : sdk;
173
- let path = '/projects/{projectId}'.replace('{projectId}', projectId);
173
+ let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
174
174
  let payload = {};
175
175
 
176
176
  /** Body Params */
@@ -225,7 +225,7 @@ const projectsUpdate = async ({ projectId, name, description, logo, url, legalNa
225
225
  }
226
226
 
227
227
  let response = undefined;
228
- response = await client.call('patch', path, {
228
+ response = await client.call('patch', apiPath, {
229
229
  'content-type': 'application/json',
230
230
  }, payload);
231
231
 
@@ -236,22 +236,14 @@ const projectsUpdate = async ({ projectId, name, description, logo, url, legalNa
236
236
  return response;
237
237
  }
238
238
 
239
- const projectsDelete = async ({ projectId, password, parseOutput = true, sdk = undefined}) => {
239
+ const projectsDelete = async ({ projectId, parseOutput = true, sdk = undefined}) => {
240
240
  /* @param {string} projectId */
241
- /* @param {string} password */
242
241
 
243
242
  let client = !sdk ? await sdkForConsole() : sdk;
244
- let path = '/projects/{projectId}'.replace('{projectId}', projectId);
243
+ let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
245
244
  let payload = {};
246
-
247
- /** Body Params */
248
-
249
- if (typeof password !== 'undefined') {
250
- payload['password'] = password;
251
- }
252
-
253
245
  let response = undefined;
254
- response = await client.call('delete', path, {
246
+ response = await client.call('delete', apiPath, {
255
247
  'content-type': 'application/json',
256
248
  }, payload);
257
249
 
@@ -267,7 +259,7 @@ const projectsUpdateAuthDuration = async ({ projectId, duration, parseOutput = t
267
259
  /* @param {number} duration */
268
260
 
269
261
  let client = !sdk ? await sdkForConsole() : sdk;
270
- let path = '/projects/{projectId}/auth/duration'.replace('{projectId}', projectId);
262
+ let apiPath = '/projects/{projectId}/auth/duration'.replace('{projectId}', projectId);
271
263
  let payload = {};
272
264
 
273
265
  /** Body Params */
@@ -277,7 +269,7 @@ const projectsUpdateAuthDuration = async ({ projectId, duration, parseOutput = t
277
269
  }
278
270
 
279
271
  let response = undefined;
280
- response = await client.call('patch', path, {
272
+ response = await client.call('patch', apiPath, {
281
273
  'content-type': 'application/json',
282
274
  }, payload);
283
275
 
@@ -293,7 +285,7 @@ const projectsUpdateAuthLimit = async ({ projectId, limit, parseOutput = true, s
293
285
  /* @param {number} limit */
294
286
 
295
287
  let client = !sdk ? await sdkForConsole() : sdk;
296
- let path = '/projects/{projectId}/auth/limit'.replace('{projectId}', projectId);
288
+ let apiPath = '/projects/{projectId}/auth/limit'.replace('{projectId}', projectId);
297
289
  let payload = {};
298
290
 
299
291
  /** Body Params */
@@ -303,7 +295,7 @@ const projectsUpdateAuthLimit = async ({ projectId, limit, parseOutput = true, s
303
295
  }
304
296
 
305
297
  let response = undefined;
306
- response = await client.call('patch', path, {
298
+ response = await client.call('patch', apiPath, {
307
299
  'content-type': 'application/json',
308
300
  }, payload);
309
301
 
@@ -319,7 +311,7 @@ const projectsUpdateAuthSessionsLimit = async ({ projectId, limit, parseOutput =
319
311
  /* @param {number} limit */
320
312
 
321
313
  let client = !sdk ? await sdkForConsole() : sdk;
322
- let path = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId);
314
+ let apiPath = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId);
323
315
  let payload = {};
324
316
 
325
317
  /** Body Params */
@@ -329,7 +321,7 @@ const projectsUpdateAuthSessionsLimit = async ({ projectId, limit, parseOutput =
329
321
  }
330
322
 
331
323
  let response = undefined;
332
- response = await client.call('patch', path, {
324
+ response = await client.call('patch', apiPath, {
333
325
  'content-type': 'application/json',
334
326
  }, payload);
335
327
 
@@ -345,7 +337,7 @@ const projectsUpdateAuthPasswordDictionary = async ({ projectId, enabled, parseO
345
337
  /* @param {boolean} enabled */
346
338
 
347
339
  let client = !sdk ? await sdkForConsole() : sdk;
348
- let path = '/projects/{projectId}/auth/password-dictionary'.replace('{projectId}', projectId);
340
+ let apiPath = '/projects/{projectId}/auth/password-dictionary'.replace('{projectId}', projectId);
349
341
  let payload = {};
350
342
 
351
343
  /** Body Params */
@@ -355,7 +347,7 @@ const projectsUpdateAuthPasswordDictionary = async ({ projectId, enabled, parseO
355
347
  }
356
348
 
357
349
  let response = undefined;
358
- response = await client.call('patch', path, {
350
+ response = await client.call('patch', apiPath, {
359
351
  'content-type': 'application/json',
360
352
  }, payload);
361
353
 
@@ -371,7 +363,7 @@ const projectsUpdateAuthPasswordHistory = async ({ projectId, limit, parseOutput
371
363
  /* @param {number} limit */
372
364
 
373
365
  let client = !sdk ? await sdkForConsole() : sdk;
374
- let path = '/projects/{projectId}/auth/password-history'.replace('{projectId}', projectId);
366
+ let apiPath = '/projects/{projectId}/auth/password-history'.replace('{projectId}', projectId);
375
367
  let payload = {};
376
368
 
377
369
  /** Body Params */
@@ -381,7 +373,7 @@ const projectsUpdateAuthPasswordHistory = async ({ projectId, limit, parseOutput
381
373
  }
382
374
 
383
375
  let response = undefined;
384
- response = await client.call('patch', path, {
376
+ response = await client.call('patch', apiPath, {
385
377
  'content-type': 'application/json',
386
378
  }, payload);
387
379
 
@@ -392,41 +384,22 @@ const projectsUpdateAuthPasswordHistory = async ({ projectId, limit, parseOutput
392
384
  return response;
393
385
  }
394
386
 
395
- const projectsUpdateAuthStatus = async ({ projectId, method, status, parseOutput = true, sdk = undefined}) => {
387
+ const projectsUpdatePersonalDataCheck = async ({ projectId, enabled, parseOutput = true, sdk = undefined}) => {
396
388
  /* @param {string} projectId */
397
- /* @param {string} method */
398
- /* @param {boolean} status */
389
+ /* @param {boolean} enabled */
399
390
 
400
391
  let client = !sdk ? await sdkForConsole() : sdk;
401
- let path = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
392
+ let apiPath = '/projects/{projectId}/auth/personal-data'.replace('{projectId}', projectId);
402
393
  let payload = {};
403
394
 
404
395
  /** Body Params */
405
396
 
406
- if (typeof status !== 'undefined') {
407
- payload['status'] = status;
408
- }
409
-
410
- let response = undefined;
411
- response = await client.call('patch', path, {
412
- 'content-type': 'application/json',
413
- }, payload);
414
-
415
- if (parseOutput) {
416
- parse(response)
417
- success()
397
+ if (typeof enabled !== 'undefined') {
398
+ payload['enabled'] = enabled;
418
399
  }
419
- return response;
420
- }
421
-
422
- const projectsListDomains = async ({ projectId, parseOutput = true, sdk = undefined}) => {
423
- /* @param {string} projectId */
424
400
 
425
- let client = !sdk ? await sdkForConsole() : sdk;
426
- let path = '/projects/{projectId}/domains'.replace('{projectId}', projectId);
427
- let payload = {};
428
401
  let response = undefined;
429
- response = await client.call('get', path, {
402
+ response = await client.call('patch', apiPath, {
430
403
  'content-type': 'application/json',
431
404
  }, payload);
432
405
 
@@ -437,79 +410,23 @@ const projectsListDomains = async ({ projectId, parseOutput = true, sdk = undefi
437
410
  return response;
438
411
  }
439
412
 
440
- const projectsCreateDomain = async ({ projectId, domain, parseOutput = true, sdk = undefined}) => {
413
+ const projectsUpdateAuthStatus = async ({ projectId, method, status, parseOutput = true, sdk = undefined}) => {
441
414
  /* @param {string} projectId */
442
- /* @param {string} domain */
415
+ /* @param {string} method */
416
+ /* @param {boolean} status */
443
417
 
444
418
  let client = !sdk ? await sdkForConsole() : sdk;
445
- let path = '/projects/{projectId}/domains'.replace('{projectId}', projectId);
419
+ let apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
446
420
  let payload = {};
447
421
 
448
422
  /** Body Params */
449
423
 
450
- if (typeof domain !== 'undefined') {
451
- payload['domain'] = domain;
452
- }
453
-
454
- let response = undefined;
455
- response = await client.call('post', path, {
456
- 'content-type': 'application/json',
457
- }, payload);
458
-
459
- if (parseOutput) {
460
- parse(response)
461
- success()
462
- }
463
- return response;
464
- }
465
-
466
- const projectsGetDomain = async ({ projectId, domainId, parseOutput = true, sdk = undefined}) => {
467
- /* @param {string} projectId */
468
- /* @param {string} domainId */
469
-
470
- let client = !sdk ? await sdkForConsole() : sdk;
471
- let path = '/projects/{projectId}/domains/{domainId}'.replace('{projectId}', projectId).replace('{domainId}', domainId);
472
- let payload = {};
473
- let response = undefined;
474
- response = await client.call('get', path, {
475
- 'content-type': 'application/json',
476
- }, payload);
477
-
478
- if (parseOutput) {
479
- parse(response)
480
- success()
481
- }
482
- return response;
483
- }
484
-
485
- const projectsDeleteDomain = async ({ projectId, domainId, parseOutput = true, sdk = undefined}) => {
486
- /* @param {string} projectId */
487
- /* @param {string} domainId */
488
-
489
- let client = !sdk ? await sdkForConsole() : sdk;
490
- let path = '/projects/{projectId}/domains/{domainId}'.replace('{projectId}', projectId).replace('{domainId}', domainId);
491
- let payload = {};
492
- let response = undefined;
493
- response = await client.call('delete', path, {
494
- 'content-type': 'application/json',
495
- }, payload);
496
-
497
- if (parseOutput) {
498
- parse(response)
499
- success()
424
+ if (typeof status !== 'undefined') {
425
+ payload['status'] = status;
500
426
  }
501
- return response;
502
- }
503
-
504
- const projectsUpdateDomainVerification = async ({ projectId, domainId, parseOutput = true, sdk = undefined}) => {
505
- /* @param {string} projectId */
506
- /* @param {string} domainId */
507
427
 
508
- let client = !sdk ? await sdkForConsole() : sdk;
509
- let path = '/projects/{projectId}/domains/{domainId}/verification'.replace('{projectId}', projectId).replace('{domainId}', domainId);
510
- let payload = {};
511
428
  let response = undefined;
512
- response = await client.call('patch', path, {
429
+ response = await client.call('patch', apiPath, {
513
430
  'content-type': 'application/json',
514
431
  }, payload);
515
432
 
@@ -524,10 +441,10 @@ const projectsListKeys = async ({ projectId, parseOutput = true, sdk = undefined
524
441
  /* @param {string} projectId */
525
442
 
526
443
  let client = !sdk ? await sdkForConsole() : sdk;
527
- let path = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
444
+ let apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
528
445
  let payload = {};
529
446
  let response = undefined;
530
- response = await client.call('get', path, {
447
+ response = await client.call('get', apiPath, {
531
448
  'content-type': 'application/json',
532
449
  }, payload);
533
450
 
@@ -545,7 +462,7 @@ const projectsCreateKey = async ({ projectId, name, scopes, expire, parseOutput
545
462
  /* @param {string} expire */
546
463
 
547
464
  let client = !sdk ? await sdkForConsole() : sdk;
548
- let path = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
465
+ let apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
549
466
  let payload = {};
550
467
 
551
468
  /** Body Params */
@@ -566,7 +483,7 @@ const projectsCreateKey = async ({ projectId, name, scopes, expire, parseOutput
566
483
  }
567
484
 
568
485
  let response = undefined;
569
- response = await client.call('post', path, {
486
+ response = await client.call('post', apiPath, {
570
487
  'content-type': 'application/json',
571
488
  }, payload);
572
489
 
@@ -582,10 +499,10 @@ const projectsGetKey = async ({ projectId, keyId, parseOutput = true, sdk = unde
582
499
  /* @param {string} keyId */
583
500
 
584
501
  let client = !sdk ? await sdkForConsole() : sdk;
585
- let path = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
502
+ let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
586
503
  let payload = {};
587
504
  let response = undefined;
588
- response = await client.call('get', path, {
505
+ response = await client.call('get', apiPath, {
589
506
  'content-type': 'application/json',
590
507
  }, payload);
591
508
 
@@ -604,7 +521,7 @@ const projectsUpdateKey = async ({ projectId, keyId, name, scopes, expire, parse
604
521
  /* @param {string} expire */
605
522
 
606
523
  let client = !sdk ? await sdkForConsole() : sdk;
607
- let path = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
524
+ let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
608
525
  let payload = {};
609
526
 
610
527
  /** Body Params */
@@ -625,7 +542,7 @@ const projectsUpdateKey = async ({ projectId, keyId, name, scopes, expire, parse
625
542
  }
626
543
 
627
544
  let response = undefined;
628
- response = await client.call('put', path, {
545
+ response = await client.call('put', apiPath, {
629
546
  'content-type': 'application/json',
630
547
  }, payload);
631
548
 
@@ -641,10 +558,10 @@ const projectsDeleteKey = async ({ projectId, keyId, parseOutput = true, sdk = u
641
558
  /* @param {string} keyId */
642
559
 
643
560
  let client = !sdk ? await sdkForConsole() : sdk;
644
- let path = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
561
+ let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
645
562
  let payload = {};
646
563
  let response = undefined;
647
- response = await client.call('delete', path, {
564
+ response = await client.call('delete', apiPath, {
648
565
  'content-type': 'application/json',
649
566
  }, payload);
650
567
 
@@ -663,7 +580,7 @@ const projectsUpdateOAuth2 = async ({ projectId, provider, appId, secret, enable
663
580
  /* @param {boolean} enabled */
664
581
 
665
582
  let client = !sdk ? await sdkForConsole() : sdk;
666
- let path = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
583
+ let apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
667
584
  let payload = {};
668
585
 
669
586
  /** Body Params */
@@ -688,7 +605,7 @@ const projectsUpdateOAuth2 = async ({ projectId, provider, appId, secret, enable
688
605
  }
689
606
 
690
607
  let response = undefined;
691
- response = await client.call('patch', path, {
608
+ response = await client.call('patch', apiPath, {
692
609
  'content-type': 'application/json',
693
610
  }, payload);
694
611
 
@@ -703,10 +620,10 @@ const projectsListPlatforms = async ({ projectId, parseOutput = true, sdk = unde
703
620
  /* @param {string} projectId */
704
621
 
705
622
  let client = !sdk ? await sdkForConsole() : sdk;
706
- let path = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
623
+ let apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
707
624
  let payload = {};
708
625
  let response = undefined;
709
- response = await client.call('get', path, {
626
+ response = await client.call('get', apiPath, {
710
627
  'content-type': 'application/json',
711
628
  }, payload);
712
629
 
@@ -726,7 +643,7 @@ const projectsCreatePlatform = async ({ projectId, type, name, key, store, hostn
726
643
  /* @param {string} hostname */
727
644
 
728
645
  let client = !sdk ? await sdkForConsole() : sdk;
729
- let path = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
646
+ let apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
730
647
  let payload = {};
731
648
 
732
649
  /** Body Params */
@@ -756,7 +673,7 @@ const projectsCreatePlatform = async ({ projectId, type, name, key, store, hostn
756
673
  }
757
674
 
758
675
  let response = undefined;
759
- response = await client.call('post', path, {
676
+ response = await client.call('post', apiPath, {
760
677
  'content-type': 'application/json',
761
678
  }, payload);
762
679
 
@@ -772,10 +689,10 @@ const projectsGetPlatform = async ({ projectId, platformId, parseOutput = true,
772
689
  /* @param {string} platformId */
773
690
 
774
691
  let client = !sdk ? await sdkForConsole() : sdk;
775
- let path = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
692
+ let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
776
693
  let payload = {};
777
694
  let response = undefined;
778
- response = await client.call('get', path, {
695
+ response = await client.call('get', apiPath, {
779
696
  'content-type': 'application/json',
780
697
  }, payload);
781
698
 
@@ -795,7 +712,7 @@ const projectsUpdatePlatform = async ({ projectId, platformId, name, key, store,
795
712
  /* @param {string} hostname */
796
713
 
797
714
  let client = !sdk ? await sdkForConsole() : sdk;
798
- let path = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
715
+ let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
799
716
  let payload = {};
800
717
 
801
718
  /** Body Params */
@@ -820,7 +737,7 @@ const projectsUpdatePlatform = async ({ projectId, platformId, name, key, store,
820
737
  }
821
738
 
822
739
  let response = undefined;
823
- response = await client.call('put', path, {
740
+ response = await client.call('put', apiPath, {
824
741
  'content-type': 'application/json',
825
742
  }, payload);
826
743
 
@@ -836,10 +753,10 @@ const projectsDeletePlatform = async ({ projectId, platformId, parseOutput = tru
836
753
  /* @param {string} platformId */
837
754
 
838
755
  let client = !sdk ? await sdkForConsole() : sdk;
839
- let path = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
756
+ let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
840
757
  let payload = {};
841
758
  let response = undefined;
842
- response = await client.call('delete', path, {
759
+ response = await client.call('delete', apiPath, {
843
760
  'content-type': 'application/json',
844
761
  }, payload);
845
762
 
@@ -856,7 +773,7 @@ const projectsUpdateServiceStatus = async ({ projectId, service, status, parseOu
856
773
  /* @param {boolean} status */
857
774
 
858
775
  let client = !sdk ? await sdkForConsole() : sdk;
859
- let path = '/projects/{projectId}/service'.replace('{projectId}', projectId);
776
+ let apiPath = '/projects/{projectId}/service'.replace('{projectId}', projectId);
860
777
  let payload = {};
861
778
 
862
779
  /** Body Params */
@@ -871,7 +788,293 @@ const projectsUpdateServiceStatus = async ({ projectId, service, status, parseOu
871
788
  }
872
789
 
873
790
  let response = undefined;
874
- response = await client.call('patch', path, {
791
+ response = await client.call('patch', apiPath, {
792
+ 'content-type': 'application/json',
793
+ }, payload);
794
+
795
+ if (parseOutput) {
796
+ parse(response)
797
+ success()
798
+ }
799
+ return response;
800
+ }
801
+
802
+ const projectsUpdateServiceStatusAll = async ({ projectId, status, parseOutput = true, sdk = undefined}) => {
803
+ /* @param {string} projectId */
804
+ /* @param {boolean} status */
805
+
806
+ let client = !sdk ? await sdkForConsole() : sdk;
807
+ let apiPath = '/projects/{projectId}/service/all'.replace('{projectId}', projectId);
808
+ let payload = {};
809
+
810
+ /** Body Params */
811
+
812
+ if (typeof status !== 'undefined') {
813
+ payload['status'] = status;
814
+ }
815
+
816
+ let response = undefined;
817
+ response = await client.call('patch', apiPath, {
818
+ 'content-type': 'application/json',
819
+ }, payload);
820
+
821
+ if (parseOutput) {
822
+ parse(response)
823
+ success()
824
+ }
825
+ return response;
826
+ }
827
+
828
+ const projectsUpdateSmtpConfiguration = async ({ projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure, parseOutput = true, sdk = undefined}) => {
829
+ /* @param {string} projectId */
830
+ /* @param {boolean} enabled */
831
+ /* @param {string} senderName */
832
+ /* @param {string} senderEmail */
833
+ /* @param {string} replyTo */
834
+ /* @param {string} host */
835
+ /* @param {number} port */
836
+ /* @param {string} username */
837
+ /* @param {string} password */
838
+ /* @param {string} secure */
839
+
840
+ let client = !sdk ? await sdkForConsole() : sdk;
841
+ let apiPath = '/projects/{projectId}/smtp'.replace('{projectId}', projectId);
842
+ let payload = {};
843
+
844
+ /** Body Params */
845
+
846
+ if (typeof enabled !== 'undefined') {
847
+ payload['enabled'] = enabled;
848
+ }
849
+
850
+
851
+ if (typeof senderName !== 'undefined') {
852
+ payload['senderName'] = senderName;
853
+ }
854
+
855
+
856
+ if (typeof senderEmail !== 'undefined') {
857
+ payload['senderEmail'] = senderEmail;
858
+ }
859
+
860
+
861
+ if (typeof replyTo !== 'undefined') {
862
+ payload['replyTo'] = replyTo;
863
+ }
864
+
865
+
866
+ if (typeof host !== 'undefined') {
867
+ payload['host'] = host;
868
+ }
869
+
870
+
871
+ if (typeof port !== 'undefined') {
872
+ payload['port'] = port;
873
+ }
874
+
875
+
876
+ if (typeof username !== 'undefined') {
877
+ payload['username'] = username;
878
+ }
879
+
880
+
881
+ if (typeof password !== 'undefined') {
882
+ payload['password'] = password;
883
+ }
884
+
885
+
886
+ if (typeof secure !== 'undefined') {
887
+ payload['secure'] = secure;
888
+ }
889
+
890
+ let response = undefined;
891
+ response = await client.call('patch', apiPath, {
892
+ 'content-type': 'application/json',
893
+ }, payload);
894
+
895
+ if (parseOutput) {
896
+ parse(response)
897
+ success()
898
+ }
899
+ return response;
900
+ }
901
+
902
+ const projectsUpdateTeam = async ({ projectId, teamId, parseOutput = true, sdk = undefined}) => {
903
+ /* @param {string} projectId */
904
+ /* @param {string} teamId */
905
+
906
+ let client = !sdk ? await sdkForConsole() : sdk;
907
+ let apiPath = '/projects/{projectId}/team'.replace('{projectId}', projectId);
908
+ let payload = {};
909
+
910
+ /** Body Params */
911
+
912
+ if (typeof teamId !== 'undefined') {
913
+ payload['teamId'] = teamId;
914
+ }
915
+
916
+ let response = undefined;
917
+ response = await client.call('patch', apiPath, {
918
+ 'content-type': 'application/json',
919
+ }, payload);
920
+
921
+ if (parseOutput) {
922
+ parse(response)
923
+ success()
924
+ }
925
+ return response;
926
+ }
927
+
928
+ const projectsGetEmailTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
929
+ /* @param {string} projectId */
930
+ /* @param {string} type */
931
+ /* @param {string} locale */
932
+
933
+ let client = !sdk ? await sdkForConsole() : sdk;
934
+ let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
935
+ let payload = {};
936
+ let response = undefined;
937
+ response = await client.call('get', apiPath, {
938
+ 'content-type': 'application/json',
939
+ }, payload);
940
+
941
+ if (parseOutput) {
942
+ parse(response)
943
+ success()
944
+ }
945
+ return response;
946
+ }
947
+
948
+ const projectsUpdateEmailTemplate = async ({ projectId, type, locale, subject, message, senderName, senderEmail, replyTo, parseOutput = true, sdk = undefined}) => {
949
+ /* @param {string} projectId */
950
+ /* @param {string} type */
951
+ /* @param {string} locale */
952
+ /* @param {string} subject */
953
+ /* @param {string} message */
954
+ /* @param {string} senderName */
955
+ /* @param {string} senderEmail */
956
+ /* @param {string} replyTo */
957
+
958
+ let client = !sdk ? await sdkForConsole() : sdk;
959
+ let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
960
+ let payload = {};
961
+
962
+ /** Body Params */
963
+
964
+ if (typeof subject !== 'undefined') {
965
+ payload['subject'] = subject;
966
+ }
967
+
968
+
969
+ if (typeof message !== 'undefined') {
970
+ payload['message'] = message;
971
+ }
972
+
973
+
974
+ if (typeof senderName !== 'undefined') {
975
+ payload['senderName'] = senderName;
976
+ }
977
+
978
+
979
+ if (typeof senderEmail !== 'undefined') {
980
+ payload['senderEmail'] = senderEmail;
981
+ }
982
+
983
+
984
+ if (typeof replyTo !== 'undefined') {
985
+ payload['replyTo'] = replyTo;
986
+ }
987
+
988
+ let response = undefined;
989
+ response = await client.call('patch', apiPath, {
990
+ 'content-type': 'application/json',
991
+ }, payload);
992
+
993
+ if (parseOutput) {
994
+ parse(response)
995
+ success()
996
+ }
997
+ return response;
998
+ }
999
+
1000
+ const projectsDeleteEmailTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1001
+ /* @param {string} projectId */
1002
+ /* @param {string} type */
1003
+ /* @param {string} locale */
1004
+
1005
+ let client = !sdk ? await sdkForConsole() : sdk;
1006
+ let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1007
+ let payload = {};
1008
+ let response = undefined;
1009
+ response = await client.call('delete', apiPath, {
1010
+ 'content-type': 'application/json',
1011
+ }, payload);
1012
+
1013
+ if (parseOutput) {
1014
+ parse(response)
1015
+ success()
1016
+ }
1017
+ return response;
1018
+ }
1019
+
1020
+ const projectsGetSmsTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1021
+ /* @param {string} projectId */
1022
+ /* @param {string} type */
1023
+ /* @param {string} locale */
1024
+
1025
+ let client = !sdk ? await sdkForConsole() : sdk;
1026
+ let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1027
+ let payload = {};
1028
+ let response = undefined;
1029
+ response = await client.call('get', apiPath, {
1030
+ 'content-type': 'application/json',
1031
+ }, payload);
1032
+
1033
+ if (parseOutput) {
1034
+ parse(response)
1035
+ success()
1036
+ }
1037
+ return response;
1038
+ }
1039
+
1040
+ const projectsUpdateSmsTemplate = async ({ projectId, type, locale, message, parseOutput = true, sdk = undefined}) => {
1041
+ /* @param {string} projectId */
1042
+ /* @param {string} type */
1043
+ /* @param {string} locale */
1044
+ /* @param {string} message */
1045
+
1046
+ let client = !sdk ? await sdkForConsole() : sdk;
1047
+ let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1048
+ let payload = {};
1049
+
1050
+ /** Body Params */
1051
+
1052
+ if (typeof message !== 'undefined') {
1053
+ payload['message'] = message;
1054
+ }
1055
+
1056
+ let response = undefined;
1057
+ response = await client.call('patch', apiPath, {
1058
+ 'content-type': 'application/json',
1059
+ }, payload);
1060
+
1061
+ if (parseOutput) {
1062
+ parse(response)
1063
+ success()
1064
+ }
1065
+ return response;
1066
+ }
1067
+
1068
+ const projectsDeleteSmsTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1069
+ /* @param {string} projectId */
1070
+ /* @param {string} type */
1071
+ /* @param {string} locale */
1072
+
1073
+ let client = !sdk ? await sdkForConsole() : sdk;
1074
+ let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1075
+ let payload = {};
1076
+ let response = undefined;
1077
+ response = await client.call('delete', apiPath, {
875
1078
  'content-type': 'application/json',
876
1079
  }, payload);
877
1080
 
@@ -887,7 +1090,7 @@ const projectsGetUsage = async ({ projectId, range, parseOutput = true, sdk = un
887
1090
  /* @param {string} range */
888
1091
 
889
1092
  let client = !sdk ? await sdkForConsole() : sdk;
890
- let path = '/projects/{projectId}/usage'.replace('{projectId}', projectId);
1093
+ let apiPath = '/projects/{projectId}/usage'.replace('{projectId}', projectId);
891
1094
  let payload = {};
892
1095
 
893
1096
  /** Query Params */
@@ -895,7 +1098,7 @@ const projectsGetUsage = async ({ projectId, range, parseOutput = true, sdk = un
895
1098
  payload['range'] = range;
896
1099
  }
897
1100
  let response = undefined;
898
- response = await client.call('get', path, {
1101
+ response = await client.call('get', apiPath, {
899
1102
  'content-type': 'application/json',
900
1103
  }, payload);
901
1104
 
@@ -910,10 +1113,10 @@ const projectsListWebhooks = async ({ projectId, parseOutput = true, sdk = undef
910
1113
  /* @param {string} projectId */
911
1114
 
912
1115
  let client = !sdk ? await sdkForConsole() : sdk;
913
- let path = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
1116
+ let apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
914
1117
  let payload = {};
915
1118
  let response = undefined;
916
- response = await client.call('get', path, {
1119
+ response = await client.call('get', apiPath, {
917
1120
  'content-type': 'application/json',
918
1121
  }, payload);
919
1122
 
@@ -934,7 +1137,7 @@ const projectsCreateWebhook = async ({ projectId, name, events, url, security, h
934
1137
  /* @param {string} httpPass */
935
1138
 
936
1139
  let client = !sdk ? await sdkForConsole() : sdk;
937
- let path = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
1140
+ let apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
938
1141
  let payload = {};
939
1142
 
940
1143
  /** Body Params */
@@ -970,7 +1173,7 @@ const projectsCreateWebhook = async ({ projectId, name, events, url, security, h
970
1173
  }
971
1174
 
972
1175
  let response = undefined;
973
- response = await client.call('post', path, {
1176
+ response = await client.call('post', apiPath, {
974
1177
  'content-type': 'application/json',
975
1178
  }, payload);
976
1179
 
@@ -986,10 +1189,10 @@ const projectsGetWebhook = async ({ projectId, webhookId, parseOutput = true, sd
986
1189
  /* @param {string} webhookId */
987
1190
 
988
1191
  let client = !sdk ? await sdkForConsole() : sdk;
989
- let path = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1192
+ let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
990
1193
  let payload = {};
991
1194
  let response = undefined;
992
- response = await client.call('get', path, {
1195
+ response = await client.call('get', apiPath, {
993
1196
  'content-type': 'application/json',
994
1197
  }, payload);
995
1198
 
@@ -1011,7 +1214,7 @@ const projectsUpdateWebhook = async ({ projectId, webhookId, name, events, url,
1011
1214
  /* @param {string} httpPass */
1012
1215
 
1013
1216
  let client = !sdk ? await sdkForConsole() : sdk;
1014
- let path = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1217
+ let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1015
1218
  let payload = {};
1016
1219
 
1017
1220
  /** Body Params */
@@ -1047,7 +1250,7 @@ const projectsUpdateWebhook = async ({ projectId, webhookId, name, events, url,
1047
1250
  }
1048
1251
 
1049
1252
  let response = undefined;
1050
- response = await client.call('put', path, {
1253
+ response = await client.call('put', apiPath, {
1051
1254
  'content-type': 'application/json',
1052
1255
  }, payload);
1053
1256
 
@@ -1063,10 +1266,10 @@ const projectsDeleteWebhook = async ({ projectId, webhookId, parseOutput = true,
1063
1266
  /* @param {string} webhookId */
1064
1267
 
1065
1268
  let client = !sdk ? await sdkForConsole() : sdk;
1066
- let path = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1269
+ let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1067
1270
  let payload = {};
1068
1271
  let response = undefined;
1069
- response = await client.call('delete', path, {
1272
+ response = await client.call('delete', apiPath, {
1070
1273
  'content-type': 'application/json',
1071
1274
  }, payload);
1072
1275
 
@@ -1082,10 +1285,10 @@ const projectsUpdateWebhookSignature = async ({ projectId, webhookId, parseOutpu
1082
1285
  /* @param {string} webhookId */
1083
1286
 
1084
1287
  let client = !sdk ? await sdkForConsole() : sdk;
1085
- let path = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1288
+ let apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1086
1289
  let payload = {};
1087
1290
  let response = undefined;
1088
- response = await client.call('patch', path, {
1291
+ response = await client.call('patch', apiPath, {
1089
1292
  'content-type': 'application/json',
1090
1293
  }, payload);
1091
1294
 
@@ -1107,7 +1310,7 @@ projects
1107
1310
  projects
1108
1311
  .command(`create`)
1109
1312
  .description(``)
1110
- .requiredOption(`--projectId <projectId>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
1313
+ .requiredOption(`--projectId <projectId>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars.`)
1111
1314
  .requiredOption(`--name <name>`, `Project name. Max length: 128 chars.`)
1112
1315
  .requiredOption(`--teamId <teamId>`, `Team unique ID.`)
1113
1316
  .option(`--region <region>`, `Project Region.`)
@@ -1148,7 +1351,6 @@ projects
1148
1351
  .command(`delete`)
1149
1352
  .description(``)
1150
1353
  .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1151
- .requiredOption(`--password <password>`, `Your user password for confirmation. Must be at least 8 chars.`)
1152
1354
  .action(actionRunner(projectsDelete))
1153
1355
 
1154
1356
  projects
@@ -1187,46 +1389,19 @@ projects
1187
1389
  .action(actionRunner(projectsUpdateAuthPasswordHistory))
1188
1390
 
1189
1391
  projects
1190
- .command(`updateAuthStatus`)
1191
- .description(``)
1192
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1193
- .requiredOption(`--method <method>`, `Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone`)
1194
- .requiredOption(`--status <status>`, `Set the status of this auth method.`, parseBool)
1195
- .action(actionRunner(projectsUpdateAuthStatus))
1196
-
1197
- projects
1198
- .command(`listDomains`)
1199
- .description(``)
1200
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1201
- .action(actionRunner(projectsListDomains))
1202
-
1203
- projects
1204
- .command(`createDomain`)
1392
+ .command(`updatePersonalDataCheck`)
1205
1393
  .description(``)
1206
1394
  .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1207
- .requiredOption(`--domain <domain>`, `Domain name.`)
1208
- .action(actionRunner(projectsCreateDomain))
1395
+ .requiredOption(`--enabled <enabled>`, `Set whether or not to check a password for similarity with personal data. Default is false.`, parseBool)
1396
+ .action(actionRunner(projectsUpdatePersonalDataCheck))
1209
1397
 
1210
1398
  projects
1211
- .command(`getDomain`)
1212
- .description(``)
1213
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1214
- .requiredOption(`--domainId <domainId>`, `Domain unique ID.`)
1215
- .action(actionRunner(projectsGetDomain))
1216
-
1217
- projects
1218
- .command(`deleteDomain`)
1219
- .description(``)
1220
- .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1221
- .requiredOption(`--domainId <domainId>`, `Domain unique ID.`)
1222
- .action(actionRunner(projectsDeleteDomain))
1223
-
1224
- projects
1225
- .command(`updateDomainVerification`)
1399
+ .command(`updateAuthStatus`)
1226
1400
  .description(``)
1227
1401
  .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1228
- .requiredOption(`--domainId <domainId>`, `Domain unique ID.`)
1229
- .action(actionRunner(projectsUpdateDomainVerification))
1402
+ .requiredOption(`--method <method>`, `Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone`)
1403
+ .requiredOption(`--status <status>`, `Set the status of this auth method.`, parseBool)
1404
+ .action(actionRunner(projectsUpdateAuthStatus))
1230
1405
 
1231
1406
  projects
1232
1407
  .command(`listKeys`)
@@ -1327,6 +1502,89 @@ projects
1327
1502
  .requiredOption(`--status <status>`, `Service status.`, parseBool)
1328
1503
  .action(actionRunner(projectsUpdateServiceStatus))
1329
1504
 
1505
+ projects
1506
+ .command(`updateServiceStatusAll`)
1507
+ .description(``)
1508
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1509
+ .requiredOption(`--status <status>`, `Service status.`, parseBool)
1510
+ .action(actionRunner(projectsUpdateServiceStatusAll))
1511
+
1512
+ projects
1513
+ .command(`updateSmtpConfiguration`)
1514
+ .description(``)
1515
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1516
+ .requiredOption(`--enabled <enabled>`, `Enable custom SMTP service`, parseBool)
1517
+ .option(`--senderName <senderName>`, `Name of the email sender`)
1518
+ .option(`--senderEmail <senderEmail>`, `Email of the sender`)
1519
+ .option(`--replyTo <replyTo>`, `Reply to email`)
1520
+ .option(`--host <host>`, `SMTP server host name`)
1521
+ .option(`--port <port>`, `SMTP server port`, parseInteger)
1522
+ .option(`--username <username>`, `SMTP server username`)
1523
+ .option(`--password <password>`, `SMTP server password`)
1524
+ .option(`--secure <secure>`, `Does SMTP server use secure connection`)
1525
+ .action(actionRunner(projectsUpdateSmtpConfiguration))
1526
+
1527
+ projects
1528
+ .command(`updateTeam`)
1529
+ .description(``)
1530
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1531
+ .requiredOption(`--teamId <teamId>`, `Team ID of the team to transfer project to.`)
1532
+ .action(actionRunner(projectsUpdateTeam))
1533
+
1534
+ projects
1535
+ .command(`getEmailTemplate`)
1536
+ .description(``)
1537
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1538
+ .requiredOption(`--type <type>`, `Template type`)
1539
+ .requiredOption(`--locale <locale>`, `Template locale`)
1540
+ .action(actionRunner(projectsGetEmailTemplate))
1541
+
1542
+ projects
1543
+ .command(`updateEmailTemplate`)
1544
+ .description(``)
1545
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1546
+ .requiredOption(`--type <type>`, `Template type`)
1547
+ .requiredOption(`--locale <locale>`, `Template locale`)
1548
+ .requiredOption(`--subject <subject>`, `Email Subject`)
1549
+ .requiredOption(`--message <message>`, `Template message`)
1550
+ .option(`--senderName <senderName>`, `Name of the email sender`)
1551
+ .option(`--senderEmail <senderEmail>`, `Email of the sender`)
1552
+ .option(`--replyTo <replyTo>`, `Reply to email`)
1553
+ .action(actionRunner(projectsUpdateEmailTemplate))
1554
+
1555
+ projects
1556
+ .command(`deleteEmailTemplate`)
1557
+ .description(``)
1558
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1559
+ .requiredOption(`--type <type>`, `Template type`)
1560
+ .requiredOption(`--locale <locale>`, `Template locale`)
1561
+ .action(actionRunner(projectsDeleteEmailTemplate))
1562
+
1563
+ projects
1564
+ .command(`getSmsTemplate`)
1565
+ .description(``)
1566
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1567
+ .requiredOption(`--type <type>`, `Template type`)
1568
+ .requiredOption(`--locale <locale>`, `Template locale`)
1569
+ .action(actionRunner(projectsGetSmsTemplate))
1570
+
1571
+ projects
1572
+ .command(`updateSmsTemplate`)
1573
+ .description(``)
1574
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1575
+ .requiredOption(`--type <type>`, `Template type`)
1576
+ .requiredOption(`--locale <locale>`, `Template locale`)
1577
+ .requiredOption(`--message <message>`, `Template message`)
1578
+ .action(actionRunner(projectsUpdateSmsTemplate))
1579
+
1580
+ projects
1581
+ .command(`deleteSmsTemplate`)
1582
+ .description(``)
1583
+ .requiredOption(`--projectId <projectId>`, `Project unique ID.`)
1584
+ .requiredOption(`--type <type>`, `Template type`)
1585
+ .requiredOption(`--locale <locale>`, `Template locale`)
1586
+ .action(actionRunner(projectsDeleteSmsTemplate))
1587
+
1330
1588
  projects
1331
1589
  .command(`getUsage`)
1332
1590
  .description(``)
@@ -1399,12 +1657,8 @@ module.exports = {
1399
1657
  projectsUpdateAuthSessionsLimit,
1400
1658
  projectsUpdateAuthPasswordDictionary,
1401
1659
  projectsUpdateAuthPasswordHistory,
1660
+ projectsUpdatePersonalDataCheck,
1402
1661
  projectsUpdateAuthStatus,
1403
- projectsListDomains,
1404
- projectsCreateDomain,
1405
- projectsGetDomain,
1406
- projectsDeleteDomain,
1407
- projectsUpdateDomainVerification,
1408
1662
  projectsListKeys,
1409
1663
  projectsCreateKey,
1410
1664
  projectsGetKey,
@@ -1417,6 +1671,15 @@ module.exports = {
1417
1671
  projectsUpdatePlatform,
1418
1672
  projectsDeletePlatform,
1419
1673
  projectsUpdateServiceStatus,
1674
+ projectsUpdateServiceStatusAll,
1675
+ projectsUpdateSmtpConfiguration,
1676
+ projectsUpdateTeam,
1677
+ projectsGetEmailTemplate,
1678
+ projectsUpdateEmailTemplate,
1679
+ projectsDeleteEmailTemplate,
1680
+ projectsGetSmsTemplate,
1681
+ projectsUpdateSmsTemplate,
1682
+ projectsDeleteSmsTemplate,
1420
1683
  projectsGetUsage,
1421
1684
  projectsListWebhooks,
1422
1685
  projectsCreateWebhook,