@marcoappio/marco-config 4.0.9 → 4.0.11

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 (34) hide show
  1. package/dist/appwrite/appwrite.d.ts +1215 -1017
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +11 -375
  4. package/dist/appwrite/appwrite.test.js +75 -1
  5. package/dist/appwrite/commands.d.ts +167 -124
  6. package/dist/appwrite/commands.d.ts.map +1 -1
  7. package/dist/appwrite/commands.js +70 -68
  8. package/dist/appwrite/commands.test.js +30 -17
  9. package/dist/appwrite/functions.d.ts +122 -122
  10. package/dist/appwrite/index.d.ts +2 -2
  11. package/dist/appwrite/index.d.ts.map +1 -1
  12. package/dist/appwrite/index.js +2 -2
  13. package/dist/appwrite/tableContract/identity.d.ts +442 -0
  14. package/dist/appwrite/tableContract/identity.d.ts.map +1 -0
  15. package/dist/appwrite/tableContract/identity.js +158 -0
  16. package/dist/appwrite/tableContract/index.d.ts +2194 -0
  17. package/dist/appwrite/tableContract/index.d.ts.map +1 -0
  18. package/dist/appwrite/tableContract/index.js +77 -0
  19. package/dist/appwrite/tableContract/index.test.d.ts +2 -0
  20. package/dist/appwrite/tableContract/index.test.d.ts.map +1 -0
  21. package/dist/appwrite/tableContract/index.test.js +48 -0
  22. package/dist/appwrite/tableContract/mailbox.d.ts +622 -0
  23. package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -0
  24. package/dist/appwrite/tableContract/mailbox.js +191 -0
  25. package/dist/appwrite/tableContract/operational.d.ts +522 -0
  26. package/dist/appwrite/tableContract/operational.d.ts.map +1 -0
  27. package/dist/appwrite/tableContract/operational.js +191 -0
  28. package/dist/appwrite/tableContract/shared.d.ts +145 -0
  29. package/dist/appwrite/tableContract/shared.d.ts.map +1 -0
  30. package/dist/appwrite/tableContract/shared.js +89 -0
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,622 @@
1
+ import * as v from 'valibot';
2
+ export declare const threadAliasesTable: {
3
+ readonly fields: {
4
+ readonly aliasAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
5
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
6
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
7
+ readonly alias: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
8
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
9
+ }, undefined>, v.TransformAction<{
10
+ $id: string;
11
+ }, string>]>], undefined>>;
12
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
13
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
14
+ }, undefined>, v.TransformAction<{
15
+ $id: string;
16
+ }, string>]>], undefined>>;
17
+ };
18
+ readonly id: "thread_aliases";
19
+ readonly indexes: readonly [{
20
+ readonly attributes: readonly ["threadAssignmentKey", "aliasAssignmentKey"];
21
+ readonly name: "assignment_thread_alias_unique";
22
+ readonly type: "unique";
23
+ }, {
24
+ readonly attributes: readonly ["aliasAssignmentKey", "latestMessageAt"];
25
+ readonly name: "assignment_alias_latest";
26
+ readonly type: "key";
27
+ }];
28
+ readonly key: "threadAliases";
29
+ readonly name: "Thread aliases";
30
+ };
31
+ export declare const messageLocationsTable: {
32
+ readonly dataCheck: (location: unknown) => boolean;
33
+ readonly fields: {
34
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
35
+ readonly flagged: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
36
+ readonly labelAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
37
+ readonly messageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
38
+ readonly seen: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
39
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
40
+ readonly uid: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>>;
41
+ readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>>;
42
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
43
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
44
+ }, undefined>, v.TransformAction<{
45
+ $id: string;
46
+ }, string>]>], undefined>>;
47
+ readonly label: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
48
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
49
+ }, undefined>, v.TransformAction<{
50
+ $id: string;
51
+ }, string>]>], undefined>>;
52
+ readonly message: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
53
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
54
+ }, undefined>, v.TransformAction<{
55
+ $id: string;
56
+ }, string>]>], undefined>>;
57
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
58
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
59
+ }, undefined>, v.TransformAction<{
60
+ $id: string;
61
+ }, string>]>], undefined>>;
62
+ };
63
+ readonly id: "message_locations";
64
+ readonly indexes: readonly [{
65
+ readonly attributes: readonly ["accountAssignmentKey", "labelAssignmentKey", "uidValidity", "uid"];
66
+ readonly name: "assignment_account_label_uid";
67
+ readonly type: "key";
68
+ }, {
69
+ readonly attributes: readonly ["accountAssignmentKey", "threadAssignmentKey"];
70
+ readonly name: "assignment_account_thread";
71
+ readonly type: "key";
72
+ }, {
73
+ readonly attributes: readonly ["threadAssignmentKey", "labelAssignmentKey", "messageAt"];
74
+ readonly name: "assignment_thread_label_latest";
75
+ readonly type: "key";
76
+ }];
77
+ readonly key: "messageLocations";
78
+ readonly name: "Message locations";
79
+ };
80
+ export declare const contactsTable: {
81
+ readonly fields: {
82
+ readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
83
+ readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
84
+ readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
85
+ readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
86
+ readonly profileAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
87
+ readonly searchText: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
88
+ readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
89
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
90
+ }, undefined>, v.TransformAction<{
91
+ $id: string;
92
+ }, string>]>], undefined>>;
93
+ };
94
+ readonly id: "contacts";
95
+ readonly indexes: readonly [{
96
+ readonly attributes: readonly ["profileAssignmentKey", "lastContactedAt"];
97
+ readonly name: "assignment_profile_last_contacted";
98
+ readonly type: "key";
99
+ }, {
100
+ readonly attributes: readonly ["profileAssignmentKey", "normalisedAddress"];
101
+ readonly name: "assignment_profile_address_unique";
102
+ readonly type: "unique";
103
+ }, {
104
+ readonly attributes: readonly ["searchText"];
105
+ readonly name: "search";
106
+ readonly type: "fulltext";
107
+ }];
108
+ readonly key: "contacts";
109
+ readonly name: "Contacts";
110
+ };
111
+ export declare const draftsTable: {
112
+ readonly fields: {
113
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
114
+ readonly type: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["COMPOSE", "REPLY", "FORWARD"], undefined>>;
115
+ readonly envelope: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
116
+ readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
117
+ readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
118
+ readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
119
+ readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
120
+ readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
121
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
122
+ readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
123
+ readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
124
+ readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
125
+ readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
126
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
127
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
128
+ }, undefined>, v.TransformAction<{
129
+ $id: string;
130
+ }, string>]>], undefined>>;
131
+ readonly fromAlias: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
132
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
133
+ }, undefined>, v.TransformAction<{
134
+ $id: string;
135
+ }, string>]>], undefined>, undefined>>;
136
+ readonly referencedMessage: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
137
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
138
+ }, undefined>, v.TransformAction<{
139
+ $id: string;
140
+ }, string>]>], undefined>, undefined>>;
141
+ };
142
+ readonly id: "drafts";
143
+ readonly indexes: readonly [{
144
+ readonly attributes: readonly ["accountAssignmentKey"];
145
+ readonly name: "assignment_account";
146
+ readonly type: "key";
147
+ }, {
148
+ readonly attributes: readonly ["accountAssignmentKey", "status"];
149
+ readonly name: "assignment_account_status";
150
+ readonly type: "key";
151
+ }, {
152
+ readonly attributes: readonly ["scheduledAt"];
153
+ readonly name: "scheduled";
154
+ readonly type: "key";
155
+ }];
156
+ readonly key: "drafts";
157
+ readonly name: "Drafts";
158
+ };
159
+ export declare const threadsTable: {
160
+ readonly fields: {
161
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
162
+ readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
163
+ readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
164
+ readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
165
+ readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>>;
166
+ readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
167
+ readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
168
+ readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
169
+ readonly labelIds: import("./shared").AppwriteColumnSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
170
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
171
+ readonly latestMessageId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
172
+ readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
173
+ readonly hasAttachments: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
174
+ readonly unseenLocationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
175
+ readonly flaggedLocationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
176
+ readonly seen: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
177
+ readonly flagged: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
178
+ readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
179
+ readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
180
+ readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
181
+ readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
182
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
183
+ readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
184
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
185
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
186
+ }, undefined>, v.TransformAction<{
187
+ $id: string;
188
+ }, string>]>], undefined>>;
189
+ };
190
+ readonly id: "threads";
191
+ readonly indexes: readonly [{
192
+ readonly attributes: readonly ["accountAssignmentKey", "providerId"];
193
+ readonly name: "assignment_account_provider_unique";
194
+ readonly type: "unique";
195
+ }, {
196
+ readonly attributes: readonly ["accountAssignmentKey", "latestMessageAt"];
197
+ readonly name: "assignment_account_latest";
198
+ readonly type: "key";
199
+ }, {
200
+ readonly attributes: readonly ["accountAssignmentKey", "seen", "latestMessageAt"];
201
+ readonly name: "assignment_account_seen_latest";
202
+ readonly type: "key";
203
+ }, {
204
+ readonly attributes: readonly ["accountAssignmentKey", "flagged", "latestMessageAt"];
205
+ readonly name: "assignment_account_flagged_latest";
206
+ readonly type: "key";
207
+ }, {
208
+ readonly attributes: readonly ["accountAssignmentKey", "snoozedUntil", "latestMessageAt"];
209
+ readonly name: "assignment_account_snoozed_latest";
210
+ readonly type: "key";
211
+ }, {
212
+ readonly attributes: readonly ["snoozedUntil"];
213
+ readonly name: "snoozed_due";
214
+ readonly type: "key";
215
+ }, {
216
+ readonly attributes: readonly ["accountAssignmentKey", "archived", "latestMessageAt"];
217
+ readonly name: "assignment_account_archived_latest";
218
+ readonly type: "key";
219
+ }, {
220
+ readonly attributes: readonly ["accountAssignmentKey", "spam", "latestMessageAt"];
221
+ readonly name: "assignment_account_spam_latest";
222
+ readonly type: "key";
223
+ }, {
224
+ readonly attributes: readonly ["accountAssignmentKey", "trashed", "latestMessageAt"];
225
+ readonly name: "assignment_account_trashed_latest";
226
+ readonly type: "key";
227
+ }, {
228
+ readonly attributes: readonly ["searchText"];
229
+ readonly name: "search";
230
+ readonly type: "fulltext";
231
+ }];
232
+ readonly key: "threads";
233
+ readonly name: "Threads";
234
+ };
235
+ export declare const threadLabelsTable: {
236
+ readonly fields: {
237
+ readonly labelAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
238
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
239
+ readonly locationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
240
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
241
+ readonly label: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
242
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
243
+ }, undefined>, v.TransformAction<{
244
+ $id: string;
245
+ }, string>]>], undefined>>;
246
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
247
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
248
+ }, undefined>, v.TransformAction<{
249
+ $id: string;
250
+ }, string>]>], undefined>>;
251
+ };
252
+ readonly id: "thread_labels";
253
+ readonly indexes: readonly [{
254
+ readonly attributes: readonly ["threadAssignmentKey", "labelAssignmentKey"];
255
+ readonly name: "assignment_thread_label_unique";
256
+ readonly type: "unique";
257
+ }, {
258
+ readonly attributes: readonly ["labelAssignmentKey", "latestMessageAt"];
259
+ readonly name: "assignment_label_latest";
260
+ readonly type: "key";
261
+ }];
262
+ readonly key: "threadLabels";
263
+ readonly name: "Thread labels";
264
+ };
265
+ export declare const messagesTable: {
266
+ readonly fields: {
267
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
268
+ readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
269
+ readonly rfcMessageId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
270
+ readonly sender: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
271
+ readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
272
+ readonly recipients: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
273
+ readonly sentAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
274
+ readonly receivedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
275
+ readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
276
+ readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
277
+ readonly htmlFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
278
+ readonly rawFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
279
+ readonly size: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
280
+ readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
281
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
282
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
283
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
284
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
285
+ }, undefined>, v.TransformAction<{
286
+ $id: string;
287
+ }, string>]>], undefined>>;
288
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
289
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
290
+ }, undefined>, v.TransformAction<{
291
+ $id: string;
292
+ }, string>]>], undefined>>;
293
+ };
294
+ readonly id: "messages";
295
+ readonly indexes: readonly [{
296
+ readonly attributes: readonly ["threadAssignmentKey", "sentAt"];
297
+ readonly name: "assignment_thread_sent";
298
+ readonly type: "key";
299
+ }, {
300
+ readonly attributes: readonly ["accountAssignmentKey", "providerId"];
301
+ readonly name: "assignment_account_provider_unique";
302
+ readonly type: "unique";
303
+ }, {
304
+ readonly attributes: readonly ["accountAssignmentKey", "rfcMessageId"];
305
+ readonly name: "assignment_account_rfc_message";
306
+ readonly type: "key";
307
+ }];
308
+ readonly key: "messages";
309
+ readonly name: "Messages";
310
+ };
311
+ export declare const mailboxTableInputs: {
312
+ readonly contacts: {
313
+ readonly fields: {
314
+ readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
315
+ readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
316
+ readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
317
+ readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
318
+ readonly profileAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
319
+ readonly searchText: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
320
+ readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
321
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
322
+ }, undefined>, v.TransformAction<{
323
+ $id: string;
324
+ }, string>]>], undefined>>;
325
+ };
326
+ readonly id: "contacts";
327
+ readonly indexes: readonly [{
328
+ readonly attributes: readonly ["profileAssignmentKey", "lastContactedAt"];
329
+ readonly name: "assignment_profile_last_contacted";
330
+ readonly type: "key";
331
+ }, {
332
+ readonly attributes: readonly ["profileAssignmentKey", "normalisedAddress"];
333
+ readonly name: "assignment_profile_address_unique";
334
+ readonly type: "unique";
335
+ }, {
336
+ readonly attributes: readonly ["searchText"];
337
+ readonly name: "search";
338
+ readonly type: "fulltext";
339
+ }];
340
+ readonly key: "contacts";
341
+ readonly name: "Contacts";
342
+ };
343
+ readonly drafts: {
344
+ readonly fields: {
345
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
346
+ readonly type: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["COMPOSE", "REPLY", "FORWARD"], undefined>>;
347
+ readonly envelope: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
348
+ readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
349
+ readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
350
+ readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
351
+ readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
352
+ readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
353
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
354
+ readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
355
+ readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
356
+ readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
357
+ readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
358
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
359
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
360
+ }, undefined>, v.TransformAction<{
361
+ $id: string;
362
+ }, string>]>], undefined>>;
363
+ readonly fromAlias: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
364
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
365
+ }, undefined>, v.TransformAction<{
366
+ $id: string;
367
+ }, string>]>], undefined>, undefined>>;
368
+ readonly referencedMessage: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
369
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
370
+ }, undefined>, v.TransformAction<{
371
+ $id: string;
372
+ }, string>]>], undefined>, undefined>>;
373
+ };
374
+ readonly id: "drafts";
375
+ readonly indexes: readonly [{
376
+ readonly attributes: readonly ["accountAssignmentKey"];
377
+ readonly name: "assignment_account";
378
+ readonly type: "key";
379
+ }, {
380
+ readonly attributes: readonly ["accountAssignmentKey", "status"];
381
+ readonly name: "assignment_account_status";
382
+ readonly type: "key";
383
+ }, {
384
+ readonly attributes: readonly ["scheduledAt"];
385
+ readonly name: "scheduled";
386
+ readonly type: "key";
387
+ }];
388
+ readonly key: "drafts";
389
+ readonly name: "Drafts";
390
+ };
391
+ readonly messageLocations: {
392
+ readonly dataCheck: (location: unknown) => boolean;
393
+ readonly fields: {
394
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
395
+ readonly flagged: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
396
+ readonly labelAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
397
+ readonly messageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
398
+ readonly seen: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
399
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
400
+ readonly uid: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>>;
401
+ readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>>;
402
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
403
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
404
+ }, undefined>, v.TransformAction<{
405
+ $id: string;
406
+ }, string>]>], undefined>>;
407
+ readonly label: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
408
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
409
+ }, undefined>, v.TransformAction<{
410
+ $id: string;
411
+ }, string>]>], undefined>>;
412
+ readonly message: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
413
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
414
+ }, undefined>, v.TransformAction<{
415
+ $id: string;
416
+ }, string>]>], undefined>>;
417
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
418
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
419
+ }, undefined>, v.TransformAction<{
420
+ $id: string;
421
+ }, string>]>], undefined>>;
422
+ };
423
+ readonly id: "message_locations";
424
+ readonly indexes: readonly [{
425
+ readonly attributes: readonly ["accountAssignmentKey", "labelAssignmentKey", "uidValidity", "uid"];
426
+ readonly name: "assignment_account_label_uid";
427
+ readonly type: "key";
428
+ }, {
429
+ readonly attributes: readonly ["accountAssignmentKey", "threadAssignmentKey"];
430
+ readonly name: "assignment_account_thread";
431
+ readonly type: "key";
432
+ }, {
433
+ readonly attributes: readonly ["threadAssignmentKey", "labelAssignmentKey", "messageAt"];
434
+ readonly name: "assignment_thread_label_latest";
435
+ readonly type: "key";
436
+ }];
437
+ readonly key: "messageLocations";
438
+ readonly name: "Message locations";
439
+ };
440
+ readonly messages: {
441
+ readonly fields: {
442
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
443
+ readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
444
+ readonly rfcMessageId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
445
+ readonly sender: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
446
+ readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
447
+ readonly recipients: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
448
+ readonly sentAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
449
+ readonly receivedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
450
+ readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
451
+ readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
452
+ readonly htmlFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
453
+ readonly rawFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
454
+ readonly size: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
455
+ readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
456
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
457
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
458
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
459
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
460
+ }, undefined>, v.TransformAction<{
461
+ $id: string;
462
+ }, string>]>], undefined>>;
463
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
464
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
465
+ }, undefined>, v.TransformAction<{
466
+ $id: string;
467
+ }, string>]>], undefined>>;
468
+ };
469
+ readonly id: "messages";
470
+ readonly indexes: readonly [{
471
+ readonly attributes: readonly ["threadAssignmentKey", "sentAt"];
472
+ readonly name: "assignment_thread_sent";
473
+ readonly type: "key";
474
+ }, {
475
+ readonly attributes: readonly ["accountAssignmentKey", "providerId"];
476
+ readonly name: "assignment_account_provider_unique";
477
+ readonly type: "unique";
478
+ }, {
479
+ readonly attributes: readonly ["accountAssignmentKey", "rfcMessageId"];
480
+ readonly name: "assignment_account_rfc_message";
481
+ readonly type: "key";
482
+ }];
483
+ readonly key: "messages";
484
+ readonly name: "Messages";
485
+ };
486
+ readonly threadAliases: {
487
+ readonly fields: {
488
+ readonly aliasAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
489
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
490
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
491
+ readonly alias: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
492
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
493
+ }, undefined>, v.TransformAction<{
494
+ $id: string;
495
+ }, string>]>], undefined>>;
496
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
497
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
498
+ }, undefined>, v.TransformAction<{
499
+ $id: string;
500
+ }, string>]>], undefined>>;
501
+ };
502
+ readonly id: "thread_aliases";
503
+ readonly indexes: readonly [{
504
+ readonly attributes: readonly ["threadAssignmentKey", "aliasAssignmentKey"];
505
+ readonly name: "assignment_thread_alias_unique";
506
+ readonly type: "unique";
507
+ }, {
508
+ readonly attributes: readonly ["aliasAssignmentKey", "latestMessageAt"];
509
+ readonly name: "assignment_alias_latest";
510
+ readonly type: "key";
511
+ }];
512
+ readonly key: "threadAliases";
513
+ readonly name: "Thread aliases";
514
+ };
515
+ readonly threadLabels: {
516
+ readonly fields: {
517
+ readonly labelAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
518
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
519
+ readonly locationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
520
+ readonly threadAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
521
+ readonly label: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
522
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
523
+ }, undefined>, v.TransformAction<{
524
+ $id: string;
525
+ }, string>]>], undefined>>;
526
+ readonly thread: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
527
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
528
+ }, undefined>, v.TransformAction<{
529
+ $id: string;
530
+ }, string>]>], undefined>>;
531
+ };
532
+ readonly id: "thread_labels";
533
+ readonly indexes: readonly [{
534
+ readonly attributes: readonly ["threadAssignmentKey", "labelAssignmentKey"];
535
+ readonly name: "assignment_thread_label_unique";
536
+ readonly type: "unique";
537
+ }, {
538
+ readonly attributes: readonly ["labelAssignmentKey", "latestMessageAt"];
539
+ readonly name: "assignment_label_latest";
540
+ readonly type: "key";
541
+ }];
542
+ readonly key: "threadLabels";
543
+ readonly name: "Thread labels";
544
+ };
545
+ readonly threads: {
546
+ readonly fields: {
547
+ readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
548
+ readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
549
+ readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
550
+ readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
551
+ readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>>;
552
+ readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
553
+ readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
554
+ readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
555
+ readonly labelIds: import("./shared").AppwriteColumnSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
556
+ readonly latestMessageAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
557
+ readonly latestMessageId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
558
+ readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
559
+ readonly hasAttachments: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
560
+ readonly unseenLocationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
561
+ readonly flaggedLocationCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
562
+ readonly seen: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
563
+ readonly flagged: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
564
+ readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
565
+ readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
566
+ readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
567
+ readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
568
+ readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
569
+ readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
570
+ readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
571
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
572
+ }, undefined>, v.TransformAction<{
573
+ $id: string;
574
+ }, string>]>], undefined>>;
575
+ };
576
+ readonly id: "threads";
577
+ readonly indexes: readonly [{
578
+ readonly attributes: readonly ["accountAssignmentKey", "providerId"];
579
+ readonly name: "assignment_account_provider_unique";
580
+ readonly type: "unique";
581
+ }, {
582
+ readonly attributes: readonly ["accountAssignmentKey", "latestMessageAt"];
583
+ readonly name: "assignment_account_latest";
584
+ readonly type: "key";
585
+ }, {
586
+ readonly attributes: readonly ["accountAssignmentKey", "seen", "latestMessageAt"];
587
+ readonly name: "assignment_account_seen_latest";
588
+ readonly type: "key";
589
+ }, {
590
+ readonly attributes: readonly ["accountAssignmentKey", "flagged", "latestMessageAt"];
591
+ readonly name: "assignment_account_flagged_latest";
592
+ readonly type: "key";
593
+ }, {
594
+ readonly attributes: readonly ["accountAssignmentKey", "snoozedUntil", "latestMessageAt"];
595
+ readonly name: "assignment_account_snoozed_latest";
596
+ readonly type: "key";
597
+ }, {
598
+ readonly attributes: readonly ["snoozedUntil"];
599
+ readonly name: "snoozed_due";
600
+ readonly type: "key";
601
+ }, {
602
+ readonly attributes: readonly ["accountAssignmentKey", "archived", "latestMessageAt"];
603
+ readonly name: "assignment_account_archived_latest";
604
+ readonly type: "key";
605
+ }, {
606
+ readonly attributes: readonly ["accountAssignmentKey", "spam", "latestMessageAt"];
607
+ readonly name: "assignment_account_spam_latest";
608
+ readonly type: "key";
609
+ }, {
610
+ readonly attributes: readonly ["accountAssignmentKey", "trashed", "latestMessageAt"];
611
+ readonly name: "assignment_account_trashed_latest";
612
+ readonly type: "key";
613
+ }, {
614
+ readonly attributes: readonly ["searchText"];
615
+ readonly name: "search";
616
+ readonly type: "fulltext";
617
+ }];
618
+ readonly key: "threads";
619
+ readonly name: "Threads";
620
+ };
621
+ };
622
+ //# sourceMappingURL=mailbox.d.ts.map