@marcoappio/marco-config 4.0.4 → 4.0.5

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.
@@ -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;AAO5B,eAAO,MAAM,mBAAmB,6KAA+F,CAAA;AAkB/H,QAAA,MAAM,qBAAqB;;;;;aAKzB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;eASxB,CAAA;AACD,QAAA,MAAM,uBAAuB;;;;;;;aAO3B,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;;aAI1B,CAAA;AAGF,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAA;AAC/F,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAA;AAC3F,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAA;AACnG,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAA;AASjG,QAAA,MAAM,gBAAgB,+BAAgC,CAAA;AACtD,QAAA,MAAM,qBAAqB,wDAAyD,CAAA;AACpF,QAAA,MAAM,iBAAiB,qDAAsD,CAAA;AAK7E,QAAA,MAAM,eAAe,0CAA2C,CAAA;AAChE,QAAA,MAAM,oBAAoB,EAAE,SAAS,CAAC,aAAa,EAAE,YAAY,EAAE,SAAS,CAA4C,CAAA;AACxH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAA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MAAM,MAAM,WAAW,CAAC,MAAM,SAAS,gBAAgB,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  import { MESSAGE_RECIPIENT_TYPES } from '../types';
3
- import { appwriteCommands } from './commands';
4
3
  const identifierSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(255));
5
4
  export const appwriteRowIdSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(36), v.regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/));
6
5
  const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
7
6
  const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
8
7
  const colourSchema = v.pipe(v.string(), v.maxLength(64));
9
8
  const emailSchema = v.pipe(v.string(), v.email());
9
+ const mailboxSortKeySchema = v.pipe(v.string(), v.minLength(1), v.maxLength(257));
10
10
  const jsonObjectTextSchema = v.pipe(v.string(), v.parseJson(), v.check(value => !Array.isArray(value)), v.looseObject({}));
11
11
  const appwriteRelationshipIdSchema = v.union([
12
12
  identifierSchema,
@@ -101,12 +101,15 @@ const appwriteIds = {
101
101
  drafts: 'drafts',
102
102
  jobs: 'jobs_v2',
103
103
  labels: 'labels',
104
+ mailboxSyncCandidates: 'mailbox_sync_candidates_v2',
104
105
  mailboxSyncLanes: 'mailbox_sync_lanes',
105
106
  mailboxSyncStates: 'mailbox_sync_states',
107
+ messageLocations: 'message_locations',
106
108
  messages: 'messages',
107
109
  oauthStates: 'oauth_states',
108
110
  pollShardCoordinators: 'poll_shard_coordinators',
109
111
  pollShards: 'poll_shards',
112
+ profileAvatarCleanups: 'profile_avatar_cleanups',
110
113
  profiles: 'profiles',
111
114
  pushNotificationTokens: 'push_notification_tokens',
112
115
  savedViews: 'saved_views',
@@ -128,43 +131,45 @@ const rowSchemas = {
128
131
  accounts: v.strictObject({
129
132
  ...wireMetadata(appwriteIds.tables.accounts),
130
133
  colour: colourSchema,
131
- credential: identifierSchema,
134
+ credential: v.nullable(appwriteRelationshipIdSchema),
132
135
  displayName: v.nullable(identifierSchema),
133
136
  initialSyncCompletedAt: v.nullable(timestampSchema),
134
137
  lastErrorCode: v.nullable(identifierSchema),
135
138
  lastSuccessfulSyncAt: v.nullable(timestampSchema),
136
- mailboxSyncState: identifierSchema,
139
+ mailboxSyncState: v.nullable(appwriteRelationshipIdSchema),
137
140
  mailProcessedCount: nonNegativeIntegerSchema,
138
141
  mailTotalCount: nonNegativeIntegerSchema,
139
- pollShard: v.nullable(identifierSchema),
142
+ pollShardAssignmentId: v.nullable(identifierSchema),
140
143
  pollShardId: v.nullable(identifierSchema),
141
- primaryAlias: v.nullable(identifierSchema),
142
- primaryAliasId: v.nullable(identifierSchema),
144
+ primaryAlias: v.nullable(appwriteRelationshipIdSchema),
143
145
  primaryEmail: emailSchema,
144
- profile: identifierSchema,
146
+ profile: appwriteRelationshipIdSchema,
147
+ profileAssignmentKey: identifierSchema,
145
148
  provider: v.picklist(accountProviders),
146
149
  state: v.picklist(accountStates),
147
- userId: identifierSchema,
148
150
  }),
149
151
  aliases: v.strictObject({
150
152
  ...wireMetadata(appwriteIds.tables.aliases),
151
- accountId: identifierSchema,
153
+ account: appwriteRelationshipIdSchema,
154
+ accountAssignmentKey: identifierSchema,
152
155
  email: emailSchema,
153
156
  isPrimary: v.boolean(),
154
157
  name: v.nullable(identifierSchema),
155
158
  providerId: identifierSchema,
156
159
  signature: v.nullable(v.string()),
157
- userId: identifierSchema,
158
160
  }),
159
161
  commands: v.strictObject({
160
162
  ...wireMetadata(appwriteIds.tables.commands),
163
+ account: v.nullable(appwriteRelationshipIdSchema),
161
164
  accountId: v.nullable(identifierSchema),
162
165
  attempts: nonNegativeIntegerSchema,
163
166
  canonicalRevision: v.nullable(nonNegativeIntegerSchema),
167
+ draftId: v.nullable(identifierSchema),
164
168
  errorCode: v.nullable(identifierSchema),
165
169
  kind: identifierSchema,
166
170
  payload: v.string(),
167
171
  payloadHash: identifierSchema,
172
+ profile: appwriteRelationshipIdSchema,
168
173
  state: v.picklist(commandStates),
169
174
  submittedAt: timestampSchema,
170
175
  userId: identifierSchema,
@@ -175,8 +180,9 @@ const rowSchemas = {
175
180
  lastContactedAt: v.nullable(timestampSchema),
176
181
  messageCount: nonNegativeIntegerSchema,
177
182
  normalisedAddress: emailSchema,
183
+ profile: appwriteRelationshipIdSchema,
184
+ profileAssignmentKey: identifierSchema,
178
185
  searchText: v.string(),
179
- userId: identifierSchema,
180
186
  }),
181
187
  credentials: v.strictObject({
182
188
  ...wireMetadata(appwriteIds.tables.credentials),
@@ -184,24 +190,28 @@ const rowSchemas = {
184
190
  encryptedPayload: v.string(),
185
191
  expiresAt: v.nullable(timestampSchema),
186
192
  provider: v.picklist(accountProviders),
193
+ refreshLeaseExpiresAt: v.nullable(timestampSchema),
194
+ refreshLeaseId: v.nullable(identifierSchema),
187
195
  userId: identifierSchema,
188
196
  }),
189
197
  drafts: v.strictObject({
190
198
  ...wireMetadata(appwriteIds.tables.drafts),
191
- accountId: identifierSchema,
199
+ account: appwriteRelationshipIdSchema,
200
+ accountAssignmentKey: identifierSchema,
192
201
  attachmentMetadata: v.string(),
193
202
  contentHash: identifierSchema,
194
203
  envelope: v.string(),
195
204
  errorCode: v.nullable(identifierSchema),
196
- fromAliasId: v.nullable(identifierSchema),
205
+ executionLeaseExpiresAt: v.nullable(timestampSchema),
206
+ executionLeaseId: v.nullable(identifierSchema),
207
+ fromAlias: v.nullable(appwriteRelationshipIdSchema),
197
208
  html: v.string(),
198
- referencedMessageId: v.nullable(identifierSchema),
209
+ referencedMessage: v.nullable(appwriteRelationshipIdSchema),
199
210
  revision: nonNegativeIntegerSchema,
200
211
  scheduledAt: v.nullable(timestampSchema),
201
212
  sequence: nonNegativeIntegerSchema,
202
213
  status: v.picklist(draftStates),
203
214
  type: v.picklist(draftTypes),
204
- userId: identifierSchema,
205
215
  }),
206
216
  jobs: v.strictObject({
207
217
  ...wireMetadata(appwriteIds.tables.jobs),
@@ -221,20 +231,39 @@ const rowSchemas = {
221
231
  }),
222
232
  labels: v.strictObject({
223
233
  ...wireMetadata(appwriteIds.tables.labels),
224
- accountId: identifierSchema,
234
+ account: appwriteRelationshipIdSchema,
235
+ accountAssignmentKey: identifierSchema,
225
236
  name: v.nullable(identifierSchema),
226
237
  path: identifierSchema,
227
238
  providerId: identifierSchema,
228
239
  specialUse: v.nullable(v.picklist(labelSpecialUses)),
229
240
  totalCount: nonNegativeIntegerSchema,
230
241
  unreadCount: nonNegativeIntegerSchema,
242
+ }),
243
+ mailboxSyncCandidates: v.strictObject({
244
+ ...wireMetadata(appwriteIds.tables.mailboxSyncCandidates),
245
+ account: appwriteRelationshipIdSchema,
246
+ accountId: identifierSchema,
247
+ generation: nonNegativeIntegerSchema,
248
+ label: appwriteRelationshipIdSchema,
249
+ labelId: identifierSchema,
250
+ lane: v.picklist(mailboxSyncLanes),
251
+ mailboxPath: identifierSchema,
252
+ mailboxPriority: nonNegativeIntegerSchema,
253
+ mailboxSortKey: mailboxSortKeySchema,
254
+ providerId: identifierSchema,
255
+ receivedAt: timestampSchema,
256
+ specialUse: v.nullable(v.picklist(labelSpecialUses)),
257
+ uid: nonNegativeIntegerSchema,
258
+ uidValidity: nonNegativeIntegerSchema,
231
259
  userId: identifierSchema,
232
260
  }),
233
261
  mailboxSyncLanes: v.strictObject({
234
262
  ...wireMetadata(appwriteIds.tables.mailboxSyncLanes),
235
263
  $permissions: v.pipe(v.array(v.string()), v.length(0)),
264
+ account: appwriteRelationshipIdSchema,
236
265
  accountId: identifierSchema,
237
- commandId: appwriteCommands.idSchema,
266
+ commandId: identifierSchema,
238
267
  cursor: v.nullable(v.string()),
239
268
  errorCode: v.nullable(identifierSchema),
240
269
  generation: nonNegativeIntegerSchema,
@@ -244,9 +273,12 @@ const rowSchemas = {
244
273
  }),
245
274
  mailboxSyncStates: v.strictObject({
246
275
  ...wireMetadata(appwriteIds.tables.mailboxSyncStates),
276
+ accountId: identifierSchema,
247
277
  errorCode: v.nullable(identifierSchema),
248
278
  lastEventAt: v.nullable(timestampSchema),
249
279
  lastSyncAt: v.nullable(timestampSchema),
280
+ materialisationLeaseExpiresAt: v.nullable(timestampSchema),
281
+ materialisationLeaseId: v.nullable(identifierSchema),
250
282
  nextPollAt: v.nullable(timestampSchema),
251
283
  provider: v.picklist(accountProviders),
252
284
  providerCursor: v.nullable(v.string()),
@@ -254,6 +286,21 @@ const rowSchemas = {
254
286
  uidValidity: v.nullable(v.string()),
255
287
  userId: identifierSchema,
256
288
  }),
289
+ messageLocations: v.strictObject({
290
+ ...wireMetadata(appwriteIds.tables.messageLocations),
291
+ account: appwriteRelationshipIdSchema,
292
+ accountAssignmentKey: identifierSchema,
293
+ flagged: v.boolean(),
294
+ label: appwriteRelationshipIdSchema,
295
+ labelAssignmentKey: identifierSchema,
296
+ message: appwriteRelationshipIdSchema,
297
+ messageAt: timestampSchema,
298
+ seen: v.boolean(),
299
+ thread: appwriteRelationshipIdSchema,
300
+ threadAssignmentKey: identifierSchema,
301
+ uid: nonNegativeIntegerSchema,
302
+ uidValidity: nonNegativeIntegerSchema,
303
+ }),
257
304
  messages: v.strictObject({
258
305
  ...wireMetadata(appwriteIds.tables.messages),
259
306
  account: appwriteRelationshipIdSchema,
@@ -282,7 +329,7 @@ const rowSchemas = {
282
329
  expiresAt: timestampSchema,
283
330
  nonceHash: identifierSchema,
284
331
  operation: v.picklist(oauthOperations),
285
- profile: identifierSchema,
332
+ profile: appwriteRelationshipIdSchema,
286
333
  provider: v.picklist(oauthProviders),
287
334
  returnUri: oauthReturnUriSchema,
288
335
  userId: identifierSchema,
@@ -306,6 +353,14 @@ const rowSchemas = {
306
353
  scheduledExecutionId: v.nullable(identifierSchema),
307
354
  state: v.picklist(pollShardStates),
308
355
  }),
356
+ profileAvatarCleanups: v.strictObject({
357
+ ...wireMetadata(appwriteIds.tables.profileAvatarCleanups),
358
+ $permissions: v.pipe(v.array(v.string()), v.length(0)),
359
+ claimedAt: v.nullable(timestampSchema),
360
+ claimId: v.nullable(identifierSchema),
361
+ fileId: identifierSchema,
362
+ profile: appwriteRelationshipIdSchema,
363
+ }),
309
364
  profiles: v.strictObject({
310
365
  ...wireMetadata(appwriteIds.tables.profiles),
311
366
  avatarFileId: v.nullable(appwriteRowIdSchema),
@@ -317,6 +372,7 @@ const rowSchemas = {
317
372
  }),
318
373
  pushNotificationTokens: v.strictObject({
319
374
  ...wireMetadata(appwriteIds.tables.pushNotificationTokens),
375
+ profile: appwriteRelationshipIdSchema,
320
376
  token: identifierSchema,
321
377
  userId: identifierSchema,
322
378
  }),
@@ -325,6 +381,7 @@ const rowSchemas = {
325
381
  aliasIds: v.array(identifierSchema),
326
382
  icon: v.nullable(identifierSchema),
327
383
  name: identifierSchema,
384
+ profile: appwriteRelationshipIdSchema,
328
385
  }),
329
386
  threadAliases: v.strictObject({
330
387
  ...wireMetadata(appwriteIds.tables.threadAliases),
@@ -383,19 +440,8 @@ export const appwrite = {
383
440
  deployments: appwriteDeployments,
384
441
  environments: appwriteEnvironments,
385
442
  ids: appwriteIds,
386
- mailboxSync: {
387
- laneStates: mailboxSyncLaneStates,
388
- lanes: mailboxSyncLanes,
389
- states: mailboxSyncStates,
390
- },
391
- oauth: {
392
- operations: oauthOperations,
393
- providers: oauthProviders,
394
- returnUriSchema: oauthReturnUriSchema,
395
- returnUris: oauthReturnUris,
396
- },
397
- polling: {
398
- shardStates: pollShardStates,
399
- },
443
+ mailboxSync: { laneStates: mailboxSyncLaneStates, lanes: mailboxSyncLanes, states: mailboxSyncStates },
444
+ oauth: { operations: oauthOperations, providers: oauthProviders, returnUriSchema: oauthReturnUriSchema, returnUris: oauthReturnUris },
445
+ polling: { shardStates: pollShardStates },
400
446
  rowSchemas,
401
447
  };