appwrite-cli 4.1.0 → 4.2.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 (38) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -3
  3. package/docs/examples/health/get-queue-builds.md +2 -0
  4. package/docs/examples/health/get-queue-certificates.md +2 -1
  5. package/docs/examples/health/get-queue-databases.md +3 -0
  6. package/docs/examples/health/get-queue-deletes.md +2 -0
  7. package/docs/examples/health/get-queue-functions.md +2 -1
  8. package/docs/examples/health/get-queue-logs.md +2 -1
  9. package/docs/examples/health/get-queue-mails.md +2 -0
  10. package/docs/examples/health/get-queue-messaging.md +2 -0
  11. package/docs/examples/health/get-queue-migrations.md +2 -0
  12. package/docs/examples/health/get-queue-webhooks.md +2 -1
  13. package/install.ps1 +2 -2
  14. package/install.sh +1 -1
  15. package/lib/client.js +61 -74
  16. package/lib/commands/account.js +564 -210
  17. package/lib/commands/assistant.js +42 -7
  18. package/lib/commands/avatars.js +199 -83
  19. package/lib/commands/console.js +42 -3
  20. package/lib/commands/databases.js +991 -562
  21. package/lib/commands/deploy.js +170 -99
  22. package/lib/commands/functions.js +564 -294
  23. package/lib/commands/graphql.js +58 -11
  24. package/lib/commands/health.js +496 -26
  25. package/lib/commands/init.js +11 -23
  26. package/lib/commands/locale.js +154 -17
  27. package/lib/commands/migrations.js +328 -147
  28. package/lib/commands/project.js +128 -33
  29. package/lib/commands/projects.js +788 -411
  30. package/lib/commands/proxy.js +113 -28
  31. package/lib/commands/storage.js +438 -223
  32. package/lib/commands/teams.js +284 -108
  33. package/lib/commands/users.js +559 -271
  34. package/lib/commands/vcs.js +186 -53
  35. package/lib/paginate.js +51 -0
  36. package/lib/questions.js +7 -10
  37. package/package.json +9 -9
  38. package/scoop/appwrite.json +3 -3
@@ -9,1293 +9,1670 @@ const { Command } = require('commander');
9
9
  const { sdkForProject, sdkForConsole } = require('../sdks')
10
10
  const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
11
11
  const { localConfig, globalConfig } = require("../config");
12
+ const { File } = require('undici');
13
+ const { ReadableStream } = require('stream/web');
14
+
15
+ /**
16
+ * @param {fs.ReadStream} readStream
17
+ * @returns {ReadableStream}
18
+ */
19
+ function convertReadStreamToReadableStream(readStream) {
20
+ return new ReadableStream({
21
+ start(controller) {
22
+ readStream.on("data", (chunk) => {
23
+ controller.enqueue(chunk);
24
+ });
25
+ readStream.on("end", () => {
26
+ controller.close();
27
+ });
28
+ readStream.on("error", (err) => {
29
+ controller.error(err);
30
+ });
31
+ },
32
+ cancel() {
33
+ readStream.destroy();
34
+ },
35
+ });
36
+ }
12
37
 
13
38
  const projects = new Command("projects").description(commandDescriptions['projects']).configureHelp({
14
39
  helpWidth: process.stdout.columns || 80
15
40
  })
16
41
 
42
+ /**
43
+ * @typedef {Object} ProjectsListRequestParams
44
+ * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, teamId
45
+ * @property {string} search Search term to filter your list results. Max length: 256 chars.
46
+ * @property {boolean} parseOutput
47
+ * @property {libClient | undefined} sdk
48
+ */
49
+
50
+ /**
51
+ * @param {ProjectsListRequestParams} params
52
+ */
17
53
  const projectsList = async ({ queries, search, parseOutput = true, sdk = undefined}) => {
18
- /* @param {string[]} queries */
19
- /* @param {string} search */
20
-
21
54
  let client = !sdk ? await sdkForConsole() : sdk;
55
+
22
56
  let apiPath = '/projects';
23
57
  let payload = {};
24
-
25
- /** Query Params */
26
58
  if (typeof queries !== 'undefined') {
27
59
  payload['queries'] = queries;
28
60
  }
29
61
  if (typeof search !== 'undefined') {
30
62
  payload['search'] = search;
31
63
  }
64
+
65
+
32
66
  let response = undefined;
67
+
33
68
  response = await client.call('get', apiPath, {
34
69
  'content-type': 'application/json',
35
70
  }, payload);
71
+
36
72
 
37
73
  if (parseOutput) {
38
74
  parse(response)
39
75
  success()
40
76
  }
77
+
41
78
  return response;
42
79
  }
43
80
 
81
+ /**
82
+ * @typedef {Object} ProjectsCreateRequestParams
83
+ * @property {string} 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.
84
+ * @property {string} name Project name. Max length: 128 chars.
85
+ * @property {string} teamId Team unique ID.
86
+ * @property {string} region Project Region.
87
+ * @property {string} description Project description. Max length: 256 chars.
88
+ * @property {string} logo Project logo.
89
+ * @property {string} url Project URL.
90
+ * @property {string} legalName Project legal Name. Max length: 256 chars.
91
+ * @property {string} legalCountry Project legal Country. Max length: 256 chars.
92
+ * @property {string} legalState Project legal State. Max length: 256 chars.
93
+ * @property {string} legalCity Project legal City. Max length: 256 chars.
94
+ * @property {string} legalAddress Project legal Address. Max length: 256 chars.
95
+ * @property {string} legalTaxId Project legal Tax ID. Max length: 256 chars.
96
+ * @property {boolean} parseOutput
97
+ * @property {libClient | undefined} sdk
98
+ */
99
+
100
+ /**
101
+ * @param {ProjectsCreateRequestParams} params
102
+ */
44
103
  const projectsCreate = async ({ projectId, name, teamId, region, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId, parseOutput = true, sdk = undefined}) => {
45
- /* @param {string} projectId */
46
- /* @param {string} name */
47
- /* @param {string} teamId */
48
- /* @param {string} region */
49
- /* @param {string} description */
50
- /* @param {string} logo */
51
- /* @param {string} url */
52
- /* @param {string} legalName */
53
- /* @param {string} legalCountry */
54
- /* @param {string} legalState */
55
- /* @param {string} legalCity */
56
- /* @param {string} legalAddress */
57
- /* @param {string} legalTaxId */
58
-
59
104
  let client = !sdk ? await sdkForConsole() : sdk;
105
+
60
106
  let apiPath = '/projects';
61
107
  let payload = {};
62
-
63
- /** Body Params */
64
-
65
108
  if (typeof projectId !== 'undefined') {
66
109
  payload['projectId'] = projectId;
67
110
  }
68
-
69
-
70
111
  if (typeof name !== 'undefined') {
71
112
  payload['name'] = name;
72
113
  }
73
-
74
-
75
114
  if (typeof teamId !== 'undefined') {
76
115
  payload['teamId'] = teamId;
77
116
  }
78
-
79
-
80
117
  if (typeof region !== 'undefined') {
81
118
  payload['region'] = region;
82
119
  }
83
-
84
-
85
120
  if (typeof description !== 'undefined') {
86
121
  payload['description'] = description;
87
122
  }
88
-
89
-
90
123
  if (typeof logo !== 'undefined') {
91
124
  payload['logo'] = logo;
92
125
  }
93
-
94
-
95
126
  if (typeof url !== 'undefined') {
96
127
  payload['url'] = url;
97
128
  }
98
-
99
-
100
129
  if (typeof legalName !== 'undefined') {
101
130
  payload['legalName'] = legalName;
102
131
  }
103
-
104
-
105
132
  if (typeof legalCountry !== 'undefined') {
106
133
  payload['legalCountry'] = legalCountry;
107
134
  }
108
-
109
-
110
135
  if (typeof legalState !== 'undefined') {
111
136
  payload['legalState'] = legalState;
112
137
  }
113
-
114
-
115
138
  if (typeof legalCity !== 'undefined') {
116
139
  payload['legalCity'] = legalCity;
117
140
  }
118
-
119
-
120
141
  if (typeof legalAddress !== 'undefined') {
121
142
  payload['legalAddress'] = legalAddress;
122
143
  }
123
-
124
-
125
144
  if (typeof legalTaxId !== 'undefined') {
126
145
  payload['legalTaxId'] = legalTaxId;
127
146
  }
128
147
 
148
+
129
149
  let response = undefined;
150
+
130
151
  response = await client.call('post', apiPath, {
131
152
  'content-type': 'application/json',
132
153
  }, payload);
154
+
133
155
 
134
156
  if (parseOutput) {
135
157
  parse(response)
136
158
  success()
137
159
  }
160
+
138
161
  return response;
139
162
  }
140
163
 
141
- const projectsGet = async ({ projectId, parseOutput = true, sdk = undefined}) => {
142
- /* @param {string} projectId */
164
+ /**
165
+ * @typedef {Object} ProjectsGetRequestParams
166
+ * @property {string} projectId Project unique ID.
167
+ * @property {boolean} parseOutput
168
+ * @property {libClient | undefined} sdk
169
+ */
143
170
 
171
+ /**
172
+ * @param {ProjectsGetRequestParams} params
173
+ */
174
+ const projectsGet = async ({ projectId, parseOutput = true, sdk = undefined}) => {
144
175
  let client = !sdk ? await sdkForConsole() : sdk;
176
+
145
177
  let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
146
178
  let payload = {};
179
+
180
+
147
181
  let response = undefined;
182
+
148
183
  response = await client.call('get', apiPath, {
149
184
  'content-type': 'application/json',
150
185
  }, payload);
186
+
151
187
 
152
188
  if (parseOutput) {
153
189
  parse(response)
154
190
  success()
155
191
  }
192
+
156
193
  return response;
157
194
  }
158
195
 
196
+ /**
197
+ * @typedef {Object} ProjectsUpdateRequestParams
198
+ * @property {string} projectId Project unique ID.
199
+ * @property {string} name Project name. Max length: 128 chars.
200
+ * @property {string} description Project description. Max length: 256 chars.
201
+ * @property {string} logo Project logo.
202
+ * @property {string} url Project URL.
203
+ * @property {string} legalName Project legal name. Max length: 256 chars.
204
+ * @property {string} legalCountry Project legal country. Max length: 256 chars.
205
+ * @property {string} legalState Project legal state. Max length: 256 chars.
206
+ * @property {string} legalCity Project legal city. Max length: 256 chars.
207
+ * @property {string} legalAddress Project legal address. Max length: 256 chars.
208
+ * @property {string} legalTaxId Project legal tax ID. Max length: 256 chars.
209
+ * @property {boolean} parseOutput
210
+ * @property {libClient | undefined} sdk
211
+ */
212
+
213
+ /**
214
+ * @param {ProjectsUpdateRequestParams} params
215
+ */
159
216
  const projectsUpdate = async ({ projectId, name, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId, parseOutput = true, sdk = undefined}) => {
160
- /* @param {string} projectId */
161
- /* @param {string} name */
162
- /* @param {string} description */
163
- /* @param {string} logo */
164
- /* @param {string} url */
165
- /* @param {string} legalName */
166
- /* @param {string} legalCountry */
167
- /* @param {string} legalState */
168
- /* @param {string} legalCity */
169
- /* @param {string} legalAddress */
170
- /* @param {string} legalTaxId */
171
-
172
217
  let client = !sdk ? await sdkForConsole() : sdk;
218
+
173
219
  let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
174
220
  let payload = {};
175
-
176
- /** Body Params */
177
-
178
221
  if (typeof name !== 'undefined') {
179
222
  payload['name'] = name;
180
223
  }
181
-
182
-
183
224
  if (typeof description !== 'undefined') {
184
225
  payload['description'] = description;
185
226
  }
186
-
187
-
188
227
  if (typeof logo !== 'undefined') {
189
228
  payload['logo'] = logo;
190
229
  }
191
-
192
-
193
230
  if (typeof url !== 'undefined') {
194
231
  payload['url'] = url;
195
232
  }
196
-
197
-
198
233
  if (typeof legalName !== 'undefined') {
199
234
  payload['legalName'] = legalName;
200
235
  }
201
-
202
-
203
236
  if (typeof legalCountry !== 'undefined') {
204
237
  payload['legalCountry'] = legalCountry;
205
238
  }
206
-
207
-
208
239
  if (typeof legalState !== 'undefined') {
209
240
  payload['legalState'] = legalState;
210
241
  }
211
-
212
-
213
242
  if (typeof legalCity !== 'undefined') {
214
243
  payload['legalCity'] = legalCity;
215
244
  }
216
-
217
-
218
245
  if (typeof legalAddress !== 'undefined') {
219
246
  payload['legalAddress'] = legalAddress;
220
247
  }
221
-
222
-
223
248
  if (typeof legalTaxId !== 'undefined') {
224
249
  payload['legalTaxId'] = legalTaxId;
225
250
  }
226
251
 
252
+
227
253
  let response = undefined;
254
+
228
255
  response = await client.call('patch', apiPath, {
229
256
  'content-type': 'application/json',
230
257
  }, payload);
258
+
231
259
 
232
260
  if (parseOutput) {
233
261
  parse(response)
234
262
  success()
235
263
  }
264
+
236
265
  return response;
237
266
  }
238
267
 
239
- const projectsDelete = async ({ projectId, parseOutput = true, sdk = undefined}) => {
240
- /* @param {string} projectId */
268
+ /**
269
+ * @typedef {Object} ProjectsDeleteRequestParams
270
+ * @property {string} projectId Project unique ID.
271
+ * @property {boolean} parseOutput
272
+ * @property {libClient | undefined} sdk
273
+ */
241
274
 
275
+ /**
276
+ * @param {ProjectsDeleteRequestParams} params
277
+ */
278
+ const projectsDelete = async ({ projectId, parseOutput = true, sdk = undefined}) => {
242
279
  let client = !sdk ? await sdkForConsole() : sdk;
280
+
243
281
  let apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
244
282
  let payload = {};
283
+
284
+
245
285
  let response = undefined;
286
+
246
287
  response = await client.call('delete', apiPath, {
247
288
  'content-type': 'application/json',
248
289
  }, payload);
290
+
249
291
 
250
292
  if (parseOutput) {
251
293
  parse(response)
252
294
  success()
253
295
  }
296
+
254
297
  return response;
255
298
  }
256
299
 
300
+ /**
301
+ * @typedef {Object} ProjectsUpdateAuthDurationRequestParams
302
+ * @property {string} projectId Project unique ID.
303
+ * @property {number} duration Project session length in seconds. Max length: 31536000 seconds.
304
+ * @property {boolean} parseOutput
305
+ * @property {libClient | undefined} sdk
306
+ */
307
+
308
+ /**
309
+ * @param {ProjectsUpdateAuthDurationRequestParams} params
310
+ */
257
311
  const projectsUpdateAuthDuration = async ({ projectId, duration, parseOutput = true, sdk = undefined}) => {
258
- /* @param {string} projectId */
259
- /* @param {number} duration */
260
-
261
312
  let client = !sdk ? await sdkForConsole() : sdk;
313
+
262
314
  let apiPath = '/projects/{projectId}/auth/duration'.replace('{projectId}', projectId);
263
315
  let payload = {};
264
-
265
- /** Body Params */
266
-
267
316
  if (typeof duration !== 'undefined') {
268
317
  payload['duration'] = duration;
269
318
  }
270
319
 
320
+
271
321
  let response = undefined;
322
+
272
323
  response = await client.call('patch', apiPath, {
273
324
  'content-type': 'application/json',
274
325
  }, payload);
326
+
275
327
 
276
328
  if (parseOutput) {
277
329
  parse(response)
278
330
  success()
279
331
  }
332
+
280
333
  return response;
281
334
  }
282
335
 
336
+ /**
337
+ * @typedef {Object} ProjectsUpdateAuthLimitRequestParams
338
+ * @property {string} projectId Project unique ID.
339
+ * @property {number} limit Set the max number of users allowed in this project. Use 0 for unlimited.
340
+ * @property {boolean} parseOutput
341
+ * @property {libClient | undefined} sdk
342
+ */
343
+
344
+ /**
345
+ * @param {ProjectsUpdateAuthLimitRequestParams} params
346
+ */
283
347
  const projectsUpdateAuthLimit = async ({ projectId, limit, parseOutput = true, sdk = undefined}) => {
284
- /* @param {string} projectId */
285
- /* @param {number} limit */
286
-
287
348
  let client = !sdk ? await sdkForConsole() : sdk;
349
+
288
350
  let apiPath = '/projects/{projectId}/auth/limit'.replace('{projectId}', projectId);
289
351
  let payload = {};
290
-
291
- /** Body Params */
292
-
293
352
  if (typeof limit !== 'undefined') {
294
353
  payload['limit'] = limit;
295
354
  }
296
355
 
356
+
297
357
  let response = undefined;
358
+
298
359
  response = await client.call('patch', apiPath, {
299
360
  'content-type': 'application/json',
300
361
  }, payload);
362
+
301
363
 
302
364
  if (parseOutput) {
303
365
  parse(response)
304
366
  success()
305
367
  }
368
+
306
369
  return response;
307
370
  }
308
371
 
372
+ /**
373
+ * @typedef {Object} ProjectsUpdateAuthSessionsLimitRequestParams
374
+ * @property {string} projectId Project unique ID.
375
+ * @property {number} limit Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10
376
+ * @property {boolean} parseOutput
377
+ * @property {libClient | undefined} sdk
378
+ */
379
+
380
+ /**
381
+ * @param {ProjectsUpdateAuthSessionsLimitRequestParams} params
382
+ */
309
383
  const projectsUpdateAuthSessionsLimit = async ({ projectId, limit, parseOutput = true, sdk = undefined}) => {
310
- /* @param {string} projectId */
311
- /* @param {number} limit */
312
-
313
384
  let client = !sdk ? await sdkForConsole() : sdk;
385
+
314
386
  let apiPath = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId);
315
387
  let payload = {};
316
-
317
- /** Body Params */
318
-
319
388
  if (typeof limit !== 'undefined') {
320
389
  payload['limit'] = limit;
321
390
  }
322
391
 
392
+
323
393
  let response = undefined;
394
+
324
395
  response = await client.call('patch', apiPath, {
325
396
  'content-type': 'application/json',
326
397
  }, payload);
398
+
327
399
 
328
400
  if (parseOutput) {
329
401
  parse(response)
330
402
  success()
331
403
  }
404
+
332
405
  return response;
333
406
  }
334
407
 
408
+ /**
409
+ * @typedef {Object} ProjectsUpdateAuthPasswordDictionaryRequestParams
410
+ * @property {string} projectId Project unique ID.
411
+ * @property {boolean} enabled Set whether or not to enable checking user's password against most commonly used passwords. Default is false.
412
+ * @property {boolean} parseOutput
413
+ * @property {libClient | undefined} sdk
414
+ */
415
+
416
+ /**
417
+ * @param {ProjectsUpdateAuthPasswordDictionaryRequestParams} params
418
+ */
335
419
  const projectsUpdateAuthPasswordDictionary = async ({ projectId, enabled, parseOutput = true, sdk = undefined}) => {
336
- /* @param {string} projectId */
337
- /* @param {boolean} enabled */
338
-
339
420
  let client = !sdk ? await sdkForConsole() : sdk;
421
+
340
422
  let apiPath = '/projects/{projectId}/auth/password-dictionary'.replace('{projectId}', projectId);
341
423
  let payload = {};
342
-
343
- /** Body Params */
344
-
345
424
  if (typeof enabled !== 'undefined') {
346
425
  payload['enabled'] = enabled;
347
426
  }
348
427
 
428
+
349
429
  let response = undefined;
430
+
350
431
  response = await client.call('patch', apiPath, {
351
432
  'content-type': 'application/json',
352
433
  }, payload);
434
+
353
435
 
354
436
  if (parseOutput) {
355
437
  parse(response)
356
438
  success()
357
439
  }
440
+
358
441
  return response;
359
442
  }
360
443
 
444
+ /**
445
+ * @typedef {Object} ProjectsUpdateAuthPasswordHistoryRequestParams
446
+ * @property {string} projectId Project unique ID.
447
+ * @property {number} limit Set the max number of passwords to store in user history. User can't choose a new password that is already stored in the password history list. Max number of passwords allowed in history is20. Default value is 0
448
+ * @property {boolean} parseOutput
449
+ * @property {libClient | undefined} sdk
450
+ */
451
+
452
+ /**
453
+ * @param {ProjectsUpdateAuthPasswordHistoryRequestParams} params
454
+ */
361
455
  const projectsUpdateAuthPasswordHistory = async ({ projectId, limit, parseOutput = true, sdk = undefined}) => {
362
- /* @param {string} projectId */
363
- /* @param {number} limit */
364
-
365
456
  let client = !sdk ? await sdkForConsole() : sdk;
457
+
366
458
  let apiPath = '/projects/{projectId}/auth/password-history'.replace('{projectId}', projectId);
367
459
  let payload = {};
368
-
369
- /** Body Params */
370
-
371
460
  if (typeof limit !== 'undefined') {
372
461
  payload['limit'] = limit;
373
462
  }
374
463
 
464
+
375
465
  let response = undefined;
466
+
376
467
  response = await client.call('patch', apiPath, {
377
468
  'content-type': 'application/json',
378
469
  }, payload);
470
+
379
471
 
380
472
  if (parseOutput) {
381
473
  parse(response)
382
474
  success()
383
475
  }
476
+
384
477
  return response;
385
478
  }
386
479
 
480
+ /**
481
+ * @typedef {Object} ProjectsUpdatePersonalDataCheckRequestParams
482
+ * @property {string} projectId Project unique ID.
483
+ * @property {boolean} enabled Set whether or not to check a password for similarity with personal data. Default is false.
484
+ * @property {boolean} parseOutput
485
+ * @property {libClient | undefined} sdk
486
+ */
487
+
488
+ /**
489
+ * @param {ProjectsUpdatePersonalDataCheckRequestParams} params
490
+ */
387
491
  const projectsUpdatePersonalDataCheck = async ({ projectId, enabled, parseOutput = true, sdk = undefined}) => {
388
- /* @param {string} projectId */
389
- /* @param {boolean} enabled */
390
-
391
492
  let client = !sdk ? await sdkForConsole() : sdk;
493
+
392
494
  let apiPath = '/projects/{projectId}/auth/personal-data'.replace('{projectId}', projectId);
393
495
  let payload = {};
394
-
395
- /** Body Params */
396
-
397
496
  if (typeof enabled !== 'undefined') {
398
497
  payload['enabled'] = enabled;
399
498
  }
400
499
 
500
+
401
501
  let response = undefined;
502
+
402
503
  response = await client.call('patch', apiPath, {
403
504
  'content-type': 'application/json',
404
505
  }, payload);
506
+
405
507
 
406
508
  if (parseOutput) {
407
509
  parse(response)
408
510
  success()
409
511
  }
512
+
410
513
  return response;
411
514
  }
412
515
 
516
+ /**
517
+ * @typedef {Object} ProjectsUpdateAuthStatusRequestParams
518
+ * @property {string} projectId Project unique ID.
519
+ * @property {string} method Auth Method. Possible values: email-password,magic-url,anonymous,invites,jwt,phone
520
+ * @property {boolean} status Set the status of this auth method.
521
+ * @property {boolean} parseOutput
522
+ * @property {libClient | undefined} sdk
523
+ */
524
+
525
+ /**
526
+ * @param {ProjectsUpdateAuthStatusRequestParams} params
527
+ */
413
528
  const projectsUpdateAuthStatus = async ({ projectId, method, status, parseOutput = true, sdk = undefined}) => {
414
- /* @param {string} projectId */
415
- /* @param {string} method */
416
- /* @param {boolean} status */
417
-
418
529
  let client = !sdk ? await sdkForConsole() : sdk;
530
+
419
531
  let apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
420
532
  let payload = {};
421
-
422
- /** Body Params */
423
-
424
533
  if (typeof status !== 'undefined') {
425
534
  payload['status'] = status;
426
535
  }
427
536
 
537
+
428
538
  let response = undefined;
539
+
429
540
  response = await client.call('patch', apiPath, {
430
541
  'content-type': 'application/json',
431
542
  }, payload);
543
+
432
544
 
433
545
  if (parseOutput) {
434
546
  parse(response)
435
547
  success()
436
548
  }
549
+
437
550
  return response;
438
551
  }
439
552
 
440
- const projectsListKeys = async ({ projectId, parseOutput = true, sdk = undefined}) => {
441
- /* @param {string} projectId */
553
+ /**
554
+ * @typedef {Object} ProjectsListKeysRequestParams
555
+ * @property {string} projectId Project unique ID.
556
+ * @property {boolean} parseOutput
557
+ * @property {libClient | undefined} sdk
558
+ */
442
559
 
560
+ /**
561
+ * @param {ProjectsListKeysRequestParams} params
562
+ */
563
+ const projectsListKeys = async ({ projectId, parseOutput = true, sdk = undefined}) => {
443
564
  let client = !sdk ? await sdkForConsole() : sdk;
565
+
444
566
  let apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
445
567
  let payload = {};
568
+
569
+
446
570
  let response = undefined;
571
+
447
572
  response = await client.call('get', apiPath, {
448
573
  'content-type': 'application/json',
449
574
  }, payload);
575
+
450
576
 
451
577
  if (parseOutput) {
452
578
  parse(response)
453
579
  success()
454
580
  }
581
+
455
582
  return response;
456
583
  }
457
584
 
585
+ /**
586
+ * @typedef {Object} ProjectsCreateKeyRequestParams
587
+ * @property {string} projectId Project unique ID.
588
+ * @property {string} name Key name. Max length: 128 chars.
589
+ * @property {string[]} scopes Key scopes list. Maximum of 100 scopes are allowed.
590
+ * @property {string} expire Expiration time in ISO 8601 format. Use null for unlimited expiration.
591
+ * @property {boolean} parseOutput
592
+ * @property {libClient | undefined} sdk
593
+ */
594
+
595
+ /**
596
+ * @param {ProjectsCreateKeyRequestParams} params
597
+ */
458
598
  const projectsCreateKey = async ({ projectId, name, scopes, expire, parseOutput = true, sdk = undefined}) => {
459
- /* @param {string} projectId */
460
- /* @param {string} name */
461
- /* @param {string[]} scopes */
462
- /* @param {string} expire */
463
-
464
599
  let client = !sdk ? await sdkForConsole() : sdk;
600
+
465
601
  let apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
466
602
  let payload = {};
467
-
468
- /** Body Params */
469
-
470
603
  if (typeof name !== 'undefined') {
471
604
  payload['name'] = name;
472
605
  }
473
-
474
606
  scopes = scopes === true ? [] : scopes;
475
-
476
607
  if (typeof scopes !== 'undefined') {
477
608
  payload['scopes'] = scopes;
478
609
  }
479
-
480
-
481
610
  if (typeof expire !== 'undefined') {
482
611
  payload['expire'] = expire;
483
612
  }
484
613
 
614
+
485
615
  let response = undefined;
616
+
486
617
  response = await client.call('post', apiPath, {
487
618
  'content-type': 'application/json',
488
619
  }, payload);
620
+
489
621
 
490
622
  if (parseOutput) {
491
623
  parse(response)
492
624
  success()
493
625
  }
626
+
494
627
  return response;
495
628
  }
496
629
 
630
+ /**
631
+ * @typedef {Object} ProjectsGetKeyRequestParams
632
+ * @property {string} projectId Project unique ID.
633
+ * @property {string} keyId Key unique ID.
634
+ * @property {boolean} parseOutput
635
+ * @property {libClient | undefined} sdk
636
+ */
637
+
638
+ /**
639
+ * @param {ProjectsGetKeyRequestParams} params
640
+ */
497
641
  const projectsGetKey = async ({ projectId, keyId, parseOutput = true, sdk = undefined}) => {
498
- /* @param {string} projectId */
499
- /* @param {string} keyId */
500
-
501
642
  let client = !sdk ? await sdkForConsole() : sdk;
643
+
502
644
  let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
503
645
  let payload = {};
646
+
647
+
504
648
  let response = undefined;
649
+
505
650
  response = await client.call('get', apiPath, {
506
651
  'content-type': 'application/json',
507
652
  }, payload);
653
+
508
654
 
509
655
  if (parseOutput) {
510
656
  parse(response)
511
657
  success()
512
658
  }
659
+
513
660
  return response;
514
661
  }
515
662
 
663
+ /**
664
+ * @typedef {Object} ProjectsUpdateKeyRequestParams
665
+ * @property {string} projectId Project unique ID.
666
+ * @property {string} keyId Key unique ID.
667
+ * @property {string} name Key name. Max length: 128 chars.
668
+ * @property {string[]} scopes Key scopes list. Maximum of 100 events are allowed.
669
+ * @property {string} expire Expiration time in ISO 8601 format. Use null for unlimited expiration.
670
+ * @property {boolean} parseOutput
671
+ * @property {libClient | undefined} sdk
672
+ */
673
+
674
+ /**
675
+ * @param {ProjectsUpdateKeyRequestParams} params
676
+ */
516
677
  const projectsUpdateKey = async ({ projectId, keyId, name, scopes, expire, parseOutput = true, sdk = undefined}) => {
517
- /* @param {string} projectId */
518
- /* @param {string} keyId */
519
- /* @param {string} name */
520
- /* @param {string[]} scopes */
521
- /* @param {string} expire */
522
-
523
678
  let client = !sdk ? await sdkForConsole() : sdk;
679
+
524
680
  let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
525
681
  let payload = {};
526
-
527
- /** Body Params */
528
-
529
682
  if (typeof name !== 'undefined') {
530
683
  payload['name'] = name;
531
684
  }
532
-
533
685
  scopes = scopes === true ? [] : scopes;
534
-
535
686
  if (typeof scopes !== 'undefined') {
536
687
  payload['scopes'] = scopes;
537
688
  }
538
-
539
-
540
689
  if (typeof expire !== 'undefined') {
541
690
  payload['expire'] = expire;
542
691
  }
543
692
 
693
+
544
694
  let response = undefined;
695
+
545
696
  response = await client.call('put', apiPath, {
546
697
  'content-type': 'application/json',
547
698
  }, payload);
699
+
548
700
 
549
701
  if (parseOutput) {
550
702
  parse(response)
551
703
  success()
552
704
  }
705
+
553
706
  return response;
554
707
  }
555
708
 
709
+ /**
710
+ * @typedef {Object} ProjectsDeleteKeyRequestParams
711
+ * @property {string} projectId Project unique ID.
712
+ * @property {string} keyId Key unique ID.
713
+ * @property {boolean} parseOutput
714
+ * @property {libClient | undefined} sdk
715
+ */
716
+
717
+ /**
718
+ * @param {ProjectsDeleteKeyRequestParams} params
719
+ */
556
720
  const projectsDeleteKey = async ({ projectId, keyId, parseOutput = true, sdk = undefined}) => {
557
- /* @param {string} projectId */
558
- /* @param {string} keyId */
559
-
560
721
  let client = !sdk ? await sdkForConsole() : sdk;
722
+
561
723
  let apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
562
724
  let payload = {};
725
+
726
+
563
727
  let response = undefined;
728
+
564
729
  response = await client.call('delete', apiPath, {
565
730
  'content-type': 'application/json',
566
731
  }, payload);
732
+
567
733
 
568
734
  if (parseOutput) {
569
735
  parse(response)
570
736
  success()
571
737
  }
738
+
572
739
  return response;
573
740
  }
574
741
 
742
+ /**
743
+ * @typedef {Object} ProjectsUpdateOAuth2RequestParams
744
+ * @property {string} projectId Project unique ID.
745
+ * @property {string} provider Provider Name
746
+ * @property {string} appId Provider app ID. Max length: 256 chars.
747
+ * @property {string} secret Provider secret key. Max length: 512 chars.
748
+ * @property {boolean} enabled Provider status. Set to 'false' to disable new session creation.
749
+ * @property {boolean} parseOutput
750
+ * @property {libClient | undefined} sdk
751
+ */
752
+
753
+ /**
754
+ * @param {ProjectsUpdateOAuth2RequestParams} params
755
+ */
575
756
  const projectsUpdateOAuth2 = async ({ projectId, provider, appId, secret, enabled, parseOutput = true, sdk = undefined}) => {
576
- /* @param {string} projectId */
577
- /* @param {string} provider */
578
- /* @param {string} appId */
579
- /* @param {string} secret */
580
- /* @param {boolean} enabled */
581
-
582
757
  let client = !sdk ? await sdkForConsole() : sdk;
758
+
583
759
  let apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
584
760
  let payload = {};
585
-
586
- /** Body Params */
587
-
588
761
  if (typeof provider !== 'undefined') {
589
762
  payload['provider'] = provider;
590
763
  }
591
-
592
-
593
764
  if (typeof appId !== 'undefined') {
594
765
  payload['appId'] = appId;
595
766
  }
596
-
597
-
598
767
  if (typeof secret !== 'undefined') {
599
768
  payload['secret'] = secret;
600
769
  }
601
-
602
-
603
770
  if (typeof enabled !== 'undefined') {
604
771
  payload['enabled'] = enabled;
605
772
  }
606
773
 
774
+
607
775
  let response = undefined;
776
+
608
777
  response = await client.call('patch', apiPath, {
609
778
  'content-type': 'application/json',
610
779
  }, payload);
780
+
611
781
 
612
782
  if (parseOutput) {
613
783
  parse(response)
614
784
  success()
615
785
  }
786
+
616
787
  return response;
617
788
  }
618
789
 
619
- const projectsListPlatforms = async ({ projectId, parseOutput = true, sdk = undefined}) => {
620
- /* @param {string} projectId */
790
+ /**
791
+ * @typedef {Object} ProjectsListPlatformsRequestParams
792
+ * @property {string} projectId Project unique ID.
793
+ * @property {boolean} parseOutput
794
+ * @property {libClient | undefined} sdk
795
+ */
621
796
 
797
+ /**
798
+ * @param {ProjectsListPlatformsRequestParams} params
799
+ */
800
+ const projectsListPlatforms = async ({ projectId, parseOutput = true, sdk = undefined}) => {
622
801
  let client = !sdk ? await sdkForConsole() : sdk;
802
+
623
803
  let apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
624
804
  let payload = {};
805
+
806
+
625
807
  let response = undefined;
808
+
626
809
  response = await client.call('get', apiPath, {
627
810
  'content-type': 'application/json',
628
811
  }, payload);
812
+
629
813
 
630
814
  if (parseOutput) {
631
815
  parse(response)
632
816
  success()
633
817
  }
818
+
634
819
  return response;
635
820
  }
636
821
 
822
+ /**
823
+ * @typedef {Object} ProjectsCreatePlatformRequestParams
824
+ * @property {string} projectId Project unique ID.
825
+ * @property {string} type Platform type.
826
+ * @property {string} name Platform name. Max length: 128 chars.
827
+ * @property {string} key Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.
828
+ * @property {string} store App store or Google Play store ID. Max length: 256 chars.
829
+ * @property {string} hostname Platform client hostname. Max length: 256 chars.
830
+ * @property {boolean} parseOutput
831
+ * @property {libClient | undefined} sdk
832
+ */
833
+
834
+ /**
835
+ * @param {ProjectsCreatePlatformRequestParams} params
836
+ */
637
837
  const projectsCreatePlatform = async ({ projectId, type, name, key, store, hostname, parseOutput = true, sdk = undefined}) => {
638
- /* @param {string} projectId */
639
- /* @param {string} type */
640
- /* @param {string} name */
641
- /* @param {string} key */
642
- /* @param {string} store */
643
- /* @param {string} hostname */
644
-
645
838
  let client = !sdk ? await sdkForConsole() : sdk;
839
+
646
840
  let apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
647
841
  let payload = {};
648
-
649
- /** Body Params */
650
-
651
842
  if (typeof type !== 'undefined') {
652
843
  payload['type'] = type;
653
844
  }
654
-
655
-
656
845
  if (typeof name !== 'undefined') {
657
846
  payload['name'] = name;
658
847
  }
659
-
660
-
661
848
  if (typeof key !== 'undefined') {
662
849
  payload['key'] = key;
663
850
  }
664
-
665
-
666
851
  if (typeof store !== 'undefined') {
667
852
  payload['store'] = store;
668
853
  }
669
-
670
-
671
854
  if (typeof hostname !== 'undefined') {
672
855
  payload['hostname'] = hostname;
673
856
  }
674
857
 
858
+
675
859
  let response = undefined;
860
+
676
861
  response = await client.call('post', apiPath, {
677
862
  'content-type': 'application/json',
678
863
  }, payload);
864
+
679
865
 
680
866
  if (parseOutput) {
681
867
  parse(response)
682
868
  success()
683
869
  }
870
+
684
871
  return response;
685
872
  }
686
873
 
874
+ /**
875
+ * @typedef {Object} ProjectsGetPlatformRequestParams
876
+ * @property {string} projectId Project unique ID.
877
+ * @property {string} platformId Platform unique ID.
878
+ * @property {boolean} parseOutput
879
+ * @property {libClient | undefined} sdk
880
+ */
881
+
882
+ /**
883
+ * @param {ProjectsGetPlatformRequestParams} params
884
+ */
687
885
  const projectsGetPlatform = async ({ projectId, platformId, parseOutput = true, sdk = undefined}) => {
688
- /* @param {string} projectId */
689
- /* @param {string} platformId */
690
-
691
886
  let client = !sdk ? await sdkForConsole() : sdk;
887
+
692
888
  let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
693
889
  let payload = {};
890
+
891
+
694
892
  let response = undefined;
893
+
695
894
  response = await client.call('get', apiPath, {
696
895
  'content-type': 'application/json',
697
896
  }, payload);
897
+
698
898
 
699
899
  if (parseOutput) {
700
900
  parse(response)
701
901
  success()
702
902
  }
903
+
703
904
  return response;
704
905
  }
705
906
 
907
+ /**
908
+ * @typedef {Object} ProjectsUpdatePlatformRequestParams
909
+ * @property {string} projectId Project unique ID.
910
+ * @property {string} platformId Platform unique ID.
911
+ * @property {string} name Platform name. Max length: 128 chars.
912
+ * @property {string} key Package name for android or bundle ID for iOS. Max length: 256 chars.
913
+ * @property {string} store App store or Google Play store ID. Max length: 256 chars.
914
+ * @property {string} hostname Platform client URL. Max length: 256 chars.
915
+ * @property {boolean} parseOutput
916
+ * @property {libClient | undefined} sdk
917
+ */
918
+
919
+ /**
920
+ * @param {ProjectsUpdatePlatformRequestParams} params
921
+ */
706
922
  const projectsUpdatePlatform = async ({ projectId, platformId, name, key, store, hostname, parseOutput = true, sdk = undefined}) => {
707
- /* @param {string} projectId */
708
- /* @param {string} platformId */
709
- /* @param {string} name */
710
- /* @param {string} key */
711
- /* @param {string} store */
712
- /* @param {string} hostname */
713
-
714
923
  let client = !sdk ? await sdkForConsole() : sdk;
924
+
715
925
  let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
716
926
  let payload = {};
717
-
718
- /** Body Params */
719
-
720
927
  if (typeof name !== 'undefined') {
721
928
  payload['name'] = name;
722
929
  }
723
-
724
-
725
930
  if (typeof key !== 'undefined') {
726
931
  payload['key'] = key;
727
932
  }
728
-
729
-
730
933
  if (typeof store !== 'undefined') {
731
934
  payload['store'] = store;
732
935
  }
733
-
734
-
735
936
  if (typeof hostname !== 'undefined') {
736
937
  payload['hostname'] = hostname;
737
938
  }
738
939
 
940
+
739
941
  let response = undefined;
942
+
740
943
  response = await client.call('put', apiPath, {
741
944
  'content-type': 'application/json',
742
945
  }, payload);
946
+
743
947
 
744
948
  if (parseOutput) {
745
949
  parse(response)
746
950
  success()
747
951
  }
952
+
748
953
  return response;
749
954
  }
750
955
 
956
+ /**
957
+ * @typedef {Object} ProjectsDeletePlatformRequestParams
958
+ * @property {string} projectId Project unique ID.
959
+ * @property {string} platformId Platform unique ID.
960
+ * @property {boolean} parseOutput
961
+ * @property {libClient | undefined} sdk
962
+ */
963
+
964
+ /**
965
+ * @param {ProjectsDeletePlatformRequestParams} params
966
+ */
751
967
  const projectsDeletePlatform = async ({ projectId, platformId, parseOutput = true, sdk = undefined}) => {
752
- /* @param {string} projectId */
753
- /* @param {string} platformId */
754
-
755
968
  let client = !sdk ? await sdkForConsole() : sdk;
969
+
756
970
  let apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
757
971
  let payload = {};
972
+
973
+
758
974
  let response = undefined;
975
+
759
976
  response = await client.call('delete', apiPath, {
760
977
  'content-type': 'application/json',
761
978
  }, payload);
979
+
762
980
 
763
981
  if (parseOutput) {
764
982
  parse(response)
765
983
  success()
766
984
  }
985
+
767
986
  return response;
768
987
  }
769
988
 
989
+ /**
990
+ * @typedef {Object} ProjectsUpdateServiceStatusRequestParams
991
+ * @property {string} projectId Project unique ID.
992
+ * @property {string} service Service name.
993
+ * @property {boolean} status Service status.
994
+ * @property {boolean} parseOutput
995
+ * @property {libClient | undefined} sdk
996
+ */
997
+
998
+ /**
999
+ * @param {ProjectsUpdateServiceStatusRequestParams} params
1000
+ */
770
1001
  const projectsUpdateServiceStatus = async ({ projectId, service, status, parseOutput = true, sdk = undefined}) => {
771
- /* @param {string} projectId */
772
- /* @param {string} service */
773
- /* @param {boolean} status */
774
-
775
1002
  let client = !sdk ? await sdkForConsole() : sdk;
1003
+
776
1004
  let apiPath = '/projects/{projectId}/service'.replace('{projectId}', projectId);
777
1005
  let payload = {};
778
-
779
- /** Body Params */
780
-
781
1006
  if (typeof service !== 'undefined') {
782
1007
  payload['service'] = service;
783
1008
  }
784
-
785
-
786
1009
  if (typeof status !== 'undefined') {
787
1010
  payload['status'] = status;
788
1011
  }
789
1012
 
1013
+
790
1014
  let response = undefined;
1015
+
791
1016
  response = await client.call('patch', apiPath, {
792
1017
  'content-type': 'application/json',
793
1018
  }, payload);
1019
+
794
1020
 
795
1021
  if (parseOutput) {
796
1022
  parse(response)
797
1023
  success()
798
1024
  }
1025
+
799
1026
  return response;
800
1027
  }
801
1028
 
1029
+ /**
1030
+ * @typedef {Object} ProjectsUpdateServiceStatusAllRequestParams
1031
+ * @property {string} projectId Project unique ID.
1032
+ * @property {boolean} status Service status.
1033
+ * @property {boolean} parseOutput
1034
+ * @property {libClient | undefined} sdk
1035
+ */
1036
+
1037
+ /**
1038
+ * @param {ProjectsUpdateServiceStatusAllRequestParams} params
1039
+ */
802
1040
  const projectsUpdateServiceStatusAll = async ({ projectId, status, parseOutput = true, sdk = undefined}) => {
803
- /* @param {string} projectId */
804
- /* @param {boolean} status */
805
-
806
1041
  let client = !sdk ? await sdkForConsole() : sdk;
1042
+
807
1043
  let apiPath = '/projects/{projectId}/service/all'.replace('{projectId}', projectId);
808
1044
  let payload = {};
809
-
810
- /** Body Params */
811
-
812
1045
  if (typeof status !== 'undefined') {
813
1046
  payload['status'] = status;
814
1047
  }
815
1048
 
1049
+
816
1050
  let response = undefined;
1051
+
817
1052
  response = await client.call('patch', apiPath, {
818
1053
  'content-type': 'application/json',
819
1054
  }, payload);
1055
+
820
1056
 
821
1057
  if (parseOutput) {
822
1058
  parse(response)
823
1059
  success()
824
1060
  }
1061
+
825
1062
  return response;
826
1063
  }
827
1064
 
1065
+ /**
1066
+ * @typedef {Object} ProjectsUpdateSmtpConfigurationRequestParams
1067
+ * @property {string} projectId Project unique ID.
1068
+ * @property {boolean} enabled Enable custom SMTP service
1069
+ * @property {string} senderName Name of the email sender
1070
+ * @property {string} senderEmail Email of the sender
1071
+ * @property {string} replyTo Reply to email
1072
+ * @property {string} host SMTP server host name
1073
+ * @property {number} port SMTP server port
1074
+ * @property {string} username SMTP server username
1075
+ * @property {string} password SMTP server password
1076
+ * @property {string} secure Does SMTP server use secure connection
1077
+ * @property {boolean} parseOutput
1078
+ * @property {libClient | undefined} sdk
1079
+ */
1080
+
1081
+ /**
1082
+ * @param {ProjectsUpdateSmtpConfigurationRequestParams} params
1083
+ */
828
1084
  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
1085
  let client = !sdk ? await sdkForConsole() : sdk;
1086
+
841
1087
  let apiPath = '/projects/{projectId}/smtp'.replace('{projectId}', projectId);
842
1088
  let payload = {};
843
-
844
- /** Body Params */
845
-
846
1089
  if (typeof enabled !== 'undefined') {
847
1090
  payload['enabled'] = enabled;
848
1091
  }
849
-
850
-
851
1092
  if (typeof senderName !== 'undefined') {
852
1093
  payload['senderName'] = senderName;
853
1094
  }
854
-
855
-
856
1095
  if (typeof senderEmail !== 'undefined') {
857
1096
  payload['senderEmail'] = senderEmail;
858
1097
  }
859
-
860
-
861
1098
  if (typeof replyTo !== 'undefined') {
862
1099
  payload['replyTo'] = replyTo;
863
1100
  }
864
-
865
-
866
1101
  if (typeof host !== 'undefined') {
867
1102
  payload['host'] = host;
868
1103
  }
869
-
870
-
871
1104
  if (typeof port !== 'undefined') {
872
1105
  payload['port'] = port;
873
1106
  }
874
-
875
-
876
1107
  if (typeof username !== 'undefined') {
877
1108
  payload['username'] = username;
878
1109
  }
879
-
880
-
881
1110
  if (typeof password !== 'undefined') {
882
1111
  payload['password'] = password;
883
1112
  }
884
-
885
-
886
1113
  if (typeof secure !== 'undefined') {
887
1114
  payload['secure'] = secure;
888
1115
  }
889
1116
 
1117
+
890
1118
  let response = undefined;
1119
+
891
1120
  response = await client.call('patch', apiPath, {
892
1121
  'content-type': 'application/json',
893
1122
  }, payload);
1123
+
894
1124
 
895
1125
  if (parseOutput) {
896
1126
  parse(response)
897
1127
  success()
898
1128
  }
1129
+
899
1130
  return response;
900
1131
  }
901
1132
 
1133
+ /**
1134
+ * @typedef {Object} ProjectsUpdateTeamRequestParams
1135
+ * @property {string} projectId Project unique ID.
1136
+ * @property {string} teamId Team ID of the team to transfer project to.
1137
+ * @property {boolean} parseOutput
1138
+ * @property {libClient | undefined} sdk
1139
+ */
1140
+
1141
+ /**
1142
+ * @param {ProjectsUpdateTeamRequestParams} params
1143
+ */
902
1144
  const projectsUpdateTeam = async ({ projectId, teamId, parseOutput = true, sdk = undefined}) => {
903
- /* @param {string} projectId */
904
- /* @param {string} teamId */
905
-
906
1145
  let client = !sdk ? await sdkForConsole() : sdk;
1146
+
907
1147
  let apiPath = '/projects/{projectId}/team'.replace('{projectId}', projectId);
908
1148
  let payload = {};
909
-
910
- /** Body Params */
911
-
912
1149
  if (typeof teamId !== 'undefined') {
913
1150
  payload['teamId'] = teamId;
914
1151
  }
915
1152
 
1153
+
916
1154
  let response = undefined;
1155
+
917
1156
  response = await client.call('patch', apiPath, {
918
1157
  'content-type': 'application/json',
919
1158
  }, payload);
1159
+
920
1160
 
921
1161
  if (parseOutput) {
922
1162
  parse(response)
923
1163
  success()
924
1164
  }
1165
+
925
1166
  return response;
926
1167
  }
927
1168
 
1169
+ /**
1170
+ * @typedef {Object} ProjectsGetEmailTemplateRequestParams
1171
+ * @property {string} projectId Project unique ID.
1172
+ * @property {string} type Template type
1173
+ * @property {string} locale Template locale
1174
+ * @property {boolean} parseOutput
1175
+ * @property {libClient | undefined} sdk
1176
+ */
1177
+
1178
+ /**
1179
+ * @param {ProjectsGetEmailTemplateRequestParams} params
1180
+ */
928
1181
  const projectsGetEmailTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
929
- /* @param {string} projectId */
930
- /* @param {string} type */
931
- /* @param {string} locale */
932
-
933
1182
  let client = !sdk ? await sdkForConsole() : sdk;
1183
+
934
1184
  let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
935
1185
  let payload = {};
1186
+
1187
+
936
1188
  let response = undefined;
1189
+
937
1190
  response = await client.call('get', apiPath, {
938
1191
  'content-type': 'application/json',
939
1192
  }, payload);
1193
+
940
1194
 
941
1195
  if (parseOutput) {
942
1196
  parse(response)
943
1197
  success()
944
1198
  }
1199
+
945
1200
  return response;
946
1201
  }
947
1202
 
1203
+ /**
1204
+ * @typedef {Object} ProjectsUpdateEmailTemplateRequestParams
1205
+ * @property {string} projectId Project unique ID.
1206
+ * @property {string} type Template type
1207
+ * @property {string} locale Template locale
1208
+ * @property {string} subject Email Subject
1209
+ * @property {string} message Template message
1210
+ * @property {string} senderName Name of the email sender
1211
+ * @property {string} senderEmail Email of the sender
1212
+ * @property {string} replyTo Reply to email
1213
+ * @property {boolean} parseOutput
1214
+ * @property {libClient | undefined} sdk
1215
+ */
1216
+
1217
+ /**
1218
+ * @param {ProjectsUpdateEmailTemplateRequestParams} params
1219
+ */
948
1220
  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
1221
  let client = !sdk ? await sdkForConsole() : sdk;
1222
+
959
1223
  let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
960
1224
  let payload = {};
961
-
962
- /** Body Params */
963
-
964
1225
  if (typeof subject !== 'undefined') {
965
1226
  payload['subject'] = subject;
966
1227
  }
967
-
968
-
969
1228
  if (typeof message !== 'undefined') {
970
1229
  payload['message'] = message;
971
1230
  }
972
-
973
-
974
1231
  if (typeof senderName !== 'undefined') {
975
1232
  payload['senderName'] = senderName;
976
1233
  }
977
-
978
-
979
1234
  if (typeof senderEmail !== 'undefined') {
980
1235
  payload['senderEmail'] = senderEmail;
981
1236
  }
982
-
983
-
984
1237
  if (typeof replyTo !== 'undefined') {
985
1238
  payload['replyTo'] = replyTo;
986
1239
  }
987
1240
 
1241
+
988
1242
  let response = undefined;
1243
+
989
1244
  response = await client.call('patch', apiPath, {
990
1245
  'content-type': 'application/json',
991
1246
  }, payload);
1247
+
992
1248
 
993
1249
  if (parseOutput) {
994
1250
  parse(response)
995
1251
  success()
996
1252
  }
1253
+
997
1254
  return response;
998
1255
  }
999
1256
 
1257
+ /**
1258
+ * @typedef {Object} ProjectsDeleteEmailTemplateRequestParams
1259
+ * @property {string} projectId Project unique ID.
1260
+ * @property {string} type Template type
1261
+ * @property {string} locale Template locale
1262
+ * @property {boolean} parseOutput
1263
+ * @property {libClient | undefined} sdk
1264
+ */
1265
+
1266
+ /**
1267
+ * @param {ProjectsDeleteEmailTemplateRequestParams} params
1268
+ */
1000
1269
  const projectsDeleteEmailTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1001
- /* @param {string} projectId */
1002
- /* @param {string} type */
1003
- /* @param {string} locale */
1004
-
1005
1270
  let client = !sdk ? await sdkForConsole() : sdk;
1271
+
1006
1272
  let apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1007
1273
  let payload = {};
1274
+
1275
+
1008
1276
  let response = undefined;
1277
+
1009
1278
  response = await client.call('delete', apiPath, {
1010
1279
  'content-type': 'application/json',
1011
1280
  }, payload);
1281
+
1012
1282
 
1013
1283
  if (parseOutput) {
1014
1284
  parse(response)
1015
1285
  success()
1016
1286
  }
1287
+
1017
1288
  return response;
1018
1289
  }
1019
1290
 
1291
+ /**
1292
+ * @typedef {Object} ProjectsGetSmsTemplateRequestParams
1293
+ * @property {string} projectId Project unique ID.
1294
+ * @property {string} type Template type
1295
+ * @property {string} locale Template locale
1296
+ * @property {boolean} parseOutput
1297
+ * @property {libClient | undefined} sdk
1298
+ */
1299
+
1300
+ /**
1301
+ * @param {ProjectsGetSmsTemplateRequestParams} params
1302
+ */
1020
1303
  const projectsGetSmsTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1021
- /* @param {string} projectId */
1022
- /* @param {string} type */
1023
- /* @param {string} locale */
1024
-
1025
1304
  let client = !sdk ? await sdkForConsole() : sdk;
1305
+
1026
1306
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1027
1307
  let payload = {};
1308
+
1309
+
1028
1310
  let response = undefined;
1311
+
1029
1312
  response = await client.call('get', apiPath, {
1030
1313
  'content-type': 'application/json',
1031
1314
  }, payload);
1315
+
1032
1316
 
1033
1317
  if (parseOutput) {
1034
1318
  parse(response)
1035
1319
  success()
1036
1320
  }
1321
+
1037
1322
  return response;
1038
1323
  }
1039
1324
 
1325
+ /**
1326
+ * @typedef {Object} ProjectsUpdateSmsTemplateRequestParams
1327
+ * @property {string} projectId Project unique ID.
1328
+ * @property {string} type Template type
1329
+ * @property {string} locale Template locale
1330
+ * @property {string} message Template message
1331
+ * @property {boolean} parseOutput
1332
+ * @property {libClient | undefined} sdk
1333
+ */
1334
+
1335
+ /**
1336
+ * @param {ProjectsUpdateSmsTemplateRequestParams} params
1337
+ */
1040
1338
  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
1339
  let client = !sdk ? await sdkForConsole() : sdk;
1340
+
1047
1341
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1048
1342
  let payload = {};
1049
-
1050
- /** Body Params */
1051
-
1052
1343
  if (typeof message !== 'undefined') {
1053
1344
  payload['message'] = message;
1054
1345
  }
1055
1346
 
1347
+
1056
1348
  let response = undefined;
1349
+
1057
1350
  response = await client.call('patch', apiPath, {
1058
1351
  'content-type': 'application/json',
1059
1352
  }, payload);
1353
+
1060
1354
 
1061
1355
  if (parseOutput) {
1062
1356
  parse(response)
1063
1357
  success()
1064
1358
  }
1359
+
1065
1360
  return response;
1066
1361
  }
1067
1362
 
1363
+ /**
1364
+ * @typedef {Object} ProjectsDeleteSmsTemplateRequestParams
1365
+ * @property {string} projectId Project unique ID.
1366
+ * @property {string} type Template type
1367
+ * @property {string} locale Template locale
1368
+ * @property {boolean} parseOutput
1369
+ * @property {libClient | undefined} sdk
1370
+ */
1371
+
1372
+ /**
1373
+ * @param {ProjectsDeleteSmsTemplateRequestParams} params
1374
+ */
1068
1375
  const projectsDeleteSmsTemplate = async ({ projectId, type, locale, parseOutput = true, sdk = undefined}) => {
1069
- /* @param {string} projectId */
1070
- /* @param {string} type */
1071
- /* @param {string} locale */
1072
-
1073
1376
  let client = !sdk ? await sdkForConsole() : sdk;
1377
+
1074
1378
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
1075
1379
  let payload = {};
1380
+
1381
+
1076
1382
  let response = undefined;
1383
+
1077
1384
  response = await client.call('delete', apiPath, {
1078
1385
  'content-type': 'application/json',
1079
1386
  }, payload);
1387
+
1080
1388
 
1081
1389
  if (parseOutput) {
1082
1390
  parse(response)
1083
1391
  success()
1084
1392
  }
1393
+
1085
1394
  return response;
1086
1395
  }
1087
1396
 
1397
+ /**
1398
+ * @typedef {Object} ProjectsGetUsageRequestParams
1399
+ * @property {string} projectId Project unique ID.
1400
+ * @property {string} range Date range.
1401
+ * @property {boolean} parseOutput
1402
+ * @property {libClient | undefined} sdk
1403
+ */
1404
+
1405
+ /**
1406
+ * @param {ProjectsGetUsageRequestParams} params
1407
+ */
1088
1408
  const projectsGetUsage = async ({ projectId, range, parseOutput = true, sdk = undefined}) => {
1089
- /* @param {string} projectId */
1090
- /* @param {string} range */
1091
-
1092
1409
  let client = !sdk ? await sdkForConsole() : sdk;
1410
+
1093
1411
  let apiPath = '/projects/{projectId}/usage'.replace('{projectId}', projectId);
1094
1412
  let payload = {};
1095
-
1096
- /** Query Params */
1097
1413
  if (typeof range !== 'undefined') {
1098
1414
  payload['range'] = range;
1099
1415
  }
1416
+
1417
+
1100
1418
  let response = undefined;
1419
+
1101
1420
  response = await client.call('get', apiPath, {
1102
1421
  'content-type': 'application/json',
1103
1422
  }, payload);
1423
+
1104
1424
 
1105
1425
  if (parseOutput) {
1106
1426
  parse(response)
1107
1427
  success()
1108
1428
  }
1429
+
1109
1430
  return response;
1110
1431
  }
1111
1432
 
1112
- const projectsListWebhooks = async ({ projectId, parseOutput = true, sdk = undefined}) => {
1113
- /* @param {string} projectId */
1433
+ /**
1434
+ * @typedef {Object} ProjectsListWebhooksRequestParams
1435
+ * @property {string} projectId Project unique ID.
1436
+ * @property {boolean} parseOutput
1437
+ * @property {libClient | undefined} sdk
1438
+ */
1114
1439
 
1440
+ /**
1441
+ * @param {ProjectsListWebhooksRequestParams} params
1442
+ */
1443
+ const projectsListWebhooks = async ({ projectId, parseOutput = true, sdk = undefined}) => {
1115
1444
  let client = !sdk ? await sdkForConsole() : sdk;
1445
+
1116
1446
  let apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
1117
1447
  let payload = {};
1448
+
1449
+
1118
1450
  let response = undefined;
1451
+
1119
1452
  response = await client.call('get', apiPath, {
1120
1453
  'content-type': 'application/json',
1121
1454
  }, payload);
1455
+
1122
1456
 
1123
1457
  if (parseOutput) {
1124
1458
  parse(response)
1125
1459
  success()
1126
1460
  }
1461
+
1127
1462
  return response;
1128
1463
  }
1129
1464
 
1465
+ /**
1466
+ * @typedef {Object} ProjectsCreateWebhookRequestParams
1467
+ * @property {string} projectId Project unique ID.
1468
+ * @property {string} name Webhook name. Max length: 128 chars.
1469
+ * @property {string[]} events Events list. Maximum of 100 events are allowed.
1470
+ * @property {string} url Webhook URL.
1471
+ * @property {boolean} security Certificate verification, false for disabled or true for enabled.
1472
+ * @property {string} httpUser Webhook HTTP user. Max length: 256 chars.
1473
+ * @property {string} httpPass Webhook HTTP password. Max length: 256 chars.
1474
+ * @property {boolean} parseOutput
1475
+ * @property {libClient | undefined} sdk
1476
+ */
1477
+
1478
+ /**
1479
+ * @param {ProjectsCreateWebhookRequestParams} params
1480
+ */
1130
1481
  const projectsCreateWebhook = async ({ projectId, name, events, url, security, httpUser, httpPass, parseOutput = true, sdk = undefined}) => {
1131
- /* @param {string} projectId */
1132
- /* @param {string} name */
1133
- /* @param {string[]} events */
1134
- /* @param {string} url */
1135
- /* @param {boolean} security */
1136
- /* @param {string} httpUser */
1137
- /* @param {string} httpPass */
1138
-
1139
1482
  let client = !sdk ? await sdkForConsole() : sdk;
1483
+
1140
1484
  let apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
1141
1485
  let payload = {};
1142
-
1143
- /** Body Params */
1144
-
1145
1486
  if (typeof name !== 'undefined') {
1146
1487
  payload['name'] = name;
1147
1488
  }
1148
-
1149
1489
  events = events === true ? [] : events;
1150
-
1151
1490
  if (typeof events !== 'undefined') {
1152
1491
  payload['events'] = events;
1153
1492
  }
1154
-
1155
-
1156
1493
  if (typeof url !== 'undefined') {
1157
1494
  payload['url'] = url;
1158
1495
  }
1159
-
1160
-
1161
1496
  if (typeof security !== 'undefined') {
1162
1497
  payload['security'] = security;
1163
1498
  }
1164
-
1165
-
1166
1499
  if (typeof httpUser !== 'undefined') {
1167
1500
  payload['httpUser'] = httpUser;
1168
1501
  }
1169
-
1170
-
1171
1502
  if (typeof httpPass !== 'undefined') {
1172
1503
  payload['httpPass'] = httpPass;
1173
1504
  }
1174
1505
 
1506
+
1175
1507
  let response = undefined;
1508
+
1176
1509
  response = await client.call('post', apiPath, {
1177
1510
  'content-type': 'application/json',
1178
1511
  }, payload);
1512
+
1179
1513
 
1180
1514
  if (parseOutput) {
1181
1515
  parse(response)
1182
1516
  success()
1183
1517
  }
1518
+
1184
1519
  return response;
1185
1520
  }
1186
1521
 
1522
+ /**
1523
+ * @typedef {Object} ProjectsGetWebhookRequestParams
1524
+ * @property {string} projectId Project unique ID.
1525
+ * @property {string} webhookId Webhook unique ID.
1526
+ * @property {boolean} parseOutput
1527
+ * @property {libClient | undefined} sdk
1528
+ */
1529
+
1530
+ /**
1531
+ * @param {ProjectsGetWebhookRequestParams} params
1532
+ */
1187
1533
  const projectsGetWebhook = async ({ projectId, webhookId, parseOutput = true, sdk = undefined}) => {
1188
- /* @param {string} projectId */
1189
- /* @param {string} webhookId */
1190
-
1191
1534
  let client = !sdk ? await sdkForConsole() : sdk;
1535
+
1192
1536
  let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1193
1537
  let payload = {};
1538
+
1539
+
1194
1540
  let response = undefined;
1541
+
1195
1542
  response = await client.call('get', apiPath, {
1196
1543
  'content-type': 'application/json',
1197
1544
  }, payload);
1545
+
1198
1546
 
1199
1547
  if (parseOutput) {
1200
1548
  parse(response)
1201
1549
  success()
1202
1550
  }
1551
+
1203
1552
  return response;
1204
1553
  }
1205
1554
 
1555
+ /**
1556
+ * @typedef {Object} ProjectsUpdateWebhookRequestParams
1557
+ * @property {string} projectId Project unique ID.
1558
+ * @property {string} webhookId Webhook unique ID.
1559
+ * @property {string} name Webhook name. Max length: 128 chars.
1560
+ * @property {string[]} events Events list. Maximum of 100 events are allowed.
1561
+ * @property {string} url Webhook URL.
1562
+ * @property {boolean} security Certificate verification, false for disabled or true for enabled.
1563
+ * @property {string} httpUser Webhook HTTP user. Max length: 256 chars.
1564
+ * @property {string} httpPass Webhook HTTP password. Max length: 256 chars.
1565
+ * @property {boolean} parseOutput
1566
+ * @property {libClient | undefined} sdk
1567
+ */
1568
+
1569
+ /**
1570
+ * @param {ProjectsUpdateWebhookRequestParams} params
1571
+ */
1206
1572
  const projectsUpdateWebhook = async ({ projectId, webhookId, name, events, url, security, httpUser, httpPass, parseOutput = true, sdk = undefined}) => {
1207
- /* @param {string} projectId */
1208
- /* @param {string} webhookId */
1209
- /* @param {string} name */
1210
- /* @param {string[]} events */
1211
- /* @param {string} url */
1212
- /* @param {boolean} security */
1213
- /* @param {string} httpUser */
1214
- /* @param {string} httpPass */
1215
-
1216
1573
  let client = !sdk ? await sdkForConsole() : sdk;
1574
+
1217
1575
  let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1218
1576
  let payload = {};
1219
-
1220
- /** Body Params */
1221
-
1222
1577
  if (typeof name !== 'undefined') {
1223
1578
  payload['name'] = name;
1224
1579
  }
1225
-
1226
1580
  events = events === true ? [] : events;
1227
-
1228
1581
  if (typeof events !== 'undefined') {
1229
1582
  payload['events'] = events;
1230
1583
  }
1231
-
1232
-
1233
1584
  if (typeof url !== 'undefined') {
1234
1585
  payload['url'] = url;
1235
1586
  }
1236
-
1237
-
1238
1587
  if (typeof security !== 'undefined') {
1239
1588
  payload['security'] = security;
1240
1589
  }
1241
-
1242
-
1243
1590
  if (typeof httpUser !== 'undefined') {
1244
1591
  payload['httpUser'] = httpUser;
1245
1592
  }
1246
-
1247
-
1248
1593
  if (typeof httpPass !== 'undefined') {
1249
1594
  payload['httpPass'] = httpPass;
1250
1595
  }
1251
1596
 
1597
+
1252
1598
  let response = undefined;
1599
+
1253
1600
  response = await client.call('put', apiPath, {
1254
1601
  'content-type': 'application/json',
1255
1602
  }, payload);
1603
+
1256
1604
 
1257
1605
  if (parseOutput) {
1258
1606
  parse(response)
1259
1607
  success()
1260
1608
  }
1609
+
1261
1610
  return response;
1262
1611
  }
1263
1612
 
1613
+ /**
1614
+ * @typedef {Object} ProjectsDeleteWebhookRequestParams
1615
+ * @property {string} projectId Project unique ID.
1616
+ * @property {string} webhookId Webhook unique ID.
1617
+ * @property {boolean} parseOutput
1618
+ * @property {libClient | undefined} sdk
1619
+ */
1620
+
1621
+ /**
1622
+ * @param {ProjectsDeleteWebhookRequestParams} params
1623
+ */
1264
1624
  const projectsDeleteWebhook = async ({ projectId, webhookId, parseOutput = true, sdk = undefined}) => {
1265
- /* @param {string} projectId */
1266
- /* @param {string} webhookId */
1267
-
1268
1625
  let client = !sdk ? await sdkForConsole() : sdk;
1626
+
1269
1627
  let apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1270
1628
  let payload = {};
1629
+
1630
+
1271
1631
  let response = undefined;
1632
+
1272
1633
  response = await client.call('delete', apiPath, {
1273
1634
  'content-type': 'application/json',
1274
1635
  }, payload);
1636
+
1275
1637
 
1276
1638
  if (parseOutput) {
1277
1639
  parse(response)
1278
1640
  success()
1279
1641
  }
1642
+
1280
1643
  return response;
1281
1644
  }
1282
1645
 
1646
+ /**
1647
+ * @typedef {Object} ProjectsUpdateWebhookSignatureRequestParams
1648
+ * @property {string} projectId Project unique ID.
1649
+ * @property {string} webhookId Webhook unique ID.
1650
+ * @property {boolean} parseOutput
1651
+ * @property {libClient | undefined} sdk
1652
+ */
1653
+
1654
+ /**
1655
+ * @param {ProjectsUpdateWebhookSignatureRequestParams} params
1656
+ */
1283
1657
  const projectsUpdateWebhookSignature = async ({ projectId, webhookId, parseOutput = true, sdk = undefined}) => {
1284
- /* @param {string} projectId */
1285
- /* @param {string} webhookId */
1286
-
1287
1658
  let client = !sdk ? await sdkForConsole() : sdk;
1659
+
1288
1660
  let apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
1289
1661
  let payload = {};
1662
+
1663
+
1290
1664
  let response = undefined;
1665
+
1291
1666
  response = await client.call('patch', apiPath, {
1292
1667
  'content-type': 'application/json',
1293
1668
  }, payload);
1669
+
1294
1670
 
1295
1671
  if (parseOutput) {
1296
1672
  parse(response)
1297
1673
  success()
1298
1674
  }
1675
+
1299
1676
  return response;
1300
1677
  }
1301
1678
 
@@ -1647,44 +2024,44 @@ projects
1647
2024
 
1648
2025
  module.exports = {
1649
2026
  projects,
1650
- projectsList,
1651
- projectsCreate,
1652
- projectsGet,
1653
- projectsUpdate,
1654
- projectsDelete,
1655
- projectsUpdateAuthDuration,
1656
- projectsUpdateAuthLimit,
1657
- projectsUpdateAuthSessionsLimit,
1658
- projectsUpdateAuthPasswordDictionary,
1659
- projectsUpdateAuthPasswordHistory,
1660
- projectsUpdatePersonalDataCheck,
1661
- projectsUpdateAuthStatus,
1662
- projectsListKeys,
1663
- projectsCreateKey,
1664
- projectsGetKey,
1665
- projectsUpdateKey,
1666
- projectsDeleteKey,
1667
- projectsUpdateOAuth2,
1668
- projectsListPlatforms,
1669
- projectsCreatePlatform,
1670
- projectsGetPlatform,
1671
- projectsUpdatePlatform,
1672
- projectsDeletePlatform,
1673
- projectsUpdateServiceStatus,
1674
- projectsUpdateServiceStatusAll,
1675
- projectsUpdateSmtpConfiguration,
1676
- projectsUpdateTeam,
1677
- projectsGetEmailTemplate,
1678
- projectsUpdateEmailTemplate,
1679
- projectsDeleteEmailTemplate,
1680
- projectsGetSmsTemplate,
1681
- projectsUpdateSmsTemplate,
1682
- projectsDeleteSmsTemplate,
1683
- projectsGetUsage,
1684
- projectsListWebhooks,
1685
- projectsCreateWebhook,
1686
- projectsGetWebhook,
1687
- projectsUpdateWebhook,
1688
- projectsDeleteWebhook,
1689
- projectsUpdateWebhookSignature
1690
- };
2027
+ projectsList,
2028
+ projectsCreate,
2029
+ projectsGet,
2030
+ projectsUpdate,
2031
+ projectsDelete,
2032
+ projectsUpdateAuthDuration,
2033
+ projectsUpdateAuthLimit,
2034
+ projectsUpdateAuthSessionsLimit,
2035
+ projectsUpdateAuthPasswordDictionary,
2036
+ projectsUpdateAuthPasswordHistory,
2037
+ projectsUpdatePersonalDataCheck,
2038
+ projectsUpdateAuthStatus,
2039
+ projectsListKeys,
2040
+ projectsCreateKey,
2041
+ projectsGetKey,
2042
+ projectsUpdateKey,
2043
+ projectsDeleteKey,
2044
+ projectsUpdateOAuth2,
2045
+ projectsListPlatforms,
2046
+ projectsCreatePlatform,
2047
+ projectsGetPlatform,
2048
+ projectsUpdatePlatform,
2049
+ projectsDeletePlatform,
2050
+ projectsUpdateServiceStatus,
2051
+ projectsUpdateServiceStatusAll,
2052
+ projectsUpdateSmtpConfiguration,
2053
+ projectsUpdateTeam,
2054
+ projectsGetEmailTemplate,
2055
+ projectsUpdateEmailTemplate,
2056
+ projectsDeleteEmailTemplate,
2057
+ projectsGetSmsTemplate,
2058
+ projectsUpdateSmsTemplate,
2059
+ projectsDeleteSmsTemplate,
2060
+ projectsGetUsage,
2061
+ projectsListWebhooks,
2062
+ projectsCreateWebhook,
2063
+ projectsGetWebhook,
2064
+ projectsUpdateWebhook,
2065
+ projectsDeleteWebhook,
2066
+ projectsUpdateWebhookSignature
2067
+ };