@appwrite.io/console 1.8.0 → 1.10.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 (105) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/CHANGELOG.md +45 -6
  3. package/README.md +82 -2
  4. package/dist/cjs/sdk.js +532 -200
  5. package/dist/cjs/sdk.js.map +1 -1
  6. package/dist/esm/sdk.js +533 -201
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +532 -200
  9. package/docs/examples/databases/create-document.md +1 -3
  10. package/docs/examples/databases/create-documents.md +1 -1
  11. package/docs/examples/databases/decrement-document-attribute.md +18 -0
  12. package/docs/examples/databases/increment-document-attribute.md +18 -0
  13. package/docs/examples/databases/upsert-documents.md +1 -1
  14. package/docs/examples/domains/create-record-a-a-a-a.md +1 -1
  15. package/docs/examples/domains/create-record-a.md +1 -1
  16. package/docs/examples/domains/create-record-alias.md +1 -1
  17. package/docs/examples/domains/create-record-c-a-a.md +1 -1
  18. package/docs/examples/domains/create-record-c-n-a-m-e.md +1 -1
  19. package/docs/examples/domains/create-record-h-t-t-p-s.md +1 -1
  20. package/docs/examples/domains/create-record-m-x.md +1 -1
  21. package/docs/examples/domains/create-record-n-s.md +1 -1
  22. package/docs/examples/domains/create-record-s-r-v.md +1 -1
  23. package/docs/examples/domains/create-record-t-x-t.md +1 -1
  24. package/docs/examples/domains/update-record-a-a-a-a.md +1 -1
  25. package/docs/examples/domains/update-record-a.md +1 -1
  26. package/docs/examples/domains/update-record-alias.md +1 -1
  27. package/docs/examples/domains/update-record-c-a-a.md +1 -1
  28. package/docs/examples/domains/update-record-c-n-a-m-e.md +1 -1
  29. package/docs/examples/domains/update-record-h-t-t-p-s.md +1 -1
  30. package/docs/examples/domains/update-record-m-x.md +1 -1
  31. package/docs/examples/domains/update-record-n-s.md +1 -1
  32. package/docs/examples/domains/update-record-s-r-v.md +1 -1
  33. package/docs/examples/domains/update-record-t-x-t.md +1 -1
  34. package/docs/examples/functions/create-execution.md +1 -1
  35. package/docs/examples/health/{get-queue-stats-usage-dump.md → get-queue-billing-project-aggregation.md} +2 -2
  36. package/docs/examples/health/{get-queue-billing-aggregation.md → get-queue-billing-team-aggregation.md} +1 -1
  37. package/docs/examples/organizations/cancel-downgrade.md +13 -0
  38. package/docs/examples/organizations/estimation-create-organization.md +16 -0
  39. package/docs/examples/organizations/estimation-delete-organization.md +13 -0
  40. package/docs/examples/organizations/estimation-update-plan.md +16 -0
  41. package/docs/examples/organizations/get-available-credits.md +13 -0
  42. package/docs/examples/organizations/get-usage.md +1 -1
  43. package/docs/examples/organizations/update-projects.md +14 -0
  44. package/docs/examples/organizations/validate-payment.md +14 -0
  45. package/docs/examples/proxy/create-redirect-rule.md +4 -2
  46. package/docs/examples/vcs/get-repository-contents.md +2 -1
  47. package/package.json +1 -1
  48. package/src/client.ts +5 -4
  49. package/src/enums/build-runtime.ts +2 -0
  50. package/src/enums/image-format.ts +1 -0
  51. package/src/enums/proxy-resource-type.ts +4 -0
  52. package/src/enums/runtime.ts +2 -0
  53. package/src/index.ts +1 -0
  54. package/src/models.ts +513 -11
  55. package/src/services/account.ts +97 -36
  56. package/src/services/avatars.ts +26 -20
  57. package/src/services/backups.ts +11 -0
  58. package/src/services/console.ts +8 -1
  59. package/src/services/databases.ts +190 -31
  60. package/src/services/domains.ts +111 -69
  61. package/src/services/functions.ts +37 -8
  62. package/src/services/graphql.ts +1 -0
  63. package/src/services/health.ts +54 -4
  64. package/src/services/locale.ts +9 -2
  65. package/src/services/messaging.ts +53 -8
  66. package/src/services/migrations.ts +12 -0
  67. package/src/services/organizations.ts +301 -14
  68. package/src/services/project.ts +5 -0
  69. package/src/services/projects.ts +50 -0
  70. package/src/services/proxy.ts +23 -1
  71. package/src/services/sites.ts +32 -4
  72. package/src/services/storage.ts +23 -9
  73. package/src/services/teams.ts +30 -17
  74. package/src/services/tokens.ts +4 -0
  75. package/src/services/users.ts +69 -27
  76. package/src/services/vcs.ts +16 -4
  77. package/types/enums/build-runtime.d.ts +3 -1
  78. package/types/enums/image-format.d.ts +2 -1
  79. package/types/enums/proxy-resource-type.d.ts +4 -0
  80. package/types/enums/runtime.d.ts +3 -1
  81. package/types/index.d.ts +1 -0
  82. package/types/models.d.ts +494 -188
  83. package/types/services/account.d.ts +36 -36
  84. package/types/services/avatars.d.ts +20 -20
  85. package/types/services/console.d.ts +1 -1
  86. package/types/services/databases.d.ts +67 -31
  87. package/types/services/domains.d.ts +69 -69
  88. package/types/services/functions.d.ts +8 -8
  89. package/types/services/health.d.ts +11 -3
  90. package/types/services/locale.d.ts +2 -2
  91. package/types/services/messaging.d.ts +8 -8
  92. package/types/services/organizations.d.ts +88 -14
  93. package/types/services/proxy.d.ts +4 -1
  94. package/types/services/sites.d.ts +4 -4
  95. package/types/services/storage.d.ts +9 -9
  96. package/types/services/teams.d.ts +17 -17
  97. package/types/services/users.d.ts +27 -27
  98. package/types/services/vcs.d.ts +4 -4
  99. package/docs/examples/functions/create-build.md +0 -15
  100. package/docs/examples/functions/get-function-usage.md +0 -14
  101. package/docs/examples/functions/update-deployment-build.md +0 -14
  102. package/docs/examples/functions/update-deployment.md +0 -14
  103. package/docs/examples/proxy/create-rule.md +0 -15
  104. package/src/enums/resource-type.ts +0 -4
  105. package/types/enums/resource-type.d.ts +0 -4
package/src/models.ts CHANGED
@@ -2,10 +2,13 @@
2
2
  * Appwrite Models
3
3
  */
4
4
  export namespace Models {
5
+
6
+ declare const __default: unique symbol;
7
+
5
8
  /**
6
9
  * Documents List
7
10
  */
8
- export type DocumentList<Document extends Models.Document> = {
11
+ export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
9
12
  /**
10
13
  * Total number of documents documents that matched your query.
11
14
  */
@@ -15,6 +18,7 @@ export namespace Models {
15
18
  */
16
19
  documents: Document[];
17
20
  }
21
+
18
22
  /**
19
23
  * Collections List
20
24
  */
@@ -28,6 +32,7 @@ export namespace Models {
28
32
  */
29
33
  collections: Collection[];
30
34
  }
35
+
31
36
  /**
32
37
  * Databases List
33
38
  */
@@ -41,6 +46,7 @@ export namespace Models {
41
46
  */
42
47
  databases: Database[];
43
48
  }
49
+
44
50
  /**
45
51
  * Indexes List
46
52
  */
@@ -54,10 +60,11 @@ export namespace Models {
54
60
  */
55
61
  indexes: Index[];
56
62
  }
63
+
57
64
  /**
58
65
  * Users List
59
66
  */
60
- export type UserList<Preferences extends Models.Preferences> = {
67
+ export type UserList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
61
68
  /**
62
69
  * Total number of users documents that matched your query.
63
70
  */
@@ -67,6 +74,7 @@ export namespace Models {
67
74
  */
68
75
  users: User<Preferences>[];
69
76
  }
77
+
70
78
  /**
71
79
  * Sessions List
72
80
  */
@@ -80,6 +88,7 @@ export namespace Models {
80
88
  */
81
89
  sessions: Session[];
82
90
  }
91
+
83
92
  /**
84
93
  * Identities List
85
94
  */
@@ -93,6 +102,7 @@ export namespace Models {
93
102
  */
94
103
  identities: Identity[];
95
104
  }
105
+
96
106
  /**
97
107
  * Logs List
98
108
  */
@@ -106,6 +116,7 @@ export namespace Models {
106
116
  */
107
117
  logs: Log[];
108
118
  }
119
+
109
120
  /**
110
121
  * Files List
111
122
  */
@@ -119,6 +130,7 @@ export namespace Models {
119
130
  */
120
131
  files: File[];
121
132
  }
133
+
122
134
  /**
123
135
  * Buckets List
124
136
  */
@@ -132,6 +144,7 @@ export namespace Models {
132
144
  */
133
145
  buckets: Bucket[];
134
146
  }
147
+
135
148
  /**
136
149
  * Resource Tokens List
137
150
  */
@@ -145,10 +158,11 @@ export namespace Models {
145
158
  */
146
159
  tokens: ResourceToken[];
147
160
  }
161
+
148
162
  /**
149
163
  * Teams List
150
164
  */
151
- export type TeamList<Preferences extends Models.Preferences> = {
165
+ export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
152
166
  /**
153
167
  * Total number of teams documents that matched your query.
154
168
  */
@@ -158,6 +172,7 @@ export namespace Models {
158
172
  */
159
173
  teams: Team<Preferences>[];
160
174
  }
175
+
161
176
  /**
162
177
  * Memberships List
163
178
  */
@@ -171,6 +186,7 @@ export namespace Models {
171
186
  */
172
187
  memberships: Membership[];
173
188
  }
189
+
174
190
  /**
175
191
  * Sites List
176
192
  */
@@ -184,6 +200,7 @@ export namespace Models {
184
200
  */
185
201
  sites: Site[];
186
202
  }
203
+
187
204
  /**
188
205
  * Site Templates List
189
206
  */
@@ -197,6 +214,7 @@ export namespace Models {
197
214
  */
198
215
  templates: TemplateSite[];
199
216
  }
217
+
200
218
  /**
201
219
  * Functions List
202
220
  */
@@ -210,6 +228,7 @@ export namespace Models {
210
228
  */
211
229
  functions: Function[];
212
230
  }
231
+
213
232
  /**
214
233
  * Function Templates List
215
234
  */
@@ -223,6 +242,7 @@ export namespace Models {
223
242
  */
224
243
  templates: TemplateFunction[];
225
244
  }
245
+
226
246
  /**
227
247
  * Installations List
228
248
  */
@@ -236,6 +256,7 @@ export namespace Models {
236
256
  */
237
257
  installations: Installation[];
238
258
  }
259
+
239
260
  /**
240
261
  * Framework Provider Repositories List
241
262
  */
@@ -249,6 +270,7 @@ export namespace Models {
249
270
  */
250
271
  frameworkProviderRepositories: ProviderRepositoryFramework[];
251
272
  }
273
+
252
274
  /**
253
275
  * Runtime Provider Repositories List
254
276
  */
@@ -262,6 +284,7 @@ export namespace Models {
262
284
  */
263
285
  runtimeProviderRepositories: ProviderRepositoryRuntime[];
264
286
  }
287
+
265
288
  /**
266
289
  * Branches List
267
290
  */
@@ -275,6 +298,7 @@ export namespace Models {
275
298
  */
276
299
  branches: Branch[];
277
300
  }
301
+
278
302
  /**
279
303
  * Frameworks List
280
304
  */
@@ -288,6 +312,7 @@ export namespace Models {
288
312
  */
289
313
  frameworks: Framework[];
290
314
  }
315
+
291
316
  /**
292
317
  * Runtimes List
293
318
  */
@@ -301,6 +326,7 @@ export namespace Models {
301
326
  */
302
327
  runtimes: Runtime[];
303
328
  }
329
+
304
330
  /**
305
331
  * Deployments List
306
332
  */
@@ -314,6 +340,7 @@ export namespace Models {
314
340
  */
315
341
  deployments: Deployment[];
316
342
  }
343
+
317
344
  /**
318
345
  * Executions List
319
346
  */
@@ -327,6 +354,7 @@ export namespace Models {
327
354
  */
328
355
  executions: Execution[];
329
356
  }
357
+
330
358
  /**
331
359
  * Projects List
332
360
  */
@@ -340,6 +368,7 @@ export namespace Models {
340
368
  */
341
369
  projects: Project[];
342
370
  }
371
+
343
372
  /**
344
373
  * Webhooks List
345
374
  */
@@ -353,6 +382,7 @@ export namespace Models {
353
382
  */
354
383
  webhooks: Webhook[];
355
384
  }
385
+
356
386
  /**
357
387
  * API Keys List
358
388
  */
@@ -366,6 +396,7 @@ export namespace Models {
366
396
  */
367
397
  keys: Key[];
368
398
  }
399
+
369
400
  /**
370
401
  * Dev Keys List
371
402
  */
@@ -379,6 +410,7 @@ export namespace Models {
379
410
  */
380
411
  devKeys: DevKey[];
381
412
  }
413
+
382
414
  /**
383
415
  * Platforms List
384
416
  */
@@ -392,6 +424,7 @@ export namespace Models {
392
424
  */
393
425
  platforms: Platform[];
394
426
  }
427
+
395
428
  /**
396
429
  * Countries List
397
430
  */
@@ -405,6 +438,7 @@ export namespace Models {
405
438
  */
406
439
  countries: Country[];
407
440
  }
441
+
408
442
  /**
409
443
  * Continents List
410
444
  */
@@ -418,6 +452,7 @@ export namespace Models {
418
452
  */
419
453
  continents: Continent[];
420
454
  }
455
+
421
456
  /**
422
457
  * Languages List
423
458
  */
@@ -431,6 +466,7 @@ export namespace Models {
431
466
  */
432
467
  languages: Language[];
433
468
  }
469
+
434
470
  /**
435
471
  * Currencies List
436
472
  */
@@ -444,6 +480,7 @@ export namespace Models {
444
480
  */
445
481
  currencies: Currency[];
446
482
  }
483
+
447
484
  /**
448
485
  * Phones List
449
486
  */
@@ -457,6 +494,7 @@ export namespace Models {
457
494
  */
458
495
  phones: Phone[];
459
496
  }
497
+
460
498
  /**
461
499
  * Variables List
462
500
  */
@@ -470,6 +508,7 @@ export namespace Models {
470
508
  */
471
509
  variables: Variable[];
472
510
  }
511
+
473
512
  /**
474
513
  * Rule List
475
514
  */
@@ -483,6 +522,7 @@ export namespace Models {
483
522
  */
484
523
  rules: ProxyRule[];
485
524
  }
525
+
486
526
  /**
487
527
  * Locale codes list
488
528
  */
@@ -496,6 +536,7 @@ export namespace Models {
496
536
  */
497
537
  localeCodes: LocaleCode[];
498
538
  }
539
+
499
540
  /**
500
541
  * Provider list
501
542
  */
@@ -509,6 +550,7 @@ export namespace Models {
509
550
  */
510
551
  providers: Provider[];
511
552
  }
553
+
512
554
  /**
513
555
  * Message list
514
556
  */
@@ -522,6 +564,7 @@ export namespace Models {
522
564
  */
523
565
  messages: Message[];
524
566
  }
567
+
525
568
  /**
526
569
  * Topic list
527
570
  */
@@ -535,6 +578,7 @@ export namespace Models {
535
578
  */
536
579
  topics: Topic[];
537
580
  }
581
+
538
582
  /**
539
583
  * Subscriber list
540
584
  */
@@ -548,6 +592,7 @@ export namespace Models {
548
592
  */
549
593
  subscribers: Subscriber[];
550
594
  }
595
+
551
596
  /**
552
597
  * Target list
553
598
  */
@@ -561,6 +606,7 @@ export namespace Models {
561
606
  */
562
607
  targets: Target[];
563
608
  }
609
+
564
610
  /**
565
611
  * Migrations List
566
612
  */
@@ -574,6 +620,7 @@ export namespace Models {
574
620
  */
575
621
  migrations: Migration[];
576
622
  }
623
+
577
624
  /**
578
625
  * Specifications List
579
626
  */
@@ -587,6 +634,7 @@ export namespace Models {
587
634
  */
588
635
  specifications: Specification[];
589
636
  }
637
+
590
638
  /**
591
639
  * VCS Content List
592
640
  */
@@ -600,6 +648,7 @@ export namespace Models {
600
648
  */
601
649
  contents: VcsContent[];
602
650
  }
651
+
603
652
  /**
604
653
  * Database
605
654
  */
@@ -633,6 +682,7 @@ export namespace Models {
633
682
  */
634
683
  archives: Collection[];
635
684
  }
685
+
636
686
  /**
637
687
  * Collection
638
688
  */
@@ -678,6 +728,7 @@ export namespace Models {
678
728
  */
679
729
  indexes: Index[];
680
730
  }
731
+
681
732
  /**
682
733
  * Attributes List
683
734
  */
@@ -691,6 +742,7 @@ export namespace Models {
691
742
  */
692
743
  attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributeString)[];
693
744
  }
745
+
694
746
  /**
695
747
  * AttributeString
696
748
  */
@@ -740,6 +792,7 @@ export namespace Models {
740
792
  */
741
793
  encrypt?: boolean;
742
794
  }
795
+
743
796
  /**
744
797
  * AttributeInteger
745
798
  */
@@ -789,6 +842,7 @@ export namespace Models {
789
842
  */
790
843
  default?: number;
791
844
  }
845
+
792
846
  /**
793
847
  * AttributeFloat
794
848
  */
@@ -838,6 +892,7 @@ export namespace Models {
838
892
  */
839
893
  default?: number;
840
894
  }
895
+
841
896
  /**
842
897
  * AttributeBoolean
843
898
  */
@@ -879,6 +934,7 @@ export namespace Models {
879
934
  */
880
935
  default?: boolean;
881
936
  }
937
+
882
938
  /**
883
939
  * AttributeEmail
884
940
  */
@@ -924,6 +980,7 @@ export namespace Models {
924
980
  */
925
981
  default?: string;
926
982
  }
983
+
927
984
  /**
928
985
  * AttributeEnum
929
986
  */
@@ -973,6 +1030,7 @@ export namespace Models {
973
1030
  */
974
1031
  default?: string;
975
1032
  }
1033
+
976
1034
  /**
977
1035
  * AttributeIP
978
1036
  */
@@ -1018,6 +1076,7 @@ export namespace Models {
1018
1076
  */
1019
1077
  default?: string;
1020
1078
  }
1079
+
1021
1080
  /**
1022
1081
  * AttributeURL
1023
1082
  */
@@ -1063,6 +1122,7 @@ export namespace Models {
1063
1122
  */
1064
1123
  default?: string;
1065
1124
  }
1125
+
1066
1126
  /**
1067
1127
  * AttributeDatetime
1068
1128
  */
@@ -1108,6 +1168,7 @@ export namespace Models {
1108
1168
  */
1109
1169
  default?: string;
1110
1170
  }
1171
+
1111
1172
  /**
1112
1173
  * AttributeRelationship
1113
1174
  */
@@ -1169,6 +1230,7 @@ export namespace Models {
1169
1230
  */
1170
1231
  side: string;
1171
1232
  }
1233
+
1172
1234
  /**
1173
1235
  * Index
1174
1236
  */
@@ -1210,6 +1272,7 @@ export namespace Models {
1210
1272
  */
1211
1273
  $updatedAt: string;
1212
1274
  }
1275
+
1213
1276
  /**
1214
1277
  * Document
1215
1278
  */
@@ -1218,6 +1281,10 @@ export namespace Models {
1218
1281
  * Document ID.
1219
1282
  */
1220
1283
  $id: string;
1284
+ /**
1285
+ * Document automatically incrementing ID.
1286
+ */
1287
+ $sequence: number;
1221
1288
  /**
1222
1289
  * Collection ID.
1223
1290
  */
@@ -1238,8 +1305,13 @@ export namespace Models {
1238
1305
  * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1239
1306
  */
1240
1307
  $permissions: string[];
1241
- [key: string]: any;
1242
1308
  }
1309
+
1310
+ export type DefaultDocument = Document & {
1311
+ [key: string]: any;
1312
+ [__default]: true;
1313
+ };
1314
+
1243
1315
  /**
1244
1316
  * Log
1245
1317
  */
@@ -1329,10 +1401,11 @@ export namespace Models {
1329
1401
  */
1330
1402
  countryName: string;
1331
1403
  }
1404
+
1332
1405
  /**
1333
1406
  * User
1334
1407
  */
1335
- export type User<Preferences extends Models.Preferences> = {
1408
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1336
1409
  /**
1337
1410
  * User ID.
1338
1411
  */
@@ -1410,6 +1483,7 @@ export namespace Models {
1410
1483
  */
1411
1484
  accessedAt: string;
1412
1485
  }
1486
+
1413
1487
  /**
1414
1488
  * AlgoMD5
1415
1489
  */
@@ -1419,6 +1493,7 @@ export namespace Models {
1419
1493
  */
1420
1494
  type: string;
1421
1495
  }
1496
+
1422
1497
  /**
1423
1498
  * AlgoSHA
1424
1499
  */
@@ -1428,6 +1503,7 @@ export namespace Models {
1428
1503
  */
1429
1504
  type: string;
1430
1505
  }
1506
+
1431
1507
  /**
1432
1508
  * AlgoPHPass
1433
1509
  */
@@ -1437,6 +1513,7 @@ export namespace Models {
1437
1513
  */
1438
1514
  type: string;
1439
1515
  }
1516
+
1440
1517
  /**
1441
1518
  * AlgoBcrypt
1442
1519
  */
@@ -1446,6 +1523,7 @@ export namespace Models {
1446
1523
  */
1447
1524
  type: string;
1448
1525
  }
1526
+
1449
1527
  /**
1450
1528
  * AlgoScrypt
1451
1529
  */
@@ -1471,6 +1549,7 @@ export namespace Models {
1471
1549
  */
1472
1550
  length: number;
1473
1551
  }
1552
+
1474
1553
  /**
1475
1554
  * AlgoScryptModified
1476
1555
  */
@@ -1492,6 +1571,7 @@ export namespace Models {
1492
1571
  */
1493
1572
  signerKey: string;
1494
1573
  }
1574
+
1495
1575
  /**
1496
1576
  * AlgoArgon2
1497
1577
  */
@@ -1513,12 +1593,18 @@ export namespace Models {
1513
1593
  */
1514
1594
  threads: number;
1515
1595
  }
1596
+
1516
1597
  /**
1517
1598
  * Preferences
1518
1599
  */
1519
1600
  export type Preferences = {
1520
- [key: string]: any;
1521
1601
  }
1602
+
1603
+ export type DefaultPreferences = Preferences & {
1604
+ [key: string]: any;
1605
+ [__default]: true;
1606
+ };
1607
+
1522
1608
  /**
1523
1609
  * Session
1524
1610
  */
@@ -1640,6 +1726,7 @@ export namespace Models {
1640
1726
  */
1641
1727
  mfaUpdatedAt: string;
1642
1728
  }
1729
+
1643
1730
  /**
1644
1731
  * Identity
1645
1732
  */
@@ -1685,6 +1772,7 @@ export namespace Models {
1685
1772
  */
1686
1773
  providerRefreshToken: string;
1687
1774
  }
1775
+
1688
1776
  /**
1689
1777
  * Token
1690
1778
  */
@@ -1714,6 +1802,7 @@ export namespace Models {
1714
1802
  */
1715
1803
  phrase: string;
1716
1804
  }
1805
+
1717
1806
  /**
1718
1807
  * JWT
1719
1808
  */
@@ -1723,6 +1812,7 @@ export namespace Models {
1723
1812
  */
1724
1813
  jwt: string;
1725
1814
  }
1815
+
1726
1816
  /**
1727
1817
  * Locale
1728
1818
  */
@@ -1756,6 +1846,7 @@ export namespace Models {
1756
1846
  */
1757
1847
  currency: string;
1758
1848
  }
1849
+
1759
1850
  /**
1760
1851
  * LocaleCode
1761
1852
  */
@@ -1769,6 +1860,7 @@ export namespace Models {
1769
1860
  */
1770
1861
  name: string;
1771
1862
  }
1863
+
1772
1864
  /**
1773
1865
  * File
1774
1866
  */
@@ -1818,6 +1910,7 @@ export namespace Models {
1818
1910
  */
1819
1911
  chunksUploaded: number;
1820
1912
  }
1913
+
1821
1914
  /**
1822
1915
  * Bucket
1823
1916
  */
@@ -1871,6 +1964,7 @@ export namespace Models {
1871
1964
  */
1872
1965
  antivirus: boolean;
1873
1966
  }
1967
+
1874
1968
  /**
1875
1969
  * ResourceToken
1876
1970
  */
@@ -1904,10 +1998,11 @@ export namespace Models {
1904
1998
  */
1905
1999
  accessedAt: string;
1906
2000
  }
2001
+
1907
2002
  /**
1908
2003
  * Team
1909
2004
  */
1910
- export type Team<Preferences extends Models.Preferences> = {
2005
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1911
2006
  /**
1912
2007
  * Team ID.
1913
2008
  */
@@ -1933,6 +2028,7 @@ export namespace Models {
1933
2028
  */
1934
2029
  prefs: Preferences;
1935
2030
  }
2031
+
1936
2032
  /**
1937
2033
  * Membership
1938
2034
  */
@@ -1990,6 +2086,7 @@ export namespace Models {
1990
2086
  */
1991
2087
  roles: string[];
1992
2088
  }
2089
+
1993
2090
  /**
1994
2091
  * Site
1995
2092
  */
@@ -2111,6 +2208,7 @@ export namespace Models {
2111
2208
  */
2112
2209
  fallbackFile: string;
2113
2210
  }
2211
+
2114
2212
  /**
2115
2213
  * Template Site
2116
2214
  */
@@ -2168,6 +2266,7 @@ export namespace Models {
2168
2266
  */
2169
2267
  variables: TemplateVariable[];
2170
2268
  }
2269
+
2171
2270
  /**
2172
2271
  * Template Framework
2173
2272
  */
@@ -2209,6 +2308,7 @@ export namespace Models {
2209
2308
  */
2210
2309
  fallbackFile: string;
2211
2310
  }
2311
+
2212
2312
  /**
2213
2313
  * Function
2214
2314
  */
@@ -2326,6 +2426,7 @@ export namespace Models {
2326
2426
  */
2327
2427
  specification: string;
2328
2428
  }
2429
+
2329
2430
  /**
2330
2431
  * Template Function
2331
2432
  */
@@ -2399,6 +2500,7 @@ export namespace Models {
2399
2500
  */
2400
2501
  scopes: string[];
2401
2502
  }
2503
+
2402
2504
  /**
2403
2505
  * Template Runtime
2404
2506
  */
@@ -2420,6 +2522,7 @@ export namespace Models {
2420
2522
  */
2421
2523
  providerRootDirectory: string;
2422
2524
  }
2525
+
2423
2526
  /**
2424
2527
  * Template Variable
2425
2528
  */
@@ -2453,6 +2556,7 @@ export namespace Models {
2453
2556
  */
2454
2557
  type: string;
2455
2558
  }
2559
+
2456
2560
  /**
2457
2561
  * Installation
2458
2562
  */
@@ -2482,6 +2586,7 @@ export namespace Models {
2482
2586
  */
2483
2587
  providerInstallationId: string;
2484
2588
  }
2589
+
2485
2590
  /**
2486
2591
  * ProviderRepository
2487
2592
  */
@@ -2506,11 +2611,16 @@ export namespace Models {
2506
2611
  * Is VCS (Version Control System) repository private?
2507
2612
  */
2508
2613
  private: boolean;
2614
+ /**
2615
+ * VCS (Version Control System) repository&#039;s default branch name.
2616
+ */
2617
+ defaultBranch: string;
2509
2618
  /**
2510
2619
  * Last commit date in ISO 8601 format.
2511
2620
  */
2512
2621
  pushedAt: string;
2513
2622
  }
2623
+
2514
2624
  /**
2515
2625
  * ProviderRepositoryFramework
2516
2626
  */
@@ -2535,6 +2645,10 @@ export namespace Models {
2535
2645
  * Is VCS (Version Control System) repository private?
2536
2646
  */
2537
2647
  private: boolean;
2648
+ /**
2649
+ * VCS (Version Control System) repository&#039;s default branch name.
2650
+ */
2651
+ defaultBranch: string;
2538
2652
  /**
2539
2653
  * Last commit date in ISO 8601 format.
2540
2654
  */
@@ -2544,6 +2658,7 @@ export namespace Models {
2544
2658
  */
2545
2659
  framework: string;
2546
2660
  }
2661
+
2547
2662
  /**
2548
2663
  * ProviderRepositoryRuntime
2549
2664
  */
@@ -2568,6 +2683,10 @@ export namespace Models {
2568
2683
  * Is VCS (Version Control System) repository private?
2569
2684
  */
2570
2685
  private: boolean;
2686
+ /**
2687
+ * VCS (Version Control System) repository&#039;s default branch name.
2688
+ */
2689
+ defaultBranch: string;
2571
2690
  /**
2572
2691
  * Last commit date in ISO 8601 format.
2573
2692
  */
@@ -2577,6 +2696,7 @@ export namespace Models {
2577
2696
  */
2578
2697
  runtime: string;
2579
2698
  }
2699
+
2580
2700
  /**
2581
2701
  * DetectionFramework
2582
2702
  */
@@ -2598,6 +2718,7 @@ export namespace Models {
2598
2718
  */
2599
2719
  outputDirectory: string;
2600
2720
  }
2721
+
2601
2722
  /**
2602
2723
  * DetectionRuntime
2603
2724
  */
@@ -2615,6 +2736,7 @@ export namespace Models {
2615
2736
  */
2616
2737
  commands: string;
2617
2738
  }
2739
+
2618
2740
  /**
2619
2741
  * VcsContents
2620
2742
  */
@@ -2632,6 +2754,7 @@ export namespace Models {
2632
2754
  */
2633
2755
  name: string;
2634
2756
  }
2757
+
2635
2758
  /**
2636
2759
  * Branch
2637
2760
  */
@@ -2641,6 +2764,7 @@ export namespace Models {
2641
2764
  */
2642
2765
  name: string;
2643
2766
  }
2767
+
2644
2768
  /**
2645
2769
  * Runtime
2646
2770
  */
@@ -2678,6 +2802,7 @@ export namespace Models {
2678
2802
  */
2679
2803
  supports: string[];
2680
2804
  }
2805
+
2681
2806
  /**
2682
2807
  * Framework
2683
2808
  */
@@ -2703,6 +2828,7 @@ export namespace Models {
2703
2828
  */
2704
2829
  adapters: FrameworkAdapter[];
2705
2830
  }
2831
+
2706
2832
  /**
2707
2833
  * Framework Adapter
2708
2834
  */
@@ -2728,6 +2854,7 @@ export namespace Models {
2728
2854
  */
2729
2855
  fallbackFile: string;
2730
2856
  }
2857
+
2731
2858
  /**
2732
2859
  * Deployment
2733
2860
  */
@@ -2841,6 +2968,7 @@ export namespace Models {
2841
2968
  */
2842
2969
  providerBranchUrl: string;
2843
2970
  }
2971
+
2844
2972
  /**
2845
2973
  * Execution
2846
2974
  */
@@ -2914,6 +3042,7 @@ export namespace Models {
2914
3042
  */
2915
3043
  scheduledAt?: string;
2916
3044
  }
3045
+
2917
3046
  /**
2918
3047
  * Project
2919
3048
  */
@@ -3163,6 +3292,7 @@ export namespace Models {
3163
3292
  */
3164
3293
  region: string;
3165
3294
  }
3295
+
3166
3296
  /**
3167
3297
  * Webhook
3168
3298
  */
@@ -3220,6 +3350,7 @@ export namespace Models {
3220
3350
  */
3221
3351
  attempts: number;
3222
3352
  }
3353
+
3223
3354
  /**
3224
3355
  * Key
3225
3356
  */
@@ -3261,6 +3392,7 @@ export namespace Models {
3261
3392
  */
3262
3393
  sdks: string[];
3263
3394
  }
3395
+
3264
3396
  /**
3265
3397
  * DevKey
3266
3398
  */
@@ -3298,6 +3430,7 @@ export namespace Models {
3298
3430
  */
3299
3431
  sdks: string[];
3300
3432
  }
3433
+
3301
3434
  /**
3302
3435
  * Mock Number
3303
3436
  */
@@ -3311,6 +3444,7 @@ export namespace Models {
3311
3444
  */
3312
3445
  otp: string;
3313
3446
  }
3447
+
3314
3448
  /**
3315
3449
  * AuthProvider
3316
3450
  */
@@ -3336,6 +3470,7 @@ export namespace Models {
3336
3470
  */
3337
3471
  enabled: boolean;
3338
3472
  }
3473
+
3339
3474
  /**
3340
3475
  * Platform
3341
3476
  */
@@ -3381,6 +3516,7 @@ export namespace Models {
3381
3516
  */
3382
3517
  httpPass: string;
3383
3518
  }
3519
+
3384
3520
  /**
3385
3521
  * Variable
3386
3522
  */
@@ -3418,6 +3554,7 @@ export namespace Models {
3418
3554
  */
3419
3555
  resourceId: string;
3420
3556
  }
3557
+
3421
3558
  /**
3422
3559
  * Country
3423
3560
  */
@@ -3431,6 +3568,7 @@ export namespace Models {
3431
3568
  */
3432
3569
  code: string;
3433
3570
  }
3571
+
3434
3572
  /**
3435
3573
  * Continent
3436
3574
  */
@@ -3444,6 +3582,7 @@ export namespace Models {
3444
3582
  */
3445
3583
  code: string;
3446
3584
  }
3585
+
3447
3586
  /**
3448
3587
  * Language
3449
3588
  */
@@ -3461,6 +3600,7 @@ export namespace Models {
3461
3600
  */
3462
3601
  nativeName: string;
3463
3602
  }
3603
+
3464
3604
  /**
3465
3605
  * Currency
3466
3606
  */
@@ -3494,6 +3634,7 @@ export namespace Models {
3494
3634
  */
3495
3635
  namePlural: string;
3496
3636
  }
3637
+
3497
3638
  /**
3498
3639
  * Phone
3499
3640
  */
@@ -3511,6 +3652,7 @@ export namespace Models {
3511
3652
  */
3512
3653
  countryName: string;
3513
3654
  }
3655
+
3514
3656
  /**
3515
3657
  * Health Antivirus
3516
3658
  */
@@ -3524,6 +3666,7 @@ export namespace Models {
3524
3666
  */
3525
3667
  status: string;
3526
3668
  }
3669
+
3527
3670
  /**
3528
3671
  * Health Queue
3529
3672
  */
@@ -3533,6 +3676,7 @@ export namespace Models {
3533
3676
  */
3534
3677
  size: number;
3535
3678
  }
3679
+
3536
3680
  /**
3537
3681
  * Health Status
3538
3682
  */
@@ -3550,6 +3694,7 @@ export namespace Models {
3550
3694
  */
3551
3695
  status: string;
3552
3696
  }
3697
+
3553
3698
  /**
3554
3699
  * Health Certificate
3555
3700
  */
@@ -3579,6 +3724,7 @@ export namespace Models {
3579
3724
  */
3580
3725
  signatureTypeSN: string;
3581
3726
  }
3727
+
3582
3728
  /**
3583
3729
  * Health Time
3584
3730
  */
@@ -3596,6 +3742,7 @@ export namespace Models {
3596
3742
  */
3597
3743
  diff: number;
3598
3744
  }
3745
+
3599
3746
  /**
3600
3747
  * Metric
3601
3748
  */
@@ -3609,6 +3756,7 @@ export namespace Models {
3609
3756
  */
3610
3757
  date: string;
3611
3758
  }
3759
+
3612
3760
  /**
3613
3761
  * Metric Breakdown
3614
3762
  */
@@ -3630,6 +3778,7 @@ export namespace Models {
3630
3778
  */
3631
3779
  estimate?: number;
3632
3780
  }
3781
+
3633
3782
  /**
3634
3783
  * UsageDatabases
3635
3784
  */
@@ -3687,6 +3836,7 @@ export namespace Models {
3687
3836
  */
3688
3837
  databasesWrites: Metric[];
3689
3838
  }
3839
+
3690
3840
  /**
3691
3841
  * UsageDatabase
3692
3842
  */
@@ -3736,6 +3886,7 @@ export namespace Models {
3736
3886
  */
3737
3887
  databaseWrites: Metric[];
3738
3888
  }
3889
+
3739
3890
  /**
3740
3891
  * UsageCollection
3741
3892
  */
@@ -3753,6 +3904,7 @@ export namespace Models {
3753
3904
  */
3754
3905
  documents: Metric[];
3755
3906
  }
3907
+
3756
3908
  /**
3757
3909
  * UsageUsers
3758
3910
  */
@@ -3778,6 +3930,7 @@ export namespace Models {
3778
3930
  */
3779
3931
  sessions: Metric[];
3780
3932
  }
3933
+
3781
3934
  /**
3782
3935
  * StorageUsage
3783
3936
  */
@@ -3811,6 +3964,7 @@ export namespace Models {
3811
3964
  */
3812
3965
  storage: Metric[];
3813
3966
  }
3967
+
3814
3968
  /**
3815
3969
  * UsageBuckets
3816
3970
  */
@@ -3844,6 +3998,7 @@ export namespace Models {
3844
3998
  */
3845
3999
  imageTransformationsTotal: number;
3846
4000
  }
4001
+
3847
4002
  /**
3848
4003
  * UsageFunctions
3849
4004
  */
@@ -3949,6 +4104,7 @@ export namespace Models {
3949
4104
  */
3950
4105
  buildsFailed: Metric[];
3951
4106
  }
4107
+
3952
4108
  /**
3953
4109
  * UsageFunction
3954
4110
  */
@@ -4050,6 +4206,7 @@ export namespace Models {
4050
4206
  */
4051
4207
  buildsFailed: Metric[];
4052
4208
  }
4209
+
4053
4210
  /**
4054
4211
  * UsageSites
4055
4212
  */
@@ -4179,6 +4336,7 @@ export namespace Models {
4179
4336
  */
4180
4337
  outbound: Metric[];
4181
4338
  }
4339
+
4182
4340
  /**
4183
4341
  * UsageSite
4184
4342
  */
@@ -4304,6 +4462,7 @@ export namespace Models {
4304
4462
  */
4305
4463
  outbound: Metric[];
4306
4464
  }
4465
+
4307
4466
  /**
4308
4467
  * UsageProject
4309
4468
  */
@@ -4441,6 +4600,7 @@ export namespace Models {
4441
4600
  */
4442
4601
  backupsStorageTotal: number;
4443
4602
  }
4603
+
4444
4604
  /**
4445
4605
  * Headers
4446
4606
  */
@@ -4454,6 +4614,7 @@ export namespace Models {
4454
4614
  */
4455
4615
  value: string;
4456
4616
  }
4617
+
4457
4618
  /**
4458
4619
  * Specification
4459
4620
  */
@@ -4475,6 +4636,7 @@ export namespace Models {
4475
4636
  */
4476
4637
  slug: string;
4477
4638
  }
4639
+
4478
4640
  /**
4479
4641
  * Rule
4480
4642
  */
@@ -4540,6 +4702,7 @@ export namespace Models {
4540
4702
  */
4541
4703
  renewAt: string;
4542
4704
  }
4705
+
4543
4706
  /**
4544
4707
  * SmsTemplate
4545
4708
  */
@@ -4557,6 +4720,7 @@ export namespace Models {
4557
4720
  */
4558
4721
  message: string;
4559
4722
  }
4723
+
4560
4724
  /**
4561
4725
  * EmailTemplate
4562
4726
  */
@@ -4590,6 +4754,7 @@ export namespace Models {
4590
4754
  */
4591
4755
  subject: string;
4592
4756
  }
4757
+
4593
4758
  /**
4594
4759
  * Console Variables
4595
4760
  */
@@ -4647,6 +4812,7 @@ export namespace Models {
4647
4812
  */
4648
4813
  _APP_DOMAINS_NAMESERVERS: string;
4649
4814
  }
4815
+
4650
4816
  /**
4651
4817
  * MFA Challenge
4652
4818
  */
@@ -4668,6 +4834,7 @@ export namespace Models {
4668
4834
  */
4669
4835
  expire: string;
4670
4836
  }
4837
+
4671
4838
  /**
4672
4839
  * MFA Recovery Codes
4673
4840
  */
@@ -4677,6 +4844,7 @@ export namespace Models {
4677
4844
  */
4678
4845
  recoveryCodes: string[];
4679
4846
  }
4847
+
4680
4848
  /**
4681
4849
  * MFAType
4682
4850
  */
@@ -4690,6 +4858,7 @@ export namespace Models {
4690
4858
  */
4691
4859
  uri: string;
4692
4860
  }
4861
+
4693
4862
  /**
4694
4863
  * MFAFactors
4695
4864
  */
@@ -4711,6 +4880,7 @@ export namespace Models {
4711
4880
  */
4712
4881
  recoveryCode: boolean;
4713
4882
  }
4883
+
4714
4884
  /**
4715
4885
  * Provider
4716
4886
  */
@@ -4752,6 +4922,7 @@ export namespace Models {
4752
4922
  */
4753
4923
  options?: object;
4754
4924
  }
4925
+
4755
4926
  /**
4756
4927
  * Message
4757
4928
  */
@@ -4809,6 +4980,7 @@ export namespace Models {
4809
4980
  */
4810
4981
  status: string;
4811
4982
  }
4983
+
4812
4984
  /**
4813
4985
  * Topic
4814
4986
  */
@@ -4846,6 +5018,7 @@ export namespace Models {
4846
5018
  */
4847
5019
  subscribe: string[];
4848
5020
  }
5021
+
4849
5022
  /**
4850
5023
  * Subscriber
4851
5024
  */
@@ -4887,6 +5060,7 @@ export namespace Models {
4887
5060
  */
4888
5061
  providerType: string;
4889
5062
  }
5063
+
4890
5064
  /**
4891
5065
  * Target
4892
5066
  */
@@ -4928,6 +5102,7 @@ export namespace Models {
4928
5102
  */
4929
5103
  expired: boolean;
4930
5104
  }
5105
+
4931
5106
  /**
4932
5107
  * Migration
4933
5108
  */
@@ -4981,6 +5156,7 @@ export namespace Models {
4981
5156
  */
4982
5157
  errors: string[];
4983
5158
  }
5159
+
4984
5160
  /**
4985
5161
  * Migration Report
4986
5162
  */
@@ -5022,6 +5198,7 @@ export namespace Models {
5022
5198
  */
5023
5199
  version: string;
5024
5200
  }
5201
+
5025
5202
  /**
5026
5203
  * AdditionalResource
5027
5204
  */
@@ -5043,6 +5220,7 @@ export namespace Models {
5043
5220
  */
5044
5221
  value: number;
5045
5222
  }
5223
+
5046
5224
  /**
5047
5225
  * AggregationTeam
5048
5226
  */
@@ -5148,6 +5326,7 @@ export namespace Models {
5148
5326
  */
5149
5327
  amount: number;
5150
5328
  }
5329
+
5151
5330
  /**
5152
5331
  * Archive
5153
5332
  */
@@ -5201,6 +5380,7 @@ export namespace Models {
5201
5380
  */
5202
5381
  resourceType?: string;
5203
5382
  }
5383
+
5204
5384
  /**
5205
5385
  * BillingAddress
5206
5386
  */
@@ -5238,6 +5418,7 @@ export namespace Models {
5238
5418
  */
5239
5419
  postalCode: string;
5240
5420
  }
5421
+
5241
5422
  /**
5242
5423
  * billingPlan
5243
5424
  */
@@ -5286,6 +5467,10 @@ export namespace Models {
5286
5467
  * Webhooks
5287
5468
  */
5288
5469
  webhooks: number;
5470
+ /**
5471
+ * Projects
5472
+ */
5473
+ projects: number;
5289
5474
  /**
5290
5475
  * Platofrms
5291
5476
  */
@@ -5374,6 +5559,10 @@ export namespace Models {
5374
5559
  * Does plan support mock numbers
5375
5560
  */
5376
5561
  supportsMockNumbers: boolean;
5562
+ /**
5563
+ * Does plan support organization roles
5564
+ */
5565
+ supportsOrganizationRoles: boolean;
5377
5566
  /**
5378
5567
  * Does plan support credit
5379
5568
  */
@@ -5394,7 +5583,12 @@ export namespace Models {
5394
5583
  * Maximum function and site deployment size in MB
5395
5584
  */
5396
5585
  buildSize: number;
5586
+ /**
5587
+ * Does the plan support encrypted string attributes or not.
5588
+ */
5589
+ databasesAllowEncrypt: boolean;
5397
5590
  }
5591
+
5398
5592
  /**
5399
5593
  * BillingPlanAddon
5400
5594
  */
@@ -5404,6 +5598,7 @@ export namespace Models {
5404
5598
  */
5405
5599
  seats: BillingPlanAddonDetails;
5406
5600
  }
5601
+
5407
5602
  /**
5408
5603
  * BillingPlanAddonDetails
5409
5604
  */
@@ -5433,6 +5628,7 @@ export namespace Models {
5433
5628
  */
5434
5629
  value: number;
5435
5630
  }
5631
+
5436
5632
  /**
5437
5633
  * BillingLimits
5438
5634
  */
@@ -5466,6 +5662,7 @@ export namespace Models {
5466
5662
  */
5467
5663
  authPhone: number;
5468
5664
  }
5665
+
5469
5666
  /**
5470
5667
  * Campaign
5471
5668
  */
@@ -5519,6 +5716,7 @@ export namespace Models {
5519
5716
  */
5520
5717
  footer?: boolean;
5521
5718
  }
5719
+
5522
5720
  /**
5523
5721
  * Coupon
5524
5722
  */
@@ -5556,6 +5754,7 @@ export namespace Models {
5556
5754
  */
5557
5755
  onlyNewOrgs: boolean;
5558
5756
  }
5757
+
5559
5758
  /**
5560
5759
  * Credit
5561
5760
  */
@@ -5605,6 +5804,17 @@ export namespace Models {
5605
5804
  */
5606
5805
  status: string;
5607
5806
  }
5807
+
5808
+ /**
5809
+ * CreditAvailable
5810
+ */
5811
+ export type CreditAvailable = {
5812
+ /**
5813
+ * Total available credits for the organization.
5814
+ */
5815
+ available: number;
5816
+ }
5817
+
5608
5818
  /**
5609
5819
  * CreditList
5610
5820
  */
@@ -5622,6 +5832,7 @@ export namespace Models {
5622
5832
  */
5623
5833
  available: number;
5624
5834
  }
5835
+
5625
5836
  /**
5626
5837
  * Invoice
5627
5838
  */
@@ -5715,10 +5926,11 @@ export namespace Models {
5715
5926
  */
5716
5927
  to: string;
5717
5928
  }
5929
+
5718
5930
  /**
5719
5931
  * Organization
5720
5932
  */
5721
- export type Organization<Preferences extends Models.Preferences> = {
5933
+ export type Organization<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
5722
5934
  /**
5723
5935
  * Team ID.
5724
5936
  */
@@ -5832,9 +6044,9 @@ export namespace Models {
5832
6044
  */
5833
6045
  billingLimits: BillingLimits;
5834
6046
  /**
5835
- * Billing plan downgrade
6047
+ * Billing plan selected for downgrade.
5836
6048
  */
5837
- billingPlanDowngrade: object;
6049
+ billingPlanDowngrade: string;
5838
6050
  /**
5839
6051
  * Tax Id
5840
6052
  */
@@ -5843,7 +6055,12 @@ export namespace Models {
5843
6055
  * Marked for deletion
5844
6056
  */
5845
6057
  markedForDeletion: boolean;
6058
+ /**
6059
+ * Selected projects
6060
+ */
6061
+ projects: string[];
5846
6062
  }
6063
+
5847
6064
  /**
5848
6065
  * paymentMethod
5849
6066
  */
@@ -5925,6 +6142,7 @@ export namespace Models {
5925
6142
  */
5926
6143
  failed: boolean;
5927
6144
  }
6145
+
5928
6146
  /**
5929
6147
  * backup
5930
6148
  */
@@ -5974,6 +6192,7 @@ export namespace Models {
5974
6192
  */
5975
6193
  enabled: boolean;
5976
6194
  }
6195
+
5977
6196
  /**
5978
6197
  * Region
5979
6198
  */
@@ -6003,6 +6222,7 @@ export namespace Models {
6003
6222
  */
6004
6223
  flag: string;
6005
6224
  }
6225
+
6006
6226
  /**
6007
6227
  * Restoration
6008
6228
  */
@@ -6052,6 +6272,7 @@ export namespace Models {
6052
6272
  */
6053
6273
  options: string;
6054
6274
  }
6275
+
6055
6276
  /**
6056
6277
  * Review
6057
6278
  */
@@ -6073,6 +6294,7 @@ export namespace Models {
6073
6294
  */
6074
6295
  review: string;
6075
6296
  }
6297
+
6076
6298
  /**
6077
6299
  * Roles
6078
6300
  */
@@ -6086,6 +6308,167 @@ export namespace Models {
6086
6308
  */
6087
6309
  roles: string[];
6088
6310
  }
6311
+
6312
+ /**
6313
+ * UsageOrganization
6314
+ */
6315
+ export type UsageOrganization = {
6316
+ /**
6317
+ * Aggregated stats for number of requests.
6318
+ */
6319
+ bandwidth: Metric[];
6320
+ /**
6321
+ * Aggregated stats for consumed bandwidth.
6322
+ */
6323
+ users: Metric[];
6324
+ /**
6325
+ * Aggregated stats for function executions.
6326
+ */
6327
+ executions: Metric[];
6328
+ /**
6329
+ * Aggregated stats for database reads.
6330
+ */
6331
+ databasesReads: Metric[];
6332
+ /**
6333
+ * Aggregated stats for database writes.
6334
+ */
6335
+ databasesWrites: Metric[];
6336
+ /**
6337
+ * Aggregated stats for file transformations.
6338
+ */
6339
+ imageTransformations: Metric[];
6340
+ /**
6341
+ * Aggregated stats for total file transformations.
6342
+ */
6343
+ imageTransformationsTotal: number;
6344
+ /**
6345
+ * Aggregated stats for total users.
6346
+ */
6347
+ usersTotal: number;
6348
+ /**
6349
+ * Aggregated stats for total executions.
6350
+ */
6351
+ executionsTotal: number;
6352
+ /**
6353
+ * Aggregated stats for function executions in mb seconds.
6354
+ */
6355
+ executionsMBSecondsTotal: number;
6356
+ /**
6357
+ * Aggregated stats for function builds in mb seconds.
6358
+ */
6359
+ buildsMBSecondsTotal: number;
6360
+ /**
6361
+ * Aggregated stats for total file storage.
6362
+ */
6363
+ filesStorageTotal: number;
6364
+ /**
6365
+ * Aggregated stats for total builds storage.
6366
+ */
6367
+ buildsStorageTotal: number;
6368
+ /**
6369
+ * Aggregated stats for total deployments storage.
6370
+ */
6371
+ deploymentsStorageTotal: number;
6372
+ /**
6373
+ * Aggregated stats for total databases storage.
6374
+ */
6375
+ databasesStorageTotal: number;
6376
+ /**
6377
+ * Aggregated stats for total databases reads.
6378
+ */
6379
+ databasesReadsTotal: number;
6380
+ /**
6381
+ * Aggregated stats for total databases writes.
6382
+ */
6383
+ databasesWritesTotal: number;
6384
+ /**
6385
+ * Aggregated stats for total backups storage.
6386
+ */
6387
+ backupsStorageTotal: number;
6388
+ /**
6389
+ * Aggregated stats for total storage.
6390
+ */
6391
+ storageTotal: number;
6392
+ /**
6393
+ * Aggregated stats for total auth phone.
6394
+ */
6395
+ authPhoneTotal: number;
6396
+ /**
6397
+ * Aggregated stats for total auth phone estimation.
6398
+ */
6399
+ authPhoneEstimate: number;
6400
+ /**
6401
+ * Aggregated stats for each projects.
6402
+ */
6403
+ projects: UsageOrganizationProject[];
6404
+ }
6405
+
6406
+ /**
6407
+ * UsageOrganizationProject
6408
+ */
6409
+ export type UsageOrganizationProject = {
6410
+ /**
6411
+ * projectId
6412
+ */
6413
+ projectId: string;
6414
+ /**
6415
+ * Aggregated stats for number of requests.
6416
+ */
6417
+ bandwidth: Metric[];
6418
+ /**
6419
+ * Aggregated stats for consumed bandwidth.
6420
+ */
6421
+ users: Metric[];
6422
+ /**
6423
+ * Aggregated stats for function executions.
6424
+ */
6425
+ executions: number;
6426
+ /**
6427
+ * Aggregated stats for database reads.
6428
+ */
6429
+ databasesReads: Metric[];
6430
+ /**
6431
+ * Aggregated stats for database writes.
6432
+ */
6433
+ databasesWrites: Metric[];
6434
+ /**
6435
+ * Aggregated stats for function executions in mb seconds.
6436
+ */
6437
+ executionsMBSeconds: number;
6438
+ /**
6439
+ * Aggregated stats for function builds in mb seconds.
6440
+ */
6441
+ buildsMBSeconds: number;
6442
+ /**
6443
+ * Aggregated stats for number of documents.
6444
+ */
6445
+ storage: number;
6446
+ /**
6447
+ * Aggregated stats for phone authentication.
6448
+ */
6449
+ authPhoneTotal: number;
6450
+ /**
6451
+ * Aggregated stats for phone authentication estimated cost.
6452
+ */
6453
+ authPhoneEstimate: number;
6454
+ /**
6455
+ * Aggregated stats for total databases reads.
6456
+ */
6457
+ databasesReadsTotal: number;
6458
+ /**
6459
+ * Aggregated stats for total databases writes.
6460
+ */
6461
+ databasesWritesTotal: number;
6462
+ /**
6463
+ * Aggregated stats for file transformations.
6464
+ */
6465
+ imageTransformations: Metric[];
6466
+ /**
6467
+ * Aggregated stats for total file transformations.
6468
+ */
6469
+ imageTransformationsTotal: number;
6470
+ }
6471
+
6089
6472
  /**
6090
6473
  * Domain
6091
6474
  */
@@ -6139,6 +6522,7 @@ export namespace Models {
6139
6522
  */
6140
6523
  dnsRecords: DnsRecord[];
6141
6524
  }
6525
+
6142
6526
  /**
6143
6527
  * DNSRecord
6144
6528
  */
@@ -6192,6 +6576,7 @@ export namespace Models {
6192
6576
  */
6193
6577
  comment: string;
6194
6578
  }
6579
+
6195
6580
  /**
6196
6581
  * UsageInvoice
6197
6582
  */
@@ -6217,6 +6602,7 @@ export namespace Models {
6217
6602
  */
6218
6603
  desc: string;
6219
6604
  }
6605
+
6220
6606
  /**
6221
6607
  * usageBillingPlan
6222
6608
  */
@@ -6254,6 +6640,111 @@ export namespace Models {
6254
6640
  */
6255
6641
  imageTransformations: AdditionalResource;
6256
6642
  }
6643
+
6644
+ /**
6645
+ * Estimation
6646
+ */
6647
+ export type Estimation = {
6648
+ /**
6649
+ * Total amount
6650
+ */
6651
+ amount: number;
6652
+ /**
6653
+ * Gross payable amount
6654
+ */
6655
+ grossAmount: number;
6656
+ /**
6657
+ * Discount amount
6658
+ */
6659
+ discount: number;
6660
+ /**
6661
+ * Credits amount
6662
+ */
6663
+ credits: number;
6664
+ /**
6665
+ * Estimation items
6666
+ */
6667
+ items: EstimationItem[];
6668
+ /**
6669
+ * Estimation discount items
6670
+ */
6671
+ discounts: EstimationItem[];
6672
+ /**
6673
+ * Trial days
6674
+ */
6675
+ trialDays: number;
6676
+ /**
6677
+ * Trial end date
6678
+ */
6679
+ trialEndDate?: string;
6680
+ }
6681
+
6682
+ /**
6683
+ * EstimationUpdatePlan
6684
+ */
6685
+ export type EstimationUpdatePlan = {
6686
+ /**
6687
+ * Total amount
6688
+ */
6689
+ amount: number;
6690
+ /**
6691
+ * Gross payable amount
6692
+ */
6693
+ grossAmount: number;
6694
+ /**
6695
+ * Discount amount
6696
+ */
6697
+ discount: number;
6698
+ /**
6699
+ * Credits amount
6700
+ */
6701
+ credits: number;
6702
+ /**
6703
+ * Estimation items
6704
+ */
6705
+ items: EstimationItem[];
6706
+ /**
6707
+ * Estimation discount items
6708
+ */
6709
+ discounts: EstimationItem[];
6710
+ /**
6711
+ * Trial days
6712
+ */
6713
+ trialDays: number;
6714
+ /**
6715
+ * Trial end date
6716
+ */
6717
+ trialEndDate?: string;
6718
+ /**
6719
+ * Organization&#039;s existing credits
6720
+ */
6721
+ organizationCredits: number;
6722
+ }
6723
+
6724
+ /**
6725
+ * EstimationDeleteOrganization
6726
+ */
6727
+ export type EstimationDeleteOrganization = {
6728
+ /**
6729
+ * List of unpaid invoices
6730
+ */
6731
+ unpaidInvoices: Invoice[];
6732
+ }
6733
+
6734
+ /**
6735
+ * EstimationItem
6736
+ */
6737
+ export type EstimationItem = {
6738
+ /**
6739
+ * Label
6740
+ */
6741
+ label: string;
6742
+ /**
6743
+ * Gross payable amount
6744
+ */
6745
+ value: number;
6746
+ }
6747
+
6257
6748
  /**
6258
6749
  * Aggregation team list
6259
6750
  */
@@ -6267,6 +6758,7 @@ export namespace Models {
6267
6758
  */
6268
6759
  aggregations: AggregationTeam[];
6269
6760
  }
6761
+
6270
6762
  /**
6271
6763
  * Backup archive list
6272
6764
  */
@@ -6280,6 +6772,7 @@ export namespace Models {
6280
6772
  */
6281
6773
  archives: BackupArchive[];
6282
6774
  }
6775
+
6283
6776
  /**
6284
6777
  * Backup policy list
6285
6778
  */
@@ -6293,6 +6786,7 @@ export namespace Models {
6293
6786
  */
6294
6787
  policies: BackupPolicy[];
6295
6788
  }
6789
+
6296
6790
  /**
6297
6791
  * Backup restoration list
6298
6792
  */
@@ -6306,6 +6800,7 @@ export namespace Models {
6306
6800
  */
6307
6801
  restorations: BackupRestoration[];
6308
6802
  }
6803
+
6309
6804
  /**
6310
6805
  * Billing invoices list
6311
6806
  */
@@ -6319,6 +6814,7 @@ export namespace Models {
6319
6814
  */
6320
6815
  invoices: Invoice[];
6321
6816
  }
6817
+
6322
6818
  /**
6323
6819
  * Billing address list
6324
6820
  */
@@ -6332,6 +6828,7 @@ export namespace Models {
6332
6828
  */
6333
6829
  billingAddresses: BillingAddress[];
6334
6830
  }
6831
+
6335
6832
  /**
6336
6833
  * Billing plan list
6337
6834
  */
@@ -6345,10 +6842,11 @@ export namespace Models {
6345
6842
  */
6346
6843
  plans: BillingPlan[];
6347
6844
  }
6845
+
6348
6846
  /**
6349
6847
  * Organizations List
6350
6848
  */
6351
- export type OrganizationList<Preferences extends Models.Preferences> = {
6849
+ export type OrganizationList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
6352
6850
  /**
6353
6851
  * Total number of teams documents that matched your query.
6354
6852
  */
@@ -6358,6 +6856,7 @@ export namespace Models {
6358
6856
  */
6359
6857
  teams: Organization<Preferences>[];
6360
6858
  }
6859
+
6361
6860
  /**
6362
6861
  * Payment methods list
6363
6862
  */
@@ -6371,6 +6870,7 @@ export namespace Models {
6371
6870
  */
6372
6871
  paymentMethods: PaymentMethod[];
6373
6872
  }
6873
+
6374
6874
  /**
6375
6875
  * Regions list
6376
6876
  */
@@ -6384,6 +6884,7 @@ export namespace Models {
6384
6884
  */
6385
6885
  regions: ConsoleRegion[];
6386
6886
  }
6887
+
6387
6888
  /**
6388
6889
  * Domains list
6389
6890
  */
@@ -6397,6 +6898,7 @@ export namespace Models {
6397
6898
  */
6398
6899
  domains: Domain[];
6399
6900
  }
6901
+
6400
6902
  /**
6401
6903
  * DNS records list
6402
6904
  */