node-appwrite 17.0.0 → 17.2.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 (100) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +6 -5
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +6 -5
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/build-runtime.d.mts +3 -1
  7. package/dist/enums/build-runtime.d.ts +3 -1
  8. package/dist/enums/build-runtime.js +2 -0
  9. package/dist/enums/build-runtime.js.map +1 -1
  10. package/dist/enums/build-runtime.mjs +2 -0
  11. package/dist/enums/build-runtime.mjs.map +1 -1
  12. package/dist/enums/image-format.d.mts +2 -1
  13. package/dist/enums/image-format.d.ts +2 -1
  14. package/dist/enums/image-format.js +1 -0
  15. package/dist/enums/image-format.js.map +1 -1
  16. package/dist/enums/image-format.mjs +1 -0
  17. package/dist/enums/image-format.mjs.map +1 -1
  18. package/dist/enums/runtime.d.mts +3 -1
  19. package/dist/enums/runtime.d.ts +3 -1
  20. package/dist/enums/runtime.js +2 -0
  21. package/dist/enums/runtime.js.map +1 -1
  22. package/dist/enums/runtime.mjs +2 -0
  23. package/dist/enums/runtime.mjs.map +1 -1
  24. package/dist/models.d.mts +122 -97
  25. package/dist/models.d.ts +122 -97
  26. package/dist/services/account.d.mts +31 -31
  27. package/dist/services/account.d.ts +31 -31
  28. package/dist/services/account.js +81 -81
  29. package/dist/services/account.js.map +1 -1
  30. package/dist/services/account.mjs +81 -81
  31. package/dist/services/account.mjs.map +1 -1
  32. package/dist/services/avatars.d.mts +20 -20
  33. package/dist/services/avatars.d.ts +20 -20
  34. package/dist/services/avatars.js +79 -79
  35. package/dist/services/avatars.js.map +1 -1
  36. package/dist/services/avatars.mjs +79 -79
  37. package/dist/services/avatars.mjs.map +1 -1
  38. package/dist/services/databases.d.mts +78 -30
  39. package/dist/services/databases.d.ts +78 -30
  40. package/dist/services/databases.js +395 -251
  41. package/dist/services/databases.js.map +1 -1
  42. package/dist/services/databases.mjs +395 -251
  43. package/dist/services/databases.mjs.map +1 -1
  44. package/dist/services/functions.d.mts +8 -8
  45. package/dist/services/functions.d.ts +8 -8
  46. package/dist/services/functions.js +38 -38
  47. package/dist/services/functions.js.map +1 -1
  48. package/dist/services/functions.mjs +38 -38
  49. package/dist/services/functions.mjs.map +1 -1
  50. package/dist/services/graphql.js.map +1 -1
  51. package/dist/services/graphql.mjs.map +1 -1
  52. package/dist/services/health.d.mts +1 -1
  53. package/dist/services/health.d.ts +1 -1
  54. package/dist/services/health.js +8 -8
  55. package/dist/services/health.js.map +1 -1
  56. package/dist/services/health.mjs +8 -8
  57. package/dist/services/health.mjs.map +1 -1
  58. package/dist/services/locale.d.mts +2 -2
  59. package/dist/services/locale.d.ts +2 -2
  60. package/dist/services/locale.js +7 -7
  61. package/dist/services/locale.js.map +1 -1
  62. package/dist/services/locale.mjs +7 -7
  63. package/dist/services/locale.mjs.map +1 -1
  64. package/dist/services/messaging.d.mts +8 -8
  65. package/dist/services/messaging.d.ts +8 -8
  66. package/dist/services/messaging.js +94 -94
  67. package/dist/services/messaging.js.map +1 -1
  68. package/dist/services/messaging.mjs +94 -94
  69. package/dist/services/messaging.mjs.map +1 -1
  70. package/dist/services/sites.d.mts +4 -4
  71. package/dist/services/sites.d.ts +4 -4
  72. package/dist/services/sites.js +24 -24
  73. package/dist/services/sites.js.map +1 -1
  74. package/dist/services/sites.mjs +24 -24
  75. package/dist/services/sites.mjs.map +1 -1
  76. package/dist/services/storage.d.mts +7 -7
  77. package/dist/services/storage.d.ts +7 -7
  78. package/dist/services/storage.js +16 -16
  79. package/dist/services/storage.js.map +1 -1
  80. package/dist/services/storage.mjs +16 -16
  81. package/dist/services/storage.mjs.map +1 -1
  82. package/dist/services/teams.d.mts +17 -17
  83. package/dist/services/teams.d.ts +17 -17
  84. package/dist/services/teams.js +40 -40
  85. package/dist/services/teams.js.map +1 -1
  86. package/dist/services/teams.mjs +40 -40
  87. package/dist/services/teams.mjs.map +1 -1
  88. package/dist/services/tokens.d.mts +1 -1
  89. package/dist/services/tokens.d.ts +1 -1
  90. package/dist/services/tokens.js +1 -1
  91. package/dist/services/tokens.js.map +1 -1
  92. package/dist/services/tokens.mjs +1 -1
  93. package/dist/services/tokens.mjs.map +1 -1
  94. package/dist/services/users.d.mts +26 -26
  95. package/dist/services/users.d.ts +26 -26
  96. package/dist/services/users.js +26 -26
  97. package/dist/services/users.js.map +1 -1
  98. package/dist/services/users.mjs +26 -26
  99. package/dist/services/users.mjs.map +1 -1
  100. package/package.json +1 -1
package/dist/models.d.ts CHANGED
@@ -2,10 +2,11 @@
2
2
  * Appwrite Models
3
3
  */
4
4
  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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ declare namespace Models {
187
188
  /**
188
189
  * Functions List
189
190
  */
190
- type FunctionList = {
191
+ export type FunctionList = {
191
192
  /**
192
193
  * Total number of functions documents that matched your query.
193
194
  */
@@ -200,7 +201,7 @@ declare namespace Models {
200
201
  /**
201
202
  * Frameworks List
202
203
  */
203
- type FrameworkList = {
204
+ export type FrameworkList = {
204
205
  /**
205
206
  * Total number of frameworks documents that matched your query.
206
207
  */
@@ -213,7 +214,7 @@ declare namespace Models {
213
214
  /**
214
215
  * Runtimes List
215
216
  */
216
- type RuntimeList = {
217
+ export type RuntimeList = {
217
218
  /**
218
219
  * Total number of runtimes documents that matched your query.
219
220
  */
@@ -226,7 +227,7 @@ declare namespace Models {
226
227
  /**
227
228
  * Deployments List
228
229
  */
229
- type DeploymentList = {
230
+ export type DeploymentList = {
230
231
  /**
231
232
  * Total number of deployments documents that matched your query.
232
233
  */
@@ -239,7 +240,7 @@ declare namespace Models {
239
240
  /**
240
241
  * Executions List
241
242
  */
242
- type ExecutionList = {
243
+ export type ExecutionList = {
243
244
  /**
244
245
  * Total number of executions documents that matched your query.
245
246
  */
@@ -252,7 +253,7 @@ declare namespace Models {
252
253
  /**
253
254
  * Countries List
254
255
  */
255
- type CountryList = {
256
+ export type CountryList = {
256
257
  /**
257
258
  * Total number of countries documents that matched your query.
258
259
  */
@@ -265,7 +266,7 @@ declare namespace Models {
265
266
  /**
266
267
  * Continents List
267
268
  */
268
- type ContinentList = {
269
+ export type ContinentList = {
269
270
  /**
270
271
  * Total number of continents documents that matched your query.
271
272
  */
@@ -278,7 +279,7 @@ declare namespace Models {
278
279
  /**
279
280
  * Languages List
280
281
  */
281
- type LanguageList = {
282
+ export type LanguageList = {
282
283
  /**
283
284
  * Total number of languages documents that matched your query.
284
285
  */
@@ -291,7 +292,7 @@ declare namespace Models {
291
292
  /**
292
293
  * Currencies List
293
294
  */
294
- type CurrencyList = {
295
+ export type CurrencyList = {
295
296
  /**
296
297
  * Total number of currencies documents that matched your query.
297
298
  */
@@ -304,7 +305,7 @@ declare namespace Models {
304
305
  /**
305
306
  * Phones List
306
307
  */
307
- type PhoneList = {
308
+ export type PhoneList = {
308
309
  /**
309
310
  * Total number of phones documents that matched your query.
310
311
  */
@@ -317,7 +318,7 @@ declare namespace Models {
317
318
  /**
318
319
  * Variables List
319
320
  */
320
- type VariableList = {
321
+ export type VariableList = {
321
322
  /**
322
323
  * Total number of variables documents that matched your query.
323
324
  */
@@ -330,7 +331,7 @@ declare namespace Models {
330
331
  /**
331
332
  * Locale codes list
332
333
  */
333
- type LocaleCodeList = {
334
+ export type LocaleCodeList = {
334
335
  /**
335
336
  * Total number of localeCodes documents that matched your query.
336
337
  */
@@ -343,7 +344,7 @@ declare namespace Models {
343
344
  /**
344
345
  * Provider list
345
346
  */
346
- type ProviderList = {
347
+ export type ProviderList = {
347
348
  /**
348
349
  * Total number of providers documents that matched your query.
349
350
  */
@@ -356,7 +357,7 @@ declare namespace Models {
356
357
  /**
357
358
  * Message list
358
359
  */
359
- type MessageList = {
360
+ export type MessageList = {
360
361
  /**
361
362
  * Total number of messages documents that matched your query.
362
363
  */
@@ -369,7 +370,7 @@ declare namespace Models {
369
370
  /**
370
371
  * Topic list
371
372
  */
372
- type TopicList = {
373
+ export type TopicList = {
373
374
  /**
374
375
  * Total number of topics documents that matched your query.
375
376
  */
@@ -382,7 +383,7 @@ declare namespace Models {
382
383
  /**
383
384
  * Subscriber list
384
385
  */
385
- type SubscriberList = {
386
+ export type SubscriberList = {
386
387
  /**
387
388
  * Total number of subscribers documents that matched your query.
388
389
  */
@@ -395,7 +396,7 @@ declare namespace Models {
395
396
  /**
396
397
  * Target list
397
398
  */
398
- type TargetList = {
399
+ export type TargetList = {
399
400
  /**
400
401
  * Total number of targets documents that matched your query.
401
402
  */
@@ -408,7 +409,7 @@ declare namespace Models {
408
409
  /**
409
410
  * Specifications List
410
411
  */
411
- type SpecificationList = {
412
+ export type SpecificationList = {
412
413
  /**
413
414
  * Total number of specifications documents that matched your query.
414
415
  */
@@ -421,7 +422,7 @@ declare namespace Models {
421
422
  /**
422
423
  * Database
423
424
  */
424
- type Database = {
425
+ export type Database = {
425
426
  /**
426
427
  * Database ID.
427
428
  */
@@ -446,7 +447,7 @@ declare namespace Models {
446
447
  /**
447
448
  * Collection
448
449
  */
449
- type Collection = {
450
+ export type Collection = {
450
451
  /**
451
452
  * Collection ID.
452
453
  */
@@ -491,7 +492,7 @@ declare namespace Models {
491
492
  /**
492
493
  * Attributes List
493
494
  */
494
- type AttributeList = {
495
+ export type AttributeList = {
495
496
  /**
496
497
  * Total number of attributes in the given collection.
497
498
  */
@@ -504,7 +505,7 @@ declare namespace Models {
504
505
  /**
505
506
  * AttributeString
506
507
  */
507
- type AttributeString = {
508
+ export type AttributeString = {
508
509
  /**
509
510
  * Attribute Key.
510
511
  */
@@ -545,11 +546,15 @@ declare namespace Models {
545
546
  * Default value for attribute when not provided. Cannot be set when attribute is required.
546
547
  */
547
548
  default?: string;
549
+ /**
550
+ * Defines whether this attribute is encrypted or not.
551
+ */
552
+ encrypt?: boolean;
548
553
  };
549
554
  /**
550
555
  * AttributeInteger
551
556
  */
552
- type AttributeInteger = {
557
+ export type AttributeInteger = {
553
558
  /**
554
559
  * Attribute Key.
555
560
  */
@@ -598,7 +603,7 @@ declare namespace Models {
598
603
  /**
599
604
  * AttributeFloat
600
605
  */
601
- type AttributeFloat = {
606
+ export type AttributeFloat = {
602
607
  /**
603
608
  * Attribute Key.
604
609
  */
@@ -647,7 +652,7 @@ declare namespace Models {
647
652
  /**
648
653
  * AttributeBoolean
649
654
  */
650
- type AttributeBoolean = {
655
+ export type AttributeBoolean = {
651
656
  /**
652
657
  * Attribute Key.
653
658
  */
@@ -688,7 +693,7 @@ declare namespace Models {
688
693
  /**
689
694
  * AttributeEmail
690
695
  */
691
- type AttributeEmail = {
696
+ export type AttributeEmail = {
692
697
  /**
693
698
  * Attribute Key.
694
699
  */
@@ -733,7 +738,7 @@ declare namespace Models {
733
738
  /**
734
739
  * AttributeEnum
735
740
  */
736
- type AttributeEnum = {
741
+ export type AttributeEnum = {
737
742
  /**
738
743
  * Attribute Key.
739
744
  */
@@ -782,7 +787,7 @@ declare namespace Models {
782
787
  /**
783
788
  * AttributeIP
784
789
  */
785
- type AttributeIp = {
790
+ export type AttributeIp = {
786
791
  /**
787
792
  * Attribute Key.
788
793
  */
@@ -827,7 +832,7 @@ declare namespace Models {
827
832
  /**
828
833
  * AttributeURL
829
834
  */
830
- type AttributeUrl = {
835
+ export type AttributeUrl = {
831
836
  /**
832
837
  * Attribute Key.
833
838
  */
@@ -872,7 +877,7 @@ declare namespace Models {
872
877
  /**
873
878
  * AttributeDatetime
874
879
  */
875
- type AttributeDatetime = {
880
+ export type AttributeDatetime = {
876
881
  /**
877
882
  * Attribute Key.
878
883
  */
@@ -917,7 +922,7 @@ declare namespace Models {
917
922
  /**
918
923
  * AttributeRelationship
919
924
  */
920
- type AttributeRelationship = {
925
+ export type AttributeRelationship = {
921
926
  /**
922
927
  * Attribute Key.
923
928
  */
@@ -978,7 +983,7 @@ declare namespace Models {
978
983
  /**
979
984
  * Index
980
985
  */
981
- type Index = {
986
+ export type Index = {
982
987
  /**
983
988
  * Index Key.
984
989
  */
@@ -1019,11 +1024,15 @@ declare namespace Models {
1019
1024
  /**
1020
1025
  * Document
1021
1026
  */
1022
- type Document = {
1027
+ export type Document = {
1023
1028
  /**
1024
1029
  * Document ID.
1025
1030
  */
1026
1031
  $id: string;
1032
+ /**
1033
+ * Document automatically incrementing ID.
1034
+ */
1035
+ $sequence: number;
1027
1036
  /**
1028
1037
  * Collection ID.
1029
1038
  */
@@ -1044,12 +1053,20 @@ declare namespace Models {
1044
1053
  * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1045
1054
  */
1046
1055
  $permissions: string[];
1056
+ };
1057
+ export type DefaultDocument = Document & {
1047
1058
  [key: string]: any;
1059
+ [__default]: true;
1060
+ };
1061
+ export type DataWithoutDocumentKeys = {
1062
+ [K in string]: any;
1063
+ } & {
1064
+ [K in keyof Document]?: never;
1048
1065
  };
1049
1066
  /**
1050
1067
  * Log
1051
1068
  */
1052
- type Log = {
1069
+ export type Log = {
1053
1070
  /**
1054
1071
  * Event name.
1055
1072
  */
@@ -1138,7 +1155,7 @@ declare namespace Models {
1138
1155
  /**
1139
1156
  * User
1140
1157
  */
1141
- type User<Preferences extends Models.Preferences> = {
1158
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1142
1159
  /**
1143
1160
  * User ID.
1144
1161
  */
@@ -1219,7 +1236,7 @@ declare namespace Models {
1219
1236
  /**
1220
1237
  * AlgoMD5
1221
1238
  */
1222
- type AlgoMd5 = {
1239
+ export type AlgoMd5 = {
1223
1240
  /**
1224
1241
  * Algo type.
1225
1242
  */
@@ -1228,7 +1245,7 @@ declare namespace Models {
1228
1245
  /**
1229
1246
  * AlgoSHA
1230
1247
  */
1231
- type AlgoSha = {
1248
+ export type AlgoSha = {
1232
1249
  /**
1233
1250
  * Algo type.
1234
1251
  */
@@ -1237,7 +1254,7 @@ declare namespace Models {
1237
1254
  /**
1238
1255
  * AlgoPHPass
1239
1256
  */
1240
- type AlgoPhpass = {
1257
+ export type AlgoPhpass = {
1241
1258
  /**
1242
1259
  * Algo type.
1243
1260
  */
@@ -1246,7 +1263,7 @@ declare namespace Models {
1246
1263
  /**
1247
1264
  * AlgoBcrypt
1248
1265
  */
1249
- type AlgoBcrypt = {
1266
+ export type AlgoBcrypt = {
1250
1267
  /**
1251
1268
  * Algo type.
1252
1269
  */
@@ -1255,7 +1272,7 @@ declare namespace Models {
1255
1272
  /**
1256
1273
  * AlgoScrypt
1257
1274
  */
1258
- type AlgoScrypt = {
1275
+ export type AlgoScrypt = {
1259
1276
  /**
1260
1277
  * Algo type.
1261
1278
  */
@@ -1280,7 +1297,7 @@ declare namespace Models {
1280
1297
  /**
1281
1298
  * AlgoScryptModified
1282
1299
  */
1283
- type AlgoScryptModified = {
1300
+ export type AlgoScryptModified = {
1284
1301
  /**
1285
1302
  * Algo type.
1286
1303
  */
@@ -1301,7 +1318,7 @@ declare namespace Models {
1301
1318
  /**
1302
1319
  * AlgoArgon2
1303
1320
  */
1304
- type AlgoArgon2 = {
1321
+ export type AlgoArgon2 = {
1305
1322
  /**
1306
1323
  * Algo type.
1307
1324
  */
@@ -1322,13 +1339,20 @@ declare namespace Models {
1322
1339
  /**
1323
1340
  * Preferences
1324
1341
  */
1325
- type Preferences = {
1342
+ export type Preferences = {};
1343
+ export type DefaultPreferences = Preferences & {
1326
1344
  [key: string]: any;
1345
+ [__default]: true;
1346
+ };
1347
+ export type DataWithoutPreferencesKeys = {
1348
+ [K in string]: any;
1349
+ } & {
1350
+ [K in keyof Preferences]?: never;
1327
1351
  };
1328
1352
  /**
1329
1353
  * Session
1330
1354
  */
1331
- type Session = {
1355
+ export type Session = {
1332
1356
  /**
1333
1357
  * Session ID.
1334
1358
  */
@@ -1449,7 +1473,7 @@ declare namespace Models {
1449
1473
  /**
1450
1474
  * Identity
1451
1475
  */
1452
- type Identity = {
1476
+ export type Identity = {
1453
1477
  /**
1454
1478
  * Identity ID.
1455
1479
  */
@@ -1494,7 +1518,7 @@ declare namespace Models {
1494
1518
  /**
1495
1519
  * Token
1496
1520
  */
1497
- type Token = {
1521
+ export type Token = {
1498
1522
  /**
1499
1523
  * Token ID.
1500
1524
  */
@@ -1523,7 +1547,7 @@ declare namespace Models {
1523
1547
  /**
1524
1548
  * JWT
1525
1549
  */
1526
- type Jwt = {
1550
+ export type Jwt = {
1527
1551
  /**
1528
1552
  * JWT encoded string.
1529
1553
  */
@@ -1532,7 +1556,7 @@ declare namespace Models {
1532
1556
  /**
1533
1557
  * Locale
1534
1558
  */
1535
- type Locale = {
1559
+ export type Locale = {
1536
1560
  /**
1537
1561
  * User IP address.
1538
1562
  */
@@ -1565,7 +1589,7 @@ declare namespace Models {
1565
1589
  /**
1566
1590
  * LocaleCode
1567
1591
  */
1568
- type LocaleCode = {
1592
+ export type LocaleCode = {
1569
1593
  /**
1570
1594
  * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1571
1595
  */
@@ -1578,7 +1602,7 @@ declare namespace Models {
1578
1602
  /**
1579
1603
  * File
1580
1604
  */
1581
- type File = {
1605
+ export type File = {
1582
1606
  /**
1583
1607
  * File ID.
1584
1608
  */
@@ -1627,7 +1651,7 @@ declare namespace Models {
1627
1651
  /**
1628
1652
  * Bucket
1629
1653
  */
1630
- type Bucket = {
1654
+ export type Bucket = {
1631
1655
  /**
1632
1656
  * Bucket ID.
1633
1657
  */
@@ -1680,7 +1704,7 @@ declare namespace Models {
1680
1704
  /**
1681
1705
  * ResourceToken
1682
1706
  */
1683
- type ResourceToken = {
1707
+ export type ResourceToken = {
1684
1708
  /**
1685
1709
  * Token ID.
1686
1710
  */
@@ -1713,7 +1737,7 @@ declare namespace Models {
1713
1737
  /**
1714
1738
  * Team
1715
1739
  */
1716
- type Team<Preferences extends Models.Preferences> = {
1740
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1717
1741
  /**
1718
1742
  * Team ID.
1719
1743
  */
@@ -1742,7 +1766,7 @@ declare namespace Models {
1742
1766
  /**
1743
1767
  * Membership
1744
1768
  */
1745
- type Membership = {
1769
+ export type Membership = {
1746
1770
  /**
1747
1771
  * Membership ID.
1748
1772
  */
@@ -1799,7 +1823,7 @@ declare namespace Models {
1799
1823
  /**
1800
1824
  * Site
1801
1825
  */
1802
- type Site = {
1826
+ export type Site = {
1803
1827
  /**
1804
1828
  * Site ID.
1805
1829
  */
@@ -1920,7 +1944,7 @@ declare namespace Models {
1920
1944
  /**
1921
1945
  * Function
1922
1946
  */
1923
- type Function = {
1947
+ export type Function = {
1924
1948
  /**
1925
1949
  * Function ID.
1926
1950
  */
@@ -2037,7 +2061,7 @@ declare namespace Models {
2037
2061
  /**
2038
2062
  * Runtime
2039
2063
  */
2040
- type Runtime = {
2064
+ export type Runtime = {
2041
2065
  /**
2042
2066
  * Runtime ID.
2043
2067
  */
@@ -2074,7 +2098,7 @@ declare namespace Models {
2074
2098
  /**
2075
2099
  * Framework
2076
2100
  */
2077
- type Framework = {
2101
+ export type Framework = {
2078
2102
  /**
2079
2103
  * Framework key.
2080
2104
  */
@@ -2099,7 +2123,7 @@ declare namespace Models {
2099
2123
  /**
2100
2124
  * Framework Adapter
2101
2125
  */
2102
- type FrameworkAdapter = {
2126
+ export type FrameworkAdapter = {
2103
2127
  /**
2104
2128
  * Adapter key.
2105
2129
  */
@@ -2124,7 +2148,7 @@ declare namespace Models {
2124
2148
  /**
2125
2149
  * Deployment
2126
2150
  */
2127
- type Deployment = {
2151
+ export type Deployment = {
2128
2152
  /**
2129
2153
  * Deployment ID.
2130
2154
  */
@@ -2237,7 +2261,7 @@ declare namespace Models {
2237
2261
  /**
2238
2262
  * Execution
2239
2263
  */
2240
- type Execution = {
2264
+ export type Execution = {
2241
2265
  /**
2242
2266
  * Execution ID.
2243
2267
  */
@@ -2310,7 +2334,7 @@ declare namespace Models {
2310
2334
  /**
2311
2335
  * Variable
2312
2336
  */
2313
- type Variable = {
2337
+ export type Variable = {
2314
2338
  /**
2315
2339
  * Variable ID.
2316
2340
  */
@@ -2347,7 +2371,7 @@ declare namespace Models {
2347
2371
  /**
2348
2372
  * Country
2349
2373
  */
2350
- type Country = {
2374
+ export type Country = {
2351
2375
  /**
2352
2376
  * Country name.
2353
2377
  */
@@ -2360,7 +2384,7 @@ declare namespace Models {
2360
2384
  /**
2361
2385
  * Continent
2362
2386
  */
2363
- type Continent = {
2387
+ export type Continent = {
2364
2388
  /**
2365
2389
  * Continent name.
2366
2390
  */
@@ -2373,7 +2397,7 @@ declare namespace Models {
2373
2397
  /**
2374
2398
  * Language
2375
2399
  */
2376
- type Language = {
2400
+ export type Language = {
2377
2401
  /**
2378
2402
  * Language name.
2379
2403
  */
@@ -2390,7 +2414,7 @@ declare namespace Models {
2390
2414
  /**
2391
2415
  * Currency
2392
2416
  */
2393
- type Currency = {
2417
+ export type Currency = {
2394
2418
  /**
2395
2419
  * Currency symbol.
2396
2420
  */
@@ -2423,7 +2447,7 @@ declare namespace Models {
2423
2447
  /**
2424
2448
  * Phone
2425
2449
  */
2426
- type Phone = {
2450
+ export type Phone = {
2427
2451
  /**
2428
2452
  * Phone code.
2429
2453
  */
@@ -2440,7 +2464,7 @@ declare namespace Models {
2440
2464
  /**
2441
2465
  * Health Antivirus
2442
2466
  */
2443
- type HealthAntivirus = {
2467
+ export type HealthAntivirus = {
2444
2468
  /**
2445
2469
  * Antivirus version.
2446
2470
  */
@@ -2453,7 +2477,7 @@ declare namespace Models {
2453
2477
  /**
2454
2478
  * Health Queue
2455
2479
  */
2456
- type HealthQueue = {
2480
+ export type HealthQueue = {
2457
2481
  /**
2458
2482
  * Amount of actions in the queue.
2459
2483
  */
@@ -2462,7 +2486,7 @@ declare namespace Models {
2462
2486
  /**
2463
2487
  * Health Status
2464
2488
  */
2465
- type HealthStatus = {
2489
+ export type HealthStatus = {
2466
2490
  /**
2467
2491
  * Name of the service.
2468
2492
  */
@@ -2479,7 +2503,7 @@ declare namespace Models {
2479
2503
  /**
2480
2504
  * Health Certificate
2481
2505
  */
2482
- type HealthCertificate = {
2506
+ export type HealthCertificate = {
2483
2507
  /**
2484
2508
  * Certificate name
2485
2509
  */
@@ -2508,7 +2532,7 @@ declare namespace Models {
2508
2532
  /**
2509
2533
  * Health Time
2510
2534
  */
2511
- type HealthTime = {
2535
+ export type HealthTime = {
2512
2536
  /**
2513
2537
  * Current unix timestamp on trustful remote server.
2514
2538
  */
@@ -2525,7 +2549,7 @@ declare namespace Models {
2525
2549
  /**
2526
2550
  * Headers
2527
2551
  */
2528
- type Headers = {
2552
+ export type Headers = {
2529
2553
  /**
2530
2554
  * Header name.
2531
2555
  */
@@ -2538,7 +2562,7 @@ declare namespace Models {
2538
2562
  /**
2539
2563
  * Specification
2540
2564
  */
2541
- type Specification = {
2565
+ export type Specification = {
2542
2566
  /**
2543
2567
  * Memory size in MB.
2544
2568
  */
@@ -2559,7 +2583,7 @@ declare namespace Models {
2559
2583
  /**
2560
2584
  * MFA Challenge
2561
2585
  */
2562
- type MfaChallenge = {
2586
+ export type MfaChallenge = {
2563
2587
  /**
2564
2588
  * Token ID.
2565
2589
  */
@@ -2580,7 +2604,7 @@ declare namespace Models {
2580
2604
  /**
2581
2605
  * MFA Recovery Codes
2582
2606
  */
2583
- type MfaRecoveryCodes = {
2607
+ export type MfaRecoveryCodes = {
2584
2608
  /**
2585
2609
  * Recovery codes.
2586
2610
  */
@@ -2589,7 +2613,7 @@ declare namespace Models {
2589
2613
  /**
2590
2614
  * MFAType
2591
2615
  */
2592
- type MfaType = {
2616
+ export type MfaType = {
2593
2617
  /**
2594
2618
  * Secret token used for TOTP factor.
2595
2619
  */
@@ -2602,7 +2626,7 @@ declare namespace Models {
2602
2626
  /**
2603
2627
  * MFAFactors
2604
2628
  */
2605
- type MfaFactors = {
2629
+ export type MfaFactors = {
2606
2630
  /**
2607
2631
  * Can TOTP be used for MFA challenge for this account.
2608
2632
  */
@@ -2623,7 +2647,7 @@ declare namespace Models {
2623
2647
  /**
2624
2648
  * Provider
2625
2649
  */
2626
- type Provider = {
2650
+ export type Provider = {
2627
2651
  /**
2628
2652
  * Provider ID.
2629
2653
  */
@@ -2664,7 +2688,7 @@ declare namespace Models {
2664
2688
  /**
2665
2689
  * Message
2666
2690
  */
2667
- type Message = {
2691
+ export type Message = {
2668
2692
  /**
2669
2693
  * Message ID.
2670
2694
  */
@@ -2721,7 +2745,7 @@ declare namespace Models {
2721
2745
  /**
2722
2746
  * Topic
2723
2747
  */
2724
- type Topic = {
2748
+ export type Topic = {
2725
2749
  /**
2726
2750
  * Topic ID.
2727
2751
  */
@@ -2758,7 +2782,7 @@ declare namespace Models {
2758
2782
  /**
2759
2783
  * Subscriber
2760
2784
  */
2761
- type Subscriber = {
2785
+ export type Subscriber = {
2762
2786
  /**
2763
2787
  * Subscriber ID.
2764
2788
  */
@@ -2799,7 +2823,7 @@ declare namespace Models {
2799
2823
  /**
2800
2824
  * Target
2801
2825
  */
2802
- type Target = {
2826
+ export type Target = {
2803
2827
  /**
2804
2828
  * Target ID.
2805
2829
  */
@@ -2837,6 +2861,7 @@ declare namespace Models {
2837
2861
  */
2838
2862
  expired: boolean;
2839
2863
  };
2864
+ export {};
2840
2865
  }
2841
2866
 
2842
2867
  export { Models };