@marcoappio/marco-config 4.0.11 → 4.0.13

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 (82) hide show
  1. package/dist/appwrite/appwrite.d.ts +35 -35
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +1 -2
  4. package/dist/appwrite/appwrite.test.js +18 -0
  5. package/dist/appwrite/commands.d.ts +5 -5
  6. package/dist/appwrite/commands.d.ts.map +1 -1
  7. package/dist/appwrite/commands.js +4 -6
  8. package/dist/appwrite/commands.test.js +18 -0
  9. package/dist/appwrite/functions.d.ts +12 -12
  10. package/dist/appwrite/functions.d.ts.map +1 -1
  11. package/dist/appwrite/functions.js +3 -9
  12. package/dist/appwrite/tableContract/identity.d.ts +2 -2
  13. package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
  14. package/dist/appwrite/tableContract/identity.js +12 -12
  15. package/dist/appwrite/tableContract/index.d.ts +36 -36
  16. package/dist/appwrite/tableContract/index.js +3 -3
  17. package/dist/appwrite/tableContract/mailbox.d.ts +10 -10
  18. package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
  19. package/dist/appwrite/tableContract/mailbox.js +12 -12
  20. package/dist/appwrite/tableContract/operational.d.ts +12 -12
  21. package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
  22. package/dist/appwrite/tableContract/operational.js +12 -12
  23. package/dist/appwrite/tableContract/shared.d.ts +1 -7
  24. package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
  25. package/dist/appwrite/tableContract/shared.js +1 -7
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/index.test.js +14 -0
  30. package/dist/schemas/emailAccount.d.ts +6 -6
  31. package/dist/schemas/emailAccount.d.ts.map +1 -1
  32. package/dist/schemas/emailAccount.js +4 -4
  33. package/dist/schemas/index.d.ts +35 -46
  34. package/dist/schemas/index.d.ts.map +1 -1
  35. package/dist/schemas/index.js +0 -4
  36. package/dist/schemas/models/account.d.ts +2 -2
  37. package/dist/schemas/models/account.js +3 -3
  38. package/dist/schemas/models/contact.d.ts +1 -1
  39. package/dist/schemas/models/draft.d.ts +8 -8
  40. package/dist/schemas/models/draft.js +1 -1
  41. package/dist/schemas/models/numericSemantics.test.d.ts +2 -0
  42. package/dist/schemas/models/numericSemantics.test.d.ts.map +1 -0
  43. package/dist/schemas/models/numericSemantics.test.js +24 -0
  44. package/dist/schemas/models/thread.d.ts +16 -16
  45. package/dist/schemas/models/thread.js +2 -2
  46. package/dist/schemas/number.d.ts +2 -4
  47. package/dist/schemas/number.d.ts.map +1 -1
  48. package/dist/schemas/number.js +3 -4
  49. package/dist/schemas/scalars.d.ts +13 -0
  50. package/dist/schemas/scalars.d.ts.map +1 -0
  51. package/dist/schemas/scalars.js +15 -0
  52. package/dist/schemas/scalars.test.d.ts +2 -0
  53. package/dist/schemas/scalars.test.d.ts.map +1 -0
  54. package/dist/schemas/scalars.test.js +44 -0
  55. package/dist/schemas/string.d.ts +1 -4
  56. package/dist/schemas/string.d.ts.map +1 -1
  57. package/dist/schemas/string.js +3 -5
  58. package/dist/utils/index.d.ts +0 -1
  59. package/dist/utils/index.d.ts.map +1 -1
  60. package/dist/utils/index.js +0 -1
  61. package/package.json +1 -1
  62. package/dist/schemas/boolean.d.ts +0 -5
  63. package/dist/schemas/boolean.d.ts.map +0 -1
  64. package/dist/schemas/boolean.js +0 -4
  65. package/dist/schemas/labels.d.ts +0 -5
  66. package/dist/schemas/labels.d.ts.map +0 -1
  67. package/dist/schemas/labels.js +0 -5
  68. package/dist/schemas/paginatedResponse.d.ts +0 -10
  69. package/dist/schemas/paginatedResponse.d.ts.map +0 -1
  70. package/dist/schemas/paginatedResponse.js +0 -5
  71. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts +0 -8
  72. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts.map +0 -1
  73. package/dist/utils/validation/flattenRequirements/flattenRequirements.js +0 -37
  74. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts +0 -2
  75. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts.map +0 -1
  76. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.js +0 -25
  77. package/dist/utils/validation/flattenRequirements/index.d.ts +0 -2
  78. package/dist/utils/validation/flattenRequirements/index.d.ts.map +0 -1
  79. package/dist/utils/validation/flattenRequirements/index.js +0 -1
  80. package/dist/utils/validation/index.d.ts +0 -2
  81. package/dist/utils/validation/index.d.ts.map +0 -1
  82. package/dist/utils/validation/index.js +0 -1
@@ -11,10 +11,10 @@ declare const draftAttachmentSchema: v.StrictObjectSchema<{
11
11
  readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
12
12
  }, undefined>;
13
13
  declare const draftEnvelopeSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.StrictObjectSchema<{
14
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
15
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
14
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
15
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
16
16
  readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
17
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
17
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
18
18
  }, undefined>]>;
19
19
  declare const messageAttachmentSchema: v.LooseObjectSchema<{
20
20
  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>;
@@ -25,7 +25,7 @@ declare const messageAttachmentSchema: v.LooseObjectSchema<{
25
25
  readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
26
26
  }, undefined>;
27
27
  declare const messageRecipientSchema: v.StrictObjectSchema<{
28
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
28
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
29
29
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
30
30
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
31
31
  }, undefined>;
@@ -86,7 +86,7 @@ export declare const appwrite: {
86
86
  }, string>]>], undefined>>;
87
87
  }, undefined>;
88
88
  contacts: v.ObjectSchema<{
89
- readonly normalisedAddress: import("./tableContract").AppwriteColumnSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
89
+ readonly normalisedAddress: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
90
90
  readonly displayName: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
91
91
  readonly lastContactedAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
92
92
  readonly messageCount: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
@@ -104,7 +104,7 @@ export declare const appwrite: {
104
104
  readonly provider: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
105
105
  readonly encryptedPayload: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
106
106
  readonly expiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
107
- readonly refreshLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
107
+ readonly refreshLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
108
108
  readonly refreshLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
109
109
  }, undefined>;
110
110
  drafts: v.ObjectSchema<{
@@ -114,12 +114,12 @@ export declare const appwrite: {
114
114
  readonly html: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
115
115
  readonly attachmentMetadata: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
116
116
  readonly contentHash: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
117
- readonly scheduledAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
117
+ readonly scheduledAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
118
118
  readonly status: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
119
119
  readonly revision: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
120
120
  readonly sequence: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
121
121
  readonly executionLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
122
- readonly executionLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
122
+ readonly executionLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
123
123
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
124
124
  readonly account: import("./tableContract").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
125
125
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
@@ -192,7 +192,7 @@ export declare const appwrite: {
192
192
  readonly providerId: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
193
193
  readonly subject: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
194
194
  readonly firstMessageAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
195
- readonly senderEmail: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>>;
195
+ readonly senderEmail: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
196
196
  readonly senderName: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
197
197
  readonly preview: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
198
198
  readonly participants: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
@@ -208,7 +208,7 @@ export declare const appwrite: {
208
208
  readonly archived: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
209
209
  readonly spam: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
210
210
  readonly trashed: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
211
- readonly snoozedUntil: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
211
+ readonly snoozedUntil: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
212
212
  readonly revision: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
213
213
  readonly searchText: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
214
214
  readonly account: import("./tableContract").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -250,9 +250,9 @@ export declare const appwrite: {
250
250
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
251
251
  readonly attempts: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
252
252
  readonly maxAttempts: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
253
- readonly nextRunAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
253
+ readonly nextRunAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
254
254
  readonly leaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
255
- readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
255
+ readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
256
256
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
257
257
  }, undefined>;
258
258
  mailboxSyncCandidates: v.ObjectSchema<{
@@ -302,11 +302,11 @@ export declare const appwrite: {
302
302
  readonly providerCursor: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
303
303
  readonly uidValidity: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
304
304
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
305
- readonly nextPollAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
305
+ readonly nextPollAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
306
306
  readonly lastEventAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
307
307
  readonly lastSyncAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
308
308
  readonly materialisationLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
309
- readonly materialisationLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
309
+ readonly materialisationLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
310
310
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
311
311
  }, undefined>;
312
312
  messageLocations: Omit<v.ObjectSchema<{
@@ -338,7 +338,7 @@ export declare const appwrite: {
338
338
  }, undefined>, v.TransformAction<{
339
339
  $id: string;
340
340
  }, string>]>], undefined>>;
341
- }, undefined>, "pipe" | "~standard" | "~run" | "~types"> & {
341
+ }, undefined>, "~types" | "~run" | "~standard" | "pipe"> & {
342
342
  readonly pipe: readonly [v.ObjectSchema<{
343
343
  readonly accountAssignmentKey: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
344
344
  readonly flagged: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
@@ -430,7 +430,7 @@ export declare const appwrite: {
430
430
  label: string;
431
431
  message: string;
432
432
  thread: string;
433
- }, v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue | v.IsoTimestampIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue> | v.BooleanIssue | v.CheckIssue<{
433
+ }, v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.StringIssue | v.IsoTimestampIssue<string> | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue> | v.BooleanIssue | v.CheckIssue<{
434
434
  accountAssignmentKey: string;
435
435
  flagged: boolean;
436
436
  labelAssignmentKey: string;
@@ -481,7 +481,7 @@ export declare const appwrite: {
481
481
  message: string;
482
482
  thread: string;
483
483
  };
484
- readonly issue: v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue | v.IsoTimestampIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue> | v.BooleanIssue | v.CheckIssue<{
484
+ readonly issue: v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.StringIssue | v.IsoTimestampIssue<string> | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 255> | v.ObjectIssue> | v.BooleanIssue | v.CheckIssue<{
485
485
  accountAssignmentKey: string;
486
486
  flagged: boolean;
487
487
  labelAssignmentKey: string;
@@ -520,9 +520,9 @@ export declare const appwrite: {
520
520
  readonly generation: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
521
521
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
522
522
  readonly leaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
523
- readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
523
+ readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
524
524
  readonly lastStartedAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
525
- readonly nextStartAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
525
+ readonly nextStartAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
526
526
  readonly pollingSnapshot: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
527
527
  readonly scheduledExecutionId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
528
528
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
@@ -597,10 +597,10 @@ export declare const appwrite: {
597
597
  readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
598
598
  }, undefined>, undefined>]>;
599
599
  readonly draftEnvelope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.StrictObjectSchema<{
600
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
601
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
600
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
601
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
602
602
  readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
603
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
603
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
604
604
  }, undefined>]>;
605
605
  readonly jobPayload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
606
606
  readonly messageAttachments: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.LooseObjectSchema<{
@@ -612,7 +612,7 @@ export declare const appwrite: {
612
612
  readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
613
613
  }, undefined>, undefined>]>;
614
614
  readonly messageRecipients: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.StrictObjectSchema<{
615
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
615
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
616
616
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
617
617
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
618
618
  }, undefined>, undefined>]>;
@@ -748,7 +748,7 @@ export declare const appwrite: {
748
748
  $tableId: v.LiteralSchema<string, undefined>;
749
749
  $updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
750
750
  } & {
751
- readonly normalisedAddress: import("./tableContract").AppwriteColumnSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
751
+ readonly normalisedAddress: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
752
752
  readonly displayName: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
753
753
  readonly lastContactedAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
754
754
  readonly messageCount: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
@@ -774,7 +774,7 @@ export declare const appwrite: {
774
774
  readonly provider: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
775
775
  readonly encryptedPayload: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
776
776
  readonly expiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
777
- readonly refreshLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
777
+ readonly refreshLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
778
778
  readonly refreshLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
779
779
  }, undefined>;
780
780
  drafts: v.StrictObjectSchema<{
@@ -792,12 +792,12 @@ export declare const appwrite: {
792
792
  readonly html: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
793
793
  readonly attachmentMetadata: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
794
794
  readonly contentHash: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
795
- readonly scheduledAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
795
+ readonly scheduledAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
796
796
  readonly status: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
797
797
  readonly revision: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
798
798
  readonly sequence: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
799
799
  readonly executionLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
800
- readonly executionLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
800
+ readonly executionLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
801
801
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
802
802
  readonly account: import("./tableContract").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
803
803
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
@@ -902,7 +902,7 @@ export declare const appwrite: {
902
902
  readonly providerId: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
903
903
  readonly subject: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
904
904
  readonly firstMessageAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
905
- readonly senderEmail: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>>;
905
+ readonly senderEmail: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
906
906
  readonly senderName: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
907
907
  readonly preview: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
908
908
  readonly participants: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
@@ -918,7 +918,7 @@ export declare const appwrite: {
918
918
  readonly archived: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
919
919
  readonly spam: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
920
920
  readonly trashed: import("./tableContract").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
921
- readonly snoozedUntil: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
921
+ readonly snoozedUntil: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
922
922
  readonly revision: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
923
923
  readonly searchText: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
924
924
  readonly account: import("./tableContract").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -976,9 +976,9 @@ export declare const appwrite: {
976
976
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
977
977
  readonly attempts: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
978
978
  readonly maxAttempts: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
979
- readonly nextRunAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
979
+ readonly nextRunAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
980
980
  readonly leaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
981
- readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
981
+ readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
982
982
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
983
983
  }, undefined>;
984
984
  mailboxSyncCandidates: v.StrictObjectSchema<{
@@ -1052,11 +1052,11 @@ export declare const appwrite: {
1052
1052
  readonly providerCursor: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
1053
1053
  readonly uidValidity: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
1054
1054
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
1055
- readonly nextPollAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1055
+ readonly nextPollAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
1056
1056
  readonly lastEventAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1057
1057
  readonly lastSyncAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1058
1058
  readonly materialisationLeaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
1059
- readonly materialisationLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1059
+ readonly materialisationLeaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
1060
1060
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
1061
1061
  }, undefined>;
1062
1062
  messageLocations: v.StrictObjectSchema<{
@@ -1144,9 +1144,9 @@ export declare const appwrite: {
1144
1144
  readonly generation: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
1145
1145
  readonly state: import("./tableContract").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
1146
1146
  readonly leaseId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
1147
- readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1147
+ readonly leaseExpiresAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
1148
1148
  readonly lastStartedAt: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
1149
- readonly nextStartAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
1149
+ readonly nextStartAt: import("./tableContract").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
1150
1150
  readonly pollingSnapshot: import("./tableContract").AppwriteColumnSchema<v.StringSchema<undefined>>;
1151
1151
  readonly scheduledExecutionId: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
1152
1152
  readonly errorCode: import("./tableContract").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, 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;AAuB5B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAE7J,YAAY,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC/J,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,oBAAoB,GACrB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,4BAA4B,EAC5B,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDT,CAAA"}
@@ -1,11 +1,10 @@
1
1
  import * as v from 'valibot';
2
2
  import { string } from '../schemas/string';
3
3
  import { MESSAGE_RECIPIENT_TYPES } from '../types';
4
- import { appwriteDataSchemas, appwriteIds, appwriteRowSchemas as generatedRowSchemas, appwriteRowIdSchema, appwriteTables, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, nonNegativeIntegerSchema, identifierSchema, } from './tableContract';
4
+ import { appwriteDataSchemas, appwriteIds, appwriteRowSchemas as generatedRowSchemas, appwriteRowIdSchema, appwriteTables, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, jsonObjectTextSchema, nonNegativeIntegerSchema, identifierSchema, } from './tableContract';
5
5
  export { appwriteRowIdSchema, appwriteTableIdSchema, appwriteTableIds } from './tableContract';
6
6
  export { appwriteDataSchemas, appwriteRowSchemas, appwriteTableContract, appwriteTables, defineAppwriteTables, } from './tableContract';
7
7
  export { accountProviders, accountStates, appwriteRelationshipIdSchema, commandStates, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, } from './tableContract';
8
- const jsonObjectTextSchema = v.pipe(v.string(), v.parseJson(), v.check(value => !Array.isArray(value)), v.looseObject({}));
9
8
  const draftAttachmentSchema = v.strictObject({
10
9
  fileId: appwriteRowIdSchema,
11
10
  fileName: v.pipe(v.string(), v.minLength(1), v.maxLength(255)),
@@ -446,6 +446,24 @@ describe('appwrite', () => {
446
446
  expect(v.safeParse(appwrite.dataSchemas.mailboxSyncCandidates.entries.uid, 0).success).toBe(false);
447
447
  expect(v.safeParse(appwrite.dataSchemas.mailboxSyncCandidates.entries.uidValidity, 0).success).toBe(false);
448
448
  });
449
+ it('rejects non-canonical persisted scheduling and lease fences', () => {
450
+ const fenceSchemas = [
451
+ appwrite.dataSchemas.credentials.entries.refreshLeaseExpiresAt,
452
+ appwrite.dataSchemas.drafts.entries.scheduledAt,
453
+ appwrite.dataSchemas.drafts.entries.executionLeaseExpiresAt,
454
+ appwrite.dataSchemas.mailboxSyncStates.entries.nextPollAt,
455
+ appwrite.dataSchemas.mailboxSyncStates.entries.materialisationLeaseExpiresAt,
456
+ appwrite.dataSchemas.jobs.entries.nextRunAt,
457
+ appwrite.dataSchemas.jobs.entries.leaseExpiresAt,
458
+ appwrite.dataSchemas.pollShards.entries.nextStartAt,
459
+ appwrite.dataSchemas.pollShards.entries.leaseExpiresAt,
460
+ appwrite.dataSchemas.threads.entries.snoozedUntil,
461
+ ];
462
+ for (const schema of fenceSchemas) {
463
+ expect(v.safeParse(schema, '2026-06-31T12:00:30.000Z').success).toBe(false);
464
+ expect(v.safeParse(schema, '2026-07-23T12:00:30.000+00:00').success).toBe(false);
465
+ }
466
+ });
449
467
  it('pins every generated wire row to its table ID', () => {
450
468
  const tableKeys = Object.keys(appwrite.ids.tables);
451
469
  for (const tableKey of tableKeys) {
@@ -179,11 +179,11 @@ export declare const appwriteCommands: {
179
179
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
180
180
  readonly kind: v.LiteralSchema<"draft.envelope.set", undefined>;
181
181
  readonly payload: v.StrictObjectSchema<{
182
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
183
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
182
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
183
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
184
184
  readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
185
185
  readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
186
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
186
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
187
187
  }, undefined>;
188
188
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
189
189
  readonly version: v.LiteralSchema<1, undefined>;
@@ -222,7 +222,7 @@ export declare const appwriteCommands: {
222
222
  readonly kind: v.LiteralSchema<"draft.send.schedule", undefined>;
223
223
  readonly payload: v.StrictObjectSchema<{
224
224
  readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
225
- readonly scheduledAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
225
+ readonly scheduledAt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
226
226
  }, undefined>;
227
227
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
228
228
  readonly version: v.LiteralSchema<1, undefined>;
@@ -338,7 +338,7 @@ export declare const appwriteCommands: {
338
338
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
339
339
  readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
340
340
  readonly payload: v.StrictObjectSchema<{
341
- readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
341
+ readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>;
342
342
  readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
343
343
  }, undefined>;
344
344
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/appwrite/commands.ts"],"names":[],"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C,SAAS,CAAC,CAAA;AACnI,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AAC3F,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAA"}
@@ -2,9 +2,8 @@ import * as v from 'valibot';
2
2
  import { id } from '../schemas/id';
3
3
  import { string } from '../schemas/string';
4
4
  import { DRAFT_TYPES } from '../types';
5
+ import { canonicalTimestampSchema, commandStates, isoTimestampSchema, nonNegativeIntegerSchema } from './tableContract';
5
6
  const commandIdSchema = v.pipe(v.string(), v.uuid(), v.brand('CommandId'));
6
- const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
7
- const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
8
7
  const appwriteThreadCommandBatchSize = 100;
9
8
  const threadIdsSchema = v.pipe(v.array(id.threadId.required()), v.minLength(1), v.maxLength(appwriteThreadCommandBatchSize));
10
9
  const avatarSha256Schema = v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/));
@@ -79,7 +78,6 @@ export const appwriteCommandGroups = {
79
78
  commandKinds.threadTrashSet,
80
79
  ],
81
80
  };
82
- const commandStates = ['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED'];
83
81
  const commandErrorCodes = [
84
82
  'AUTHENTICATION_FAILED',
85
83
  'AUTHORIZATION_FAILED',
@@ -96,7 +94,7 @@ const createCommandRequestSchema = (kind, payload, accountId) => v.strictObject(
96
94
  id: commandIdSchema,
97
95
  kind: v.literal(kind),
98
96
  payload,
99
- submittedAt: timestampSchema,
97
+ submittedAt: isoTimestampSchema,
100
98
  version: v.literal(1),
101
99
  });
102
100
  const createAccountCommandRequestSchema = (kind, payload) => createCommandRequestSchema(kind, payload, accountIdSchema);
@@ -135,7 +133,7 @@ const threadArchiveSetPayloadSchema = v.strictObject({ archived: v.boolean(), th
135
133
  const threadFlaggedSetPayloadSchema = v.strictObject({ flagged: v.boolean(), threadIds: threadIdsSchema });
136
134
  const threadSeenSetPayloadSchema = v.strictObject({ seen: v.boolean(), threadIds: threadIdsSchema });
137
135
  const threadSnoozeSetPayloadSchema = v.strictObject({
138
- snoozedUntil: v.nullable(timestampSchema),
136
+ snoozedUntil: v.nullable(canonicalTimestampSchema),
139
137
  threadIds: threadIdsSchema,
140
138
  });
141
139
  const threadSpamSetPayloadSchema = v.strictObject({ spam: v.boolean(), threadIds: threadIdsSchema });
@@ -177,7 +175,7 @@ const draftAttachmentDeletePayloadSchema = v.strictObject({
177
175
  });
178
176
  const draftSendPayloadSchema = v.strictObject({ draftId: id.draftId.required() });
179
177
  const draftSendCancelPayloadSchema = v.strictObject({ draftId: id.draftId.required() });
180
- const draftSendSchedulePayloadSchema = v.strictObject({ draftId: id.draftId.required(), scheduledAt: timestampSchema });
178
+ const draftSendSchedulePayloadSchema = v.strictObject({ draftId: id.draftId.required(), scheduledAt: canonicalTimestampSchema });
181
179
  const commandRequestSchemas = {
182
180
  [commandKinds.accountDelete]: createAccountCommandRequestSchema(commandKinds.accountDelete, accountDeletePayloadSchema),
183
181
  [commandKinds.accountSettingsSet]: createAccountCommandRequestSchema(commandKinds.accountSettingsSet, accountSettingsSetPayloadSchema),
@@ -333,6 +333,24 @@ describe('appwriteCommands', () => {
333
333
  expect(v.safeParse(appwriteCommands.requestSchema, command).success).toBe(true);
334
334
  expect(v.safeParse(appwriteCommands.requestSchema, { ...command, payload: { ...command.payload, to: [overlongAddress] } }).success).toBe(false);
335
335
  });
336
+ it('rejects non-canonical scheduled command timestamps', () => {
337
+ for (const command of [
338
+ {
339
+ ...commandMetadata,
340
+ accountId: 'account_1',
341
+ kind: 'draft.send.schedule',
342
+ payload: { draftId: 'draft_1', scheduledAt: '2026-06-31T00:00:00.000Z' },
343
+ },
344
+ {
345
+ ...commandMetadata,
346
+ accountId: 'account_1',
347
+ kind: 'thread.snooze.set',
348
+ payload: { snoozedUntil: '2026-07-16T00:00:00.000+00:00', threadIds: ['thread_1'] },
349
+ },
350
+ ]) {
351
+ expect(v.safeParse(appwriteCommands.requestSchema, command).success).toBe(false);
352
+ }
353
+ });
336
354
  for (const { command } of commandFixtures) {
337
355
  it(`accepts ${command.kind}`, () => {
338
356
  expect(v.safeParse(appwriteCommands.requestSchema, command).success).toBe(true);
@@ -23,7 +23,7 @@ export declare const appwriteFunctions: {
23
23
  readonly imap: v.StrictObjectSchema<{
24
24
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
25
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
- readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
26
+ readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
27
27
  readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
28
28
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
29
  }, undefined>;
@@ -31,7 +31,7 @@ export declare const appwriteFunctions: {
31
31
  readonly smtp: v.StrictObjectSchema<{
32
32
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
33
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
34
+ readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
35
35
  readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
36
36
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  }, undefined>;
@@ -40,7 +40,7 @@ export declare const appwriteFunctions: {
40
40
  responseSchema: v.StrictObjectSchema<{
41
41
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
42
42
  readonly authorizationUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
43
- readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "DISCONNECTED", "ERROR"], undefined>;
43
+ readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>;
44
44
  }, undefined>;
45
45
  };
46
46
  readonly accountDelete: {
@@ -74,7 +74,7 @@ export declare const appwriteFunctions: {
74
74
  readonly imap: v.StrictObjectSchema<{
75
75
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
76
76
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
- readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
77
+ readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
78
78
  readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
79
79
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
80
80
  }, undefined>;
@@ -82,7 +82,7 @@ export declare const appwriteFunctions: {
82
82
  readonly smtp: v.StrictObjectSchema<{
83
83
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
84
84
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
85
- readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
85
+ readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
86
86
  readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
87
87
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
88
88
  }, undefined>;
@@ -91,7 +91,7 @@ export declare const appwriteFunctions: {
91
91
  responseSchema: v.StrictObjectSchema<{
92
92
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
93
93
  readonly authorizationUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
94
- readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "DISCONNECTED", "ERROR"], undefined>;
94
+ readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>;
95
95
  }, undefined>;
96
96
  };
97
97
  readonly accountsPoll: {
@@ -279,11 +279,11 @@ export declare const appwriteFunctions: {
279
279
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
280
280
  readonly kind: v.LiteralSchema<"draft.envelope.set", undefined>;
281
281
  readonly payload: v.StrictObjectSchema<{
282
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
283
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
282
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
283
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
284
284
  readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
285
285
  readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
286
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
286
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>, undefined>;
287
287
  }, undefined>;
288
288
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
289
289
  readonly version: v.LiteralSchema<1, undefined>;
@@ -322,7 +322,7 @@ export declare const appwriteFunctions: {
322
322
  readonly kind: v.LiteralSchema<"draft.send.schedule", undefined>;
323
323
  readonly payload: v.StrictObjectSchema<{
324
324
  readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
325
- readonly scheduledAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
325
+ readonly scheduledAt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
326
326
  }, undefined>;
327
327
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
328
328
  readonly version: v.LiteralSchema<1, undefined>;
@@ -438,7 +438,7 @@ export declare const appwriteFunctions: {
438
438
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
439
439
  readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
440
440
  readonly payload: v.StrictObjectSchema<{
441
- readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
441
+ readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>;
442
442
  readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
443
443
  }, undefined>;
444
444
  readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
@@ -514,7 +514,7 @@ export declare const appwriteFunctions: {
514
514
  method: "POST";
515
515
  path: "/polls/run";
516
516
  requestSchema: v.StrictObjectSchema<{
517
- readonly scheduledFor: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.CheckAction<string, undefined>]>;
517
+ readonly scheduledFor: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
518
518
  readonly shardId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
519
519
  }, undefined>;
520
520
  responseSchema: v.StrictObjectSchema<{