@marcoappio/marco-config 4.0.17 → 4.0.19

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 (65) hide show
  1. package/dist/appwrite/appwrite.d.ts +557 -561
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +4 -7
  4. package/dist/appwrite/appwrite.test.js +55 -288
  5. package/dist/appwrite/commands.js +5 -5
  6. package/dist/appwrite/commands.test.js +13 -116
  7. package/dist/appwrite/decodedSchemas.js +2 -2
  8. package/dist/appwrite/functions.js +6 -6
  9. package/dist/appwrite/functions.test.js +1 -1
  10. package/dist/appwrite/index.d.ts +5 -3
  11. package/dist/appwrite/index.d.ts.map +1 -1
  12. package/dist/appwrite/index.js +4 -3
  13. package/dist/appwrite/tableContract/identity.d.ts +62 -62
  14. package/dist/appwrite/tableContract/identity.js +1 -1
  15. package/dist/appwrite/tableContract/index.d.ts +726 -726
  16. package/dist/appwrite/tableContract/index.js +5 -5
  17. package/dist/appwrite/tableContract/index.test.js +5 -5
  18. package/dist/appwrite/tableContract/mailbox.d.ts +88 -88
  19. package/dist/appwrite/tableContract/mailbox.js +1 -1
  20. package/dist/appwrite/tableContract/operational.d.ts +76 -76
  21. package/dist/appwrite/tableContract/operational.js +1 -1
  22. package/dist/appwrite/tableContract/shared.d.ts +1 -1
  23. package/dist/appwrite/tableContract/shared.js +1 -1
  24. package/dist/constants/emailProvider.js +1 -1
  25. package/dist/constants/index.js +5 -5
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/index.test.js +64 -14
  30. package/dist/schemas/app.js +1 -1
  31. package/dist/schemas/auth.js +1 -1
  32. package/dist/schemas/emailAccount.d.ts +1 -1
  33. package/dist/schemas/emailAccount.js +5 -5
  34. package/dist/schemas/index.d.ts +3 -3
  35. package/dist/schemas/index.js +9 -9
  36. package/dist/schemas/models/account.js +4 -4
  37. package/dist/schemas/models/contact.js +2 -2
  38. package/dist/schemas/models/draft.js +4 -4
  39. package/dist/schemas/models/index.d.ts +5 -5
  40. package/dist/schemas/models/index.js +5 -5
  41. package/dist/schemas/models/mailboxAddress.test.js +3 -3
  42. package/dist/schemas/models/numericSemantics.test.js +2 -2
  43. package/dist/schemas/models/thread.js +5 -5
  44. package/dist/schemas/models/user.d.ts +1 -1
  45. package/dist/schemas/models/user.js +3 -3
  46. package/dist/schemas/models/user.test.js +2 -2
  47. package/dist/schemas/number.js +1 -1
  48. package/dist/schemas/oauth.js +1 -1
  49. package/dist/schemas/pushNotifications.js +1 -1
  50. package/dist/schemas/scalars.test.js +2 -2
  51. package/dist/schemas/schemaValues.test.js +1 -1
  52. package/dist/schemas/string.js +1 -1
  53. package/dist/types/IMAPSourceLocation.d.ts +1 -1
  54. package/dist/types/index.d.ts +11 -11
  55. package/dist/types/index.js +11 -11
  56. package/dist/utils/accounts/index.d.ts +1 -1
  57. package/dist/utils/accounts/index.js +1 -1
  58. package/dist/utils/index.d.ts +3 -3
  59. package/dist/utils/index.js +3 -3
  60. package/dist/utils/labels/index.d.ts +1 -1
  61. package/dist/utils/threads/index.d.ts +2 -2
  62. package/dist/utils/threads/index.js +2 -2
  63. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
  64. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +1 -1
  65. package/package.json +15 -3
@@ -1,18 +1,20 @@
1
1
  import { describe, expect, expectTypeOf, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { appwriteCommandGroups as rootCommandGroups } from '../index';
4
- import { appwriteAvatar, appwriteCommandGroups, appwriteCommands } from './commands';
5
- import { appwriteCommandGroups as appwriteIndexCommandGroups } from './index';
3
+ import { appwriteCommandGroups as rootCommandGroups } from '../index.js';
4
+ import { appwriteAvatar, appwriteCommandGroups, appwriteCommands } from './commands.js';
5
+ import { appwriteCommandGroups as appwriteIndexCommandGroups } from './index.js';
6
6
  const commandMetadata = {
7
7
  id: '0197f3d4-1b22-7abc-8def-123456789abc',
8
8
  submittedAt: '2026-07-15T00:00:00.000Z',
9
9
  version: 1,
10
10
  };
11
11
  const avatarSha256 = 'a'.repeat(64);
12
- const commandFixtures = [
12
+ const commandFixture = (command) => ({
13
+ command: { ...commandMetadata, accountId: 'account_1', ...command },
14
+ });
15
+ const commandFixtureInputs = [
13
16
  {
14
17
  command: {
15
- ...commandMetadata,
16
18
  accountId: null,
17
19
  kind: 'profile.settings.set',
18
20
  payload: { name: 'Isaac', timezone: 'Europe/London' },
@@ -20,186 +22,140 @@ const commandFixtures = [
20
22
  },
21
23
  {
22
24
  command: {
23
- ...commandMetadata,
24
- accountId: 'account_1',
25
25
  kind: 'account.settings.set',
26
26
  payload: { colour: '#000000', displayName: 'Marco' },
27
27
  },
28
28
  },
29
- { command: { ...commandMetadata, accountId: 'account_1', kind: 'account.delete', payload: {} } },
29
+ { command: { kind: 'account.delete', payload: {} } },
30
30
  {
31
31
  command: {
32
- ...commandMetadata,
33
- accountId: 'account_1',
34
32
  kind: 'alias.create',
35
33
  payload: { aliasId: 'alias_1', email: 'marco@example.com', name: null, signature: null },
36
34
  },
37
35
  },
38
36
  {
39
37
  command: {
40
- ...commandMetadata,
41
- accountId: 'account_1',
42
38
  kind: 'alias.delete',
43
39
  payload: { aliasId: 'alias_1' },
44
40
  },
45
41
  },
46
42
  {
47
43
  command: {
48
- ...commandMetadata,
49
- accountId: 'account_1',
50
44
  kind: 'alias.name.set',
51
45
  payload: { aliasId: 'alias_1', name: 'Marco' },
52
46
  },
53
47
  },
54
48
  {
55
49
  command: {
56
- ...commandMetadata,
57
- accountId: 'account_1',
58
50
  kind: 'alias.primary.set',
59
51
  payload: { aliasId: 'alias_1' },
60
52
  },
61
53
  },
62
54
  {
63
55
  command: {
64
- ...commandMetadata,
65
- accountId: 'account_1',
66
56
  kind: 'alias.signature.set',
67
57
  payload: { aliasId: 'alias_1', signature: 'Regards' },
68
58
  },
69
59
  },
70
60
  {
71
61
  command: {
72
- ...commandMetadata,
73
- accountId: 'account_1',
74
62
  kind: 'label.create',
75
63
  payload: { labelId: 'label_1', path: 'Projects' },
76
64
  },
77
65
  },
78
66
  {
79
67
  command: {
80
- ...commandMetadata,
81
- accountId: 'account_1',
82
68
  kind: 'label.delete',
83
69
  payload: { labelId: 'label_1' },
84
70
  },
85
71
  },
86
72
  {
87
73
  command: {
88
- ...commandMetadata,
89
- accountId: 'account_1',
90
74
  kind: 'label.rename',
91
75
  payload: { labelId: 'label_1', path: 'Projects/Marco' },
92
76
  },
93
77
  },
94
78
  {
95
79
  command: {
96
- ...commandMetadata,
97
- accountId: 'account_1',
98
80
  kind: 'thread.label.add',
99
81
  payload: { labelId: 'label_1', threadIds: ['thread_1'] },
100
82
  },
101
83
  },
102
84
  {
103
85
  command: {
104
- ...commandMetadata,
105
- accountId: 'account_1',
106
86
  kind: 'thread.label.remove',
107
87
  payload: { labelId: 'label_1', threadIds: ['thread_1'] },
108
88
  },
109
89
  },
110
90
  {
111
91
  command: {
112
- ...commandMetadata,
113
- accountId: 'account_1',
114
92
  kind: 'thread.archive.set',
115
93
  payload: { archived: true, threadIds: ['thread_1'] },
116
94
  },
117
95
  },
118
96
  {
119
97
  command: {
120
- ...commandMetadata,
121
- accountId: 'account_1',
122
98
  kind: 'thread.flagged.set',
123
99
  payload: { flagged: true, threadIds: ['thread_1'] },
124
100
  },
125
101
  },
126
102
  {
127
103
  command: {
128
- ...commandMetadata,
129
- accountId: 'account_1',
130
104
  kind: 'thread.seen.set',
131
105
  payload: { seen: true, threadIds: ['thread_1'] },
132
106
  },
133
107
  },
134
108
  {
135
109
  command: {
136
- ...commandMetadata,
137
- accountId: 'account_1',
138
110
  kind: 'thread.snooze.set',
139
111
  payload: { snoozedUntil: '2026-07-16T00:00:00.000Z', threadIds: ['thread_1'] },
140
112
  },
141
113
  },
142
114
  {
143
115
  command: {
144
- ...commandMetadata,
145
- accountId: 'account_1',
146
116
  kind: 'thread.spam.set',
147
117
  payload: { spam: true, threadIds: ['thread_1'] },
148
118
  },
149
119
  },
150
120
  {
151
121
  command: {
152
- ...commandMetadata,
153
- accountId: 'account_1',
154
122
  kind: 'thread.trash.set',
155
123
  payload: { threadIds: ['thread_1'], trashed: true },
156
124
  },
157
125
  },
158
126
  {
159
127
  command: {
160
- ...commandMetadata,
161
- accountId: 'account_1',
162
128
  kind: 'thread.delete',
163
129
  payload: { threadIds: ['thread_1'] },
164
130
  },
165
131
  },
166
132
  {
167
133
  command: {
168
- ...commandMetadata,
169
- accountId: 'account_1',
170
134
  kind: 'draft.create',
171
135
  payload: { draftId: 'draft_1', fromAliasId: null, referencedMessageId: null, type: 'NEW' },
172
136
  },
173
137
  },
174
138
  {
175
139
  command: {
176
- ...commandMetadata,
177
- accountId: 'account_1',
178
140
  kind: 'draft.content.set',
179
141
  payload: { draftId: 'draft_1', html: '<p>Hello</p>' },
180
142
  },
181
143
  },
182
144
  {
183
145
  command: {
184
- ...commandMetadata,
185
- accountId: 'account_1',
186
146
  kind: 'draft.envelope.set',
187
147
  payload: { bcc: [], cc: [], draftId: 'draft_1', subject: 'Hello', to: ['marco@example.com'] },
188
148
  },
189
149
  },
190
150
  {
191
151
  command: {
192
- ...commandMetadata,
193
- accountId: 'account_1',
194
152
  kind: 'draft.from.set',
195
153
  payload: { draftId: 'draft_1', fromAliasId: 'alias_1', targetAccountId: 'account_2' },
196
154
  },
197
155
  },
198
- { command: { ...commandMetadata, accountId: 'account_1', kind: 'draft.delete', payload: { draftId: 'draft_1' } } },
156
+ { command: { kind: 'draft.delete', payload: { draftId: 'draft_1' } } },
199
157
  {
200
158
  command: {
201
- ...commandMetadata,
202
- accountId: 'account_1',
203
159
  kind: 'draft.attachment.link',
204
160
  payload: {
205
161
  draftId: 'draft_1',
@@ -212,74 +168,35 @@ const commandFixtures = [
212
168
  },
213
169
  {
214
170
  command: {
215
- ...commandMetadata,
216
- accountId: 'account_1',
217
171
  kind: 'draft.attachment.delete',
218
172
  payload: { draftId: 'draft_1', fileId: 'file_1' },
219
173
  },
220
174
  },
221
- { command: { ...commandMetadata, accountId: 'account_1', kind: 'draft.send', payload: { draftId: 'draft_1' } } },
175
+ { command: { kind: 'draft.send', payload: { draftId: 'draft_1' } } },
222
176
  {
223
177
  command: {
224
- ...commandMetadata,
225
- accountId: 'account_1',
226
178
  kind: 'draft.send.cancel',
227
179
  payload: { draftId: 'draft_1' },
228
180
  },
229
181
  },
230
182
  {
231
183
  command: {
232
- ...commandMetadata,
233
- accountId: 'account_1',
234
184
  kind: 'draft.send.schedule',
235
185
  payload: { draftId: 'draft_1', scheduledAt: '2026-07-16T00:00:00.000Z' },
236
186
  },
237
187
  },
238
188
  {
239
189
  command: {
240
- ...commandMetadata,
241
190
  accountId: null,
242
191
  kind: 'profile.avatar.set',
243
192
  payload: { sha256: avatarSha256 },
244
193
  },
245
194
  },
246
195
  ];
196
+ const commandFixtures = commandFixtureInputs.map(({ command }) => commandFixture(command));
247
197
  describe('appwriteCommands', () => {
248
- it('publishes the complete version-one command and status manifest', () => {
198
+ it('publishes the version-one status and error manifest', () => {
249
199
  expect(appwriteCommands.version).toBe(1);
250
- expect(appwriteCommands.kinds).toEqual([
251
- 'account.delete',
252
- 'account.settings.set',
253
- 'alias.create',
254
- 'alias.delete',
255
- 'alias.name.set',
256
- 'alias.primary.set',
257
- 'alias.signature.set',
258
- 'draft.attachment.delete',
259
- 'draft.attachment.link',
260
- 'draft.content.set',
261
- 'draft.create',
262
- 'draft.delete',
263
- 'draft.envelope.set',
264
- 'draft.from.set',
265
- 'draft.send',
266
- 'draft.send.cancel',
267
- 'draft.send.schedule',
268
- 'label.create',
269
- 'label.delete',
270
- 'label.rename',
271
- 'profile.avatar.set',
272
- 'profile.settings.set',
273
- 'thread.archive.set',
274
- 'thread.delete',
275
- 'thread.flagged.set',
276
- 'thread.label.add',
277
- 'thread.label.remove',
278
- 'thread.seen.set',
279
- 'thread.snooze.set',
280
- 'thread.spam.set',
281
- 'thread.trash.set',
282
- ]);
283
200
  expect(appwriteCommands.states).toEqual(['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED']);
284
201
  expect(appwriteCommands.errorCodes).toEqual([
285
202
  'AUTHENTICATION_FAILED',
@@ -296,27 +213,7 @@ describe('appwriteCommands', () => {
296
213
  const groupedKinds = Object.values(appwriteCommandGroups).flat();
297
214
  const fixtureKinds = commandFixtures.map(({ command }) => command.kind);
298
215
  expect(Object.keys(appwriteCommandGroups)).toEqual(['account', 'draft', 'draftSend', 'label', 'profileAvatar', 'profileSettings', 'thread']);
299
- expect(appwriteCommandGroups).toEqual({
300
- account: ['account.delete', 'account.settings.set', 'alias.create', 'alias.delete', 'alias.name.set', 'alias.primary.set', 'alias.signature.set'],
301
- draft: ['draft.attachment.delete', 'draft.attachment.link', 'draft.content.set', 'draft.create', 'draft.delete', 'draft.envelope.set', 'draft.from.set'],
302
- draftSend: ['draft.send', 'draft.send.cancel', 'draft.send.schedule'],
303
- label: ['label.create', 'label.delete', 'label.rename'],
304
- profileAvatar: ['profile.avatar.set'],
305
- profileSettings: ['profile.settings.set'],
306
- thread: [
307
- 'thread.archive.set',
308
- 'thread.delete',
309
- 'thread.flagged.set',
310
- 'thread.label.add',
311
- 'thread.label.remove',
312
- 'thread.seen.set',
313
- 'thread.snooze.set',
314
- 'thread.spam.set',
315
- 'thread.trash.set',
316
- ],
317
- });
318
- expect(groupedKinds).toHaveLength(31);
319
- expect(new Set(groupedKinds).size).toBe(31);
216
+ expect(new Set(groupedKinds).size).toBe(groupedKinds.length);
320
217
  expect(groupedKinds).toEqual([...appwriteCommands.kinds]);
321
218
  expect(Object.values(appwriteCommandGroups).every(Object.isFrozen)).toBe(true);
322
219
  expect(Object.isFrozen(appwriteCommands.kinds)).toBe(true);
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
- import { mailboxAddressSchema, nonNegativeIntegerSchema } from '../schemas/scalars';
3
- import { appwriteRowIdSchema } from './tableContract';
2
+ import { mailboxAddressSchema, nonNegativeIntegerSchema } from '../schemas/scalars.js';
3
+ import { appwriteRowIdSchema } from './tableContract/index.js';
4
4
  export const appwriteDraftAttachmentSchema = v.strictObject({
5
5
  fileId: appwriteRowIdSchema,
6
6
  fileName: v.pipe(v.string(), v.minLength(1), v.maxLength(255)),
@@ -1,10 +1,10 @@
1
1
  import * as v from 'valibot';
2
- import { oauth } from '../constants/oauth';
3
- import { id } from '../schemas/id';
4
- import { string } from '../schemas/string';
5
- import { appwrite, appwriteRowIdSchema } from './appwrite';
6
- import { appwriteCommands } from './commands';
7
- import { accountStates, canonicalTimestampSchema, portSchema, socketTypes, webEmailSchema } from './tableContract';
2
+ import { oauth } from '../constants/oauth.js';
3
+ import { id } from '../schemas/id.js';
4
+ import { string } from '../schemas/string.js';
5
+ import { appwrite } from './appwrite.js';
6
+ import { appwriteCommands } from './commands.js';
7
+ import { accountStates, appwriteRowIdSchema, canonicalTimestampSchema, portSchema, socketTypes, webEmailSchema } from './tableContract/index.js';
8
8
  const functionErrorCodes = [
9
9
  'AUTHENTICATION_FAILED',
10
10
  'AUTHORIZATION_FAILED',
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { appwriteFunctions } from './functions';
3
+ import { appwriteFunctions } from './functions.js';
4
4
  const command = {
5
5
  accountId: null,
6
6
  id: '0197f3d4-1b22-7abc-8def-123456789abc',
@@ -1,4 +1,6 @@
1
- export { type AppwriteColumnDefinition, type AppwriteColumnSchema, type AppwriteColumnType, type AppwriteDataRow, type AppwriteDraftAttachment, type AppwriteDraftEnvelope, type AppwriteEnvironment, type AppwriteIndexDefinition, type AppwriteIndexType, type AppwriteMailboxSyncLane, type AppwriteMailboxSyncLaneState, type AppwriteMailboxSyncState, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwritePollShardState, type AppwriteRelationshipDefinition, type AppwriteRelationshipOnDelete, type AppwriteRelationshipSchema, type AppwriteRelationshipType, type AppwriteRow, type AppwriteRowTable, type AppwriteTableDefinition, type AppwriteTableId, type AppwriteTableInput, type AppwriteTableKey, accountProviders, accountStates, appwrite, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableIdSchema, appwriteTableIds, appwriteTableContract, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, } from './appwrite';
2
- export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, appwriteAvatar, appwriteCommandGroups, appwriteCommands, } from './commands';
3
- export { type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, appwriteFunctions, } from './functions';
1
+ export * from './appwrite.js';
2
+ export * from './commands.js';
3
+ export type { AppwriteDraftAttachment, AppwriteDraftEnvelope } from './decodedSchemas.js';
4
+ export * from './functions.js';
5
+ export { type AppwriteColumnDefinition, type AppwriteColumnSchema, type AppwriteColumnType, type AppwriteDataRow, type AppwriteIndexDefinition, type AppwriteIndexType, type AppwriteMailboxSyncLane, type AppwriteMailboxSyncLaneState, type AppwriteMailboxSyncState, type AppwritePollShardState, type AppwriteRelationshipDefinition, type AppwriteRelationshipOnDelete, type AppwriteRelationshipSchema, type AppwriteRelationshipType, type AppwriteRow, type AppwriteRowTable, type AppwriteTableDefinition, type AppwriteTableId, type AppwriteTableInput, type AppwriteTableKey, accountProviders, accountStates, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableContract, appwriteTableIdSchema, appwriteTableIds, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUriSchema, oauthReturnUris, pollShardStates, } from './tableContract/index.js';
4
6
  //# 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,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,eAAe,GAChB,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,qBAAqB,EACrB,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,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACtF,cAAc,aAAa,CAAA;AAC3B,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAA"}
@@ -1,3 +1,4 @@
1
- export { accountProviders, accountStates, appwrite, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableIdSchema, appwriteTableIds, appwriteTableContract, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, } from './appwrite';
2
- export { appwriteAvatar, appwriteCommandGroups, appwriteCommands, } from './commands';
3
- export { appwriteFunctions, } from './functions';
1
+ export * from './appwrite.js';
2
+ export * from './commands.js';
3
+ export * from './functions.js';
4
+ export { accountProviders, accountStates, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableContract, appwriteTableIdSchema, appwriteTableIds, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUriSchema, oauthReturnUris, pollShardStates, } from './tableContract/index.js';
@@ -2,35 +2,35 @@ import * as v from 'valibot';
2
2
  export declare const identityTableInputs: {
3
3
  readonly accounts: {
4
4
  readonly fields: {
5
- readonly profileAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
6
- readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
7
- readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>>;
8
- readonly primaryEmail: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
9
- readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
10
- readonly colour: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>>;
11
- readonly pollShardAssignmentId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
12
- readonly pollShardId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
13
- readonly lastSuccessfulSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
14
- readonly lastErrorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
15
- readonly mailProcessedCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
16
- readonly mailTotalCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
17
- readonly initialSyncCompletedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
18
- readonly credential: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
5
+ readonly profileAssignmentKey: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
6
+ readonly provider: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
7
+ readonly state: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>>;
8
+ readonly primaryEmail: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
9
+ readonly displayName: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
10
+ readonly colour: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>>;
11
+ readonly pollShardAssignmentId: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
12
+ readonly pollShardId: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
13
+ readonly lastSuccessfulSyncAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
14
+ readonly lastErrorCode: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
15
+ readonly mailProcessedCount: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
16
+ readonly mailTotalCount: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
17
+ readonly initialSyncCompletedAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
18
+ readonly credential: import("./shared.js").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
19
19
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
20
20
  }, undefined>, v.TransformAction<{
21
21
  $id: string;
22
22
  }, string>]>], undefined>, undefined>>;
23
- readonly mailboxSyncState: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
23
+ readonly mailboxSyncState: import("./shared.js").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
25
25
  }, undefined>, v.TransformAction<{
26
26
  $id: string;
27
27
  }, string>]>], undefined>, undefined>>;
28
- readonly primaryAlias: import("./shared").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
28
+ readonly primaryAlias: import("./shared.js").AppwriteRelationshipSchema<v.NullableSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
29
29
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
30
30
  }, undefined>, v.TransformAction<{
31
31
  $id: string;
32
32
  }, string>]>], undefined>, undefined>>;
33
- readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
+ readonly profile: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
34
34
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
35
35
  }, undefined>, v.TransformAction<{
36
36
  $id: string;
@@ -65,13 +65,13 @@ export declare const identityTableInputs: {
65
65
  };
66
66
  readonly aliases: {
67
67
  readonly fields: {
68
- readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
69
- readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
70
- readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
71
- readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
72
- readonly signature: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
73
- readonly isPrimary: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
74
- readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
68
+ readonly accountAssignmentKey: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
69
+ readonly providerId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
70
+ readonly email: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
71
+ readonly name: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
72
+ readonly signature: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
73
+ readonly isPrimary: import("./shared.js").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
74
+ readonly account: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
75
75
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
76
76
  }, undefined>, v.TransformAction<{
77
77
  $id: string;
@@ -90,13 +90,13 @@ export declare const identityTableInputs: {
90
90
  };
91
91
  readonly credentials: {
92
92
  readonly fields: {
93
- readonly userId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
94
- readonly accountId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
95
- readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
96
- readonly encryptedPayload: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
97
- readonly expiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
98
- readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
99
- readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
93
+ readonly userId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
94
+ readonly accountId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
95
+ readonly provider: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
96
+ readonly encryptedPayload: import("./shared.js").AppwriteColumnSchema<v.StringSchema<undefined>>;
97
+ readonly expiresAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
98
+ readonly refreshLeaseExpiresAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
99
+ readonly refreshLeaseId: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
100
100
  };
101
101
  readonly indexes: readonly [{
102
102
  readonly attributes: readonly ["userId"];
@@ -111,14 +111,14 @@ export declare const identityTableInputs: {
111
111
  };
112
112
  readonly labels: {
113
113
  readonly fields: {
114
- readonly accountAssignmentKey: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
115
- readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
116
- readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
117
- readonly path: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
118
- readonly specialUse: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.PicklistSchema<readonly ["ALL", "ARCHIVE", "DRAFTS", "INBOX", "JUNK", "SENT", "STARRED", "TRASH"], undefined>, undefined>>;
119
- readonly totalCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
120
- readonly unreadCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
121
- readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
114
+ readonly accountAssignmentKey: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
115
+ readonly providerId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
116
+ readonly name: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
117
+ readonly path: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
118
+ readonly specialUse: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.PicklistSchema<readonly ["ALL", "ARCHIVE", "DRAFTS", "INBOX", "JUNK", "SENT", "STARRED", "TRASH"], undefined>, undefined>>;
119
+ readonly totalCount: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
120
+ readonly unreadCount: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
121
+ readonly account: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
122
122
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
123
123
  }, undefined>, v.TransformAction<{
124
124
  $id: string;
@@ -141,15 +141,15 @@ export declare const identityTableInputs: {
141
141
  };
142
142
  readonly oauthStates: {
143
143
  readonly fields: {
144
- readonly userId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
145
- readonly accountId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
146
- readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
147
- readonly expiresAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
148
- readonly nonceHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
149
- readonly operation: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["CONNECT", "REPLACE"], undefined>>;
150
- readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK"], undefined>>;
151
- readonly returnUri: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>>;
152
- readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
144
+ readonly userId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
145
+ readonly accountId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
146
+ readonly email: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
147
+ readonly expiresAt: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
148
+ readonly nonceHash: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
149
+ readonly operation: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["CONNECT", "REPLACE"], undefined>>;
150
+ readonly provider: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK"], undefined>>;
151
+ readonly returnUri: import("./shared.js").AppwriteColumnSchema<v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>>;
152
+ readonly profile: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
153
153
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
154
154
  }, undefined>, v.TransformAction<{
155
155
  $id: string;
@@ -160,10 +160,10 @@ export declare const identityTableInputs: {
160
160
  };
161
161
  readonly profileAvatarCleanups: {
162
162
  readonly fields: {
163
- readonly fileId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
164
- readonly claimId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
165
- readonly claimedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
166
- readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
163
+ readonly fileId: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
164
+ readonly claimId: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
165
+ readonly claimedAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
166
+ readonly profile: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
167
167
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
168
168
  }, undefined>, v.TransformAction<{
169
169
  $id: string;
@@ -175,12 +175,12 @@ export declare const identityTableInputs: {
175
175
  };
176
176
  readonly profiles: {
177
177
  readonly fields: {
178
- readonly email: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
179
- readonly avatarFileId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>>;
180
- readonly deletionRequestedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
181
- readonly name: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
182
- readonly onboardingState: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
183
- readonly timezone: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
178
+ readonly email: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>>;
179
+ readonly avatarFileId: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>>;
180
+ readonly deletionRequestedAt: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
181
+ readonly name: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
182
+ readonly onboardingState: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
183
+ readonly timezone: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
184
184
  };
185
185
  readonly indexes: readonly [{
186
186
  readonly attributes: readonly ["email"];
@@ -191,10 +191,10 @@ export declare const identityTableInputs: {
191
191
  };
192
192
  readonly savedViews: {
193
193
  readonly fields: {
194
- readonly name: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
195
- readonly icon: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
196
- readonly aliasIds: import("./shared").AppwriteColumnSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
197
- readonly profile: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
194
+ readonly name: import("./shared.js").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
195
+ readonly icon: import("./shared.js").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
196
+ readonly aliasIds: import("./shared.js").AppwriteColumnSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
197
+ readonly profile: import("./shared.js").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
198
198
  readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
199
199
  }, undefined>, v.TransformAction<{
200
200
  $id: string;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  /* oxlint-disable eslint/sort-keys */
3
- import { accountProviders, accountStates, appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, colourSchema, defineAppwriteTableGroup, webEmailSchema, identifierSchema, labelSpecialUses, oauthOperations, oauthProviders, oauthReturnUriSchema, appwriteRowIdSchema, isoTimestampSchema, nonNegativeIntegerSchema, } from './shared';
3
+ import { accountProviders, accountStates, appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, colourSchema, defineAppwriteTableGroup, webEmailSchema, identifierSchema, labelSpecialUses, oauthOperations, oauthProviders, oauthReturnUriSchema, appwriteRowIdSchema, isoTimestampSchema, nonNegativeIntegerSchema, } from './shared.js';
4
4
  const { boolean, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
5
5
  export const identityTableInputs = defineAppwriteTableGroup({
6
6
  accounts: {