@appwrite.io/console 1.9.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 (55) 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 +246 -193
  5. package/dist/cjs/sdk.js.map +1 -1
  6. package/dist/esm/sdk.js +246 -193
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +246 -193
  9. package/docs/examples/databases/create-document.md +1 -3
  10. package/docs/examples/databases/create-documents.md +1 -1
  11. package/docs/examples/functions/create-execution.md +1 -1
  12. package/docs/examples/organizations/get-available-credits.md +13 -0
  13. package/docs/examples/organizations/update-projects.md +14 -0
  14. package/docs/examples/vcs/get-repository-contents.md +2 -1
  15. package/package.json +1 -1
  16. package/src/client.ts +1 -1
  17. package/src/models.ts +241 -9
  18. package/src/services/account.ts +97 -36
  19. package/src/services/avatars.ts +26 -20
  20. package/src/services/backups.ts +11 -0
  21. package/src/services/console.ts +8 -1
  22. package/src/services/databases.ts +97 -33
  23. package/src/services/domains.ts +111 -69
  24. package/src/services/functions.ts +37 -8
  25. package/src/services/graphql.ts +1 -0
  26. package/src/services/health.ts +26 -1
  27. package/src/services/locale.ts +9 -2
  28. package/src/services/messaging.ts +53 -8
  29. package/src/services/migrations.ts +12 -0
  30. package/src/services/organizations.ts +106 -16
  31. package/src/services/project.ts +5 -0
  32. package/src/services/projects.ts +50 -0
  33. package/src/services/proxy.ts +7 -0
  34. package/src/services/sites.ts +32 -4
  35. package/src/services/storage.ts +23 -9
  36. package/src/services/teams.ts +30 -17
  37. package/src/services/tokens.ts +4 -0
  38. package/src/services/users.ts +69 -27
  39. package/src/services/vcs.ts +16 -4
  40. package/types/models.d.ts +228 -192
  41. package/types/services/account.d.ts +36 -36
  42. package/types/services/avatars.d.ts +20 -20
  43. package/types/services/console.d.ts +1 -1
  44. package/types/services/databases.d.ts +43 -33
  45. package/types/services/domains.d.ts +69 -69
  46. package/types/services/functions.d.ts +8 -8
  47. package/types/services/health.d.ts +1 -1
  48. package/types/services/locale.d.ts +2 -2
  49. package/types/services/messaging.d.ts +8 -8
  50. package/types/services/organizations.d.ts +33 -16
  51. package/types/services/sites.d.ts +4 -4
  52. package/types/services/storage.d.ts +9 -9
  53. package/types/services/teams.d.ts +17 -17
  54. package/types/services/users.d.ts +27 -27
  55. package/types/services/vcs.d.ts +4 -4
package/types/models.d.ts CHANGED
@@ -2,10 +2,11 @@
2
2
  * Appwrite Models
3
3
  */
4
4
  export declare namespace Models {
5
+ const __default: unique symbol;
5
6
  /**
6
7
  * Documents List
7
8
  */
8
- type DocumentList<Document extends Models.Document> = {
9
+ export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
9
10
  /**
10
11
  * Total number of documents documents that matched your query.
11
12
  */
@@ -18,7 +19,7 @@ export declare namespace Models {
18
19
  /**
19
20
  * Collections List
20
21
  */
21
- type CollectionList = {
22
+ export type CollectionList = {
22
23
  /**
23
24
  * Total number of collections documents that matched your query.
24
25
  */
@@ -31,7 +32,7 @@ export declare namespace Models {
31
32
  /**
32
33
  * Databases List
33
34
  */
34
- type DatabaseList = {
35
+ export type DatabaseList = {
35
36
  /**
36
37
  * Total number of databases documents that matched your query.
37
38
  */
@@ -44,7 +45,7 @@ export declare namespace Models {
44
45
  /**
45
46
  * Indexes List
46
47
  */
47
- type IndexList = {
48
+ export type IndexList = {
48
49
  /**
49
50
  * Total number of indexes documents that matched your query.
50
51
  */
@@ -57,7 +58,7 @@ export declare namespace Models {
57
58
  /**
58
59
  * Users List
59
60
  */
60
- type UserList<Preferences extends Models.Preferences> = {
61
+ export type UserList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
61
62
  /**
62
63
  * Total number of users documents that matched your query.
63
64
  */
@@ -70,7 +71,7 @@ export declare namespace Models {
70
71
  /**
71
72
  * Sessions List
72
73
  */
73
- type SessionList = {
74
+ export type SessionList = {
74
75
  /**
75
76
  * Total number of sessions documents that matched your query.
76
77
  */
@@ -83,7 +84,7 @@ export declare namespace Models {
83
84
  /**
84
85
  * Identities List
85
86
  */
86
- type IdentityList = {
87
+ export type IdentityList = {
87
88
  /**
88
89
  * Total number of identities documents that matched your query.
89
90
  */
@@ -96,7 +97,7 @@ export declare namespace Models {
96
97
  /**
97
98
  * Logs List
98
99
  */
99
- type LogList = {
100
+ export type LogList = {
100
101
  /**
101
102
  * Total number of logs documents that matched your query.
102
103
  */
@@ -109,7 +110,7 @@ export declare namespace Models {
109
110
  /**
110
111
  * Files List
111
112
  */
112
- type FileList = {
113
+ export type FileList = {
113
114
  /**
114
115
  * Total number of files documents that matched your query.
115
116
  */
@@ -122,7 +123,7 @@ export declare namespace Models {
122
123
  /**
123
124
  * Buckets List
124
125
  */
125
- type BucketList = {
126
+ export type BucketList = {
126
127
  /**
127
128
  * Total number of buckets documents that matched your query.
128
129
  */
@@ -135,7 +136,7 @@ export declare namespace Models {
135
136
  /**
136
137
  * Resource Tokens List
137
138
  */
138
- type ResourceTokenList = {
139
+ export type ResourceTokenList = {
139
140
  /**
140
141
  * Total number of tokens documents that matched your query.
141
142
  */
@@ -148,7 +149,7 @@ export declare namespace Models {
148
149
  /**
149
150
  * Teams List
150
151
  */
151
- type TeamList<Preferences extends Models.Preferences> = {
152
+ export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
152
153
  /**
153
154
  * Total number of teams documents that matched your query.
154
155
  */
@@ -161,7 +162,7 @@ export declare namespace Models {
161
162
  /**
162
163
  * Memberships List
163
164
  */
164
- type MembershipList = {
165
+ export type MembershipList = {
165
166
  /**
166
167
  * Total number of memberships documents that matched your query.
167
168
  */
@@ -174,7 +175,7 @@ export declare namespace Models {
174
175
  /**
175
176
  * Sites List
176
177
  */
177
- type SiteList = {
178
+ export type SiteList = {
178
179
  /**
179
180
  * Total number of sites documents that matched your query.
180
181
  */
@@ -187,7 +188,7 @@ export declare namespace Models {
187
188
  /**
188
189
  * Site Templates List
189
190
  */
190
- type TemplateSiteList = {
191
+ export type TemplateSiteList = {
191
192
  /**
192
193
  * Total number of templates documents that matched your query.
193
194
  */
@@ -200,7 +201,7 @@ export declare namespace Models {
200
201
  /**
201
202
  * Functions List
202
203
  */
203
- type FunctionList = {
204
+ export type FunctionList = {
204
205
  /**
205
206
  * Total number of functions documents that matched your query.
206
207
  */
@@ -213,7 +214,7 @@ export declare namespace Models {
213
214
  /**
214
215
  * Function Templates List
215
216
  */
216
- type TemplateFunctionList = {
217
+ export type TemplateFunctionList = {
217
218
  /**
218
219
  * Total number of templates documents that matched your query.
219
220
  */
@@ -226,7 +227,7 @@ export declare namespace Models {
226
227
  /**
227
228
  * Installations List
228
229
  */
229
- type InstallationList = {
230
+ export type InstallationList = {
230
231
  /**
231
232
  * Total number of installations documents that matched your query.
232
233
  */
@@ -239,7 +240,7 @@ export declare namespace Models {
239
240
  /**
240
241
  * Framework Provider Repositories List
241
242
  */
242
- type ProviderRepositoryFrameworkList = {
243
+ export type ProviderRepositoryFrameworkList = {
243
244
  /**
244
245
  * Total number of frameworkProviderRepositories documents that matched your query.
245
246
  */
@@ -252,7 +253,7 @@ export declare namespace Models {
252
253
  /**
253
254
  * Runtime Provider Repositories List
254
255
  */
255
- type ProviderRepositoryRuntimeList = {
256
+ export type ProviderRepositoryRuntimeList = {
256
257
  /**
257
258
  * Total number of runtimeProviderRepositories documents that matched your query.
258
259
  */
@@ -265,7 +266,7 @@ export declare namespace Models {
265
266
  /**
266
267
  * Branches List
267
268
  */
268
- type BranchList = {
269
+ export type BranchList = {
269
270
  /**
270
271
  * Total number of branches documents that matched your query.
271
272
  */
@@ -278,7 +279,7 @@ export declare namespace Models {
278
279
  /**
279
280
  * Frameworks List
280
281
  */
281
- type FrameworkList = {
282
+ export type FrameworkList = {
282
283
  /**
283
284
  * Total number of frameworks documents that matched your query.
284
285
  */
@@ -291,7 +292,7 @@ export declare namespace Models {
291
292
  /**
292
293
  * Runtimes List
293
294
  */
294
- type RuntimeList = {
295
+ export type RuntimeList = {
295
296
  /**
296
297
  * Total number of runtimes documents that matched your query.
297
298
  */
@@ -304,7 +305,7 @@ export declare namespace Models {
304
305
  /**
305
306
  * Deployments List
306
307
  */
307
- type DeploymentList = {
308
+ export type DeploymentList = {
308
309
  /**
309
310
  * Total number of deployments documents that matched your query.
310
311
  */
@@ -317,7 +318,7 @@ export declare namespace Models {
317
318
  /**
318
319
  * Executions List
319
320
  */
320
- type ExecutionList = {
321
+ export type ExecutionList = {
321
322
  /**
322
323
  * Total number of executions documents that matched your query.
323
324
  */
@@ -330,7 +331,7 @@ export declare namespace Models {
330
331
  /**
331
332
  * Projects List
332
333
  */
333
- type ProjectList = {
334
+ export type ProjectList = {
334
335
  /**
335
336
  * Total number of projects documents that matched your query.
336
337
  */
@@ -343,7 +344,7 @@ export declare namespace Models {
343
344
  /**
344
345
  * Webhooks List
345
346
  */
346
- type WebhookList = {
347
+ export type WebhookList = {
347
348
  /**
348
349
  * Total number of webhooks documents that matched your query.
349
350
  */
@@ -356,7 +357,7 @@ export declare namespace Models {
356
357
  /**
357
358
  * API Keys List
358
359
  */
359
- type KeyList = {
360
+ export type KeyList = {
360
361
  /**
361
362
  * Total number of keys documents that matched your query.
362
363
  */
@@ -369,7 +370,7 @@ export declare namespace Models {
369
370
  /**
370
371
  * Dev Keys List
371
372
  */
372
- type DevKeyList = {
373
+ export type DevKeyList = {
373
374
  /**
374
375
  * Total number of devKeys documents that matched your query.
375
376
  */
@@ -382,7 +383,7 @@ export declare namespace Models {
382
383
  /**
383
384
  * Platforms List
384
385
  */
385
- type PlatformList = {
386
+ export type PlatformList = {
386
387
  /**
387
388
  * Total number of platforms documents that matched your query.
388
389
  */
@@ -395,7 +396,7 @@ export declare namespace Models {
395
396
  /**
396
397
  * Countries List
397
398
  */
398
- type CountryList = {
399
+ export type CountryList = {
399
400
  /**
400
401
  * Total number of countries documents that matched your query.
401
402
  */
@@ -408,7 +409,7 @@ export declare namespace Models {
408
409
  /**
409
410
  * Continents List
410
411
  */
411
- type ContinentList = {
412
+ export type ContinentList = {
412
413
  /**
413
414
  * Total number of continents documents that matched your query.
414
415
  */
@@ -421,7 +422,7 @@ export declare namespace Models {
421
422
  /**
422
423
  * Languages List
423
424
  */
424
- type LanguageList = {
425
+ export type LanguageList = {
425
426
  /**
426
427
  * Total number of languages documents that matched your query.
427
428
  */
@@ -434,7 +435,7 @@ export declare namespace Models {
434
435
  /**
435
436
  * Currencies List
436
437
  */
437
- type CurrencyList = {
438
+ export type CurrencyList = {
438
439
  /**
439
440
  * Total number of currencies documents that matched your query.
440
441
  */
@@ -447,7 +448,7 @@ export declare namespace Models {
447
448
  /**
448
449
  * Phones List
449
450
  */
450
- type PhoneList = {
451
+ export type PhoneList = {
451
452
  /**
452
453
  * Total number of phones documents that matched your query.
453
454
  */
@@ -460,7 +461,7 @@ export declare namespace Models {
460
461
  /**
461
462
  * Variables List
462
463
  */
463
- type VariableList = {
464
+ export type VariableList = {
464
465
  /**
465
466
  * Total number of variables documents that matched your query.
466
467
  */
@@ -473,7 +474,7 @@ export declare namespace Models {
473
474
  /**
474
475
  * Rule List
475
476
  */
476
- type ProxyRuleList = {
477
+ export type ProxyRuleList = {
477
478
  /**
478
479
  * Total number of rules documents that matched your query.
479
480
  */
@@ -486,7 +487,7 @@ export declare namespace Models {
486
487
  /**
487
488
  * Locale codes list
488
489
  */
489
- type LocaleCodeList = {
490
+ export type LocaleCodeList = {
490
491
  /**
491
492
  * Total number of localeCodes documents that matched your query.
492
493
  */
@@ -499,7 +500,7 @@ export declare namespace Models {
499
500
  /**
500
501
  * Provider list
501
502
  */
502
- type ProviderList = {
503
+ export type ProviderList = {
503
504
  /**
504
505
  * Total number of providers documents that matched your query.
505
506
  */
@@ -512,7 +513,7 @@ export declare namespace Models {
512
513
  /**
513
514
  * Message list
514
515
  */
515
- type MessageList = {
516
+ export type MessageList = {
516
517
  /**
517
518
  * Total number of messages documents that matched your query.
518
519
  */
@@ -525,7 +526,7 @@ export declare namespace Models {
525
526
  /**
526
527
  * Topic list
527
528
  */
528
- type TopicList = {
529
+ export type TopicList = {
529
530
  /**
530
531
  * Total number of topics documents that matched your query.
531
532
  */
@@ -538,7 +539,7 @@ export declare namespace Models {
538
539
  /**
539
540
  * Subscriber list
540
541
  */
541
- type SubscriberList = {
542
+ export type SubscriberList = {
542
543
  /**
543
544
  * Total number of subscribers documents that matched your query.
544
545
  */
@@ -551,7 +552,7 @@ export declare namespace Models {
551
552
  /**
552
553
  * Target list
553
554
  */
554
- type TargetList = {
555
+ export type TargetList = {
555
556
  /**
556
557
  * Total number of targets documents that matched your query.
557
558
  */
@@ -564,7 +565,7 @@ export declare namespace Models {
564
565
  /**
565
566
  * Migrations List
566
567
  */
567
- type MigrationList = {
568
+ export type MigrationList = {
568
569
  /**
569
570
  * Total number of migrations documents that matched your query.
570
571
  */
@@ -577,7 +578,7 @@ export declare namespace Models {
577
578
  /**
578
579
  * Specifications List
579
580
  */
580
- type SpecificationList = {
581
+ export type SpecificationList = {
581
582
  /**
582
583
  * Total number of specifications documents that matched your query.
583
584
  */
@@ -590,7 +591,7 @@ export declare namespace Models {
590
591
  /**
591
592
  * VCS Content List
592
593
  */
593
- type VcsContentList = {
594
+ export type VcsContentList = {
594
595
  /**
595
596
  * Total number of contents documents that matched your query.
596
597
  */
@@ -603,7 +604,7 @@ export declare namespace Models {
603
604
  /**
604
605
  * Database
605
606
  */
606
- type Database = {
607
+ export type Database = {
607
608
  /**
608
609
  * Database ID.
609
610
  */
@@ -636,7 +637,7 @@ export declare namespace Models {
636
637
  /**
637
638
  * Collection
638
639
  */
639
- type Collection = {
640
+ export type Collection = {
640
641
  /**
641
642
  * Collection ID.
642
643
  */
@@ -681,7 +682,7 @@ export declare namespace Models {
681
682
  /**
682
683
  * Attributes List
683
684
  */
684
- type AttributeList = {
685
+ export type AttributeList = {
685
686
  /**
686
687
  * Total number of attributes in the given collection.
687
688
  */
@@ -694,7 +695,7 @@ export declare namespace Models {
694
695
  /**
695
696
  * AttributeString
696
697
  */
697
- type AttributeString = {
698
+ export type AttributeString = {
698
699
  /**
699
700
  * Attribute Key.
700
701
  */
@@ -743,7 +744,7 @@ export declare namespace Models {
743
744
  /**
744
745
  * AttributeInteger
745
746
  */
746
- type AttributeInteger = {
747
+ export type AttributeInteger = {
747
748
  /**
748
749
  * Attribute Key.
749
750
  */
@@ -792,7 +793,7 @@ export declare namespace Models {
792
793
  /**
793
794
  * AttributeFloat
794
795
  */
795
- type AttributeFloat = {
796
+ export type AttributeFloat = {
796
797
  /**
797
798
  * Attribute Key.
798
799
  */
@@ -841,7 +842,7 @@ export declare namespace Models {
841
842
  /**
842
843
  * AttributeBoolean
843
844
  */
844
- type AttributeBoolean = {
845
+ export type AttributeBoolean = {
845
846
  /**
846
847
  * Attribute Key.
847
848
  */
@@ -882,7 +883,7 @@ export declare namespace Models {
882
883
  /**
883
884
  * AttributeEmail
884
885
  */
885
- type AttributeEmail = {
886
+ export type AttributeEmail = {
886
887
  /**
887
888
  * Attribute Key.
888
889
  */
@@ -927,7 +928,7 @@ export declare namespace Models {
927
928
  /**
928
929
  * AttributeEnum
929
930
  */
930
- type AttributeEnum = {
931
+ export type AttributeEnum = {
931
932
  /**
932
933
  * Attribute Key.
933
934
  */
@@ -976,7 +977,7 @@ export declare namespace Models {
976
977
  /**
977
978
  * AttributeIP
978
979
  */
979
- type AttributeIp = {
980
+ export type AttributeIp = {
980
981
  /**
981
982
  * Attribute Key.
982
983
  */
@@ -1021,7 +1022,7 @@ export declare namespace Models {
1021
1022
  /**
1022
1023
  * AttributeURL
1023
1024
  */
1024
- type AttributeUrl = {
1025
+ export type AttributeUrl = {
1025
1026
  /**
1026
1027
  * Attribute Key.
1027
1028
  */
@@ -1066,7 +1067,7 @@ export declare namespace Models {
1066
1067
  /**
1067
1068
  * AttributeDatetime
1068
1069
  */
1069
- type AttributeDatetime = {
1070
+ export type AttributeDatetime = {
1070
1071
  /**
1071
1072
  * Attribute Key.
1072
1073
  */
@@ -1111,7 +1112,7 @@ export declare namespace Models {
1111
1112
  /**
1112
1113
  * AttributeRelationship
1113
1114
  */
1114
- type AttributeRelationship = {
1115
+ export type AttributeRelationship = {
1115
1116
  /**
1116
1117
  * Attribute Key.
1117
1118
  */
@@ -1172,7 +1173,7 @@ export declare namespace Models {
1172
1173
  /**
1173
1174
  * Index
1174
1175
  */
1175
- type Index = {
1176
+ export type Index = {
1176
1177
  /**
1177
1178
  * Index Key.
1178
1179
  */
@@ -1213,7 +1214,7 @@ export declare namespace Models {
1213
1214
  /**
1214
1215
  * Document
1215
1216
  */
1216
- type Document = {
1217
+ export type Document = {
1217
1218
  /**
1218
1219
  * Document ID.
1219
1220
  */
@@ -1242,12 +1243,15 @@ export declare namespace Models {
1242
1243
  * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1243
1244
  */
1244
1245
  $permissions: string[];
1246
+ };
1247
+ export type DefaultDocument = Document & {
1245
1248
  [key: string]: any;
1249
+ [__default]: true;
1246
1250
  };
1247
1251
  /**
1248
1252
  * Log
1249
1253
  */
1250
- type Log = {
1254
+ export type Log = {
1251
1255
  /**
1252
1256
  * Event name.
1253
1257
  */
@@ -1336,7 +1340,7 @@ export declare namespace Models {
1336
1340
  /**
1337
1341
  * User
1338
1342
  */
1339
- type User<Preferences extends Models.Preferences> = {
1343
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1340
1344
  /**
1341
1345
  * User ID.
1342
1346
  */
@@ -1417,7 +1421,7 @@ export declare namespace Models {
1417
1421
  /**
1418
1422
  * AlgoMD5
1419
1423
  */
1420
- type AlgoMd5 = {
1424
+ export type AlgoMd5 = {
1421
1425
  /**
1422
1426
  * Algo type.
1423
1427
  */
@@ -1426,7 +1430,7 @@ export declare namespace Models {
1426
1430
  /**
1427
1431
  * AlgoSHA
1428
1432
  */
1429
- type AlgoSha = {
1433
+ export type AlgoSha = {
1430
1434
  /**
1431
1435
  * Algo type.
1432
1436
  */
@@ -1435,7 +1439,7 @@ export declare namespace Models {
1435
1439
  /**
1436
1440
  * AlgoPHPass
1437
1441
  */
1438
- type AlgoPhpass = {
1442
+ export type AlgoPhpass = {
1439
1443
  /**
1440
1444
  * Algo type.
1441
1445
  */
@@ -1444,7 +1448,7 @@ export declare namespace Models {
1444
1448
  /**
1445
1449
  * AlgoBcrypt
1446
1450
  */
1447
- type AlgoBcrypt = {
1451
+ export type AlgoBcrypt = {
1448
1452
  /**
1449
1453
  * Algo type.
1450
1454
  */
@@ -1453,7 +1457,7 @@ export declare namespace Models {
1453
1457
  /**
1454
1458
  * AlgoScrypt
1455
1459
  */
1456
- type AlgoScrypt = {
1460
+ export type AlgoScrypt = {
1457
1461
  /**
1458
1462
  * Algo type.
1459
1463
  */
@@ -1478,7 +1482,7 @@ export declare namespace Models {
1478
1482
  /**
1479
1483
  * AlgoScryptModified
1480
1484
  */
1481
- type AlgoScryptModified = {
1485
+ export type AlgoScryptModified = {
1482
1486
  /**
1483
1487
  * Algo type.
1484
1488
  */
@@ -1499,7 +1503,7 @@ export declare namespace Models {
1499
1503
  /**
1500
1504
  * AlgoArgon2
1501
1505
  */
1502
- type AlgoArgon2 = {
1506
+ export type AlgoArgon2 = {
1503
1507
  /**
1504
1508
  * Algo type.
1505
1509
  */
@@ -1520,13 +1524,15 @@ export declare namespace Models {
1520
1524
  /**
1521
1525
  * Preferences
1522
1526
  */
1523
- type Preferences = {
1527
+ export type Preferences = {};
1528
+ export type DefaultPreferences = Preferences & {
1524
1529
  [key: string]: any;
1530
+ [__default]: true;
1525
1531
  };
1526
1532
  /**
1527
1533
  * Session
1528
1534
  */
1529
- type Session = {
1535
+ export type Session = {
1530
1536
  /**
1531
1537
  * Session ID.
1532
1538
  */
@@ -1647,7 +1653,7 @@ export declare namespace Models {
1647
1653
  /**
1648
1654
  * Identity
1649
1655
  */
1650
- type Identity = {
1656
+ export type Identity = {
1651
1657
  /**
1652
1658
  * Identity ID.
1653
1659
  */
@@ -1692,7 +1698,7 @@ export declare namespace Models {
1692
1698
  /**
1693
1699
  * Token
1694
1700
  */
1695
- type Token = {
1701
+ export type Token = {
1696
1702
  /**
1697
1703
  * Token ID.
1698
1704
  */
@@ -1721,7 +1727,7 @@ export declare namespace Models {
1721
1727
  /**
1722
1728
  * JWT
1723
1729
  */
1724
- type Jwt = {
1730
+ export type Jwt = {
1725
1731
  /**
1726
1732
  * JWT encoded string.
1727
1733
  */
@@ -1730,7 +1736,7 @@ export declare namespace Models {
1730
1736
  /**
1731
1737
  * Locale
1732
1738
  */
1733
- type Locale = {
1739
+ export type Locale = {
1734
1740
  /**
1735
1741
  * User IP address.
1736
1742
  */
@@ -1763,7 +1769,7 @@ export declare namespace Models {
1763
1769
  /**
1764
1770
  * LocaleCode
1765
1771
  */
1766
- type LocaleCode = {
1772
+ export type LocaleCode = {
1767
1773
  /**
1768
1774
  * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1769
1775
  */
@@ -1776,7 +1782,7 @@ export declare namespace Models {
1776
1782
  /**
1777
1783
  * File
1778
1784
  */
1779
- type File = {
1785
+ export type File = {
1780
1786
  /**
1781
1787
  * File ID.
1782
1788
  */
@@ -1825,7 +1831,7 @@ export declare namespace Models {
1825
1831
  /**
1826
1832
  * Bucket
1827
1833
  */
1828
- type Bucket = {
1834
+ export type Bucket = {
1829
1835
  /**
1830
1836
  * Bucket ID.
1831
1837
  */
@@ -1878,7 +1884,7 @@ export declare namespace Models {
1878
1884
  /**
1879
1885
  * ResourceToken
1880
1886
  */
1881
- type ResourceToken = {
1887
+ export type ResourceToken = {
1882
1888
  /**
1883
1889
  * Token ID.
1884
1890
  */
@@ -1911,7 +1917,7 @@ export declare namespace Models {
1911
1917
  /**
1912
1918
  * Team
1913
1919
  */
1914
- type Team<Preferences extends Models.Preferences> = {
1920
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1915
1921
  /**
1916
1922
  * Team ID.
1917
1923
  */
@@ -1940,7 +1946,7 @@ export declare namespace Models {
1940
1946
  /**
1941
1947
  * Membership
1942
1948
  */
1943
- type Membership = {
1949
+ export type Membership = {
1944
1950
  /**
1945
1951
  * Membership ID.
1946
1952
  */
@@ -1997,7 +2003,7 @@ export declare namespace Models {
1997
2003
  /**
1998
2004
  * Site
1999
2005
  */
2000
- type Site = {
2006
+ export type Site = {
2001
2007
  /**
2002
2008
  * Site ID.
2003
2009
  */
@@ -2118,7 +2124,7 @@ export declare namespace Models {
2118
2124
  /**
2119
2125
  * Template Site
2120
2126
  */
2121
- type TemplateSite = {
2127
+ export type TemplateSite = {
2122
2128
  /**
2123
2129
  * Site Template ID.
2124
2130
  */
@@ -2175,7 +2181,7 @@ export declare namespace Models {
2175
2181
  /**
2176
2182
  * Template Framework
2177
2183
  */
2178
- type TemplateFramework = {
2184
+ export type TemplateFramework = {
2179
2185
  /**
2180
2186
  * Parent framework key.
2181
2187
  */
@@ -2216,7 +2222,7 @@ export declare namespace Models {
2216
2222
  /**
2217
2223
  * Function
2218
2224
  */
2219
- type Function = {
2225
+ export type Function = {
2220
2226
  /**
2221
2227
  * Function ID.
2222
2228
  */
@@ -2333,7 +2339,7 @@ export declare namespace Models {
2333
2339
  /**
2334
2340
  * Template Function
2335
2341
  */
2336
- type TemplateFunction = {
2342
+ export type TemplateFunction = {
2337
2343
  /**
2338
2344
  * Function Template Icon.
2339
2345
  */
@@ -2406,7 +2412,7 @@ export declare namespace Models {
2406
2412
  /**
2407
2413
  * Template Runtime
2408
2414
  */
2409
- type TemplateRuntime = {
2415
+ export type TemplateRuntime = {
2410
2416
  /**
2411
2417
  * Runtime Name.
2412
2418
  */
@@ -2427,7 +2433,7 @@ export declare namespace Models {
2427
2433
  /**
2428
2434
  * Template Variable
2429
2435
  */
2430
- type TemplateVariable = {
2436
+ export type TemplateVariable = {
2431
2437
  /**
2432
2438
  * Variable Name.
2433
2439
  */
@@ -2460,7 +2466,7 @@ export declare namespace Models {
2460
2466
  /**
2461
2467
  * Installation
2462
2468
  */
2463
- type Installation = {
2469
+ export type Installation = {
2464
2470
  /**
2465
2471
  * Function ID.
2466
2472
  */
@@ -2489,7 +2495,7 @@ export declare namespace Models {
2489
2495
  /**
2490
2496
  * ProviderRepository
2491
2497
  */
2492
- type ProviderRepository = {
2498
+ export type ProviderRepository = {
2493
2499
  /**
2494
2500
  * VCS (Version Control System) repository ID.
2495
2501
  */
@@ -2510,6 +2516,10 @@ export declare namespace Models {
2510
2516
  * Is VCS (Version Control System) repository private?
2511
2517
  */
2512
2518
  private: boolean;
2519
+ /**
2520
+ * VCS (Version Control System) repository&#039;s default branch name.
2521
+ */
2522
+ defaultBranch: string;
2513
2523
  /**
2514
2524
  * Last commit date in ISO 8601 format.
2515
2525
  */
@@ -2518,7 +2528,7 @@ export declare namespace Models {
2518
2528
  /**
2519
2529
  * ProviderRepositoryFramework
2520
2530
  */
2521
- type ProviderRepositoryFramework = {
2531
+ export type ProviderRepositoryFramework = {
2522
2532
  /**
2523
2533
  * VCS (Version Control System) repository ID.
2524
2534
  */
@@ -2539,6 +2549,10 @@ export declare namespace Models {
2539
2549
  * Is VCS (Version Control System) repository private?
2540
2550
  */
2541
2551
  private: boolean;
2552
+ /**
2553
+ * VCS (Version Control System) repository&#039;s default branch name.
2554
+ */
2555
+ defaultBranch: string;
2542
2556
  /**
2543
2557
  * Last commit date in ISO 8601 format.
2544
2558
  */
@@ -2551,7 +2565,7 @@ export declare namespace Models {
2551
2565
  /**
2552
2566
  * ProviderRepositoryRuntime
2553
2567
  */
2554
- type ProviderRepositoryRuntime = {
2568
+ export type ProviderRepositoryRuntime = {
2555
2569
  /**
2556
2570
  * VCS (Version Control System) repository ID.
2557
2571
  */
@@ -2572,6 +2586,10 @@ export declare namespace Models {
2572
2586
  * Is VCS (Version Control System) repository private?
2573
2587
  */
2574
2588
  private: boolean;
2589
+ /**
2590
+ * VCS (Version Control System) repository&#039;s default branch name.
2591
+ */
2592
+ defaultBranch: string;
2575
2593
  /**
2576
2594
  * Last commit date in ISO 8601 format.
2577
2595
  */
@@ -2584,7 +2602,7 @@ export declare namespace Models {
2584
2602
  /**
2585
2603
  * DetectionFramework
2586
2604
  */
2587
- type DetectionFramework = {
2605
+ export type DetectionFramework = {
2588
2606
  /**
2589
2607
  * Framework
2590
2608
  */
@@ -2605,7 +2623,7 @@ export declare namespace Models {
2605
2623
  /**
2606
2624
  * DetectionRuntime
2607
2625
  */
2608
- type DetectionRuntime = {
2626
+ export type DetectionRuntime = {
2609
2627
  /**
2610
2628
  * Runtime
2611
2629
  */
@@ -2622,7 +2640,7 @@ export declare namespace Models {
2622
2640
  /**
2623
2641
  * VcsContents
2624
2642
  */
2625
- type VcsContent = {
2643
+ export type VcsContent = {
2626
2644
  /**
2627
2645
  * Content size in bytes. Only files have size, and for directories, 0 is returned.
2628
2646
  */
@@ -2639,7 +2657,7 @@ export declare namespace Models {
2639
2657
  /**
2640
2658
  * Branch
2641
2659
  */
2642
- type Branch = {
2660
+ export type Branch = {
2643
2661
  /**
2644
2662
  * Branch Name.
2645
2663
  */
@@ -2648,7 +2666,7 @@ export declare namespace Models {
2648
2666
  /**
2649
2667
  * Runtime
2650
2668
  */
2651
- type Runtime = {
2669
+ export type Runtime = {
2652
2670
  /**
2653
2671
  * Runtime ID.
2654
2672
  */
@@ -2685,7 +2703,7 @@ export declare namespace Models {
2685
2703
  /**
2686
2704
  * Framework
2687
2705
  */
2688
- type Framework = {
2706
+ export type Framework = {
2689
2707
  /**
2690
2708
  * Framework key.
2691
2709
  */
@@ -2710,7 +2728,7 @@ export declare namespace Models {
2710
2728
  /**
2711
2729
  * Framework Adapter
2712
2730
  */
2713
- type FrameworkAdapter = {
2731
+ export type FrameworkAdapter = {
2714
2732
  /**
2715
2733
  * Adapter key.
2716
2734
  */
@@ -2735,7 +2753,7 @@ export declare namespace Models {
2735
2753
  /**
2736
2754
  * Deployment
2737
2755
  */
2738
- type Deployment = {
2756
+ export type Deployment = {
2739
2757
  /**
2740
2758
  * Deployment ID.
2741
2759
  */
@@ -2848,7 +2866,7 @@ export declare namespace Models {
2848
2866
  /**
2849
2867
  * Execution
2850
2868
  */
2851
- type Execution = {
2869
+ export type Execution = {
2852
2870
  /**
2853
2871
  * Execution ID.
2854
2872
  */
@@ -2921,7 +2939,7 @@ export declare namespace Models {
2921
2939
  /**
2922
2940
  * Project
2923
2941
  */
2924
- type Project = {
2942
+ export type Project = {
2925
2943
  /**
2926
2944
  * Project ID.
2927
2945
  */
@@ -3170,7 +3188,7 @@ export declare namespace Models {
3170
3188
  /**
3171
3189
  * Webhook
3172
3190
  */
3173
- type Webhook = {
3191
+ export type Webhook = {
3174
3192
  /**
3175
3193
  * Webhook ID.
3176
3194
  */
@@ -3227,7 +3245,7 @@ export declare namespace Models {
3227
3245
  /**
3228
3246
  * Key
3229
3247
  */
3230
- type Key = {
3248
+ export type Key = {
3231
3249
  /**
3232
3250
  * Key ID.
3233
3251
  */
@@ -3268,7 +3286,7 @@ export declare namespace Models {
3268
3286
  /**
3269
3287
  * DevKey
3270
3288
  */
3271
- type DevKey = {
3289
+ export type DevKey = {
3272
3290
  /**
3273
3291
  * Key ID.
3274
3292
  */
@@ -3305,7 +3323,7 @@ export declare namespace Models {
3305
3323
  /**
3306
3324
  * Mock Number
3307
3325
  */
3308
- type MockNumber = {
3326
+ export type MockNumber = {
3309
3327
  /**
3310
3328
  * Mock phone number for testing phone authentication. Useful for testing phone authentication without sending an SMS.
3311
3329
  */
@@ -3318,7 +3336,7 @@ export declare namespace Models {
3318
3336
  /**
3319
3337
  * AuthProvider
3320
3338
  */
3321
- type AuthProvider = {
3339
+ export type AuthProvider = {
3322
3340
  /**
3323
3341
  * Auth Provider.
3324
3342
  */
@@ -3343,7 +3361,7 @@ export declare namespace Models {
3343
3361
  /**
3344
3362
  * Platform
3345
3363
  */
3346
- type Platform = {
3364
+ export type Platform = {
3347
3365
  /**
3348
3366
  * Platform ID.
3349
3367
  */
@@ -3388,7 +3406,7 @@ export declare namespace Models {
3388
3406
  /**
3389
3407
  * Variable
3390
3408
  */
3391
- type Variable = {
3409
+ export type Variable = {
3392
3410
  /**
3393
3411
  * Variable ID.
3394
3412
  */
@@ -3425,7 +3443,7 @@ export declare namespace Models {
3425
3443
  /**
3426
3444
  * Country
3427
3445
  */
3428
- type Country = {
3446
+ export type Country = {
3429
3447
  /**
3430
3448
  * Country name.
3431
3449
  */
@@ -3438,7 +3456,7 @@ export declare namespace Models {
3438
3456
  /**
3439
3457
  * Continent
3440
3458
  */
3441
- type Continent = {
3459
+ export type Continent = {
3442
3460
  /**
3443
3461
  * Continent name.
3444
3462
  */
@@ -3451,7 +3469,7 @@ export declare namespace Models {
3451
3469
  /**
3452
3470
  * Language
3453
3471
  */
3454
- type Language = {
3472
+ export type Language = {
3455
3473
  /**
3456
3474
  * Language name.
3457
3475
  */
@@ -3468,7 +3486,7 @@ export declare namespace Models {
3468
3486
  /**
3469
3487
  * Currency
3470
3488
  */
3471
- type Currency = {
3489
+ export type Currency = {
3472
3490
  /**
3473
3491
  * Currency symbol.
3474
3492
  */
@@ -3501,7 +3519,7 @@ export declare namespace Models {
3501
3519
  /**
3502
3520
  * Phone
3503
3521
  */
3504
- type Phone = {
3522
+ export type Phone = {
3505
3523
  /**
3506
3524
  * Phone code.
3507
3525
  */
@@ -3518,7 +3536,7 @@ export declare namespace Models {
3518
3536
  /**
3519
3537
  * Health Antivirus
3520
3538
  */
3521
- type HealthAntivirus = {
3539
+ export type HealthAntivirus = {
3522
3540
  /**
3523
3541
  * Antivirus version.
3524
3542
  */
@@ -3531,7 +3549,7 @@ export declare namespace Models {
3531
3549
  /**
3532
3550
  * Health Queue
3533
3551
  */
3534
- type HealthQueue = {
3552
+ export type HealthQueue = {
3535
3553
  /**
3536
3554
  * Amount of actions in the queue.
3537
3555
  */
@@ -3540,7 +3558,7 @@ export declare namespace Models {
3540
3558
  /**
3541
3559
  * Health Status
3542
3560
  */
3543
- type HealthStatus = {
3561
+ export type HealthStatus = {
3544
3562
  /**
3545
3563
  * Name of the service.
3546
3564
  */
@@ -3557,7 +3575,7 @@ export declare namespace Models {
3557
3575
  /**
3558
3576
  * Health Certificate
3559
3577
  */
3560
- type HealthCertificate = {
3578
+ export type HealthCertificate = {
3561
3579
  /**
3562
3580
  * Certificate name
3563
3581
  */
@@ -3586,7 +3604,7 @@ export declare namespace Models {
3586
3604
  /**
3587
3605
  * Health Time
3588
3606
  */
3589
- type HealthTime = {
3607
+ export type HealthTime = {
3590
3608
  /**
3591
3609
  * Current unix timestamp on trustful remote server.
3592
3610
  */
@@ -3603,7 +3621,7 @@ export declare namespace Models {
3603
3621
  /**
3604
3622
  * Metric
3605
3623
  */
3606
- type Metric = {
3624
+ export type Metric = {
3607
3625
  /**
3608
3626
  * The value of this metric at the timestamp.
3609
3627
  */
@@ -3616,7 +3634,7 @@ export declare namespace Models {
3616
3634
  /**
3617
3635
  * Metric Breakdown
3618
3636
  */
3619
- type MetricBreakdown = {
3637
+ export type MetricBreakdown = {
3620
3638
  /**
3621
3639
  * Resource ID.
3622
3640
  */
@@ -3637,7 +3655,7 @@ export declare namespace Models {
3637
3655
  /**
3638
3656
  * UsageDatabases
3639
3657
  */
3640
- type UsageDatabases = {
3658
+ export type UsageDatabases = {
3641
3659
  /**
3642
3660
  * Time range of the usage stats.
3643
3661
  */
@@ -3694,7 +3712,7 @@ export declare namespace Models {
3694
3712
  /**
3695
3713
  * UsageDatabase
3696
3714
  */
3697
- type UsageDatabase = {
3715
+ export type UsageDatabase = {
3698
3716
  /**
3699
3717
  * Time range of the usage stats.
3700
3718
  */
@@ -3743,7 +3761,7 @@ export declare namespace Models {
3743
3761
  /**
3744
3762
  * UsageCollection
3745
3763
  */
3746
- type UsageCollection = {
3764
+ export type UsageCollection = {
3747
3765
  /**
3748
3766
  * Time range of the usage stats.
3749
3767
  */
@@ -3760,7 +3778,7 @@ export declare namespace Models {
3760
3778
  /**
3761
3779
  * UsageUsers
3762
3780
  */
3763
- type UsageUsers = {
3781
+ export type UsageUsers = {
3764
3782
  /**
3765
3783
  * Time range of the usage stats.
3766
3784
  */
@@ -3785,7 +3803,7 @@ export declare namespace Models {
3785
3803
  /**
3786
3804
  * StorageUsage
3787
3805
  */
3788
- type UsageStorage = {
3806
+ export type UsageStorage = {
3789
3807
  /**
3790
3808
  * Time range of the usage stats.
3791
3809
  */
@@ -3818,7 +3836,7 @@ export declare namespace Models {
3818
3836
  /**
3819
3837
  * UsageBuckets
3820
3838
  */
3821
- type UsageBuckets = {
3839
+ export type UsageBuckets = {
3822
3840
  /**
3823
3841
  * Time range of the usage stats.
3824
3842
  */
@@ -3851,7 +3869,7 @@ export declare namespace Models {
3851
3869
  /**
3852
3870
  * UsageFunctions
3853
3871
  */
3854
- type UsageFunctions = {
3872
+ export type UsageFunctions = {
3855
3873
  /**
3856
3874
  * Time range of the usage stats.
3857
3875
  */
@@ -3956,7 +3974,7 @@ export declare namespace Models {
3956
3974
  /**
3957
3975
  * UsageFunction
3958
3976
  */
3959
- type UsageFunction = {
3977
+ export type UsageFunction = {
3960
3978
  /**
3961
3979
  * The time range of the usage stats.
3962
3980
  */
@@ -4057,7 +4075,7 @@ export declare namespace Models {
4057
4075
  /**
4058
4076
  * UsageSites
4059
4077
  */
4060
- type UsageSites = {
4078
+ export type UsageSites = {
4061
4079
  /**
4062
4080
  * Time range of the usage stats.
4063
4081
  */
@@ -4186,7 +4204,7 @@ export declare namespace Models {
4186
4204
  /**
4187
4205
  * UsageSite
4188
4206
  */
4189
- type UsageSite = {
4207
+ export type UsageSite = {
4190
4208
  /**
4191
4209
  * The time range of the usage stats.
4192
4210
  */
@@ -4311,7 +4329,7 @@ export declare namespace Models {
4311
4329
  /**
4312
4330
  * UsageProject
4313
4331
  */
4314
- type UsageProject = {
4332
+ export type UsageProject = {
4315
4333
  /**
4316
4334
  * Total aggregated number of function executions.
4317
4335
  */
@@ -4448,7 +4466,7 @@ export declare namespace Models {
4448
4466
  /**
4449
4467
  * Headers
4450
4468
  */
4451
- type Headers = {
4469
+ export type Headers = {
4452
4470
  /**
4453
4471
  * Header name.
4454
4472
  */
@@ -4461,7 +4479,7 @@ export declare namespace Models {
4461
4479
  /**
4462
4480
  * Specification
4463
4481
  */
4464
- type Specification = {
4482
+ export type Specification = {
4465
4483
  /**
4466
4484
  * Memory size in MB.
4467
4485
  */
@@ -4482,7 +4500,7 @@ export declare namespace Models {
4482
4500
  /**
4483
4501
  * Rule
4484
4502
  */
4485
- type ProxyRule = {
4503
+ export type ProxyRule = {
4486
4504
  /**
4487
4505
  * Rule ID.
4488
4506
  */
@@ -4547,7 +4565,7 @@ export declare namespace Models {
4547
4565
  /**
4548
4566
  * SmsTemplate
4549
4567
  */
4550
- type SmsTemplate = {
4568
+ export type SmsTemplate = {
4551
4569
  /**
4552
4570
  * Template type
4553
4571
  */
@@ -4564,7 +4582,7 @@ export declare namespace Models {
4564
4582
  /**
4565
4583
  * EmailTemplate
4566
4584
  */
4567
- type EmailTemplate = {
4585
+ export type EmailTemplate = {
4568
4586
  /**
4569
4587
  * Template type
4570
4588
  */
@@ -4597,7 +4615,7 @@ export declare namespace Models {
4597
4615
  /**
4598
4616
  * Console Variables
4599
4617
  */
4600
- type ConsoleVariables = {
4618
+ export type ConsoleVariables = {
4601
4619
  /**
4602
4620
  * CNAME target for your Appwrite custom domains.
4603
4621
  */
@@ -4654,7 +4672,7 @@ export declare namespace Models {
4654
4672
  /**
4655
4673
  * MFA Challenge
4656
4674
  */
4657
- type MfaChallenge = {
4675
+ export type MfaChallenge = {
4658
4676
  /**
4659
4677
  * Token ID.
4660
4678
  */
@@ -4675,7 +4693,7 @@ export declare namespace Models {
4675
4693
  /**
4676
4694
  * MFA Recovery Codes
4677
4695
  */
4678
- type MfaRecoveryCodes = {
4696
+ export type MfaRecoveryCodes = {
4679
4697
  /**
4680
4698
  * Recovery codes.
4681
4699
  */
@@ -4684,7 +4702,7 @@ export declare namespace Models {
4684
4702
  /**
4685
4703
  * MFAType
4686
4704
  */
4687
- type MfaType = {
4705
+ export type MfaType = {
4688
4706
  /**
4689
4707
  * Secret token used for TOTP factor.
4690
4708
  */
@@ -4697,7 +4715,7 @@ export declare namespace Models {
4697
4715
  /**
4698
4716
  * MFAFactors
4699
4717
  */
4700
- type MfaFactors = {
4718
+ export type MfaFactors = {
4701
4719
  /**
4702
4720
  * Can TOTP be used for MFA challenge for this account.
4703
4721
  */
@@ -4718,7 +4736,7 @@ export declare namespace Models {
4718
4736
  /**
4719
4737
  * Provider
4720
4738
  */
4721
- type Provider = {
4739
+ export type Provider = {
4722
4740
  /**
4723
4741
  * Provider ID.
4724
4742
  */
@@ -4759,7 +4777,7 @@ export declare namespace Models {
4759
4777
  /**
4760
4778
  * Message
4761
4779
  */
4762
- type Message = {
4780
+ export type Message = {
4763
4781
  /**
4764
4782
  * Message ID.
4765
4783
  */
@@ -4816,7 +4834,7 @@ export declare namespace Models {
4816
4834
  /**
4817
4835
  * Topic
4818
4836
  */
4819
- type Topic = {
4837
+ export type Topic = {
4820
4838
  /**
4821
4839
  * Topic ID.
4822
4840
  */
@@ -4853,7 +4871,7 @@ export declare namespace Models {
4853
4871
  /**
4854
4872
  * Subscriber
4855
4873
  */
4856
- type Subscriber = {
4874
+ export type Subscriber = {
4857
4875
  /**
4858
4876
  * Subscriber ID.
4859
4877
  */
@@ -4894,7 +4912,7 @@ export declare namespace Models {
4894
4912
  /**
4895
4913
  * Target
4896
4914
  */
4897
- type Target = {
4915
+ export type Target = {
4898
4916
  /**
4899
4917
  * Target ID.
4900
4918
  */
@@ -4935,7 +4953,7 @@ export declare namespace Models {
4935
4953
  /**
4936
4954
  * Migration
4937
4955
  */
4938
- type Migration = {
4956
+ export type Migration = {
4939
4957
  /**
4940
4958
  * Migration ID.
4941
4959
  */
@@ -4988,7 +5006,7 @@ export declare namespace Models {
4988
5006
  /**
4989
5007
  * Migration Report
4990
5008
  */
4991
- type MigrationReport = {
5009
+ export type MigrationReport = {
4992
5010
  /**
4993
5011
  * Number of users to be migrated.
4994
5012
  */
@@ -5029,7 +5047,7 @@ export declare namespace Models {
5029
5047
  /**
5030
5048
  * AdditionalResource
5031
5049
  */
5032
- type AdditionalResource = {
5050
+ export type AdditionalResource = {
5033
5051
  /**
5034
5052
  * Resource unit
5035
5053
  */
@@ -5050,7 +5068,7 @@ export declare namespace Models {
5050
5068
  /**
5051
5069
  * AggregationTeam
5052
5070
  */
5053
- type AggregationTeam = {
5071
+ export type AggregationTeam = {
5054
5072
  /**
5055
5073
  * Aggregation ID.
5056
5074
  */
@@ -5155,7 +5173,7 @@ export declare namespace Models {
5155
5173
  /**
5156
5174
  * Archive
5157
5175
  */
5158
- type BackupArchive = {
5176
+ export type BackupArchive = {
5159
5177
  /**
5160
5178
  * Archive ID.
5161
5179
  */
@@ -5208,7 +5226,7 @@ export declare namespace Models {
5208
5226
  /**
5209
5227
  * BillingAddress
5210
5228
  */
5211
- type BillingAddress = {
5229
+ export type BillingAddress = {
5212
5230
  /**
5213
5231
  * Region ID
5214
5232
  */
@@ -5245,7 +5263,7 @@ export declare namespace Models {
5245
5263
  /**
5246
5264
  * billingPlan
5247
5265
  */
5248
- type BillingPlan = {
5266
+ export type BillingPlan = {
5249
5267
  /**
5250
5268
  * Plan ID.
5251
5269
  */
@@ -5290,6 +5308,10 @@ export declare namespace Models {
5290
5308
  * Webhooks
5291
5309
  */
5292
5310
  webhooks: number;
5311
+ /**
5312
+ * Projects
5313
+ */
5314
+ projects: number;
5293
5315
  /**
5294
5316
  * Platofrms
5295
5317
  */
@@ -5410,7 +5432,7 @@ export declare namespace Models {
5410
5432
  /**
5411
5433
  * BillingPlanAddon
5412
5434
  */
5413
- type BillingPlanAddon = {
5435
+ export type BillingPlanAddon = {
5414
5436
  /**
5415
5437
  * Addon seats
5416
5438
  */
@@ -5419,7 +5441,7 @@ export declare namespace Models {
5419
5441
  /**
5420
5442
  * BillingPlanAddonDetails
5421
5443
  */
5422
- type BillingPlanAddonDetails = {
5444
+ export type BillingPlanAddonDetails = {
5423
5445
  /**
5424
5446
  * Is the addon supported in the plan?
5425
5447
  */
@@ -5448,7 +5470,7 @@ export declare namespace Models {
5448
5470
  /**
5449
5471
  * BillingLimits
5450
5472
  */
5451
- type BillingLimits = {
5473
+ export type BillingLimits = {
5452
5474
  /**
5453
5475
  * Bandwidth limit
5454
5476
  */
@@ -5481,7 +5503,7 @@ export declare namespace Models {
5481
5503
  /**
5482
5504
  * Campaign
5483
5505
  */
5484
- type Campaign = {
5506
+ export type Campaign = {
5485
5507
  /**
5486
5508
  * Campaign ID
5487
5509
  */
@@ -5534,7 +5556,7 @@ export declare namespace Models {
5534
5556
  /**
5535
5557
  * Coupon
5536
5558
  */
5537
- type Coupon = {
5559
+ export type Coupon = {
5538
5560
  /**
5539
5561
  * coupon ID
5540
5562
  */
@@ -5571,7 +5593,7 @@ export declare namespace Models {
5571
5593
  /**
5572
5594
  * Credit
5573
5595
  */
5574
- type Credit = {
5596
+ export type Credit = {
5575
5597
  /**
5576
5598
  * Credit ID.
5577
5599
  */
@@ -5617,10 +5639,19 @@ export declare namespace Models {
5617
5639
  */
5618
5640
  status: string;
5619
5641
  };
5642
+ /**
5643
+ * CreditAvailable
5644
+ */
5645
+ export type CreditAvailable = {
5646
+ /**
5647
+ * Total available credits for the organization.
5648
+ */
5649
+ available: number;
5650
+ };
5620
5651
  /**
5621
5652
  * CreditList
5622
5653
  */
5623
- type CreditList = {
5654
+ export type CreditList = {
5624
5655
  /**
5625
5656
  * Credits
5626
5657
  */
@@ -5637,7 +5668,7 @@ export declare namespace Models {
5637
5668
  /**
5638
5669
  * Invoice
5639
5670
  */
5640
- type Invoice = {
5671
+ export type Invoice = {
5641
5672
  /**
5642
5673
  * Invoice ID.
5643
5674
  */
@@ -5730,7 +5761,7 @@ export declare namespace Models {
5730
5761
  /**
5731
5762
  * Organization
5732
5763
  */
5733
- type Organization<Preferences extends Models.Preferences> = {
5764
+ export type Organization<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
5734
5765
  /**
5735
5766
  * Team ID.
5736
5767
  */
@@ -5855,11 +5886,15 @@ export declare namespace Models {
5855
5886
  * Marked for deletion
5856
5887
  */
5857
5888
  markedForDeletion: boolean;
5889
+ /**
5890
+ * Selected projects
5891
+ */
5892
+ projects: string[];
5858
5893
  };
5859
5894
  /**
5860
5895
  * paymentMethod
5861
5896
  */
5862
- type PaymentMethod = {
5897
+ export type PaymentMethod = {
5863
5898
  /**
5864
5899
  * Payment Method ID.
5865
5900
  */
@@ -5940,7 +5975,7 @@ export declare namespace Models {
5940
5975
  /**
5941
5976
  * backup
5942
5977
  */
5943
- type BackupPolicy = {
5978
+ export type BackupPolicy = {
5944
5979
  /**
5945
5980
  * Backup policy ID.
5946
5981
  */
@@ -5989,7 +6024,7 @@ export declare namespace Models {
5989
6024
  /**
5990
6025
  * Region
5991
6026
  */
5992
- type ConsoleRegion = {
6027
+ export type ConsoleRegion = {
5993
6028
  /**
5994
6029
  * Region ID
5995
6030
  */
@@ -6018,7 +6053,7 @@ export declare namespace Models {
6018
6053
  /**
6019
6054
  * Restoration
6020
6055
  */
6021
- type BackupRestoration = {
6056
+ export type BackupRestoration = {
6022
6057
  /**
6023
6058
  * Restoration ID.
6024
6059
  */
@@ -6067,7 +6102,7 @@ export declare namespace Models {
6067
6102
  /**
6068
6103
  * Review
6069
6104
  */
6070
- type Review = {
6105
+ export type Review = {
6071
6106
  /**
6072
6107
  * Name of user
6073
6108
  */
@@ -6088,7 +6123,7 @@ export declare namespace Models {
6088
6123
  /**
6089
6124
  * Roles
6090
6125
  */
6091
- type Roles = {
6126
+ export type Roles = {
6092
6127
  /**
6093
6128
  * Array of scopes accessible to current user.
6094
6129
  */
@@ -6101,7 +6136,7 @@ export declare namespace Models {
6101
6136
  /**
6102
6137
  * UsageOrganization
6103
6138
  */
6104
- type UsageOrganization = {
6139
+ export type UsageOrganization = {
6105
6140
  /**
6106
6141
  * Aggregated stats for number of requests.
6107
6142
  */
@@ -6194,7 +6229,7 @@ export declare namespace Models {
6194
6229
  /**
6195
6230
  * UsageOrganizationProject
6196
6231
  */
6197
- type UsageOrganizationProject = {
6232
+ export type UsageOrganizationProject = {
6198
6233
  /**
6199
6234
  * projectId
6200
6235
  */
@@ -6259,7 +6294,7 @@ export declare namespace Models {
6259
6294
  /**
6260
6295
  * Domain
6261
6296
  */
6262
- type Domain = {
6297
+ export type Domain = {
6263
6298
  /**
6264
6299
  * Domain ID.
6265
6300
  */
@@ -6312,7 +6347,7 @@ export declare namespace Models {
6312
6347
  /**
6313
6348
  * DNSRecord
6314
6349
  */
6315
- type DnsRecord = {
6350
+ export type DnsRecord = {
6316
6351
  /**
6317
6352
  * DNS Record ID.
6318
6353
  */
@@ -6365,7 +6400,7 @@ export declare namespace Models {
6365
6400
  /**
6366
6401
  * UsageInvoice
6367
6402
  */
6368
- type UsageInvoice = {
6403
+ export type UsageInvoice = {
6369
6404
  /**
6370
6405
  * Invoice name
6371
6406
  */
@@ -6390,7 +6425,7 @@ export declare namespace Models {
6390
6425
  /**
6391
6426
  * usageBillingPlan
6392
6427
  */
6393
- type UsageBillingPlan = {
6428
+ export type UsageBillingPlan = {
6394
6429
  /**
6395
6430
  * Bandwidth additional resources
6396
6431
  */
@@ -6427,7 +6462,7 @@ export declare namespace Models {
6427
6462
  /**
6428
6463
  * Estimation
6429
6464
  */
6430
- type Estimation = {
6465
+ export type Estimation = {
6431
6466
  /**
6432
6467
  * Total amount
6433
6468
  */
@@ -6464,7 +6499,7 @@ export declare namespace Models {
6464
6499
  /**
6465
6500
  * EstimationUpdatePlan
6466
6501
  */
6467
- type EstimationUpdatePlan = {
6502
+ export type EstimationUpdatePlan = {
6468
6503
  /**
6469
6504
  * Total amount
6470
6505
  */
@@ -6505,7 +6540,7 @@ export declare namespace Models {
6505
6540
  /**
6506
6541
  * EstimationDeleteOrganization
6507
6542
  */
6508
- type EstimationDeleteOrganization = {
6543
+ export type EstimationDeleteOrganization = {
6509
6544
  /**
6510
6545
  * List of unpaid invoices
6511
6546
  */
@@ -6514,7 +6549,7 @@ export declare namespace Models {
6514
6549
  /**
6515
6550
  * EstimationItem
6516
6551
  */
6517
- type EstimationItem = {
6552
+ export type EstimationItem = {
6518
6553
  /**
6519
6554
  * Label
6520
6555
  */
@@ -6527,7 +6562,7 @@ export declare namespace Models {
6527
6562
  /**
6528
6563
  * Aggregation team list
6529
6564
  */
6530
- type AggregationTeamList = {
6565
+ export type AggregationTeamList = {
6531
6566
  /**
6532
6567
  * Total number of aggregations documents that matched your query.
6533
6568
  */
@@ -6540,7 +6575,7 @@ export declare namespace Models {
6540
6575
  /**
6541
6576
  * Backup archive list
6542
6577
  */
6543
- type BackupArchiveList = {
6578
+ export type BackupArchiveList = {
6544
6579
  /**
6545
6580
  * Total number of archives documents that matched your query.
6546
6581
  */
@@ -6553,7 +6588,7 @@ export declare namespace Models {
6553
6588
  /**
6554
6589
  * Backup policy list
6555
6590
  */
6556
- type BackupPolicyList = {
6591
+ export type BackupPolicyList = {
6557
6592
  /**
6558
6593
  * Total number of policies documents that matched your query.
6559
6594
  */
@@ -6566,7 +6601,7 @@ export declare namespace Models {
6566
6601
  /**
6567
6602
  * Backup restoration list
6568
6603
  */
6569
- type BackupRestorationList = {
6604
+ export type BackupRestorationList = {
6570
6605
  /**
6571
6606
  * Total number of restorations documents that matched your query.
6572
6607
  */
@@ -6579,7 +6614,7 @@ export declare namespace Models {
6579
6614
  /**
6580
6615
  * Billing invoices list
6581
6616
  */
6582
- type InvoiceList = {
6617
+ export type InvoiceList = {
6583
6618
  /**
6584
6619
  * Total number of invoices documents that matched your query.
6585
6620
  */
@@ -6592,7 +6627,7 @@ export declare namespace Models {
6592
6627
  /**
6593
6628
  * Billing address list
6594
6629
  */
6595
- type BillingAddressList = {
6630
+ export type BillingAddressList = {
6596
6631
  /**
6597
6632
  * Total number of billingAddresses documents that matched your query.
6598
6633
  */
@@ -6605,7 +6640,7 @@ export declare namespace Models {
6605
6640
  /**
6606
6641
  * Billing plan list
6607
6642
  */
6608
- type BillingPlanList = {
6643
+ export type BillingPlanList = {
6609
6644
  /**
6610
6645
  * Total number of plans documents that matched your query.
6611
6646
  */
@@ -6618,7 +6653,7 @@ export declare namespace Models {
6618
6653
  /**
6619
6654
  * Organizations List
6620
6655
  */
6621
- type OrganizationList<Preferences extends Models.Preferences> = {
6656
+ export type OrganizationList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
6622
6657
  /**
6623
6658
  * Total number of teams documents that matched your query.
6624
6659
  */
@@ -6631,7 +6666,7 @@ export declare namespace Models {
6631
6666
  /**
6632
6667
  * Payment methods list
6633
6668
  */
6634
- type PaymentMethodList = {
6669
+ export type PaymentMethodList = {
6635
6670
  /**
6636
6671
  * Total number of paymentMethods documents that matched your query.
6637
6672
  */
@@ -6644,7 +6679,7 @@ export declare namespace Models {
6644
6679
  /**
6645
6680
  * Regions list
6646
6681
  */
6647
- type ConsoleRegionList = {
6682
+ export type ConsoleRegionList = {
6648
6683
  /**
6649
6684
  * Total number of regions documents that matched your query.
6650
6685
  */
@@ -6657,7 +6692,7 @@ export declare namespace Models {
6657
6692
  /**
6658
6693
  * Domains list
6659
6694
  */
6660
- type DomainsList = {
6695
+ export type DomainsList = {
6661
6696
  /**
6662
6697
  * Total number of domains documents that matched your query.
6663
6698
  */
@@ -6670,7 +6705,7 @@ export declare namespace Models {
6670
6705
  /**
6671
6706
  * DNS records list
6672
6707
  */
6673
- type DnsRecordsList = {
6708
+ export type DnsRecordsList = {
6674
6709
  /**
6675
6710
  * Total number of dnsRecords documents that matched your query.
6676
6711
  */
@@ -6680,4 +6715,5 @@ export declare namespace Models {
6680
6715
  */
6681
6716
  dnsRecords: DnsRecord[];
6682
6717
  };
6718
+ export {};
6683
6719
  }