node-appwrite 17.2.0 → 19.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 (126) 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/credit-card.d.mts +1 -1
  7. package/dist/enums/credit-card.d.ts +1 -1
  8. package/dist/enums/credit-card.js +1 -1
  9. package/dist/enums/credit-card.js.map +1 -1
  10. package/dist/enums/credit-card.mjs +1 -1
  11. package/dist/enums/credit-card.mjs.map +1 -1
  12. package/dist/enums/execution-method.d.mts +2 -1
  13. package/dist/enums/execution-method.d.ts +2 -1
  14. package/dist/enums/execution-method.js +1 -0
  15. package/dist/enums/execution-method.js.map +1 -1
  16. package/dist/enums/execution-method.mjs +1 -0
  17. package/dist/enums/execution-method.mjs.map +1 -1
  18. package/dist/enums/index-type.d.mts +2 -1
  19. package/dist/enums/index-type.d.ts +2 -1
  20. package/dist/enums/index-type.js +1 -0
  21. package/dist/enums/index-type.js.map +1 -1
  22. package/dist/enums/index-type.mjs +1 -0
  23. package/dist/enums/index-type.mjs.map +1 -1
  24. package/dist/enums/{v-c-s-deployment-type.js → vcs-deployment-type.js} +1 -1
  25. package/dist/enums/vcs-deployment-type.js.map +1 -0
  26. package/dist/enums/{v-c-s-deployment-type.mjs → vcs-deployment-type.mjs} +2 -2
  27. package/dist/enums/vcs-deployment-type.mjs.map +1 -0
  28. package/dist/index.d.mts +2 -1
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +7 -2
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +2 -1
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/models.d.mts +1058 -153
  35. package/dist/models.d.ts +1058 -153
  36. package/dist/query.d.mts +196 -6
  37. package/dist/query.d.ts +196 -6
  38. package/dist/query.js +192 -2
  39. package/dist/query.js.map +1 -1
  40. package/dist/query.mjs +192 -2
  41. package/dist/query.mjs.map +1 -1
  42. package/dist/services/account.d.mts +625 -70
  43. package/dist/services/account.d.ts +625 -70
  44. package/dist/services/account.js +592 -292
  45. package/dist/services/account.js.map +1 -1
  46. package/dist/services/account.mjs +592 -292
  47. package/dist/services/account.mjs.map +1 -1
  48. package/dist/services/avatars.d.mts +157 -26
  49. package/dist/services/avatars.d.ts +157 -26
  50. package/dist/services/avatars.js +104 -93
  51. package/dist/services/avatars.js.map +1 -1
  52. package/dist/services/avatars.mjs +104 -93
  53. package/dist/services/avatars.mjs.map +1 -1
  54. package/dist/services/databases.d.mts +1425 -248
  55. package/dist/services/databases.d.ts +1425 -248
  56. package/dist/services/databases.js +1186 -611
  57. package/dist/services/databases.js.map +1 -1
  58. package/dist/services/databases.mjs +1186 -611
  59. package/dist/services/databases.mjs.map +1 -1
  60. package/dist/services/functions.d.mts +530 -107
  61. package/dist/services/functions.d.ts +530 -107
  62. package/dist/services/functions.js +393 -276
  63. package/dist/services/functions.js.map +1 -1
  64. package/dist/services/functions.mjs +393 -276
  65. package/dist/services/functions.mjs.map +1 -1
  66. package/dist/services/graphql.d.mts +24 -2
  67. package/dist/services/graphql.d.ts +24 -2
  68. package/dist/services/graphql.js +20 -16
  69. package/dist/services/graphql.js.map +1 -1
  70. package/dist/services/graphql.mjs +20 -16
  71. package/dist/services/graphql.mjs.map +1 -1
  72. package/dist/services/health.d.mts +175 -16
  73. package/dist/services/health.d.ts +175 -16
  74. package/dist/services/health.js +144 -115
  75. package/dist/services/health.js.map +1 -1
  76. package/dist/services/health.mjs +144 -115
  77. package/dist/services/health.mjs.map +1 -1
  78. package/dist/services/locale.js.map +1 -1
  79. package/dist/services/locale.mjs.map +1 -1
  80. package/dist/services/messaging.d.mts +1544 -262
  81. package/dist/services/messaging.d.ts +1544 -262
  82. package/dist/services/messaging.js +1417 -592
  83. package/dist/services/messaging.js.map +1 -1
  84. package/dist/services/messaging.mjs +1417 -592
  85. package/dist/services/messaging.mjs.map +1 -1
  86. package/dist/services/sites.d.mts +495 -99
  87. package/dist/services/sites.d.ts +495 -99
  88. package/dist/services/sites.js +371 -258
  89. package/dist/services/sites.js.map +1 -1
  90. package/dist/services/sites.mjs +371 -258
  91. package/dist/services/sites.mjs.map +1 -1
  92. package/dist/services/storage.d.mts +306 -63
  93. package/dist/services/storage.d.ts +306 -63
  94. package/dist/services/storage.js +225 -158
  95. package/dist/services/storage.js.map +1 -1
  96. package/dist/services/storage.mjs +225 -158
  97. package/dist/services/storage.mjs.map +1 -1
  98. package/dist/services/tables-db.d.mts +1744 -0
  99. package/dist/services/tables-db.d.ts +1744 -0
  100. package/dist/services/tables-db.js +2692 -0
  101. package/dist/services/tables-db.js.map +1 -0
  102. package/dist/services/tables-db.mjs +2691 -0
  103. package/dist/services/tables-db.mjs.map +1 -0
  104. package/dist/services/teams.d.mts +233 -39
  105. package/dist/services/teams.d.ts +233 -39
  106. package/dist/services/teams.js +170 -135
  107. package/dist/services/teams.js.map +1 -1
  108. package/dist/services/teams.mjs +170 -135
  109. package/dist/services/teams.mjs.map +1 -1
  110. package/dist/services/tokens.d.mts +76 -11
  111. package/dist/services/tokens.d.ts +76 -11
  112. package/dist/services/tokens.js +60 -45
  113. package/dist/services/tokens.js.map +1 -1
  114. package/dist/services/tokens.mjs +60 -45
  115. package/dist/services/tokens.mjs.map +1 -1
  116. package/dist/services/users.d.mts +842 -115
  117. package/dist/services/users.d.ts +842 -115
  118. package/dist/services/users.js +719 -408
  119. package/dist/services/users.js.map +1 -1
  120. package/dist/services/users.mjs +719 -408
  121. package/dist/services/users.mjs.map +1 -1
  122. package/package.json +1 -1
  123. package/dist/enums/v-c-s-deployment-type.js.map +0 -1
  124. package/dist/enums/v-c-s-deployment-type.mjs.map +0 -1
  125. /package/dist/enums/{v-c-s-deployment-type.d.mts → vcs-deployment-type.d.mts} +0 -0
  126. /package/dist/enums/{v-c-s-deployment-type.d.ts → vcs-deployment-type.d.ts} +0 -0
package/dist/models.d.mts CHANGED
@@ -3,12 +3,25 @@
3
3
  */
4
4
  declare namespace Models {
5
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
+ };
6
19
  /**
7
20
  * Documents List
8
21
  */
9
22
  export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
10
23
  /**
11
- * Total number of documents documents that matched your query.
24
+ * Total number of documents that matched your query.
12
25
  */
13
26
  total: number;
14
27
  /**
@@ -16,12 +29,25 @@ declare namespace Models {
16
29
  */
17
30
  documents: Document[];
18
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
+ };
19
45
  /**
20
46
  * Collections List
21
47
  */
22
48
  export type CollectionList = {
23
49
  /**
24
- * Total number of collections documents that matched your query.
50
+ * Total number of collections that matched your query.
25
51
  */
26
52
  total: number;
27
53
  /**
@@ -34,7 +60,7 @@ declare namespace Models {
34
60
  */
35
61
  export type DatabaseList = {
36
62
  /**
37
- * Total number of databases documents that matched your query.
63
+ * Total number of databases that matched your query.
38
64
  */
39
65
  total: number;
40
66
  /**
@@ -47,7 +73,7 @@ declare namespace Models {
47
73
  */
48
74
  export type IndexList = {
49
75
  /**
50
- * Total number of indexes documents that matched your query.
76
+ * Total number of indexes that matched your query.
51
77
  */
52
78
  total: number;
53
79
  /**
@@ -55,12 +81,25 @@ declare namespace Models {
55
81
  */
56
82
  indexes: Index[];
57
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
+ };
58
97
  /**
59
98
  * Users List
60
99
  */
61
100
  export type UserList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
62
101
  /**
63
- * Total number of users documents that matched your query.
102
+ * Total number of users that matched your query.
64
103
  */
65
104
  total: number;
66
105
  /**
@@ -73,7 +112,7 @@ declare namespace Models {
73
112
  */
74
113
  export type SessionList = {
75
114
  /**
76
- * Total number of sessions documents that matched your query.
115
+ * Total number of sessions that matched your query.
77
116
  */
78
117
  total: number;
79
118
  /**
@@ -86,7 +125,7 @@ declare namespace Models {
86
125
  */
87
126
  export type IdentityList = {
88
127
  /**
89
- * Total number of identities documents that matched your query.
128
+ * Total number of identities that matched your query.
90
129
  */
91
130
  total: number;
92
131
  /**
@@ -99,7 +138,7 @@ declare namespace Models {
99
138
  */
100
139
  export type LogList = {
101
140
  /**
102
- * Total number of logs documents that matched your query.
141
+ * Total number of logs that matched your query.
103
142
  */
104
143
  total: number;
105
144
  /**
@@ -112,7 +151,7 @@ declare namespace Models {
112
151
  */
113
152
  export type FileList = {
114
153
  /**
115
- * Total number of files documents that matched your query.
154
+ * Total number of files that matched your query.
116
155
  */
117
156
  total: number;
118
157
  /**
@@ -125,7 +164,7 @@ declare namespace Models {
125
164
  */
126
165
  export type BucketList = {
127
166
  /**
128
- * Total number of buckets documents that matched your query.
167
+ * Total number of buckets that matched your query.
129
168
  */
130
169
  total: number;
131
170
  /**
@@ -138,7 +177,7 @@ declare namespace Models {
138
177
  */
139
178
  export type ResourceTokenList = {
140
179
  /**
141
- * Total number of tokens documents that matched your query.
180
+ * Total number of tokens that matched your query.
142
181
  */
143
182
  total: number;
144
183
  /**
@@ -151,7 +190,7 @@ declare namespace Models {
151
190
  */
152
191
  export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
153
192
  /**
154
- * Total number of teams documents that matched your query.
193
+ * Total number of teams that matched your query.
155
194
  */
156
195
  total: number;
157
196
  /**
@@ -164,7 +203,7 @@ declare namespace Models {
164
203
  */
165
204
  export type MembershipList = {
166
205
  /**
167
- * Total number of memberships documents that matched your query.
206
+ * Total number of memberships that matched your query.
168
207
  */
169
208
  total: number;
170
209
  /**
@@ -177,7 +216,7 @@ declare namespace Models {
177
216
  */
178
217
  export type SiteList = {
179
218
  /**
180
- * Total number of sites documents that matched your query.
219
+ * Total number of sites that matched your query.
181
220
  */
182
221
  total: number;
183
222
  /**
@@ -190,7 +229,7 @@ declare namespace Models {
190
229
  */
191
230
  export type FunctionList = {
192
231
  /**
193
- * Total number of functions documents that matched your query.
232
+ * Total number of functions that matched your query.
194
233
  */
195
234
  total: number;
196
235
  /**
@@ -203,7 +242,7 @@ declare namespace Models {
203
242
  */
204
243
  export type FrameworkList = {
205
244
  /**
206
- * Total number of frameworks documents that matched your query.
245
+ * Total number of frameworks that matched your query.
207
246
  */
208
247
  total: number;
209
248
  /**
@@ -216,7 +255,7 @@ declare namespace Models {
216
255
  */
217
256
  export type RuntimeList = {
218
257
  /**
219
- * Total number of runtimes documents that matched your query.
258
+ * Total number of runtimes that matched your query.
220
259
  */
221
260
  total: number;
222
261
  /**
@@ -229,7 +268,7 @@ declare namespace Models {
229
268
  */
230
269
  export type DeploymentList = {
231
270
  /**
232
- * Total number of deployments documents that matched your query.
271
+ * Total number of deployments that matched your query.
233
272
  */
234
273
  total: number;
235
274
  /**
@@ -242,7 +281,7 @@ declare namespace Models {
242
281
  */
243
282
  export type ExecutionList = {
244
283
  /**
245
- * Total number of executions documents that matched your query.
284
+ * Total number of executions that matched your query.
246
285
  */
247
286
  total: number;
248
287
  /**
@@ -255,7 +294,7 @@ declare namespace Models {
255
294
  */
256
295
  export type CountryList = {
257
296
  /**
258
- * Total number of countries documents that matched your query.
297
+ * Total number of countries that matched your query.
259
298
  */
260
299
  total: number;
261
300
  /**
@@ -268,7 +307,7 @@ declare namespace Models {
268
307
  */
269
308
  export type ContinentList = {
270
309
  /**
271
- * Total number of continents documents that matched your query.
310
+ * Total number of continents that matched your query.
272
311
  */
273
312
  total: number;
274
313
  /**
@@ -281,7 +320,7 @@ declare namespace Models {
281
320
  */
282
321
  export type LanguageList = {
283
322
  /**
284
- * Total number of languages documents that matched your query.
323
+ * Total number of languages that matched your query.
285
324
  */
286
325
  total: number;
287
326
  /**
@@ -294,7 +333,7 @@ declare namespace Models {
294
333
  */
295
334
  export type CurrencyList = {
296
335
  /**
297
- * Total number of currencies documents that matched your query.
336
+ * Total number of currencies that matched your query.
298
337
  */
299
338
  total: number;
300
339
  /**
@@ -307,7 +346,7 @@ declare namespace Models {
307
346
  */
308
347
  export type PhoneList = {
309
348
  /**
310
- * Total number of phones documents that matched your query.
349
+ * Total number of phones that matched your query.
311
350
  */
312
351
  total: number;
313
352
  /**
@@ -320,7 +359,7 @@ declare namespace Models {
320
359
  */
321
360
  export type VariableList = {
322
361
  /**
323
- * Total number of variables documents that matched your query.
362
+ * Total number of variables that matched your query.
324
363
  */
325
364
  total: number;
326
365
  /**
@@ -333,7 +372,7 @@ declare namespace Models {
333
372
  */
334
373
  export type LocaleCodeList = {
335
374
  /**
336
- * Total number of localeCodes documents that matched your query.
375
+ * Total number of localeCodes that matched your query.
337
376
  */
338
377
  total: number;
339
378
  /**
@@ -346,7 +385,7 @@ declare namespace Models {
346
385
  */
347
386
  export type ProviderList = {
348
387
  /**
349
- * Total number of providers documents that matched your query.
388
+ * Total number of providers that matched your query.
350
389
  */
351
390
  total: number;
352
391
  /**
@@ -359,7 +398,7 @@ declare namespace Models {
359
398
  */
360
399
  export type MessageList = {
361
400
  /**
362
- * Total number of messages documents that matched your query.
401
+ * Total number of messages that matched your query.
363
402
  */
364
403
  total: number;
365
404
  /**
@@ -372,7 +411,7 @@ declare namespace Models {
372
411
  */
373
412
  export type TopicList = {
374
413
  /**
375
- * Total number of topics documents that matched your query.
414
+ * Total number of topics that matched your query.
376
415
  */
377
416
  total: number;
378
417
  /**
@@ -385,7 +424,7 @@ declare namespace Models {
385
424
  */
386
425
  export type SubscriberList = {
387
426
  /**
388
- * Total number of subscribers documents that matched your query.
427
+ * Total number of subscribers that matched your query.
389
428
  */
390
429
  total: number;
391
430
  /**
@@ -398,7 +437,7 @@ declare namespace Models {
398
437
  */
399
438
  export type TargetList = {
400
439
  /**
401
- * Total number of targets documents that matched your query.
440
+ * Total number of targets that matched your query.
402
441
  */
403
442
  total: number;
404
443
  /**
@@ -411,7 +450,7 @@ declare namespace Models {
411
450
  */
412
451
  export type SpecificationList = {
413
452
  /**
414
- * Total number of specifications documents that matched your query.
453
+ * Total number of specifications that matched your query.
415
454
  */
416
455
  total: number;
417
456
  /**
@@ -440,9 +479,13 @@ declare namespace Models {
440
479
  */
441
480
  $updatedAt: string;
442
481
  /**
443
- * 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.
444
483
  */
445
484
  enabled: boolean;
485
+ /**
486
+ * Database type.
487
+ */
488
+ type: string;
446
489
  };
447
490
  /**
448
491
  * Collection
@@ -473,7 +516,7 @@ declare namespace Models {
473
516
  */
474
517
  name: string;
475
518
  /**
476
- * 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.
477
520
  */
478
521
  enabled: boolean;
479
522
  /**
@@ -483,7 +526,7 @@ declare namespace Models {
483
526
  /**
484
527
  * Collection attributes.
485
528
  */
486
- attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributeString)[];
529
+ attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
487
530
  /**
488
531
  * Collection indexes.
489
532
  */
@@ -500,7 +543,7 @@ declare namespace Models {
500
543
  /**
501
544
  * List of attributes.
502
545
  */
503
- attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributeString)[];
546
+ attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
504
547
  };
505
548
  /**
506
549
  * AttributeString
@@ -576,15 +619,674 @@ declare namespace Models {
576
619
  */
577
620
  required: boolean;
578
621
  /**
579
- * Is attribute an array?
622
+ * Is attribute an array?
623
+ */
624
+ array?: boolean;
625
+ /**
626
+ * Attribute creation date in ISO 8601 format.
627
+ */
628
+ $createdAt: string;
629
+ /**
630
+ * Attribute update date in ISO 8601 format.
631
+ */
632
+ $updatedAt: string;
633
+ /**
634
+ * Minimum value to enforce for new documents.
635
+ */
636
+ min?: number;
637
+ /**
638
+ * Maximum value to enforce for new documents.
639
+ */
640
+ max?: number;
641
+ /**
642
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
643
+ */
644
+ default?: number;
645
+ };
646
+ /**
647
+ * AttributeFloat
648
+ */
649
+ export type AttributeFloat = {
650
+ /**
651
+ * Attribute Key.
652
+ */
653
+ key: string;
654
+ /**
655
+ * Attribute type.
656
+ */
657
+ type: string;
658
+ /**
659
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
660
+ */
661
+ status: string;
662
+ /**
663
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
664
+ */
665
+ error: string;
666
+ /**
667
+ * Is attribute required?
668
+ */
669
+ required: boolean;
670
+ /**
671
+ * Is attribute an array?
672
+ */
673
+ array?: boolean;
674
+ /**
675
+ * Attribute creation date in ISO 8601 format.
676
+ */
677
+ $createdAt: string;
678
+ /**
679
+ * Attribute update date in ISO 8601 format.
680
+ */
681
+ $updatedAt: string;
682
+ /**
683
+ * Minimum value to enforce for new documents.
684
+ */
685
+ min?: number;
686
+ /**
687
+ * Maximum value to enforce for new documents.
688
+ */
689
+ max?: number;
690
+ /**
691
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
692
+ */
693
+ default?: number;
694
+ };
695
+ /**
696
+ * AttributeBoolean
697
+ */
698
+ export type AttributeBoolean = {
699
+ /**
700
+ * Attribute Key.
701
+ */
702
+ key: string;
703
+ /**
704
+ * Attribute type.
705
+ */
706
+ type: string;
707
+ /**
708
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
709
+ */
710
+ status: string;
711
+ /**
712
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
713
+ */
714
+ error: string;
715
+ /**
716
+ * Is attribute required?
717
+ */
718
+ required: boolean;
719
+ /**
720
+ * Is attribute an array?
721
+ */
722
+ array?: boolean;
723
+ /**
724
+ * Attribute creation date in ISO 8601 format.
725
+ */
726
+ $createdAt: string;
727
+ /**
728
+ * Attribute update date in ISO 8601 format.
729
+ */
730
+ $updatedAt: string;
731
+ /**
732
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
733
+ */
734
+ default?: boolean;
735
+ };
736
+ /**
737
+ * AttributeEmail
738
+ */
739
+ export type AttributeEmail = {
740
+ /**
741
+ * Attribute Key.
742
+ */
743
+ key: string;
744
+ /**
745
+ * Attribute type.
746
+ */
747
+ type: string;
748
+ /**
749
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
750
+ */
751
+ status: string;
752
+ /**
753
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
754
+ */
755
+ error: string;
756
+ /**
757
+ * Is attribute required?
758
+ */
759
+ required: boolean;
760
+ /**
761
+ * Is attribute an array?
762
+ */
763
+ array?: boolean;
764
+ /**
765
+ * Attribute creation date in ISO 8601 format.
766
+ */
767
+ $createdAt: string;
768
+ /**
769
+ * Attribute update date in ISO 8601 format.
770
+ */
771
+ $updatedAt: string;
772
+ /**
773
+ * String format.
774
+ */
775
+ format: string;
776
+ /**
777
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
778
+ */
779
+ default?: string;
780
+ };
781
+ /**
782
+ * AttributeEnum
783
+ */
784
+ export type AttributeEnum = {
785
+ /**
786
+ * Attribute Key.
787
+ */
788
+ key: string;
789
+ /**
790
+ * Attribute type.
791
+ */
792
+ type: string;
793
+ /**
794
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
795
+ */
796
+ status: string;
797
+ /**
798
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
799
+ */
800
+ error: string;
801
+ /**
802
+ * Is attribute required?
803
+ */
804
+ required: boolean;
805
+ /**
806
+ * Is attribute an array?
807
+ */
808
+ array?: boolean;
809
+ /**
810
+ * Attribute creation date in ISO 8601 format.
811
+ */
812
+ $createdAt: string;
813
+ /**
814
+ * Attribute update date in ISO 8601 format.
815
+ */
816
+ $updatedAt: string;
817
+ /**
818
+ * Array of elements in enumerated type.
819
+ */
820
+ elements: string[];
821
+ /**
822
+ * String format.
823
+ */
824
+ format: string;
825
+ /**
826
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
827
+ */
828
+ default?: string;
829
+ };
830
+ /**
831
+ * AttributeIP
832
+ */
833
+ export type AttributeIp = {
834
+ /**
835
+ * Attribute Key.
836
+ */
837
+ key: string;
838
+ /**
839
+ * Attribute type.
840
+ */
841
+ type: string;
842
+ /**
843
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
844
+ */
845
+ status: string;
846
+ /**
847
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
848
+ */
849
+ error: string;
850
+ /**
851
+ * Is attribute required?
852
+ */
853
+ required: boolean;
854
+ /**
855
+ * Is attribute an array?
856
+ */
857
+ array?: boolean;
858
+ /**
859
+ * Attribute creation date in ISO 8601 format.
860
+ */
861
+ $createdAt: string;
862
+ /**
863
+ * Attribute update date in ISO 8601 format.
864
+ */
865
+ $updatedAt: string;
866
+ /**
867
+ * String format.
868
+ */
869
+ format: string;
870
+ /**
871
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
872
+ */
873
+ default?: string;
874
+ };
875
+ /**
876
+ * AttributeURL
877
+ */
878
+ export type AttributeUrl = {
879
+ /**
880
+ * Attribute Key.
881
+ */
882
+ key: string;
883
+ /**
884
+ * Attribute type.
885
+ */
886
+ type: string;
887
+ /**
888
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
889
+ */
890
+ status: string;
891
+ /**
892
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
893
+ */
894
+ error: string;
895
+ /**
896
+ * Is attribute required?
897
+ */
898
+ required: boolean;
899
+ /**
900
+ * Is attribute an array?
901
+ */
902
+ array?: boolean;
903
+ /**
904
+ * Attribute creation date in ISO 8601 format.
905
+ */
906
+ $createdAt: string;
907
+ /**
908
+ * Attribute update date in ISO 8601 format.
909
+ */
910
+ $updatedAt: string;
911
+ /**
912
+ * String format.
913
+ */
914
+ format: string;
915
+ /**
916
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
917
+ */
918
+ default?: string;
919
+ };
920
+ /**
921
+ * AttributeDatetime
922
+ */
923
+ export type AttributeDatetime = {
924
+ /**
925
+ * Attribute Key.
926
+ */
927
+ key: string;
928
+ /**
929
+ * Attribute type.
930
+ */
931
+ type: string;
932
+ /**
933
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
934
+ */
935
+ status: string;
936
+ /**
937
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
938
+ */
939
+ error: string;
940
+ /**
941
+ * Is attribute required?
942
+ */
943
+ required: boolean;
944
+ /**
945
+ * Is attribute an array?
946
+ */
947
+ array?: boolean;
948
+ /**
949
+ * Attribute creation date in ISO 8601 format.
950
+ */
951
+ $createdAt: string;
952
+ /**
953
+ * Attribute update date in ISO 8601 format.
954
+ */
955
+ $updatedAt: string;
956
+ /**
957
+ * ISO 8601 format.
958
+ */
959
+ format: string;
960
+ /**
961
+ * Default value for attribute when not provided. Only null is optional
962
+ */
963
+ default?: string;
964
+ };
965
+ /**
966
+ * AttributeRelationship
967
+ */
968
+ export type AttributeRelationship = {
969
+ /**
970
+ * Attribute Key.
971
+ */
972
+ key: string;
973
+ /**
974
+ * Attribute type.
975
+ */
976
+ type: string;
977
+ /**
978
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
979
+ */
980
+ status: string;
981
+ /**
982
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
983
+ */
984
+ error: string;
985
+ /**
986
+ * Is attribute required?
987
+ */
988
+ required: boolean;
989
+ /**
990
+ * Is attribute an array?
991
+ */
992
+ array?: boolean;
993
+ /**
994
+ * Attribute creation date in ISO 8601 format.
995
+ */
996
+ $createdAt: string;
997
+ /**
998
+ * Attribute update date in ISO 8601 format.
999
+ */
1000
+ $updatedAt: string;
1001
+ /**
1002
+ * The ID of the related collection.
1003
+ */
1004
+ relatedCollection: string;
1005
+ /**
1006
+ * The type of the relationship.
1007
+ */
1008
+ relationType: string;
1009
+ /**
1010
+ * Is the relationship two-way?
1011
+ */
1012
+ twoWay: boolean;
1013
+ /**
1014
+ * The key of the two-way relationship.
1015
+ */
1016
+ twoWayKey: string;
1017
+ /**
1018
+ * How deleting the parent document will propagate to child documents.
1019
+ */
1020
+ onDelete: string;
1021
+ /**
1022
+ * Whether this is the parent or child side of the relationship
1023
+ */
1024
+ side: string;
1025
+ };
1026
+ /**
1027
+ * AttributePoint
1028
+ */
1029
+ export type AttributePoint = {
1030
+ /**
1031
+ * Attribute Key.
1032
+ */
1033
+ key: string;
1034
+ /**
1035
+ * Attribute type.
1036
+ */
1037
+ type: string;
1038
+ /**
1039
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1040
+ */
1041
+ status: string;
1042
+ /**
1043
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1044
+ */
1045
+ error: string;
1046
+ /**
1047
+ * Is attribute required?
1048
+ */
1049
+ required: boolean;
1050
+ /**
1051
+ * Is attribute an array?
1052
+ */
1053
+ array?: boolean;
1054
+ /**
1055
+ * Attribute creation date in ISO 8601 format.
1056
+ */
1057
+ $createdAt: string;
1058
+ /**
1059
+ * Attribute update date in ISO 8601 format.
1060
+ */
1061
+ $updatedAt: string;
1062
+ /**
1063
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1064
+ */
1065
+ default?: any[];
1066
+ };
1067
+ /**
1068
+ * AttributeLine
1069
+ */
1070
+ export type AttributeLine = {
1071
+ /**
1072
+ * Attribute Key.
1073
+ */
1074
+ key: string;
1075
+ /**
1076
+ * Attribute type.
1077
+ */
1078
+ type: string;
1079
+ /**
1080
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1081
+ */
1082
+ status: string;
1083
+ /**
1084
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1085
+ */
1086
+ error: string;
1087
+ /**
1088
+ * Is attribute required?
1089
+ */
1090
+ required: boolean;
1091
+ /**
1092
+ * Is attribute an array?
1093
+ */
1094
+ array?: boolean;
1095
+ /**
1096
+ * Attribute creation date in ISO 8601 format.
1097
+ */
1098
+ $createdAt: string;
1099
+ /**
1100
+ * Attribute update date in ISO 8601 format.
1101
+ */
1102
+ $updatedAt: string;
1103
+ /**
1104
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1105
+ */
1106
+ default?: any[];
1107
+ };
1108
+ /**
1109
+ * AttributePolygon
1110
+ */
1111
+ export type AttributePolygon = {
1112
+ /**
1113
+ * Attribute Key.
1114
+ */
1115
+ key: string;
1116
+ /**
1117
+ * Attribute type.
1118
+ */
1119
+ type: string;
1120
+ /**
1121
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1122
+ */
1123
+ status: string;
1124
+ /**
1125
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1126
+ */
1127
+ error: string;
1128
+ /**
1129
+ * Is attribute required?
1130
+ */
1131
+ required: boolean;
1132
+ /**
1133
+ * Is attribute an array?
1134
+ */
1135
+ array?: boolean;
1136
+ /**
1137
+ * Attribute creation date in ISO 8601 format.
1138
+ */
1139
+ $createdAt: string;
1140
+ /**
1141
+ * Attribute update date in ISO 8601 format.
1142
+ */
1143
+ $updatedAt: string;
1144
+ /**
1145
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1146
+ */
1147
+ default?: any[];
1148
+ };
1149
+ /**
1150
+ * Table
1151
+ */
1152
+ export type Table = {
1153
+ /**
1154
+ * Table ID.
1155
+ */
1156
+ $id: string;
1157
+ /**
1158
+ * Table creation date in ISO 8601 format.
1159
+ */
1160
+ $createdAt: string;
1161
+ /**
1162
+ * Table update date in ISO 8601 format.
1163
+ */
1164
+ $updatedAt: string;
1165
+ /**
1166
+ * Table permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1167
+ */
1168
+ $permissions: string[];
1169
+ /**
1170
+ * Database ID.
1171
+ */
1172
+ databaseId: string;
1173
+ /**
1174
+ * Table name.
1175
+ */
1176
+ name: string;
1177
+ /**
1178
+ * Table enabled. Can be 'enabled' or 'disabled'. When disabled, the table is inaccessible to users, but remains accessible to Server SDKs using API keys.
1179
+ */
1180
+ enabled: boolean;
1181
+ /**
1182
+ * Whether row-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
1183
+ */
1184
+ rowSecurity: boolean;
1185
+ /**
1186
+ * Table columns.
1187
+ */
1188
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
1189
+ /**
1190
+ * Table indexes.
1191
+ */
1192
+ indexes: ColumnIndex[];
1193
+ };
1194
+ /**
1195
+ * Columns List
1196
+ */
1197
+ export type ColumnList = {
1198
+ /**
1199
+ * Total number of columns in the given table.
1200
+ */
1201
+ total: number;
1202
+ /**
1203
+ * List of columns.
1204
+ */
1205
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
1206
+ };
1207
+ /**
1208
+ * ColumnString
1209
+ */
1210
+ export type ColumnString = {
1211
+ /**
1212
+ * Column Key.
1213
+ */
1214
+ key: string;
1215
+ /**
1216
+ * Column type.
1217
+ */
1218
+ type: string;
1219
+ /**
1220
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1221
+ */
1222
+ status: string;
1223
+ /**
1224
+ * Error message. Displays error generated on failure of creating or deleting an column.
1225
+ */
1226
+ error: string;
1227
+ /**
1228
+ * Is column required?
1229
+ */
1230
+ required: boolean;
1231
+ /**
1232
+ * Is column an array?
1233
+ */
1234
+ array?: boolean;
1235
+ /**
1236
+ * Column creation date in ISO 8601 format.
1237
+ */
1238
+ $createdAt: string;
1239
+ /**
1240
+ * Column update date in ISO 8601 format.
1241
+ */
1242
+ $updatedAt: string;
1243
+ /**
1244
+ * Column size.
1245
+ */
1246
+ size: number;
1247
+ /**
1248
+ * Default value for column when not provided. Cannot be set when column is required.
1249
+ */
1250
+ default?: string;
1251
+ /**
1252
+ * Defines whether this column is encrypted or not.
1253
+ */
1254
+ encrypt?: boolean;
1255
+ };
1256
+ /**
1257
+ * ColumnInteger
1258
+ */
1259
+ export type ColumnInteger = {
1260
+ /**
1261
+ * Column Key.
1262
+ */
1263
+ key: string;
1264
+ /**
1265
+ * Column type.
1266
+ */
1267
+ type: string;
1268
+ /**
1269
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1270
+ */
1271
+ status: string;
1272
+ /**
1273
+ * Error message. Displays error generated on failure of creating or deleting an column.
1274
+ */
1275
+ error: string;
1276
+ /**
1277
+ * Is column required?
1278
+ */
1279
+ required: boolean;
1280
+ /**
1281
+ * Is column an array?
580
1282
  */
581
1283
  array?: boolean;
582
1284
  /**
583
- * Attribute creation date in ISO 8601 format.
1285
+ * Column creation date in ISO 8601 format.
584
1286
  */
585
1287
  $createdAt: string;
586
1288
  /**
587
- * Attribute update date in ISO 8601 format.
1289
+ * Column update date in ISO 8601 format.
588
1290
  */
589
1291
  $updatedAt: string;
590
1292
  /**
@@ -596,44 +1298,44 @@ declare namespace Models {
596
1298
  */
597
1299
  max?: number;
598
1300
  /**
599
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1301
+ * Default value for column when not provided. Cannot be set when column is required.
600
1302
  */
601
1303
  default?: number;
602
1304
  };
603
1305
  /**
604
- * AttributeFloat
1306
+ * ColumnFloat
605
1307
  */
606
- export type AttributeFloat = {
1308
+ export type ColumnFloat = {
607
1309
  /**
608
- * Attribute Key.
1310
+ * Column Key.
609
1311
  */
610
1312
  key: string;
611
1313
  /**
612
- * Attribute type.
1314
+ * Column type.
613
1315
  */
614
1316
  type: string;
615
1317
  /**
616
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1318
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
617
1319
  */
618
1320
  status: string;
619
1321
  /**
620
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1322
+ * Error message. Displays error generated on failure of creating or deleting an column.
621
1323
  */
622
1324
  error: string;
623
1325
  /**
624
- * Is attribute required?
1326
+ * Is column required?
625
1327
  */
626
1328
  required: boolean;
627
1329
  /**
628
- * Is attribute an array?
1330
+ * Is column an array?
629
1331
  */
630
1332
  array?: boolean;
631
1333
  /**
632
- * Attribute creation date in ISO 8601 format.
1334
+ * Column creation date in ISO 8601 format.
633
1335
  */
634
1336
  $createdAt: string;
635
1337
  /**
636
- * Attribute update date in ISO 8601 format.
1338
+ * Column update date in ISO 8601 format.
637
1339
  */
638
1340
  $updatedAt: string;
639
1341
  /**
@@ -645,85 +1347,85 @@ declare namespace Models {
645
1347
  */
646
1348
  max?: number;
647
1349
  /**
648
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1350
+ * Default value for column when not provided. Cannot be set when column is required.
649
1351
  */
650
1352
  default?: number;
651
1353
  };
652
1354
  /**
653
- * AttributeBoolean
1355
+ * ColumnBoolean
654
1356
  */
655
- export type AttributeBoolean = {
1357
+ export type ColumnBoolean = {
656
1358
  /**
657
- * Attribute Key.
1359
+ * Column Key.
658
1360
  */
659
1361
  key: string;
660
1362
  /**
661
- * Attribute type.
1363
+ * Column type.
662
1364
  */
663
1365
  type: string;
664
1366
  /**
665
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1367
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
666
1368
  */
667
1369
  status: string;
668
1370
  /**
669
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1371
+ * Error message. Displays error generated on failure of creating or deleting an column.
670
1372
  */
671
1373
  error: string;
672
1374
  /**
673
- * Is attribute required?
1375
+ * Is column required?
674
1376
  */
675
1377
  required: boolean;
676
1378
  /**
677
- * Is attribute an array?
1379
+ * Is column an array?
678
1380
  */
679
1381
  array?: boolean;
680
1382
  /**
681
- * Attribute creation date in ISO 8601 format.
1383
+ * Column creation date in ISO 8601 format.
682
1384
  */
683
1385
  $createdAt: string;
684
1386
  /**
685
- * Attribute update date in ISO 8601 format.
1387
+ * Column update date in ISO 8601 format.
686
1388
  */
687
1389
  $updatedAt: string;
688
1390
  /**
689
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1391
+ * Default value for column when not provided. Cannot be set when column is required.
690
1392
  */
691
1393
  default?: boolean;
692
1394
  };
693
1395
  /**
694
- * AttributeEmail
1396
+ * ColumnEmail
695
1397
  */
696
- export type AttributeEmail = {
1398
+ export type ColumnEmail = {
697
1399
  /**
698
- * Attribute Key.
1400
+ * Column Key.
699
1401
  */
700
1402
  key: string;
701
1403
  /**
702
- * Attribute type.
1404
+ * Column type.
703
1405
  */
704
1406
  type: string;
705
1407
  /**
706
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1408
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
707
1409
  */
708
1410
  status: string;
709
1411
  /**
710
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1412
+ * Error message. Displays error generated on failure of creating or deleting an column.
711
1413
  */
712
1414
  error: string;
713
1415
  /**
714
- * Is attribute required?
1416
+ * Is column required?
715
1417
  */
716
1418
  required: boolean;
717
1419
  /**
718
- * Is attribute an array?
1420
+ * Is column an array?
719
1421
  */
720
1422
  array?: boolean;
721
1423
  /**
722
- * Attribute creation date in ISO 8601 format.
1424
+ * Column creation date in ISO 8601 format.
723
1425
  */
724
1426
  $createdAt: string;
725
1427
  /**
726
- * Attribute update date in ISO 8601 format.
1428
+ * Column update date in ISO 8601 format.
727
1429
  */
728
1430
  $updatedAt: string;
729
1431
  /**
@@ -731,44 +1433,44 @@ declare namespace Models {
731
1433
  */
732
1434
  format: string;
733
1435
  /**
734
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1436
+ * Default value for column when not provided. Cannot be set when column is required.
735
1437
  */
736
1438
  default?: string;
737
1439
  };
738
1440
  /**
739
- * AttributeEnum
1441
+ * ColumnEnum
740
1442
  */
741
- export type AttributeEnum = {
1443
+ export type ColumnEnum = {
742
1444
  /**
743
- * Attribute Key.
1445
+ * Column Key.
744
1446
  */
745
1447
  key: string;
746
1448
  /**
747
- * Attribute type.
1449
+ * Column type.
748
1450
  */
749
1451
  type: string;
750
1452
  /**
751
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1453
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
752
1454
  */
753
1455
  status: string;
754
1456
  /**
755
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1457
+ * Error message. Displays error generated on failure of creating or deleting an column.
756
1458
  */
757
1459
  error: string;
758
1460
  /**
759
- * Is attribute required?
1461
+ * Is column required?
760
1462
  */
761
1463
  required: boolean;
762
1464
  /**
763
- * Is attribute an array?
1465
+ * Is column an array?
764
1466
  */
765
1467
  array?: boolean;
766
1468
  /**
767
- * Attribute creation date in ISO 8601 format.
1469
+ * Column creation date in ISO 8601 format.
768
1470
  */
769
1471
  $createdAt: string;
770
1472
  /**
771
- * Attribute update date in ISO 8601 format.
1473
+ * Column update date in ISO 8601 format.
772
1474
  */
773
1475
  $updatedAt: string;
774
1476
  /**
@@ -780,44 +1482,44 @@ declare namespace Models {
780
1482
  */
781
1483
  format: string;
782
1484
  /**
783
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1485
+ * Default value for column when not provided. Cannot be set when column is required.
784
1486
  */
785
1487
  default?: string;
786
1488
  };
787
1489
  /**
788
- * AttributeIP
1490
+ * ColumnIP
789
1491
  */
790
- export type AttributeIp = {
1492
+ export type ColumnIp = {
791
1493
  /**
792
- * Attribute Key.
1494
+ * Column Key.
793
1495
  */
794
1496
  key: string;
795
1497
  /**
796
- * Attribute type.
1498
+ * Column type.
797
1499
  */
798
1500
  type: string;
799
1501
  /**
800
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1502
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
801
1503
  */
802
1504
  status: string;
803
1505
  /**
804
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1506
+ * Error message. Displays error generated on failure of creating or deleting an column.
805
1507
  */
806
1508
  error: string;
807
1509
  /**
808
- * Is attribute required?
1510
+ * Is column required?
809
1511
  */
810
1512
  required: boolean;
811
1513
  /**
812
- * Is attribute an array?
1514
+ * Is column an array?
813
1515
  */
814
1516
  array?: boolean;
815
1517
  /**
816
- * Attribute creation date in ISO 8601 format.
1518
+ * Column creation date in ISO 8601 format.
817
1519
  */
818
1520
  $createdAt: string;
819
1521
  /**
820
- * Attribute update date in ISO 8601 format.
1522
+ * Column update date in ISO 8601 format.
821
1523
  */
822
1524
  $updatedAt: string;
823
1525
  /**
@@ -825,44 +1527,44 @@ declare namespace Models {
825
1527
  */
826
1528
  format: string;
827
1529
  /**
828
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1530
+ * Default value for column when not provided. Cannot be set when column is required.
829
1531
  */
830
1532
  default?: string;
831
1533
  };
832
1534
  /**
833
- * AttributeURL
1535
+ * ColumnURL
834
1536
  */
835
- export type AttributeUrl = {
1537
+ export type ColumnUrl = {
836
1538
  /**
837
- * Attribute Key.
1539
+ * Column Key.
838
1540
  */
839
1541
  key: string;
840
1542
  /**
841
- * Attribute type.
1543
+ * Column type.
842
1544
  */
843
1545
  type: string;
844
1546
  /**
845
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1547
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
846
1548
  */
847
1549
  status: string;
848
1550
  /**
849
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1551
+ * Error message. Displays error generated on failure of creating or deleting an column.
850
1552
  */
851
1553
  error: string;
852
1554
  /**
853
- * Is attribute required?
1555
+ * Is column required?
854
1556
  */
855
1557
  required: boolean;
856
1558
  /**
857
- * Is attribute an array?
1559
+ * Is column an array?
858
1560
  */
859
1561
  array?: boolean;
860
1562
  /**
861
- * Attribute creation date in ISO 8601 format.
1563
+ * Column creation date in ISO 8601 format.
862
1564
  */
863
1565
  $createdAt: string;
864
1566
  /**
865
- * Attribute update date in ISO 8601 format.
1567
+ * Column update date in ISO 8601 format.
866
1568
  */
867
1569
  $updatedAt: string;
868
1570
  /**
@@ -870,44 +1572,44 @@ declare namespace Models {
870
1572
  */
871
1573
  format: string;
872
1574
  /**
873
- * Default value for attribute when not provided. Cannot be set when attribute is required.
1575
+ * Default value for column when not provided. Cannot be set when column is required.
874
1576
  */
875
1577
  default?: string;
876
1578
  };
877
1579
  /**
878
- * AttributeDatetime
1580
+ * ColumnDatetime
879
1581
  */
880
- export type AttributeDatetime = {
1582
+ export type ColumnDatetime = {
881
1583
  /**
882
- * Attribute Key.
1584
+ * Column Key.
883
1585
  */
884
1586
  key: string;
885
1587
  /**
886
- * Attribute type.
1588
+ * Column type.
887
1589
  */
888
1590
  type: string;
889
1591
  /**
890
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1592
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
891
1593
  */
892
1594
  status: string;
893
1595
  /**
894
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1596
+ * Error message. Displays error generated on failure of creating or deleting an column.
895
1597
  */
896
1598
  error: string;
897
1599
  /**
898
- * Is attribute required?
1600
+ * Is column required?
899
1601
  */
900
1602
  required: boolean;
901
1603
  /**
902
- * Is attribute an array?
1604
+ * Is column an array?
903
1605
  */
904
1606
  array?: boolean;
905
1607
  /**
906
- * Attribute creation date in ISO 8601 format.
1608
+ * Column creation date in ISO 8601 format.
907
1609
  */
908
1610
  $createdAt: string;
909
1611
  /**
910
- * Attribute update date in ISO 8601 format.
1612
+ * Column update date in ISO 8601 format.
911
1613
  */
912
1614
  $updatedAt: string;
913
1615
  /**
@@ -915,50 +1617,50 @@ declare namespace Models {
915
1617
  */
916
1618
  format: string;
917
1619
  /**
918
- * Default value for attribute when not provided. Only null is optional
1620
+ * Default value for column when not provided. Only null is optional
919
1621
  */
920
1622
  default?: string;
921
1623
  };
922
1624
  /**
923
- * AttributeRelationship
1625
+ * ColumnRelationship
924
1626
  */
925
- export type AttributeRelationship = {
1627
+ export type ColumnRelationship = {
926
1628
  /**
927
- * Attribute Key.
1629
+ * Column Key.
928
1630
  */
929
1631
  key: string;
930
1632
  /**
931
- * Attribute type.
1633
+ * Column type.
932
1634
  */
933
1635
  type: string;
934
1636
  /**
935
- * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1637
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
936
1638
  */
937
1639
  status: string;
938
1640
  /**
939
- * Error message. Displays error generated on failure of creating or deleting an attribute.
1641
+ * Error message. Displays error generated on failure of creating or deleting an column.
940
1642
  */
941
1643
  error: string;
942
1644
  /**
943
- * Is attribute required?
1645
+ * Is column required?
944
1646
  */
945
1647
  required: boolean;
946
1648
  /**
947
- * Is attribute an array?
1649
+ * Is column an array?
948
1650
  */
949
1651
  array?: boolean;
950
1652
  /**
951
- * Attribute creation date in ISO 8601 format.
1653
+ * Column creation date in ISO 8601 format.
952
1654
  */
953
1655
  $createdAt: string;
954
1656
  /**
955
- * Attribute update date in ISO 8601 format.
1657
+ * Column update date in ISO 8601 format.
956
1658
  */
957
1659
  $updatedAt: string;
958
1660
  /**
959
- * The ID of the related collection.
1661
+ * The ID of the related table.
960
1662
  */
961
- relatedCollection: string;
1663
+ relatedTable: string;
962
1664
  /**
963
1665
  * The type of the relationship.
964
1666
  */
@@ -980,12 +1682,147 @@ declare namespace Models {
980
1682
  */
981
1683
  side: string;
982
1684
  };
1685
+ /**
1686
+ * ColumnPoint
1687
+ */
1688
+ export type ColumnPoint = {
1689
+ /**
1690
+ * Column Key.
1691
+ */
1692
+ key: string;
1693
+ /**
1694
+ * Column type.
1695
+ */
1696
+ type: string;
1697
+ /**
1698
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1699
+ */
1700
+ status: string;
1701
+ /**
1702
+ * Error message. Displays error generated on failure of creating or deleting an column.
1703
+ */
1704
+ error: string;
1705
+ /**
1706
+ * Is column required?
1707
+ */
1708
+ required: boolean;
1709
+ /**
1710
+ * Is column an array?
1711
+ */
1712
+ array?: boolean;
1713
+ /**
1714
+ * Column creation date in ISO 8601 format.
1715
+ */
1716
+ $createdAt: string;
1717
+ /**
1718
+ * Column update date in ISO 8601 format.
1719
+ */
1720
+ $updatedAt: string;
1721
+ /**
1722
+ * Default value for column when not provided. Cannot be set when column is required.
1723
+ */
1724
+ default?: any[];
1725
+ };
1726
+ /**
1727
+ * ColumnLine
1728
+ */
1729
+ export type ColumnLine = {
1730
+ /**
1731
+ * Column Key.
1732
+ */
1733
+ key: string;
1734
+ /**
1735
+ * Column type.
1736
+ */
1737
+ type: string;
1738
+ /**
1739
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1740
+ */
1741
+ status: string;
1742
+ /**
1743
+ * Error message. Displays error generated on failure of creating or deleting an column.
1744
+ */
1745
+ error: string;
1746
+ /**
1747
+ * Is column required?
1748
+ */
1749
+ required: boolean;
1750
+ /**
1751
+ * Is column an array?
1752
+ */
1753
+ array?: boolean;
1754
+ /**
1755
+ * Column creation date in ISO 8601 format.
1756
+ */
1757
+ $createdAt: string;
1758
+ /**
1759
+ * Column update date in ISO 8601 format.
1760
+ */
1761
+ $updatedAt: string;
1762
+ /**
1763
+ * Default value for column when not provided. Cannot be set when column is required.
1764
+ */
1765
+ default?: any[];
1766
+ };
1767
+ /**
1768
+ * ColumnPolygon
1769
+ */
1770
+ export type ColumnPolygon = {
1771
+ /**
1772
+ * Column Key.
1773
+ */
1774
+ key: string;
1775
+ /**
1776
+ * Column type.
1777
+ */
1778
+ type: string;
1779
+ /**
1780
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1781
+ */
1782
+ status: string;
1783
+ /**
1784
+ * Error message. Displays error generated on failure of creating or deleting an column.
1785
+ */
1786
+ error: string;
1787
+ /**
1788
+ * Is column required?
1789
+ */
1790
+ required: boolean;
1791
+ /**
1792
+ * Is column an array?
1793
+ */
1794
+ array?: boolean;
1795
+ /**
1796
+ * Column creation date in ISO 8601 format.
1797
+ */
1798
+ $createdAt: string;
1799
+ /**
1800
+ * Column update date in ISO 8601 format.
1801
+ */
1802
+ $updatedAt: string;
1803
+ /**
1804
+ * Default value for column when not provided. Cannot be set when column is required.
1805
+ */
1806
+ default?: any[];
1807
+ };
983
1808
  /**
984
1809
  * Index
985
1810
  */
986
1811
  export type Index = {
987
1812
  /**
988
- * Index Key.
1813
+ * Index ID.
1814
+ */
1815
+ $id: string;
1816
+ /**
1817
+ * Index creation date in ISO 8601 format.
1818
+ */
1819
+ $createdAt: string;
1820
+ /**
1821
+ * Index update date in ISO 8601 format.
1822
+ */
1823
+ $updatedAt: string;
1824
+ /**
1825
+ * Index key.
989
1826
  */
990
1827
  key: string;
991
1828
  /**
@@ -1012,6 +1849,15 @@ declare namespace Models {
1012
1849
  * Index orders.
1013
1850
  */
1014
1851
  orders?: string[];
1852
+ };
1853
+ /**
1854
+ * Index
1855
+ */
1856
+ export type ColumnIndex = {
1857
+ /**
1858
+ * Index ID.
1859
+ */
1860
+ $id: string;
1015
1861
  /**
1016
1862
  * Index creation date in ISO 8601 format.
1017
1863
  */
@@ -1020,6 +1866,71 @@ declare namespace Models {
1020
1866
  * Index update date in ISO 8601 format.
1021
1867
  */
1022
1868
  $updatedAt: string;
1869
+ /**
1870
+ * Index Key.
1871
+ */
1872
+ key: string;
1873
+ /**
1874
+ * Index type.
1875
+ */
1876
+ type: string;
1877
+ /**
1878
+ * Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1879
+ */
1880
+ status: string;
1881
+ /**
1882
+ * Error message. Displays error generated on failure of creating or deleting an index.
1883
+ */
1884
+ error: string;
1885
+ /**
1886
+ * Index columns.
1887
+ */
1888
+ columns: string[];
1889
+ /**
1890
+ * Index columns length.
1891
+ */
1892
+ lengths: number[];
1893
+ /**
1894
+ * Index orders.
1895
+ */
1896
+ orders?: string[];
1897
+ };
1898
+ /**
1899
+ * Row
1900
+ */
1901
+ export type Row = {
1902
+ /**
1903
+ * Row ID.
1904
+ */
1905
+ $id: string;
1906
+ /**
1907
+ * Row automatically incrementing ID.
1908
+ */
1909
+ $sequence: number;
1910
+ /**
1911
+ * Table ID.
1912
+ */
1913
+ $tableId: string;
1914
+ /**
1915
+ * Database ID.
1916
+ */
1917
+ $databaseId: string;
1918
+ /**
1919
+ * Row creation date in ISO 8601 format.
1920
+ */
1921
+ $createdAt: string;
1922
+ /**
1923
+ * Row update date in ISO 8601 format.
1924
+ */
1925
+ $updatedAt: string;
1926
+ /**
1927
+ * Row permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1928
+ */
1929
+ $permissions: string[];
1930
+ };
1931
+ export type DefaultRow = Row & {
1932
+ [key: string]: any;
1933
+ [__default]: true;
1023
1934
  };
1024
1935
  /**
1025
1936
  * Document
@@ -1058,11 +1969,6 @@ declare namespace Models {
1058
1969
  [key: string]: any;
1059
1970
  [__default]: true;
1060
1971
  };
1061
- export type DataWithoutDocumentKeys = {
1062
- [K in string]: any;
1063
- } & {
1064
- [K in keyof Document]?: never;
1065
- };
1066
1972
  /**
1067
1973
  * Log
1068
1974
  */
@@ -1344,11 +2250,6 @@ declare namespace Models {
1344
2250
  [key: string]: any;
1345
2251
  [__default]: true;
1346
2252
  };
1347
- export type DataWithoutPreferencesKeys = {
1348
- [K in string]: any;
1349
- } & {
1350
- [K in keyof Preferences]?: never;
1351
- };
1352
2253
  /**
1353
2254
  * Session
1354
2255
  */
@@ -1570,7 +2471,7 @@ declare namespace Models {
1570
2471
  */
1571
2472
  country: string;
1572
2473
  /**
1573
- * 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.
2474
+ * 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.
1574
2475
  */
1575
2476
  continentCode: string;
1576
2477
  /**
@@ -1845,7 +2746,7 @@ declare namespace Models {
1845
2746
  */
1846
2747
  enabled: boolean;
1847
2748
  /**
1848
- * 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.
2749
+ * 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.
1849
2750
  */
1850
2751
  live: boolean;
1851
2752
  /**
@@ -1857,7 +2758,7 @@ declare namespace Models {
1857
2758
  */
1858
2759
  framework: string;
1859
2760
  /**
1860
- * Site&#039;s active deployment ID.
2761
+ * Site's active deployment ID.
1861
2762
  */
1862
2763
  deploymentId: string;
1863
2764
  /**
@@ -1873,7 +2774,7 @@ declare namespace Models {
1873
2774
  */
1874
2775
  deploymentScreenshotDark: string;
1875
2776
  /**
1876
- * Site&#039;s latest deployment ID.
2777
+ * Site's latest deployment ID.
1877
2778
  */
1878
2779
  latestDeploymentId: string;
1879
2780
  /**
@@ -1881,7 +2782,7 @@ declare namespace Models {
1881
2782
  */
1882
2783
  latestDeploymentCreatedAt: string;
1883
2784
  /**
1884
- * Status of latest deployment. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
2785
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
1885
2786
  */
1886
2787
  latestDeploymentStatus: string;
1887
2788
  /**
@@ -1970,7 +2871,7 @@ declare namespace Models {
1970
2871
  */
1971
2872
  enabled: boolean;
1972
2873
  /**
1973
- * 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.
2874
+ * 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.
1974
2875
  */
1975
2876
  live: boolean;
1976
2877
  /**
@@ -1982,7 +2883,7 @@ declare namespace Models {
1982
2883
  */
1983
2884
  runtime: string;
1984
2885
  /**
1985
- * Function&#039;s active deployment ID.
2886
+ * Function's active deployment ID.
1986
2887
  */
1987
2888
  deploymentId: string;
1988
2889
  /**
@@ -1990,7 +2891,7 @@ declare namespace Models {
1990
2891
  */
1991
2892
  deploymentCreatedAt: string;
1992
2893
  /**
1993
- * Function&#039;s latest deployment ID.
2894
+ * Function's latest deployment ID.
1994
2895
  */
1995
2896
  latestDeploymentId: string;
1996
2897
  /**
@@ -1998,7 +2899,7 @@ declare namespace Models {
1998
2899
  */
1999
2900
  latestDeploymentCreatedAt: string;
2000
2901
  /**
2001
- * Status of latest deployment. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
2902
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
2002
2903
  */
2003
2904
  latestDeploymentStatus: string;
2004
2905
  /**
@@ -2206,7 +3107,7 @@ declare namespace Models {
2206
3107
  */
2207
3108
  screenshotDark: string;
2208
3109
  /**
2209
- * The deployment status. Possible values are &quot;waiting&quot;, &quot;processing&quot;, &quot;building&quot;, &quot;ready&quot;, and &quot;failed&quot;.
3110
+ * The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".
2210
3111
  */
2211
3112
  status: string;
2212
3113
  /**
@@ -2271,7 +3172,7 @@ declare namespace Models {
2271
3172
  */
2272
3173
  $createdAt: string;
2273
3174
  /**
2274
- * Execution upate date in ISO 8601 format.
3175
+ * Execution update date in ISO 8601 format.
2275
3176
  */
2276
3177
  $updatedAt: string;
2277
3178
  /**
@@ -2282,6 +3183,10 @@ declare namespace Models {
2282
3183
  * Function ID.
2283
3184
  */
2284
3185
  functionId: string;
3186
+ /**
3187
+ * Function's deployment ID used to create the execution.
3188
+ */
3189
+ deploymentId: string;
2285
3190
  /**
2286
3191
  * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
2287
3192
  */
@@ -2360,11 +3265,11 @@ declare namespace Models {
2360
3265
  */
2361
3266
  secret: boolean;
2362
3267
  /**
2363
- * Service to which the variable belongs. Possible values are &quot;project&quot;, &quot;function&quot;
3268
+ * Service to which the variable belongs. Possible values are "project", "function"
2364
3269
  */
2365
3270
  resourceType: string;
2366
3271
  /**
2367
- * 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.
3272
+ * 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.
2368
3273
  */
2369
3274
  resourceId: string;
2370
3275
  };