@marcoappio/marco-config 2.0.585 → 2.0.587
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.
- package/dist/appwrite/appwrite.d.ts +75 -16
- package/dist/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +36 -11
- package/dist/appwrite/appwrite.test.js +49 -26
- package/dist/appwrite/index.d.ts +1 -1
- package/dist/appwrite/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/index.d.ts +7 -7
- package/dist/schemas/mutators/mutatorSchemas.d.ts +7 -7
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +7 -7
- package/dist/utils/labels/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,8 +12,23 @@ declare const draftEnvelopeSchema: v.SchemaWithPipe<readonly [v.StringSchema<und
|
|
|
12
12
|
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
13
13
|
readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
14
14
|
}, undefined>]>;
|
|
15
|
+
declare const messageAttachmentSchema: v.LooseObjectSchema<{
|
|
16
|
+
readonly fileId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
17
|
+
readonly isAttachment: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
19
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
+
readonly partNumber: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
21
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
declare const messageRecipientSchema: v.StrictObjectSchema<{
|
|
24
|
+
readonly emailAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
|
|
25
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
27
|
+
}, undefined>;
|
|
15
28
|
export type AppwriteDraftAttachment = ReadonlyDeep<v.InferOutput<typeof draftAttachmentSchema>>;
|
|
16
29
|
export type AppwriteDraftEnvelope = ReadonlyDeep<v.InferOutput<typeof draftEnvelopeSchema>>;
|
|
30
|
+
export type AppwriteMessageAttachment = ReadonlyDeep<v.InferOutput<typeof messageAttachmentSchema>>;
|
|
31
|
+
export type AppwriteMessageRecipient = ReadonlyDeep<v.InferOutput<typeof messageRecipientSchema>>;
|
|
17
32
|
declare const rowSchemas: {
|
|
18
33
|
readonly accounts: v.StrictObjectSchema<{
|
|
19
34
|
readonly colour: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
@@ -184,16 +199,18 @@ declare const rowSchemas: {
|
|
|
184
199
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
185
200
|
readonly attachmentMetadata: v.StringSchema<undefined>;
|
|
186
201
|
readonly htmlFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
187
|
-
readonly preview: v.StringSchema<undefined>;
|
|
202
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
188
203
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
189
204
|
readonly rawFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
190
205
|
readonly receivedAt: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
191
|
-
readonly recipients: v.StringSchema<undefined>;
|
|
206
|
+
readonly recipients: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
192
207
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
193
208
|
readonly rfcMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
194
|
-
readonly sender: v.StringSchema<undefined>;
|
|
209
|
+
readonly sender: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
210
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
195
211
|
readonly sentAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
196
212
|
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
213
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
197
214
|
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
198
215
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
199
216
|
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -241,6 +258,21 @@ declare const rowSchemas: {
|
|
|
241
258
|
readonly $tableId: v.LiteralSchema<"saved_views", undefined>;
|
|
242
259
|
readonly $updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
243
260
|
}, undefined>;
|
|
261
|
+
readonly threadLabels: v.StrictObjectSchema<{
|
|
262
|
+
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
263
|
+
readonly labelId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
264
|
+
readonly latestMessageAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
265
|
+
readonly locationCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
266
|
+
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
267
|
+
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
268
|
+
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
269
|
+
readonly $databaseId: v.LiteralSchema<"marco", undefined>;
|
|
270
|
+
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
|
|
271
|
+
readonly $permissions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
272
|
+
readonly $sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
273
|
+
readonly $tableId: v.LiteralSchema<"thread_labels", undefined>;
|
|
274
|
+
readonly $updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
275
|
+
}, undefined>;
|
|
244
276
|
readonly threads: v.StrictObjectSchema<{
|
|
245
277
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
246
278
|
readonly archived: v.BooleanSchema<undefined>;
|
|
@@ -251,11 +283,11 @@ declare const rowSchemas: {
|
|
|
251
283
|
readonly latestMessageAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
252
284
|
readonly latestMessageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
253
285
|
readonly messageCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
254
|
-
readonly participants: v.StringSchema<undefined>;
|
|
255
|
-
readonly preview: v.StringSchema<undefined>;
|
|
286
|
+
readonly participants: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
287
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
256
288
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
257
289
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
258
|
-
readonly searchText: v.StringSchema<undefined>;
|
|
290
|
+
readonly searchText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
259
291
|
readonly seen: v.BooleanSchema<undefined>;
|
|
260
292
|
readonly senderEmail: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;
|
|
261
293
|
readonly senderName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -292,7 +324,6 @@ declare const rowSchemas: {
|
|
|
292
324
|
};
|
|
293
325
|
export declare const appwrite: {
|
|
294
326
|
readonly decodedSchemas: {
|
|
295
|
-
readonly attachmentMetadata: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.UnknownSchema, undefined>]>;
|
|
296
327
|
readonly commandPayload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
|
|
297
328
|
readonly draftAttachments: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.StrictObjectSchema<{
|
|
298
329
|
readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
|
|
@@ -307,9 +338,19 @@ export declare const appwrite: {
|
|
|
307
338
|
readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
308
339
|
}, undefined>]>;
|
|
309
340
|
readonly jobPayload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
|
|
310
|
-
readonly
|
|
311
|
-
|
|
312
|
-
|
|
341
|
+
readonly messageAttachments: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.LooseObjectSchema<{
|
|
342
|
+
readonly fileId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
343
|
+
readonly isAttachment: v.BooleanSchema<undefined>;
|
|
344
|
+
readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
345
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
346
|
+
readonly partNumber: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
347
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
348
|
+
}, undefined>, undefined>]>;
|
|
349
|
+
readonly messageRecipients: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.StrictObjectSchema<{
|
|
350
|
+
readonly emailAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
|
|
351
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
352
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
353
|
+
}, undefined>, undefined>]>;
|
|
313
354
|
};
|
|
314
355
|
readonly ids: {
|
|
315
356
|
readonly bucket: "marco-files";
|
|
@@ -332,6 +373,7 @@ export declare const appwrite: {
|
|
|
332
373
|
readonly profiles: "profiles";
|
|
333
374
|
readonly pushNotificationTokens: "push_notification_tokens";
|
|
334
375
|
readonly savedViews: "saved_views";
|
|
376
|
+
readonly threadLabels: "thread_labels";
|
|
335
377
|
readonly threads: "threads";
|
|
336
378
|
readonly watcherShards: "watcher_shards";
|
|
337
379
|
};
|
|
@@ -506,16 +548,18 @@ export declare const appwrite: {
|
|
|
506
548
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
507
549
|
readonly attachmentMetadata: v.StringSchema<undefined>;
|
|
508
550
|
readonly htmlFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
509
|
-
readonly preview: v.StringSchema<undefined>;
|
|
551
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
510
552
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
511
553
|
readonly rawFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
512
554
|
readonly receivedAt: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
513
|
-
readonly recipients: v.StringSchema<undefined>;
|
|
555
|
+
readonly recipients: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
514
556
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
515
557
|
readonly rfcMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
516
|
-
readonly sender: v.StringSchema<undefined>;
|
|
558
|
+
readonly sender: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
559
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
517
560
|
readonly sentAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
518
561
|
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
562
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
519
563
|
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
520
564
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
521
565
|
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -563,6 +607,21 @@ export declare const appwrite: {
|
|
|
563
607
|
readonly $tableId: v.LiteralSchema<"saved_views", undefined>;
|
|
564
608
|
readonly $updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
565
609
|
}, undefined>;
|
|
610
|
+
readonly threadLabels: v.StrictObjectSchema<{
|
|
611
|
+
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
612
|
+
readonly labelId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
613
|
+
readonly latestMessageAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
614
|
+
readonly locationCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
615
|
+
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
616
|
+
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
617
|
+
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
618
|
+
readonly $databaseId: v.LiteralSchema<"marco", undefined>;
|
|
619
|
+
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
|
|
620
|
+
readonly $permissions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
621
|
+
readonly $sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
622
|
+
readonly $tableId: v.LiteralSchema<"thread_labels", undefined>;
|
|
623
|
+
readonly $updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
624
|
+
}, undefined>;
|
|
566
625
|
readonly threads: v.StrictObjectSchema<{
|
|
567
626
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
568
627
|
readonly archived: v.BooleanSchema<undefined>;
|
|
@@ -573,11 +632,11 @@ export declare const appwrite: {
|
|
|
573
632
|
readonly latestMessageAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
574
633
|
readonly latestMessageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
575
634
|
readonly messageCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
576
|
-
readonly participants: v.StringSchema<undefined>;
|
|
577
|
-
readonly preview: v.StringSchema<undefined>;
|
|
635
|
+
readonly participants: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
636
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
578
637
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
579
638
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
580
|
-
readonly searchText: v.StringSchema<undefined>;
|
|
639
|
+
readonly searchText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
581
640
|
readonly seen: v.BooleanSchema<undefined>;
|
|
582
641
|
readonly senderEmail: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;
|
|
583
642
|
readonly senderName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appwrite.d.ts","sourceRoot":"","sources":["../../src/appwrite/appwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"appwrite.d.ts","sourceRoot":"","sources":["../../src/appwrite/appwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,QAAA,MAAM,qBAAqB;;;;;aAKzB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;eASxB,CAAA;AACD,QAAA,MAAM,uBAAuB;;;;;;;aAO3B,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;;aAI1B,CAAA;AAGF,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAA;AAC/F,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAA;AAC3F,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAA;AACnG,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAA;AAmDjG,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoMN,CAAA;AAEV,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWX,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,UAAU,CAAA;AACtD,MAAM,MAAM,WAAW,CAAC,MAAM,SAAS,gBAAgB,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { MESSAGE_RECIPIENT_TYPES } from '../types';
|
|
2
3
|
const identifierSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(255));
|
|
3
4
|
const appwriteRowIdSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(36), v.regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/));
|
|
4
5
|
const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
|
|
5
6
|
const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
6
7
|
const colourSchema = v.pipe(v.string(), v.maxLength(64));
|
|
7
8
|
const emailSchema = v.pipe(v.string(), v.email());
|
|
8
|
-
const jsonArrayTextSchema = v.pipe(v.string(), v.parseJson(), v.array(v.unknown()));
|
|
9
9
|
const jsonObjectTextSchema = v.pipe(v.string(), v.parseJson(), v.check(value => !Array.isArray(value)), v.looseObject({}));
|
|
10
10
|
const draftAttachmentSchema = v.strictObject({
|
|
11
11
|
fileId: appwriteRowIdSchema,
|
|
@@ -20,6 +20,21 @@ const draftEnvelopeSchema = v.pipe(v.string(), v.parseJson(), v.strictObject({
|
|
|
20
20
|
subject: v.nullable(v.string()),
|
|
21
21
|
to: v.array(emailSchema),
|
|
22
22
|
}));
|
|
23
|
+
const messageAttachmentSchema = v.looseObject({
|
|
24
|
+
fileId: v.optional(v.nullable(appwriteRowIdSchema)),
|
|
25
|
+
isAttachment: v.boolean(),
|
|
26
|
+
mimeType: identifierSchema,
|
|
27
|
+
name: v.nullable(identifierSchema),
|
|
28
|
+
partNumber: identifierSchema,
|
|
29
|
+
size: nonNegativeIntegerSchema,
|
|
30
|
+
});
|
|
31
|
+
const messageAttachmentsSchema = v.pipe(v.string(), v.parseJson(), v.array(messageAttachmentSchema));
|
|
32
|
+
const messageRecipientSchema = v.strictObject({
|
|
33
|
+
emailAddress: emailSchema,
|
|
34
|
+
name: v.nullable(identifierSchema),
|
|
35
|
+
type: v.picklist(MESSAGE_RECIPIENT_TYPES),
|
|
36
|
+
});
|
|
37
|
+
const messageRecipientsSchema = v.pipe(v.string(), v.parseJson(), v.array(messageRecipientSchema));
|
|
23
38
|
const accountProviders = ['GMAIL', 'OUTLOOK', 'IMAP'];
|
|
24
39
|
const accountStates = ['AWAITING_CONNECTION', 'CONNECTED', 'ERROR', 'DISCONNECTED'];
|
|
25
40
|
const commandStates = ['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED'];
|
|
@@ -50,6 +65,7 @@ const appwriteIds = {
|
|
|
50
65
|
profiles: 'profiles',
|
|
51
66
|
pushNotificationTokens: 'push_notification_tokens',
|
|
52
67
|
savedViews: 'saved_views',
|
|
68
|
+
threadLabels: 'thread_labels',
|
|
53
69
|
threads: 'threads',
|
|
54
70
|
watcherShards: 'watcher_shards',
|
|
55
71
|
},
|
|
@@ -180,16 +196,18 @@ const rowSchemas = {
|
|
|
180
196
|
accountId: identifierSchema,
|
|
181
197
|
attachmentMetadata: v.string(),
|
|
182
198
|
htmlFileId: v.nullable(identifierSchema),
|
|
183
|
-
preview: v.string(),
|
|
199
|
+
preview: v.nullable(v.string()),
|
|
184
200
|
providerId: identifierSchema,
|
|
185
201
|
rawFileId: v.nullable(identifierSchema),
|
|
186
202
|
receivedAt: v.nullable(timestampSchema),
|
|
187
|
-
recipients: v.string(),
|
|
203
|
+
recipients: v.nullable(v.string()),
|
|
188
204
|
revision: nonNegativeIntegerSchema,
|
|
189
205
|
rfcMessageId: v.nullable(identifierSchema),
|
|
190
|
-
sender: v.
|
|
206
|
+
sender: v.nullable(emailSchema),
|
|
207
|
+
senderName: v.nullable(identifierSchema),
|
|
191
208
|
sentAt: timestampSchema,
|
|
192
209
|
size: nonNegativeIntegerSchema,
|
|
210
|
+
subject: v.nullable(v.string()),
|
|
193
211
|
threadId: identifierSchema,
|
|
194
212
|
userId: identifierSchema,
|
|
195
213
|
}),
|
|
@@ -212,6 +230,15 @@ const rowSchemas = {
|
|
|
212
230
|
icon: v.optional(identifierSchema),
|
|
213
231
|
name: identifierSchema,
|
|
214
232
|
}),
|
|
233
|
+
threadLabels: v.strictObject({
|
|
234
|
+
...wireMetadata(appwriteIds.tables.threadLabels),
|
|
235
|
+
accountId: identifierSchema,
|
|
236
|
+
labelId: identifierSchema,
|
|
237
|
+
latestMessageAt: timestampSchema,
|
|
238
|
+
locationCount: nonNegativeIntegerSchema,
|
|
239
|
+
threadId: identifierSchema,
|
|
240
|
+
userId: identifierSchema,
|
|
241
|
+
}),
|
|
215
242
|
threads: v.strictObject({
|
|
216
243
|
...wireMetadata(appwriteIds.tables.threads),
|
|
217
244
|
accountId: identifierSchema,
|
|
@@ -223,11 +250,11 @@ const rowSchemas = {
|
|
|
223
250
|
latestMessageAt: timestampSchema,
|
|
224
251
|
latestMessageId: identifierSchema,
|
|
225
252
|
messageCount: nonNegativeIntegerSchema,
|
|
226
|
-
participants: v.string(),
|
|
227
|
-
preview: v.string(),
|
|
253
|
+
participants: v.nullable(v.string()),
|
|
254
|
+
preview: v.nullable(v.string()),
|
|
228
255
|
providerId: identifierSchema,
|
|
229
256
|
revision: nonNegativeIntegerSchema,
|
|
230
|
-
searchText: v.string(),
|
|
257
|
+
searchText: v.nullable(v.string()),
|
|
231
258
|
seen: v.boolean(),
|
|
232
259
|
senderEmail: v.optional(v.nullable(emailSchema)),
|
|
233
260
|
senderName: v.optional(v.nullable(identifierSchema)),
|
|
@@ -251,14 +278,12 @@ const rowSchemas = {
|
|
|
251
278
|
};
|
|
252
279
|
export const appwrite = {
|
|
253
280
|
decodedSchemas: {
|
|
254
|
-
attachmentMetadata: jsonArrayTextSchema,
|
|
255
281
|
commandPayload: jsonObjectTextSchema,
|
|
256
282
|
draftAttachments: draftAttachmentsSchema,
|
|
257
283
|
draftEnvelope: draftEnvelopeSchema,
|
|
258
284
|
jobPayload: jsonObjectTextSchema,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
threadParticipants: jsonArrayTextSchema,
|
|
285
|
+
messageAttachments: messageAttachmentsSchema,
|
|
286
|
+
messageRecipients: messageRecipientsSchema,
|
|
262
287
|
},
|
|
263
288
|
ids: appwriteIds,
|
|
264
289
|
rowSchemas,
|
|
@@ -129,12 +129,14 @@ const validRows = {
|
|
|
129
129
|
providerId: 'provider-1',
|
|
130
130
|
rawFileId: null,
|
|
131
131
|
receivedAt: null,
|
|
132
|
-
recipients: '[]',
|
|
132
|
+
recipients: '[{"emailAddress":"recipient@example.com","name":"Recipient","type":"to"}]',
|
|
133
133
|
revision: 0,
|
|
134
134
|
rfcMessageId: null,
|
|
135
|
-
sender: '
|
|
135
|
+
sender: 'marco@example.com',
|
|
136
|
+
senderName: 'Marco',
|
|
136
137
|
sentAt: '2026-07-15T00:00:00.000Z',
|
|
137
138
|
size: 1,
|
|
139
|
+
subject: 'Test subject',
|
|
138
140
|
threadId: 'thread-1',
|
|
139
141
|
userId: 'user-1',
|
|
140
142
|
},
|
|
@@ -159,6 +161,16 @@ const validRows = {
|
|
|
159
161
|
aliasEmails: ['marco@example.com'],
|
|
160
162
|
name: 'Unread',
|
|
161
163
|
},
|
|
164
|
+
threadLabels: {
|
|
165
|
+
...metadata,
|
|
166
|
+
$tableId: 'thread_labels',
|
|
167
|
+
accountId: 'account-1',
|
|
168
|
+
labelId: 'label-1',
|
|
169
|
+
latestMessageAt: '2026-07-15T00:00:00.000Z',
|
|
170
|
+
locationCount: 1,
|
|
171
|
+
threadId: 'thread-1',
|
|
172
|
+
userId: 'user-1',
|
|
173
|
+
},
|
|
162
174
|
threads: {
|
|
163
175
|
...metadata,
|
|
164
176
|
$tableId: 'threads',
|
|
@@ -171,7 +183,7 @@ const validRows = {
|
|
|
171
183
|
latestMessageAt: '2026-07-15T00:00:00.000Z',
|
|
172
184
|
latestMessageId: 'message-1',
|
|
173
185
|
messageCount: 1,
|
|
174
|
-
participants: '
|
|
186
|
+
participants: 'sender@example.com recipient@example.com',
|
|
175
187
|
preview: 'Preview',
|
|
176
188
|
providerId: 'provider-1',
|
|
177
189
|
revision: 0,
|
|
@@ -218,6 +230,7 @@ describe('appwrite', () => {
|
|
|
218
230
|
profiles: 'profiles',
|
|
219
231
|
pushNotificationTokens: 'push_notification_tokens',
|
|
220
232
|
savedViews: 'saved_views',
|
|
233
|
+
threadLabels: 'thread_labels',
|
|
221
234
|
threads: 'threads',
|
|
222
235
|
watcherShards: 'watcher_shards',
|
|
223
236
|
},
|
|
@@ -236,6 +249,14 @@ describe('appwrite', () => {
|
|
|
236
249
|
it('accepts a provider-canonical label name', () => {
|
|
237
250
|
expect(v.safeParse(appwrite.rowSchemas.labels, { ...validRows.labels, name: 'CATEGORY_PROMOTIONS' }).success).toBe(true);
|
|
238
251
|
});
|
|
252
|
+
it('accepts nullable thread text before body materialisation', () => {
|
|
253
|
+
expect(v.safeParse(appwrite.rowSchemas.threads, {
|
|
254
|
+
...validRows.threads,
|
|
255
|
+
participants: null,
|
|
256
|
+
preview: null,
|
|
257
|
+
searchText: null,
|
|
258
|
+
}).success).toBe(true);
|
|
259
|
+
});
|
|
239
260
|
const invalidAccountRows = [
|
|
240
261
|
{ description: 'an unknown state', row: { ...validRows.accounts, state: 'UNKNOWN' } },
|
|
241
262
|
{ description: 'an unknown database ID', row: { ...validRows.accounts, $databaseId: 'other' } },
|
|
@@ -249,11 +270,20 @@ describe('appwrite', () => {
|
|
|
249
270
|
}
|
|
250
271
|
const jsonTextTestCases = [
|
|
251
272
|
{
|
|
252
|
-
expected: [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
273
|
+
expected: [
|
|
274
|
+
{
|
|
275
|
+
fileId: 'test-file-id-1',
|
|
276
|
+
isAttachment: true,
|
|
277
|
+
mimeType: 'text/plain',
|
|
278
|
+
name: 'test-file-name-1.txt',
|
|
279
|
+
partNumber: '2',
|
|
280
|
+
size: 1,
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
invalidValue: '[{"fileId":"test-file-id-1"}]',
|
|
284
|
+
name: 'message attachments',
|
|
285
|
+
schema: appwrite.decodedSchemas.messageAttachments,
|
|
286
|
+
value: '[{"fileId":"test-file-id-1","isAttachment":true,"mimeType":"text/plain","name":"test-file-name-1.txt","partNumber":"2","size":1}]',
|
|
257
287
|
},
|
|
258
288
|
{
|
|
259
289
|
expected: [
|
|
@@ -291,25 +321,17 @@ describe('appwrite', () => {
|
|
|
291
321
|
value: '{"threadId":"thread-1"}',
|
|
292
322
|
},
|
|
293
323
|
{
|
|
294
|
-
expected: [
|
|
295
|
-
|
|
324
|
+
expected: [
|
|
325
|
+
{
|
|
326
|
+
emailAddress: 'recipient@example.com',
|
|
327
|
+
name: 'Recipient',
|
|
328
|
+
type: 'to',
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
invalidValue: '[{"emailAddress":"recipient@example.com"}]',
|
|
296
332
|
name: 'message recipients',
|
|
297
333
|
schema: appwrite.decodedSchemas.messageRecipients,
|
|
298
|
-
value: '[]',
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
expected: { email: 'marco@example.com' },
|
|
302
|
-
invalidValue: '[]',
|
|
303
|
-
name: 'message sender',
|
|
304
|
-
schema: appwrite.decodedSchemas.messageSender,
|
|
305
|
-
value: '{"email":"marco@example.com"}',
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
expected: [],
|
|
309
|
-
invalidValue: '{}',
|
|
310
|
-
name: 'thread participants',
|
|
311
|
-
schema: appwrite.decodedSchemas.threadParticipants,
|
|
312
|
-
value: '[]',
|
|
334
|
+
value: '[{"emailAddress":"recipient@example.com","name":"Recipient","type":"to"}]',
|
|
313
335
|
},
|
|
314
336
|
];
|
|
315
337
|
for (const testCase of jsonTextTestCases) {
|
|
@@ -317,7 +339,8 @@ describe('appwrite', () => {
|
|
|
317
339
|
const result = v.safeParse(testCase.schema, testCase.value);
|
|
318
340
|
expect(result.success).toBe(true);
|
|
319
341
|
if (result.success) {
|
|
320
|
-
|
|
342
|
+
const output = result.output;
|
|
343
|
+
expect(output).toEqual(testCase.expected);
|
|
321
344
|
}
|
|
322
345
|
expect(v.safeParse(testCase.schema, testCase.invalidValue).success).toBe(false);
|
|
323
346
|
expect(v.safeParse(testCase.schema, '{').success).toBe(false);
|
package/dist/appwrite/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type AppwriteDraftAttachment, type AppwriteDraftEnvelope, type AppwriteRow, type AppwriteRowTable, appwrite, } from './appwrite';
|
|
1
|
+
export { type AppwriteDraftAttachment, type AppwriteDraftEnvelope, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwriteRow, type AppwriteRowTable, appwrite, } from './appwrite';
|
|
2
2
|
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, appwriteAvatar, appwriteCommands, } from './commands';
|
|
3
3
|
export { type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, appwriteFunctions, } from './functions';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,GACT,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,GACT,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,aAAa,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteRow, type AppwriteRowTable, appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
|
|
1
|
+
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwriteRow, type AppwriteRowTable, appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
|
|
2
2
|
export { marcoConstants } from './constants';
|
|
3
3
|
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
4
|
export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type JobId, type LabelId, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -592,34 +592,34 @@ export declare const marcoSchemas: {
|
|
|
592
592
|
readonly '~standard': import("valibot").StandardProps<{
|
|
593
593
|
bcc: string[];
|
|
594
594
|
cc: string[];
|
|
595
|
-
subject: string | null;
|
|
596
595
|
to: string[];
|
|
596
|
+
subject: string | null;
|
|
597
597
|
}, {
|
|
598
598
|
bcc: string[];
|
|
599
599
|
cc: string[];
|
|
600
|
-
subject: string | null;
|
|
601
600
|
to: string[];
|
|
601
|
+
subject: string | null;
|
|
602
602
|
}>;
|
|
603
603
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
604
604
|
bcc: string[];
|
|
605
605
|
cc: string[];
|
|
606
|
-
subject: string | null;
|
|
607
606
|
to: string[];
|
|
608
|
-
|
|
607
|
+
subject: string | null;
|
|
608
|
+
}, import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string>>;
|
|
609
609
|
readonly '~types'?: {
|
|
610
610
|
readonly input: {
|
|
611
611
|
bcc: string[];
|
|
612
612
|
cc: string[];
|
|
613
|
-
subject: string | null;
|
|
614
613
|
to: string[];
|
|
614
|
+
subject: string | null;
|
|
615
615
|
};
|
|
616
616
|
readonly output: {
|
|
617
617
|
bcc: string[];
|
|
618
618
|
cc: string[];
|
|
619
|
-
subject: string | null;
|
|
620
619
|
to: string[];
|
|
620
|
+
subject: string | null;
|
|
621
621
|
};
|
|
622
|
-
readonly issue: import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string
|
|
622
|
+
readonly issue: import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string>;
|
|
623
623
|
} | undefined;
|
|
624
624
|
};
|
|
625
625
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "DraftId">]>, undefined>;
|
|
@@ -163,34 +163,34 @@ export declare const mutatorSchemas: {
|
|
|
163
163
|
readonly '~standard': v.StandardProps<{
|
|
164
164
|
bcc: string[];
|
|
165
165
|
cc: string[];
|
|
166
|
-
subject: string | null;
|
|
167
166
|
to: string[];
|
|
167
|
+
subject: string | null;
|
|
168
168
|
}, {
|
|
169
169
|
bcc: string[];
|
|
170
170
|
cc: string[];
|
|
171
|
-
subject: string | null;
|
|
172
171
|
to: string[];
|
|
172
|
+
subject: string | null;
|
|
173
173
|
}>;
|
|
174
174
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
175
175
|
bcc: string[];
|
|
176
176
|
cc: string[];
|
|
177
|
-
subject: string | null;
|
|
178
177
|
to: string[];
|
|
179
|
-
|
|
178
|
+
subject: string | null;
|
|
179
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>>;
|
|
180
180
|
readonly '~types'?: {
|
|
181
181
|
readonly input: {
|
|
182
182
|
bcc: string[];
|
|
183
183
|
cc: string[];
|
|
184
|
-
subject: string | null;
|
|
185
184
|
to: string[];
|
|
185
|
+
subject: string | null;
|
|
186
186
|
};
|
|
187
187
|
readonly output: {
|
|
188
188
|
bcc: string[];
|
|
189
189
|
cc: string[];
|
|
190
|
-
subject: string | null;
|
|
191
190
|
to: string[];
|
|
191
|
+
subject: string | null;
|
|
192
192
|
};
|
|
193
|
-
readonly issue: v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string
|
|
193
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>;
|
|
194
194
|
} | undefined;
|
|
195
195
|
};
|
|
196
196
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
@@ -17,34 +17,34 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
17
17
|
readonly '~standard': v.StandardProps<{
|
|
18
18
|
bcc: string[];
|
|
19
19
|
cc: string[];
|
|
20
|
-
subject: string | null;
|
|
21
20
|
to: string[];
|
|
21
|
+
subject: string | null;
|
|
22
22
|
}, {
|
|
23
23
|
bcc: string[];
|
|
24
24
|
cc: string[];
|
|
25
|
-
subject: string | null;
|
|
26
25
|
to: string[];
|
|
26
|
+
subject: string | null;
|
|
27
27
|
}>;
|
|
28
28
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
29
29
|
bcc: string[];
|
|
30
30
|
cc: string[];
|
|
31
|
-
subject: string | null;
|
|
32
31
|
to: string[];
|
|
33
|
-
|
|
32
|
+
subject: string | null;
|
|
33
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>>;
|
|
34
34
|
readonly '~types'?: {
|
|
35
35
|
readonly input: {
|
|
36
36
|
bcc: string[];
|
|
37
37
|
cc: string[];
|
|
38
|
-
subject: string | null;
|
|
39
38
|
to: string[];
|
|
39
|
+
subject: string | null;
|
|
40
40
|
};
|
|
41
41
|
readonly output: {
|
|
42
42
|
bcc: string[];
|
|
43
43
|
cc: string[];
|
|
44
|
-
subject: string | null;
|
|
45
44
|
to: string[];
|
|
45
|
+
subject: string | null;
|
|
46
46
|
};
|
|
47
|
-
readonly issue: v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string
|
|
47
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>;
|
|
48
48
|
} | undefined;
|
|
49
49
|
};
|
|
50
50
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|