node-appwrite 17.1.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +67 -2
  2. package/dist/client.js +3 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +3 -3
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/{v-c-s-deployment-type.js → vcs-deployment-type.js} +1 -1
  7. package/dist/enums/vcs-deployment-type.js.map +1 -0
  8. package/dist/enums/{v-c-s-deployment-type.mjs → vcs-deployment-type.mjs} +2 -2
  9. package/dist/enums/vcs-deployment-type.mjs.map +1 -0
  10. package/dist/index.d.mts +2 -1
  11. package/dist/index.d.ts +2 -1
  12. package/dist/index.js +7 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +2 -1
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/models.d.mts +829 -145
  17. package/dist/models.d.ts +829 -145
  18. package/dist/query.d.mts +70 -0
  19. package/dist/query.d.ts +70 -0
  20. package/dist/query.js +70 -0
  21. package/dist/query.js.map +1 -1
  22. package/dist/query.mjs +70 -0
  23. package/dist/query.mjs.map +1 -1
  24. package/dist/services/account.d.mts +656 -101
  25. package/dist/services/account.d.ts +656 -101
  26. package/dist/services/account.js +592 -292
  27. package/dist/services/account.js.map +1 -1
  28. package/dist/services/account.mjs +592 -292
  29. package/dist/services/account.mjs.map +1 -1
  30. package/dist/services/avatars.d.mts +176 -45
  31. package/dist/services/avatars.d.ts +176 -45
  32. package/dist/services/avatars.js +104 -93
  33. package/dist/services/avatars.js.map +1 -1
  34. package/dist/services/avatars.mjs +104 -93
  35. package/dist/services/avatars.mjs.map +1 -1
  36. package/dist/services/databases.d.mts +1274 -271
  37. package/dist/services/databases.d.ts +1274 -271
  38. package/dist/services/databases.js +939 -584
  39. package/dist/services/databases.js.map +1 -1
  40. package/dist/services/databases.mjs +939 -584
  41. package/dist/services/databases.mjs.map +1 -1
  42. package/dist/services/functions.d.mts +537 -114
  43. package/dist/services/functions.d.ts +537 -114
  44. package/dist/services/functions.js +393 -276
  45. package/dist/services/functions.js.map +1 -1
  46. package/dist/services/functions.mjs +393 -276
  47. package/dist/services/functions.mjs.map +1 -1
  48. package/dist/services/graphql.d.mts +24 -2
  49. package/dist/services/graphql.d.ts +24 -2
  50. package/dist/services/graphql.js +20 -16
  51. package/dist/services/graphql.js.map +1 -1
  52. package/dist/services/graphql.mjs +20 -16
  53. package/dist/services/graphql.mjs.map +1 -1
  54. package/dist/services/health.d.mts +176 -17
  55. package/dist/services/health.d.ts +176 -17
  56. package/dist/services/health.js +144 -115
  57. package/dist/services/health.js.map +1 -1
  58. package/dist/services/health.mjs +144 -115
  59. package/dist/services/health.mjs.map +1 -1
  60. package/dist/services/locale.d.mts +2 -2
  61. package/dist/services/locale.d.ts +2 -2
  62. package/dist/services/locale.js +7 -7
  63. package/dist/services/locale.js.map +1 -1
  64. package/dist/services/locale.mjs +7 -7
  65. package/dist/services/locale.mjs.map +1 -1
  66. package/dist/services/messaging.d.mts +1552 -270
  67. package/dist/services/messaging.d.ts +1552 -270
  68. package/dist/services/messaging.js +1417 -592
  69. package/dist/services/messaging.js.map +1 -1
  70. package/dist/services/messaging.mjs +1417 -592
  71. package/dist/services/messaging.mjs.map +1 -1
  72. package/dist/services/sites.d.mts +499 -103
  73. package/dist/services/sites.d.ts +499 -103
  74. package/dist/services/sites.js +371 -258
  75. package/dist/services/sites.js.map +1 -1
  76. package/dist/services/sites.mjs +371 -258
  77. package/dist/services/sites.mjs.map +1 -1
  78. package/dist/services/storage.d.mts +311 -68
  79. package/dist/services/storage.d.ts +311 -68
  80. package/dist/services/storage.js +225 -158
  81. package/dist/services/storage.js.map +1 -1
  82. package/dist/services/storage.mjs +225 -158
  83. package/dist/services/storage.mjs.map +1 -1
  84. package/dist/services/tables-db.d.mts +1549 -0
  85. package/dist/services/tables-db.d.ts +1549 -0
  86. package/dist/services/tables-db.js +2374 -0
  87. package/dist/services/tables-db.js.map +1 -0
  88. package/dist/services/tables-db.mjs +2373 -0
  89. package/dist/services/tables-db.mjs.map +1 -0
  90. package/dist/services/teams.d.mts +249 -55
  91. package/dist/services/teams.d.ts +249 -55
  92. package/dist/services/teams.js +170 -135
  93. package/dist/services/teams.js.map +1 -1
  94. package/dist/services/teams.mjs +170 -135
  95. package/dist/services/teams.mjs.map +1 -1
  96. package/dist/services/tokens.d.mts +76 -11
  97. package/dist/services/tokens.d.ts +76 -11
  98. package/dist/services/tokens.js +60 -45
  99. package/dist/services/tokens.js.map +1 -1
  100. package/dist/services/tokens.mjs +60 -45
  101. package/dist/services/tokens.mjs.map +1 -1
  102. package/dist/services/users.d.mts +867 -140
  103. package/dist/services/users.d.ts +867 -140
  104. package/dist/services/users.js +719 -408
  105. package/dist/services/users.js.map +1 -1
  106. package/dist/services/users.mjs +719 -408
  107. package/dist/services/users.mjs.map +1 -1
  108. package/package.json +1 -1
  109. package/dist/enums/v-c-s-deployment-type.js.map +0 -1
  110. package/dist/enums/v-c-s-deployment-type.mjs.map +0 -1
  111. /package/dist/enums/{v-c-s-deployment-type.d.mts → vcs-deployment-type.d.mts} +0 -0
  112. /package/dist/enums/{v-c-s-deployment-type.d.ts → vcs-deployment-type.d.ts} +0 -0
package/dist/models.d.mts CHANGED
@@ -2,12 +2,26 @@
2
2
  * Appwrite Models
3
3
  */
4
4
  declare namespace Models {
5
+ const __default: unique symbol;
6
+ /**
7
+ * Rows List
8
+ */
9
+ export type RowList<Row extends Models.Row = Models.DefaultRow> = {
10
+ /**
11
+ * Total number of rows that matched your query.
12
+ */
13
+ total: number;
14
+ /**
15
+ * List of rows.
16
+ */
17
+ rows: Row[];
18
+ };
5
19
  /**
6
20
  * Documents List
7
21
  */
8
- type DocumentList<Document extends Models.Document> = {
22
+ export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
9
23
  /**
10
- * Total number of documents documents that matched your query.
24
+ * Total number of documents that matched your query.
11
25
  */
12
26
  total: number;
13
27
  /**
@@ -15,12 +29,25 @@ declare namespace Models {
15
29
  */
16
30
  documents: Document[];
17
31
  };
32
+ /**
33
+ * Tables List
34
+ */
35
+ export type TableList = {
36
+ /**
37
+ * Total number of tables that matched your query.
38
+ */
39
+ total: number;
40
+ /**
41
+ * List of tables.
42
+ */
43
+ tables: Table[];
44
+ };
18
45
  /**
19
46
  * Collections List
20
47
  */
21
- type CollectionList = {
48
+ export type CollectionList = {
22
49
  /**
23
- * Total number of collections documents that matched your query.
50
+ * Total number of collections that matched your query.
24
51
  */
25
52
  total: number;
26
53
  /**
@@ -31,9 +58,9 @@ declare namespace Models {
31
58
  /**
32
59
  * Databases List
33
60
  */
34
- type DatabaseList = {
61
+ export type DatabaseList = {
35
62
  /**
36
- * Total number of databases documents that matched your query.
63
+ * Total number of databases that matched your query.
37
64
  */
38
65
  total: number;
39
66
  /**
@@ -44,9 +71,9 @@ declare namespace Models {
44
71
  /**
45
72
  * Indexes List
46
73
  */
47
- type IndexList = {
74
+ export type IndexList = {
48
75
  /**
49
- * Total number of indexes documents that matched your query.
76
+ * Total number of indexes that matched your query.
50
77
  */
51
78
  total: number;
52
79
  /**
@@ -54,12 +81,25 @@ declare namespace Models {
54
81
  */
55
82
  indexes: Index[];
56
83
  };
84
+ /**
85
+ * Column Indexes List
86
+ */
87
+ export type ColumnIndexList = {
88
+ /**
89
+ * Total number of indexes that matched your query.
90
+ */
91
+ total: number;
92
+ /**
93
+ * List of indexes.
94
+ */
95
+ indexes: ColumnIndex[];
96
+ };
57
97
  /**
58
98
  * Users List
59
99
  */
60
- type UserList<Preferences extends Models.Preferences> = {
100
+ export type UserList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
61
101
  /**
62
- * Total number of users documents that matched your query.
102
+ * Total number of users that matched your query.
63
103
  */
64
104
  total: number;
65
105
  /**
@@ -70,9 +110,9 @@ declare namespace Models {
70
110
  /**
71
111
  * Sessions List
72
112
  */
73
- type SessionList = {
113
+ export type SessionList = {
74
114
  /**
75
- * Total number of sessions documents that matched your query.
115
+ * Total number of sessions that matched your query.
76
116
  */
77
117
  total: number;
78
118
  /**
@@ -83,9 +123,9 @@ declare namespace Models {
83
123
  /**
84
124
  * Identities List
85
125
  */
86
- type IdentityList = {
126
+ export type IdentityList = {
87
127
  /**
88
- * Total number of identities documents that matched your query.
128
+ * Total number of identities that matched your query.
89
129
  */
90
130
  total: number;
91
131
  /**
@@ -96,9 +136,9 @@ declare namespace Models {
96
136
  /**
97
137
  * Logs List
98
138
  */
99
- type LogList = {
139
+ export type LogList = {
100
140
  /**
101
- * Total number of logs documents that matched your query.
141
+ * Total number of logs that matched your query.
102
142
  */
103
143
  total: number;
104
144
  /**
@@ -109,9 +149,9 @@ declare namespace Models {
109
149
  /**
110
150
  * Files List
111
151
  */
112
- type FileList = {
152
+ export type FileList = {
113
153
  /**
114
- * Total number of files documents that matched your query.
154
+ * Total number of files that matched your query.
115
155
  */
116
156
  total: number;
117
157
  /**
@@ -122,9 +162,9 @@ declare namespace Models {
122
162
  /**
123
163
  * Buckets List
124
164
  */
125
- type BucketList = {
165
+ export type BucketList = {
126
166
  /**
127
- * Total number of buckets documents that matched your query.
167
+ * Total number of buckets that matched your query.
128
168
  */
129
169
  total: number;
130
170
  /**
@@ -135,9 +175,9 @@ declare namespace Models {
135
175
  /**
136
176
  * Resource Tokens List
137
177
  */
138
- type ResourceTokenList = {
178
+ export type ResourceTokenList = {
139
179
  /**
140
- * Total number of tokens documents that matched your query.
180
+ * Total number of tokens that matched your query.
141
181
  */
142
182
  total: number;
143
183
  /**
@@ -148,9 +188,9 @@ declare namespace Models {
148
188
  /**
149
189
  * Teams List
150
190
  */
151
- type TeamList<Preferences extends Models.Preferences> = {
191
+ export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
152
192
  /**
153
- * Total number of teams documents that matched your query.
193
+ * Total number of teams that matched your query.
154
194
  */
155
195
  total: number;
156
196
  /**
@@ -161,9 +201,9 @@ declare namespace Models {
161
201
  /**
162
202
  * Memberships List
163
203
  */
164
- type MembershipList = {
204
+ export type MembershipList = {
165
205
  /**
166
- * Total number of memberships documents that matched your query.
206
+ * Total number of memberships that matched your query.
167
207
  */
168
208
  total: number;
169
209
  /**
@@ -174,9 +214,9 @@ declare namespace Models {
174
214
  /**
175
215
  * Sites List
176
216
  */
177
- type SiteList = {
217
+ export type SiteList = {
178
218
  /**
179
- * Total number of sites documents that matched your query.
219
+ * Total number of sites that matched your query.
180
220
  */
181
221
  total: number;
182
222
  /**
@@ -187,9 +227,9 @@ declare namespace Models {
187
227
  /**
188
228
  * Functions List
189
229
  */
190
- type FunctionList = {
230
+ export type FunctionList = {
191
231
  /**
192
- * Total number of functions documents that matched your query.
232
+ * Total number of functions that matched your query.
193
233
  */
194
234
  total: number;
195
235
  /**
@@ -200,9 +240,9 @@ declare namespace Models {
200
240
  /**
201
241
  * Frameworks List
202
242
  */
203
- type FrameworkList = {
243
+ export type FrameworkList = {
204
244
  /**
205
- * Total number of frameworks documents that matched your query.
245
+ * Total number of frameworks that matched your query.
206
246
  */
207
247
  total: number;
208
248
  /**
@@ -213,9 +253,9 @@ declare namespace Models {
213
253
  /**
214
254
  * Runtimes List
215
255
  */
216
- type RuntimeList = {
256
+ export type RuntimeList = {
217
257
  /**
218
- * Total number of runtimes documents that matched your query.
258
+ * Total number of runtimes that matched your query.
219
259
  */
220
260
  total: number;
221
261
  /**
@@ -226,9 +266,9 @@ declare namespace Models {
226
266
  /**
227
267
  * Deployments List
228
268
  */
229
- type DeploymentList = {
269
+ export type DeploymentList = {
230
270
  /**
231
- * Total number of deployments documents that matched your query.
271
+ * Total number of deployments that matched your query.
232
272
  */
233
273
  total: number;
234
274
  /**
@@ -239,9 +279,9 @@ declare namespace Models {
239
279
  /**
240
280
  * Executions List
241
281
  */
242
- type ExecutionList = {
282
+ export type ExecutionList = {
243
283
  /**
244
- * Total number of executions documents that matched your query.
284
+ * Total number of executions that matched your query.
245
285
  */
246
286
  total: number;
247
287
  /**
@@ -252,9 +292,9 @@ declare namespace Models {
252
292
  /**
253
293
  * Countries List
254
294
  */
255
- type CountryList = {
295
+ export type CountryList = {
256
296
  /**
257
- * Total number of countries documents that matched your query.
297
+ * Total number of countries that matched your query.
258
298
  */
259
299
  total: number;
260
300
  /**
@@ -265,9 +305,9 @@ declare namespace Models {
265
305
  /**
266
306
  * Continents List
267
307
  */
268
- type ContinentList = {
308
+ export type ContinentList = {
269
309
  /**
270
- * Total number of continents documents that matched your query.
310
+ * Total number of continents that matched your query.
271
311
  */
272
312
  total: number;
273
313
  /**
@@ -278,9 +318,9 @@ declare namespace Models {
278
318
  /**
279
319
  * Languages List
280
320
  */
281
- type LanguageList = {
321
+ export type LanguageList = {
282
322
  /**
283
- * Total number of languages documents that matched your query.
323
+ * Total number of languages that matched your query.
284
324
  */
285
325
  total: number;
286
326
  /**
@@ -291,9 +331,9 @@ declare namespace Models {
291
331
  /**
292
332
  * Currencies List
293
333
  */
294
- type CurrencyList = {
334
+ export type CurrencyList = {
295
335
  /**
296
- * Total number of currencies documents that matched your query.
336
+ * Total number of currencies that matched your query.
297
337
  */
298
338
  total: number;
299
339
  /**
@@ -304,9 +344,9 @@ declare namespace Models {
304
344
  /**
305
345
  * Phones List
306
346
  */
307
- type PhoneList = {
347
+ export type PhoneList = {
308
348
  /**
309
- * Total number of phones documents that matched your query.
349
+ * Total number of phones that matched your query.
310
350
  */
311
351
  total: number;
312
352
  /**
@@ -317,9 +357,9 @@ declare namespace Models {
317
357
  /**
318
358
  * Variables List
319
359
  */
320
- type VariableList = {
360
+ export type VariableList = {
321
361
  /**
322
- * Total number of variables documents that matched your query.
362
+ * Total number of variables that matched your query.
323
363
  */
324
364
  total: number;
325
365
  /**
@@ -330,9 +370,9 @@ declare namespace Models {
330
370
  /**
331
371
  * Locale codes list
332
372
  */
333
- type LocaleCodeList = {
373
+ export type LocaleCodeList = {
334
374
  /**
335
- * Total number of localeCodes documents that matched your query.
375
+ * Total number of localeCodes that matched your query.
336
376
  */
337
377
  total: number;
338
378
  /**
@@ -343,9 +383,9 @@ declare namespace Models {
343
383
  /**
344
384
  * Provider list
345
385
  */
346
- type ProviderList = {
386
+ export type ProviderList = {
347
387
  /**
348
- * Total number of providers documents that matched your query.
388
+ * Total number of providers that matched your query.
349
389
  */
350
390
  total: number;
351
391
  /**
@@ -356,9 +396,9 @@ declare namespace Models {
356
396
  /**
357
397
  * Message list
358
398
  */
359
- type MessageList = {
399
+ export type MessageList = {
360
400
  /**
361
- * Total number of messages documents that matched your query.
401
+ * Total number of messages that matched your query.
362
402
  */
363
403
  total: number;
364
404
  /**
@@ -369,9 +409,9 @@ declare namespace Models {
369
409
  /**
370
410
  * Topic list
371
411
  */
372
- type TopicList = {
412
+ export type TopicList = {
373
413
  /**
374
- * Total number of topics documents that matched your query.
414
+ * Total number of topics that matched your query.
375
415
  */
376
416
  total: number;
377
417
  /**
@@ -382,9 +422,9 @@ declare namespace Models {
382
422
  /**
383
423
  * Subscriber list
384
424
  */
385
- type SubscriberList = {
425
+ export type SubscriberList = {
386
426
  /**
387
- * Total number of subscribers documents that matched your query.
427
+ * Total number of subscribers that matched your query.
388
428
  */
389
429
  total: number;
390
430
  /**
@@ -395,9 +435,9 @@ declare namespace Models {
395
435
  /**
396
436
  * Target list
397
437
  */
398
- type TargetList = {
438
+ export type TargetList = {
399
439
  /**
400
- * Total number of targets documents that matched your query.
440
+ * Total number of targets that matched your query.
401
441
  */
402
442
  total: number;
403
443
  /**
@@ -408,9 +448,9 @@ declare namespace Models {
408
448
  /**
409
449
  * Specifications List
410
450
  */
411
- type SpecificationList = {
451
+ export type SpecificationList = {
412
452
  /**
413
- * Total number of specifications documents that matched your query.
453
+ * Total number of specifications that matched your query.
414
454
  */
415
455
  total: number;
416
456
  /**
@@ -421,7 +461,7 @@ declare namespace Models {
421
461
  /**
422
462
  * Database
423
463
  */
424
- type Database = {
464
+ export type Database = {
425
465
  /**
426
466
  * Database ID.
427
467
  */
@@ -439,14 +479,18 @@ declare namespace Models {
439
479
  */
440
480
  $updatedAt: string;
441
481
  /**
442
- * If database is enabled. Can be &#039;enabled&#039; or &#039;disabled&#039;. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
482
+ * If database is enabled. Can be 'enabled' or 'disabled'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
443
483
  */
444
484
  enabled: boolean;
485
+ /**
486
+ * Database type.
487
+ */
488
+ type: string;
445
489
  };
446
490
  /**
447
491
  * Collection
448
492
  */
449
- type Collection = {
493
+ export type Collection = {
450
494
  /**
451
495
  * Collection ID.
452
496
  */
@@ -472,7 +516,7 @@ declare namespace Models {
472
516
  */
473
517
  name: string;
474
518
  /**
475
- * Collection enabled. Can be &#039;enabled&#039; or &#039;disabled&#039;. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
519
+ * Collection enabled. Can be 'enabled' or 'disabled'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
476
520
  */
477
521
  enabled: boolean;
478
522
  /**
@@ -491,7 +535,7 @@ declare namespace Models {
491
535
  /**
492
536
  * Attributes List
493
537
  */
494
- type AttributeList = {
538
+ export type AttributeList = {
495
539
  /**
496
540
  * Total number of attributes in the given collection.
497
541
  */
@@ -504,7 +548,7 @@ declare namespace Models {
504
548
  /**
505
549
  * AttributeString
506
550
  */
507
- type AttributeString = {
551
+ export type AttributeString = {
508
552
  /**
509
553
  * Attribute Key.
510
554
  */
@@ -545,11 +589,15 @@ declare namespace Models {
545
589
  * Default value for attribute when not provided. Cannot be set when attribute is required.
546
590
  */
547
591
  default?: string;
592
+ /**
593
+ * Defines whether this attribute is encrypted or not.
594
+ */
595
+ encrypt?: boolean;
548
596
  };
549
597
  /**
550
598
  * AttributeInteger
551
599
  */
552
- type AttributeInteger = {
600
+ export type AttributeInteger = {
553
601
  /**
554
602
  * Attribute Key.
555
603
  */
@@ -598,7 +646,7 @@ declare namespace Models {
598
646
  /**
599
647
  * AttributeFloat
600
648
  */
601
- type AttributeFloat = {
649
+ export type AttributeFloat = {
602
650
  /**
603
651
  * Attribute Key.
604
652
  */
@@ -647,7 +695,7 @@ declare namespace Models {
647
695
  /**
648
696
  * AttributeBoolean
649
697
  */
650
- type AttributeBoolean = {
698
+ export type AttributeBoolean = {
651
699
  /**
652
700
  * Attribute Key.
653
701
  */
@@ -688,7 +736,7 @@ declare namespace Models {
688
736
  /**
689
737
  * AttributeEmail
690
738
  */
691
- type AttributeEmail = {
739
+ export type AttributeEmail = {
692
740
  /**
693
741
  * Attribute Key.
694
742
  */
@@ -733,7 +781,7 @@ declare namespace Models {
733
781
  /**
734
782
  * AttributeEnum
735
783
  */
736
- type AttributeEnum = {
784
+ export type AttributeEnum = {
737
785
  /**
738
786
  * Attribute Key.
739
787
  */
@@ -782,7 +830,7 @@ declare namespace Models {
782
830
  /**
783
831
  * AttributeIP
784
832
  */
785
- type AttributeIp = {
833
+ export type AttributeIp = {
786
834
  /**
787
835
  * Attribute Key.
788
836
  */
@@ -827,7 +875,7 @@ declare namespace Models {
827
875
  /**
828
876
  * AttributeURL
829
877
  */
830
- type AttributeUrl = {
878
+ export type AttributeUrl = {
831
879
  /**
832
880
  * Attribute Key.
833
881
  */
@@ -872,7 +920,7 @@ declare namespace Models {
872
920
  /**
873
921
  * AttributeDatetime
874
922
  */
875
- type AttributeDatetime = {
923
+ export type AttributeDatetime = {
876
924
  /**
877
925
  * Attribute Key.
878
926
  */
@@ -917,7 +965,7 @@ declare namespace Models {
917
965
  /**
918
966
  * AttributeRelationship
919
967
  */
920
- type AttributeRelationship = {
968
+ export type AttributeRelationship = {
921
969
  /**
922
970
  * Attribute Key.
923
971
  */
@@ -975,12 +1023,560 @@ declare namespace Models {
975
1023
  */
976
1024
  side: string;
977
1025
  };
1026
+ /**
1027
+ * Table
1028
+ */
1029
+ export type Table = {
1030
+ /**
1031
+ * Table ID.
1032
+ */
1033
+ $id: string;
1034
+ /**
1035
+ * Table creation date in ISO 8601 format.
1036
+ */
1037
+ $createdAt: string;
1038
+ /**
1039
+ * Table update date in ISO 8601 format.
1040
+ */
1041
+ $updatedAt: string;
1042
+ /**
1043
+ * Table permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1044
+ */
1045
+ $permissions: string[];
1046
+ /**
1047
+ * Database ID.
1048
+ */
1049
+ databaseId: string;
1050
+ /**
1051
+ * Table name.
1052
+ */
1053
+ name: string;
1054
+ /**
1055
+ * Table enabled. Can be 'enabled' or 'disabled'. When disabled, the table is inaccessible to users, but remains accessible to Server SDKs using API keys.
1056
+ */
1057
+ enabled: boolean;
1058
+ /**
1059
+ * Whether row-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
1060
+ */
1061
+ rowSecurity: boolean;
1062
+ /**
1063
+ * Table columns.
1064
+ */
1065
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnString)[];
1066
+ /**
1067
+ * Table indexes.
1068
+ */
1069
+ indexes: ColumnIndex[];
1070
+ };
1071
+ /**
1072
+ * Columns List
1073
+ */
1074
+ export type ColumnList = {
1075
+ /**
1076
+ * Total number of columns in the given table.
1077
+ */
1078
+ total: number;
1079
+ /**
1080
+ * List of columns.
1081
+ */
1082
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnString)[];
1083
+ };
1084
+ /**
1085
+ * ColumnString
1086
+ */
1087
+ export type ColumnString = {
1088
+ /**
1089
+ * Column Key.
1090
+ */
1091
+ key: string;
1092
+ /**
1093
+ * Column type.
1094
+ */
1095
+ type: string;
1096
+ /**
1097
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1098
+ */
1099
+ status: string;
1100
+ /**
1101
+ * Error message. Displays error generated on failure of creating or deleting an column.
1102
+ */
1103
+ error: string;
1104
+ /**
1105
+ * Is column required?
1106
+ */
1107
+ required: boolean;
1108
+ /**
1109
+ * Is column an array?
1110
+ */
1111
+ array?: boolean;
1112
+ /**
1113
+ * Column creation date in ISO 8601 format.
1114
+ */
1115
+ $createdAt: string;
1116
+ /**
1117
+ * Column update date in ISO 8601 format.
1118
+ */
1119
+ $updatedAt: string;
1120
+ /**
1121
+ * Column size.
1122
+ */
1123
+ size: number;
1124
+ /**
1125
+ * Default value for column when not provided. Cannot be set when column is required.
1126
+ */
1127
+ default?: string;
1128
+ /**
1129
+ * Defines whether this column is encrypted or not.
1130
+ */
1131
+ encrypt?: boolean;
1132
+ };
1133
+ /**
1134
+ * ColumnInteger
1135
+ */
1136
+ export type ColumnInteger = {
1137
+ /**
1138
+ * Column Key.
1139
+ */
1140
+ key: string;
1141
+ /**
1142
+ * Column type.
1143
+ */
1144
+ type: string;
1145
+ /**
1146
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1147
+ */
1148
+ status: string;
1149
+ /**
1150
+ * Error message. Displays error generated on failure of creating or deleting an column.
1151
+ */
1152
+ error: string;
1153
+ /**
1154
+ * Is column required?
1155
+ */
1156
+ required: boolean;
1157
+ /**
1158
+ * Is column an array?
1159
+ */
1160
+ array?: boolean;
1161
+ /**
1162
+ * Column creation date in ISO 8601 format.
1163
+ */
1164
+ $createdAt: string;
1165
+ /**
1166
+ * Column update date in ISO 8601 format.
1167
+ */
1168
+ $updatedAt: string;
1169
+ /**
1170
+ * Minimum value to enforce for new documents.
1171
+ */
1172
+ min?: number;
1173
+ /**
1174
+ * Maximum value to enforce for new documents.
1175
+ */
1176
+ max?: number;
1177
+ /**
1178
+ * Default value for column when not provided. Cannot be set when column is required.
1179
+ */
1180
+ default?: number;
1181
+ };
1182
+ /**
1183
+ * ColumnFloat
1184
+ */
1185
+ export type ColumnFloat = {
1186
+ /**
1187
+ * Column Key.
1188
+ */
1189
+ key: string;
1190
+ /**
1191
+ * Column type.
1192
+ */
1193
+ type: string;
1194
+ /**
1195
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1196
+ */
1197
+ status: string;
1198
+ /**
1199
+ * Error message. Displays error generated on failure of creating or deleting an column.
1200
+ */
1201
+ error: string;
1202
+ /**
1203
+ * Is column required?
1204
+ */
1205
+ required: boolean;
1206
+ /**
1207
+ * Is column an array?
1208
+ */
1209
+ array?: boolean;
1210
+ /**
1211
+ * Column creation date in ISO 8601 format.
1212
+ */
1213
+ $createdAt: string;
1214
+ /**
1215
+ * Column update date in ISO 8601 format.
1216
+ */
1217
+ $updatedAt: string;
1218
+ /**
1219
+ * Minimum value to enforce for new documents.
1220
+ */
1221
+ min?: number;
1222
+ /**
1223
+ * Maximum value to enforce for new documents.
1224
+ */
1225
+ max?: number;
1226
+ /**
1227
+ * Default value for column when not provided. Cannot be set when column is required.
1228
+ */
1229
+ default?: number;
1230
+ };
1231
+ /**
1232
+ * ColumnBoolean
1233
+ */
1234
+ export type ColumnBoolean = {
1235
+ /**
1236
+ * Column Key.
1237
+ */
1238
+ key: string;
1239
+ /**
1240
+ * Column type.
1241
+ */
1242
+ type: string;
1243
+ /**
1244
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1245
+ */
1246
+ status: string;
1247
+ /**
1248
+ * Error message. Displays error generated on failure of creating or deleting an column.
1249
+ */
1250
+ error: string;
1251
+ /**
1252
+ * Is column required?
1253
+ */
1254
+ required: boolean;
1255
+ /**
1256
+ * Is column an array?
1257
+ */
1258
+ array?: boolean;
1259
+ /**
1260
+ * Column creation date in ISO 8601 format.
1261
+ */
1262
+ $createdAt: string;
1263
+ /**
1264
+ * Column update date in ISO 8601 format.
1265
+ */
1266
+ $updatedAt: string;
1267
+ /**
1268
+ * Default value for column when not provided. Cannot be set when column is required.
1269
+ */
1270
+ default?: boolean;
1271
+ };
1272
+ /**
1273
+ * ColumnEmail
1274
+ */
1275
+ export type ColumnEmail = {
1276
+ /**
1277
+ * Column Key.
1278
+ */
1279
+ key: string;
1280
+ /**
1281
+ * Column type.
1282
+ */
1283
+ type: string;
1284
+ /**
1285
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1286
+ */
1287
+ status: string;
1288
+ /**
1289
+ * Error message. Displays error generated on failure of creating or deleting an column.
1290
+ */
1291
+ error: string;
1292
+ /**
1293
+ * Is column required?
1294
+ */
1295
+ required: boolean;
1296
+ /**
1297
+ * Is column an array?
1298
+ */
1299
+ array?: boolean;
1300
+ /**
1301
+ * Column creation date in ISO 8601 format.
1302
+ */
1303
+ $createdAt: string;
1304
+ /**
1305
+ * Column update date in ISO 8601 format.
1306
+ */
1307
+ $updatedAt: string;
1308
+ /**
1309
+ * String format.
1310
+ */
1311
+ format: string;
1312
+ /**
1313
+ * Default value for column when not provided. Cannot be set when column is required.
1314
+ */
1315
+ default?: string;
1316
+ };
1317
+ /**
1318
+ * ColumnEnum
1319
+ */
1320
+ export type ColumnEnum = {
1321
+ /**
1322
+ * Column Key.
1323
+ */
1324
+ key: string;
1325
+ /**
1326
+ * Column type.
1327
+ */
1328
+ type: string;
1329
+ /**
1330
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1331
+ */
1332
+ status: string;
1333
+ /**
1334
+ * Error message. Displays error generated on failure of creating or deleting an column.
1335
+ */
1336
+ error: string;
1337
+ /**
1338
+ * Is column required?
1339
+ */
1340
+ required: boolean;
1341
+ /**
1342
+ * Is column an array?
1343
+ */
1344
+ array?: boolean;
1345
+ /**
1346
+ * Column creation date in ISO 8601 format.
1347
+ */
1348
+ $createdAt: string;
1349
+ /**
1350
+ * Column update date in ISO 8601 format.
1351
+ */
1352
+ $updatedAt: string;
1353
+ /**
1354
+ * Array of elements in enumerated type.
1355
+ */
1356
+ elements: string[];
1357
+ /**
1358
+ * String format.
1359
+ */
1360
+ format: string;
1361
+ /**
1362
+ * Default value for column when not provided. Cannot be set when column is required.
1363
+ */
1364
+ default?: string;
1365
+ };
1366
+ /**
1367
+ * ColumnIP
1368
+ */
1369
+ export type ColumnIp = {
1370
+ /**
1371
+ * Column Key.
1372
+ */
1373
+ key: string;
1374
+ /**
1375
+ * Column type.
1376
+ */
1377
+ type: string;
1378
+ /**
1379
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1380
+ */
1381
+ status: string;
1382
+ /**
1383
+ * Error message. Displays error generated on failure of creating or deleting an column.
1384
+ */
1385
+ error: string;
1386
+ /**
1387
+ * Is column required?
1388
+ */
1389
+ required: boolean;
1390
+ /**
1391
+ * Is column an array?
1392
+ */
1393
+ array?: boolean;
1394
+ /**
1395
+ * Column creation date in ISO 8601 format.
1396
+ */
1397
+ $createdAt: string;
1398
+ /**
1399
+ * Column update date in ISO 8601 format.
1400
+ */
1401
+ $updatedAt: string;
1402
+ /**
1403
+ * String format.
1404
+ */
1405
+ format: string;
1406
+ /**
1407
+ * Default value for column when not provided. Cannot be set when column is required.
1408
+ */
1409
+ default?: string;
1410
+ };
1411
+ /**
1412
+ * ColumnURL
1413
+ */
1414
+ export type ColumnUrl = {
1415
+ /**
1416
+ * Column Key.
1417
+ */
1418
+ key: string;
1419
+ /**
1420
+ * Column type.
1421
+ */
1422
+ type: string;
1423
+ /**
1424
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1425
+ */
1426
+ status: string;
1427
+ /**
1428
+ * Error message. Displays error generated on failure of creating or deleting an column.
1429
+ */
1430
+ error: string;
1431
+ /**
1432
+ * Is column required?
1433
+ */
1434
+ required: boolean;
1435
+ /**
1436
+ * Is column an array?
1437
+ */
1438
+ array?: boolean;
1439
+ /**
1440
+ * Column creation date in ISO 8601 format.
1441
+ */
1442
+ $createdAt: string;
1443
+ /**
1444
+ * Column update date in ISO 8601 format.
1445
+ */
1446
+ $updatedAt: string;
1447
+ /**
1448
+ * String format.
1449
+ */
1450
+ format: string;
1451
+ /**
1452
+ * Default value for column when not provided. Cannot be set when column is required.
1453
+ */
1454
+ default?: string;
1455
+ };
1456
+ /**
1457
+ * ColumnDatetime
1458
+ */
1459
+ export type ColumnDatetime = {
1460
+ /**
1461
+ * Column Key.
1462
+ */
1463
+ key: string;
1464
+ /**
1465
+ * Column type.
1466
+ */
1467
+ type: string;
1468
+ /**
1469
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1470
+ */
1471
+ status: string;
1472
+ /**
1473
+ * Error message. Displays error generated on failure of creating or deleting an column.
1474
+ */
1475
+ error: string;
1476
+ /**
1477
+ * Is column required?
1478
+ */
1479
+ required: boolean;
1480
+ /**
1481
+ * Is column an array?
1482
+ */
1483
+ array?: boolean;
1484
+ /**
1485
+ * Column creation date in ISO 8601 format.
1486
+ */
1487
+ $createdAt: string;
1488
+ /**
1489
+ * Column update date in ISO 8601 format.
1490
+ */
1491
+ $updatedAt: string;
1492
+ /**
1493
+ * ISO 8601 format.
1494
+ */
1495
+ format: string;
1496
+ /**
1497
+ * Default value for column when not provided. Only null is optional
1498
+ */
1499
+ default?: string;
1500
+ };
1501
+ /**
1502
+ * ColumnRelationship
1503
+ */
1504
+ export type ColumnRelationship = {
1505
+ /**
1506
+ * Column Key.
1507
+ */
1508
+ key: string;
1509
+ /**
1510
+ * Column type.
1511
+ */
1512
+ type: string;
1513
+ /**
1514
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1515
+ */
1516
+ status: string;
1517
+ /**
1518
+ * Error message. Displays error generated on failure of creating or deleting an column.
1519
+ */
1520
+ error: string;
1521
+ /**
1522
+ * Is column required?
1523
+ */
1524
+ required: boolean;
1525
+ /**
1526
+ * Is column an array?
1527
+ */
1528
+ array?: boolean;
1529
+ /**
1530
+ * Column creation date in ISO 8601 format.
1531
+ */
1532
+ $createdAt: string;
1533
+ /**
1534
+ * Column update date in ISO 8601 format.
1535
+ */
1536
+ $updatedAt: string;
1537
+ /**
1538
+ * The ID of the related table.
1539
+ */
1540
+ relatedTable: string;
1541
+ /**
1542
+ * The type of the relationship.
1543
+ */
1544
+ relationType: string;
1545
+ /**
1546
+ * Is the relationship two-way?
1547
+ */
1548
+ twoWay: boolean;
1549
+ /**
1550
+ * The key of the two-way relationship.
1551
+ */
1552
+ twoWayKey: string;
1553
+ /**
1554
+ * How deleting the parent document will propagate to child documents.
1555
+ */
1556
+ onDelete: string;
1557
+ /**
1558
+ * Whether this is the parent or child side of the relationship
1559
+ */
1560
+ side: string;
1561
+ };
978
1562
  /**
979
1563
  * Index
980
1564
  */
981
- type Index = {
1565
+ export type Index = {
982
1566
  /**
983
- * Index Key.
1567
+ * Index ID.
1568
+ */
1569
+ $id: string;
1570
+ /**
1571
+ * Index creation date in ISO 8601 format.
1572
+ */
1573
+ $createdAt: string;
1574
+ /**
1575
+ * Index update date in ISO 8601 format.
1576
+ */
1577
+ $updatedAt: string;
1578
+ /**
1579
+ * Index key.
984
1580
  */
985
1581
  key: string;
986
1582
  /**
@@ -1007,6 +1603,15 @@ declare namespace Models {
1007
1603
  * Index orders.
1008
1604
  */
1009
1605
  orders?: string[];
1606
+ };
1607
+ /**
1608
+ * Index
1609
+ */
1610
+ export type ColumnIndex = {
1611
+ /**
1612
+ * Index ID.
1613
+ */
1614
+ $id: string;
1010
1615
  /**
1011
1616
  * Index creation date in ISO 8601 format.
1012
1617
  */
@@ -1015,15 +1620,84 @@ declare namespace Models {
1015
1620
  * Index update date in ISO 8601 format.
1016
1621
  */
1017
1622
  $updatedAt: string;
1623
+ /**
1624
+ * Index Key.
1625
+ */
1626
+ key: string;
1627
+ /**
1628
+ * Index type.
1629
+ */
1630
+ type: string;
1631
+ /**
1632
+ * Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1633
+ */
1634
+ status: string;
1635
+ /**
1636
+ * Error message. Displays error generated on failure of creating or deleting an index.
1637
+ */
1638
+ error: string;
1639
+ /**
1640
+ * Index columns.
1641
+ */
1642
+ columns: string[];
1643
+ /**
1644
+ * Index columns length.
1645
+ */
1646
+ lengths: number[];
1647
+ /**
1648
+ * Index orders.
1649
+ */
1650
+ orders?: string[];
1651
+ };
1652
+ /**
1653
+ * Row
1654
+ */
1655
+ export type Row = {
1656
+ /**
1657
+ * Row ID.
1658
+ */
1659
+ $id: string;
1660
+ /**
1661
+ * Row automatically incrementing ID.
1662
+ */
1663
+ $sequence: number;
1664
+ /**
1665
+ * Table ID.
1666
+ */
1667
+ $tableId: string;
1668
+ /**
1669
+ * Database ID.
1670
+ */
1671
+ $databaseId: string;
1672
+ /**
1673
+ * Row creation date in ISO 8601 format.
1674
+ */
1675
+ $createdAt: string;
1676
+ /**
1677
+ * Row update date in ISO 8601 format.
1678
+ */
1679
+ $updatedAt: string;
1680
+ /**
1681
+ * Row permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1682
+ */
1683
+ $permissions: string[];
1684
+ };
1685
+ export type DefaultRow = Row & {
1686
+ [key: string]: any;
1687
+ [__default]: true;
1018
1688
  };
1019
1689
  /**
1020
1690
  * Document
1021
1691
  */
1022
- type Document = {
1692
+ export type Document = {
1023
1693
  /**
1024
1694
  * Document ID.
1025
1695
  */
1026
1696
  $id: string;
1697
+ /**
1698
+ * Document automatically incrementing ID.
1699
+ */
1700
+ $sequence: number;
1027
1701
  /**
1028
1702
  * Collection ID.
1029
1703
  */
@@ -1044,12 +1718,15 @@ declare namespace Models {
1044
1718
  * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1045
1719
  */
1046
1720
  $permissions: string[];
1721
+ };
1722
+ export type DefaultDocument = Document & {
1047
1723
  [key: string]: any;
1724
+ [__default]: true;
1048
1725
  };
1049
1726
  /**
1050
1727
  * Log
1051
1728
  */
1052
- type Log = {
1729
+ export type Log = {
1053
1730
  /**
1054
1731
  * Event name.
1055
1732
  */
@@ -1138,7 +1815,7 @@ declare namespace Models {
1138
1815
  /**
1139
1816
  * User
1140
1817
  */
1141
- type User<Preferences extends Models.Preferences> = {
1818
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1142
1819
  /**
1143
1820
  * User ID.
1144
1821
  */
@@ -1219,7 +1896,7 @@ declare namespace Models {
1219
1896
  /**
1220
1897
  * AlgoMD5
1221
1898
  */
1222
- type AlgoMd5 = {
1899
+ export type AlgoMd5 = {
1223
1900
  /**
1224
1901
  * Algo type.
1225
1902
  */
@@ -1228,7 +1905,7 @@ declare namespace Models {
1228
1905
  /**
1229
1906
  * AlgoSHA
1230
1907
  */
1231
- type AlgoSha = {
1908
+ export type AlgoSha = {
1232
1909
  /**
1233
1910
  * Algo type.
1234
1911
  */
@@ -1237,7 +1914,7 @@ declare namespace Models {
1237
1914
  /**
1238
1915
  * AlgoPHPass
1239
1916
  */
1240
- type AlgoPhpass = {
1917
+ export type AlgoPhpass = {
1241
1918
  /**
1242
1919
  * Algo type.
1243
1920
  */
@@ -1246,7 +1923,7 @@ declare namespace Models {
1246
1923
  /**
1247
1924
  * AlgoBcrypt
1248
1925
  */
1249
- type AlgoBcrypt = {
1926
+ export type AlgoBcrypt = {
1250
1927
  /**
1251
1928
  * Algo type.
1252
1929
  */
@@ -1255,7 +1932,7 @@ declare namespace Models {
1255
1932
  /**
1256
1933
  * AlgoScrypt
1257
1934
  */
1258
- type AlgoScrypt = {
1935
+ export type AlgoScrypt = {
1259
1936
  /**
1260
1937
  * Algo type.
1261
1938
  */
@@ -1280,7 +1957,7 @@ declare namespace Models {
1280
1957
  /**
1281
1958
  * AlgoScryptModified
1282
1959
  */
1283
- type AlgoScryptModified = {
1960
+ export type AlgoScryptModified = {
1284
1961
  /**
1285
1962
  * Algo type.
1286
1963
  */
@@ -1301,7 +1978,7 @@ declare namespace Models {
1301
1978
  /**
1302
1979
  * AlgoArgon2
1303
1980
  */
1304
- type AlgoArgon2 = {
1981
+ export type AlgoArgon2 = {
1305
1982
  /**
1306
1983
  * Algo type.
1307
1984
  */
@@ -1322,13 +1999,15 @@ declare namespace Models {
1322
1999
  /**
1323
2000
  * Preferences
1324
2001
  */
1325
- type Preferences = {
2002
+ export type Preferences = {};
2003
+ export type DefaultPreferences = Preferences & {
1326
2004
  [key: string]: any;
2005
+ [__default]: true;
1327
2006
  };
1328
2007
  /**
1329
2008
  * Session
1330
2009
  */
1331
- type Session = {
2010
+ export type Session = {
1332
2011
  /**
1333
2012
  * Session ID.
1334
2013
  */
@@ -1449,7 +2128,7 @@ declare namespace Models {
1449
2128
  /**
1450
2129
  * Identity
1451
2130
  */
1452
- type Identity = {
2131
+ export type Identity = {
1453
2132
  /**
1454
2133
  * Identity ID.
1455
2134
  */
@@ -1494,7 +2173,7 @@ declare namespace Models {
1494
2173
  /**
1495
2174
  * Token
1496
2175
  */
1497
- type Token = {
2176
+ export type Token = {
1498
2177
  /**
1499
2178
  * Token ID.
1500
2179
  */
@@ -1523,7 +2202,7 @@ declare namespace Models {
1523
2202
  /**
1524
2203
  * JWT
1525
2204
  */
1526
- type Jwt = {
2205
+ export type Jwt = {
1527
2206
  /**
1528
2207
  * JWT encoded string.
1529
2208
  */
@@ -1532,7 +2211,7 @@ declare namespace Models {
1532
2211
  /**
1533
2212
  * Locale
1534
2213
  */
1535
- type Locale = {
2214
+ export type Locale = {
1536
2215
  /**
1537
2216
  * User IP address.
1538
2217
  */
@@ -1546,7 +2225,7 @@ declare namespace Models {
1546
2225
  */
1547
2226
  country: string;
1548
2227
  /**
1549
- * Continent code. A two character continent code &quot;AF&quot; for Africa, &quot;AN&quot; for Antarctica, &quot;AS&quot; for Asia, &quot;EU&quot; for Europe, &quot;NA&quot; for North America, &quot;OC&quot; for Oceania, and &quot;SA&quot; for South America.
2228
+ * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
1550
2229
  */
1551
2230
  continentCode: string;
1552
2231
  /**
@@ -1565,7 +2244,7 @@ declare namespace Models {
1565
2244
  /**
1566
2245
  * LocaleCode
1567
2246
  */
1568
- type LocaleCode = {
2247
+ export type LocaleCode = {
1569
2248
  /**
1570
2249
  * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1571
2250
  */
@@ -1578,7 +2257,7 @@ declare namespace Models {
1578
2257
  /**
1579
2258
  * File
1580
2259
  */
1581
- type File = {
2260
+ export type File = {
1582
2261
  /**
1583
2262
  * File ID.
1584
2263
  */
@@ -1627,7 +2306,7 @@ declare namespace Models {
1627
2306
  /**
1628
2307
  * Bucket
1629
2308
  */
1630
- type Bucket = {
2309
+ export type Bucket = {
1631
2310
  /**
1632
2311
  * Bucket ID.
1633
2312
  */
@@ -1680,7 +2359,7 @@ declare namespace Models {
1680
2359
  /**
1681
2360
  * ResourceToken
1682
2361
  */
1683
- type ResourceToken = {
2362
+ export type ResourceToken = {
1684
2363
  /**
1685
2364
  * Token ID.
1686
2365
  */
@@ -1713,7 +2392,7 @@ declare namespace Models {
1713
2392
  /**
1714
2393
  * Team
1715
2394
  */
1716
- type Team<Preferences extends Models.Preferences> = {
2395
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1717
2396
  /**
1718
2397
  * Team ID.
1719
2398
  */
@@ -1742,7 +2421,7 @@ declare namespace Models {
1742
2421
  /**
1743
2422
  * Membership
1744
2423
  */
1745
- type Membership = {
2424
+ export type Membership = {
1746
2425
  /**
1747
2426
  * Membership ID.
1748
2427
  */
@@ -1799,7 +2478,7 @@ declare namespace Models {
1799
2478
  /**
1800
2479
  * Site
1801
2480
  */
1802
- type Site = {
2481
+ export type Site = {
1803
2482
  /**
1804
2483
  * Site ID.
1805
2484
  */
@@ -1821,7 +2500,7 @@ declare namespace Models {
1821
2500
  */
1822
2501
  enabled: boolean;
1823
2502
  /**
1824
- * Is the site deployed with the latest configuration? This is set to false if you&#039;ve changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the site to update it with the latest configuration.
2503
+ * Is the site deployed with the latest configuration? This is set to false if you've changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the site to update it with the latest configuration.
1825
2504
  */
1826
2505
  live: boolean;
1827
2506
  /**
@@ -1833,7 +2512,7 @@ declare namespace Models {
1833
2512
  */
1834
2513
  framework: string;
1835
2514
  /**
1836
- * Site&#039;s active deployment ID.
2515
+ * Site's active deployment ID.
1837
2516
  */
1838
2517
  deploymentId: string;
1839
2518
  /**
@@ -1849,7 +2528,7 @@ declare namespace Models {
1849
2528
  */
1850
2529
  deploymentScreenshotDark: string;
1851
2530
  /**
1852
- * Site&#039;s latest deployment ID.
2531
+ * Site's latest deployment ID.
1853
2532
  */
1854
2533
  latestDeploymentId: string;
1855
2534
  /**
@@ -1857,7 +2536,7 @@ declare namespace Models {
1857
2536
  */
1858
2537
  latestDeploymentCreatedAt: string;
1859
2538
  /**
1860
- * Status of latest deployment. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
2539
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
1861
2540
  */
1862
2541
  latestDeploymentStatus: string;
1863
2542
  /**
@@ -1920,7 +2599,7 @@ declare namespace Models {
1920
2599
  /**
1921
2600
  * Function
1922
2601
  */
1923
- type Function = {
2602
+ export type Function = {
1924
2603
  /**
1925
2604
  * Function ID.
1926
2605
  */
@@ -1946,7 +2625,7 @@ declare namespace Models {
1946
2625
  */
1947
2626
  enabled: boolean;
1948
2627
  /**
1949
- * Is the function deployed with the latest configuration? This is set to false if you&#039;ve changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the function to update it with the latest configuration.
2628
+ * Is the function deployed with the latest configuration? This is set to false if you've changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the function to update it with the latest configuration.
1950
2629
  */
1951
2630
  live: boolean;
1952
2631
  /**
@@ -1958,7 +2637,7 @@ declare namespace Models {
1958
2637
  */
1959
2638
  runtime: string;
1960
2639
  /**
1961
- * Function&#039;s active deployment ID.
2640
+ * Function's active deployment ID.
1962
2641
  */
1963
2642
  deploymentId: string;
1964
2643
  /**
@@ -1966,7 +2645,7 @@ declare namespace Models {
1966
2645
  */
1967
2646
  deploymentCreatedAt: string;
1968
2647
  /**
1969
- * Function&#039;s latest deployment ID.
2648
+ * Function's latest deployment ID.
1970
2649
  */
1971
2650
  latestDeploymentId: string;
1972
2651
  /**
@@ -1974,7 +2653,7 @@ declare namespace Models {
1974
2653
  */
1975
2654
  latestDeploymentCreatedAt: string;
1976
2655
  /**
1977
- * Status of latest deployment. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
2656
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
1978
2657
  */
1979
2658
  latestDeploymentStatus: string;
1980
2659
  /**
@@ -2037,7 +2716,7 @@ declare namespace Models {
2037
2716
  /**
2038
2717
  * Runtime
2039
2718
  */
2040
- type Runtime = {
2719
+ export type Runtime = {
2041
2720
  /**
2042
2721
  * Runtime ID.
2043
2722
  */
@@ -2074,7 +2753,7 @@ declare namespace Models {
2074
2753
  /**
2075
2754
  * Framework
2076
2755
  */
2077
- type Framework = {
2756
+ export type Framework = {
2078
2757
  /**
2079
2758
  * Framework key.
2080
2759
  */
@@ -2099,7 +2778,7 @@ declare namespace Models {
2099
2778
  /**
2100
2779
  * Framework Adapter
2101
2780
  */
2102
- type FrameworkAdapter = {
2781
+ export type FrameworkAdapter = {
2103
2782
  /**
2104
2783
  * Adapter key.
2105
2784
  */
@@ -2124,7 +2803,7 @@ declare namespace Models {
2124
2803
  /**
2125
2804
  * Deployment
2126
2805
  */
2127
- type Deployment = {
2806
+ export type Deployment = {
2128
2807
  /**
2129
2808
  * Deployment ID.
2130
2809
  */
@@ -2182,7 +2861,7 @@ declare namespace Models {
2182
2861
  */
2183
2862
  screenshotDark: string;
2184
2863
  /**
2185
- * The deployment status. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
2864
+ * The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".
2186
2865
  */
2187
2866
  status: string;
2188
2867
  /**
@@ -2237,7 +2916,7 @@ declare namespace Models {
2237
2916
  /**
2238
2917
  * Execution
2239
2918
  */
2240
- type Execution = {
2919
+ export type Execution = {
2241
2920
  /**
2242
2921
  * Execution ID.
2243
2922
  */
@@ -2247,7 +2926,7 @@ declare namespace Models {
2247
2926
  */
2248
2927
  $createdAt: string;
2249
2928
  /**
2250
- * Execution upate date in ISO 8601 format.
2929
+ * Execution update date in ISO 8601 format.
2251
2930
  */
2252
2931
  $updatedAt: string;
2253
2932
  /**
@@ -2258,6 +2937,10 @@ declare namespace Models {
2258
2937
  * Function ID.
2259
2938
  */
2260
2939
  functionId: string;
2940
+ /**
2941
+ * Function's deployment ID used to create the execution.
2942
+ */
2943
+ deploymentId: string;
2261
2944
  /**
2262
2945
  * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
2263
2946
  */
@@ -2310,7 +2993,7 @@ declare namespace Models {
2310
2993
  /**
2311
2994
  * Variable
2312
2995
  */
2313
- type Variable = {
2996
+ export type Variable = {
2314
2997
  /**
2315
2998
  * Variable ID.
2316
2999
  */
@@ -2336,18 +3019,18 @@ declare namespace Models {
2336
3019
  */
2337
3020
  secret: boolean;
2338
3021
  /**
2339
- * Service to which the variable belongs. Possible values are &quot;project&quot;, &quot;function&quot;
3022
+ * Service to which the variable belongs. Possible values are "project", "function"
2340
3023
  */
2341
3024
  resourceType: string;
2342
3025
  /**
2343
- * ID of resource to which the variable belongs. If resourceType is &quot;project&quot;, it is empty. If resourceType is &quot;function&quot;, it is ID of the function.
3026
+ * ID of resource to which the variable belongs. If resourceType is "project", it is empty. If resourceType is "function", it is ID of the function.
2344
3027
  */
2345
3028
  resourceId: string;
2346
3029
  };
2347
3030
  /**
2348
3031
  * Country
2349
3032
  */
2350
- type Country = {
3033
+ export type Country = {
2351
3034
  /**
2352
3035
  * Country name.
2353
3036
  */
@@ -2360,7 +3043,7 @@ declare namespace Models {
2360
3043
  /**
2361
3044
  * Continent
2362
3045
  */
2363
- type Continent = {
3046
+ export type Continent = {
2364
3047
  /**
2365
3048
  * Continent name.
2366
3049
  */
@@ -2373,7 +3056,7 @@ declare namespace Models {
2373
3056
  /**
2374
3057
  * Language
2375
3058
  */
2376
- type Language = {
3059
+ export type Language = {
2377
3060
  /**
2378
3061
  * Language name.
2379
3062
  */
@@ -2390,7 +3073,7 @@ declare namespace Models {
2390
3073
  /**
2391
3074
  * Currency
2392
3075
  */
2393
- type Currency = {
3076
+ export type Currency = {
2394
3077
  /**
2395
3078
  * Currency symbol.
2396
3079
  */
@@ -2423,7 +3106,7 @@ declare namespace Models {
2423
3106
  /**
2424
3107
  * Phone
2425
3108
  */
2426
- type Phone = {
3109
+ export type Phone = {
2427
3110
  /**
2428
3111
  * Phone code.
2429
3112
  */
@@ -2440,7 +3123,7 @@ declare namespace Models {
2440
3123
  /**
2441
3124
  * Health Antivirus
2442
3125
  */
2443
- type HealthAntivirus = {
3126
+ export type HealthAntivirus = {
2444
3127
  /**
2445
3128
  * Antivirus version.
2446
3129
  */
@@ -2453,7 +3136,7 @@ declare namespace Models {
2453
3136
  /**
2454
3137
  * Health Queue
2455
3138
  */
2456
- type HealthQueue = {
3139
+ export type HealthQueue = {
2457
3140
  /**
2458
3141
  * Amount of actions in the queue.
2459
3142
  */
@@ -2462,7 +3145,7 @@ declare namespace Models {
2462
3145
  /**
2463
3146
  * Health Status
2464
3147
  */
2465
- type HealthStatus = {
3148
+ export type HealthStatus = {
2466
3149
  /**
2467
3150
  * Name of the service.
2468
3151
  */
@@ -2479,7 +3162,7 @@ declare namespace Models {
2479
3162
  /**
2480
3163
  * Health Certificate
2481
3164
  */
2482
- type HealthCertificate = {
3165
+ export type HealthCertificate = {
2483
3166
  /**
2484
3167
  * Certificate name
2485
3168
  */
@@ -2508,7 +3191,7 @@ declare namespace Models {
2508
3191
  /**
2509
3192
  * Health Time
2510
3193
  */
2511
- type HealthTime = {
3194
+ export type HealthTime = {
2512
3195
  /**
2513
3196
  * Current unix timestamp on trustful remote server.
2514
3197
  */
@@ -2525,7 +3208,7 @@ declare namespace Models {
2525
3208
  /**
2526
3209
  * Headers
2527
3210
  */
2528
- type Headers = {
3211
+ export type Headers = {
2529
3212
  /**
2530
3213
  * Header name.
2531
3214
  */
@@ -2538,7 +3221,7 @@ declare namespace Models {
2538
3221
  /**
2539
3222
  * Specification
2540
3223
  */
2541
- type Specification = {
3224
+ export type Specification = {
2542
3225
  /**
2543
3226
  * Memory size in MB.
2544
3227
  */
@@ -2559,7 +3242,7 @@ declare namespace Models {
2559
3242
  /**
2560
3243
  * MFA Challenge
2561
3244
  */
2562
- type MfaChallenge = {
3245
+ export type MfaChallenge = {
2563
3246
  /**
2564
3247
  * Token ID.
2565
3248
  */
@@ -2580,7 +3263,7 @@ declare namespace Models {
2580
3263
  /**
2581
3264
  * MFA Recovery Codes
2582
3265
  */
2583
- type MfaRecoveryCodes = {
3266
+ export type MfaRecoveryCodes = {
2584
3267
  /**
2585
3268
  * Recovery codes.
2586
3269
  */
@@ -2589,7 +3272,7 @@ declare namespace Models {
2589
3272
  /**
2590
3273
  * MFAType
2591
3274
  */
2592
- type MfaType = {
3275
+ export type MfaType = {
2593
3276
  /**
2594
3277
  * Secret token used for TOTP factor.
2595
3278
  */
@@ -2602,7 +3285,7 @@ declare namespace Models {
2602
3285
  /**
2603
3286
  * MFAFactors
2604
3287
  */
2605
- type MfaFactors = {
3288
+ export type MfaFactors = {
2606
3289
  /**
2607
3290
  * Can TOTP be used for MFA challenge for this account.
2608
3291
  */
@@ -2623,7 +3306,7 @@ declare namespace Models {
2623
3306
  /**
2624
3307
  * Provider
2625
3308
  */
2626
- type Provider = {
3309
+ export type Provider = {
2627
3310
  /**
2628
3311
  * Provider ID.
2629
3312
  */
@@ -2664,7 +3347,7 @@ declare namespace Models {
2664
3347
  /**
2665
3348
  * Message
2666
3349
  */
2667
- type Message = {
3350
+ export type Message = {
2668
3351
  /**
2669
3352
  * Message ID.
2670
3353
  */
@@ -2721,7 +3404,7 @@ declare namespace Models {
2721
3404
  /**
2722
3405
  * Topic
2723
3406
  */
2724
- type Topic = {
3407
+ export type Topic = {
2725
3408
  /**
2726
3409
  * Topic ID.
2727
3410
  */
@@ -2758,7 +3441,7 @@ declare namespace Models {
2758
3441
  /**
2759
3442
  * Subscriber
2760
3443
  */
2761
- type Subscriber = {
3444
+ export type Subscriber = {
2762
3445
  /**
2763
3446
  * Subscriber ID.
2764
3447
  */
@@ -2799,7 +3482,7 @@ declare namespace Models {
2799
3482
  /**
2800
3483
  * Target
2801
3484
  */
2802
- type Target = {
3485
+ export type Target = {
2803
3486
  /**
2804
3487
  * Target ID.
2805
3488
  */
@@ -2837,6 +3520,7 @@ declare namespace Models {
2837
3520
  */
2838
3521
  expired: boolean;
2839
3522
  };
3523
+ export {};
2840
3524
  }
2841
3525
 
2842
3526
  export { Models };