@marcoappio/marco-config 2.0.581 → 2.0.582
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.
|
@@ -130,7 +130,7 @@ export declare const appwriteCommands: {
|
|
|
130
130
|
readonly kind: v.LiteralSchema<"thread.label.add", undefined>;
|
|
131
131
|
readonly payload: v.StrictObjectSchema<{
|
|
132
132
|
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
133
|
-
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>]>;
|
|
133
|
+
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>]>;
|
|
134
134
|
}, undefined>;
|
|
135
135
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
136
136
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -140,7 +140,7 @@ export declare const appwriteCommands: {
|
|
|
140
140
|
readonly kind: v.LiteralSchema<"thread.label.remove", undefined>;
|
|
141
141
|
readonly payload: v.StrictObjectSchema<{
|
|
142
142
|
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
143
|
-
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>]>;
|
|
143
|
+
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>]>;
|
|
144
144
|
}, undefined>;
|
|
145
145
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
146
146
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -150,7 +150,7 @@ export declare const appwriteCommands: {
|
|
|
150
150
|
readonly kind: v.LiteralSchema<"thread.archive.set", undefined>;
|
|
151
151
|
readonly payload: v.StrictObjectSchema<{
|
|
152
152
|
readonly archived: v.BooleanSchema<undefined>;
|
|
153
|
-
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>]>;
|
|
153
|
+
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>]>;
|
|
154
154
|
}, undefined>;
|
|
155
155
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
156
156
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -160,7 +160,7 @@ export declare const appwriteCommands: {
|
|
|
160
160
|
readonly kind: v.LiteralSchema<"thread.flagged.set", undefined>;
|
|
161
161
|
readonly payload: v.StrictObjectSchema<{
|
|
162
162
|
readonly flagged: v.BooleanSchema<undefined>;
|
|
163
|
-
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>]>;
|
|
163
|
+
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>]>;
|
|
164
164
|
}, undefined>;
|
|
165
165
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
166
166
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -170,7 +170,7 @@ export declare const appwriteCommands: {
|
|
|
170
170
|
readonly kind: v.LiteralSchema<"thread.seen.set", undefined>;
|
|
171
171
|
readonly payload: v.StrictObjectSchema<{
|
|
172
172
|
readonly seen: v.BooleanSchema<undefined>;
|
|
173
|
-
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>]>;
|
|
173
|
+
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>]>;
|
|
174
174
|
}, undefined>;
|
|
175
175
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
176
176
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -180,7 +180,7 @@ export declare const appwriteCommands: {
|
|
|
180
180
|
readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
|
|
181
181
|
readonly payload: v.StrictObjectSchema<{
|
|
182
182
|
readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
183
|
-
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>]>;
|
|
183
|
+
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>]>;
|
|
184
184
|
}, undefined>;
|
|
185
185
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
186
186
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -190,7 +190,7 @@ export declare const appwriteCommands: {
|
|
|
190
190
|
readonly kind: v.LiteralSchema<"thread.spam.set", undefined>;
|
|
191
191
|
readonly payload: v.StrictObjectSchema<{
|
|
192
192
|
readonly spam: v.BooleanSchema<undefined>;
|
|
193
|
-
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>]>;
|
|
193
|
+
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>]>;
|
|
194
194
|
}, undefined>;
|
|
195
195
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
196
196
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -199,7 +199,7 @@ export declare const appwriteCommands: {
|
|
|
199
199
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
200
200
|
readonly kind: v.LiteralSchema<"thread.trash.set", undefined>;
|
|
201
201
|
readonly payload: v.StrictObjectSchema<{
|
|
202
|
-
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>]>;
|
|
202
|
+
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>]>;
|
|
203
203
|
readonly trashed: v.BooleanSchema<undefined>;
|
|
204
204
|
}, undefined>;
|
|
205
205
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -209,7 +209,7 @@ export declare const appwriteCommands: {
|
|
|
209
209
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
210
210
|
readonly kind: v.LiteralSchema<"thread.delete", undefined>;
|
|
211
211
|
readonly payload: v.StrictObjectSchema<{
|
|
212
|
-
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>]>;
|
|
212
|
+
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>]>;
|
|
213
213
|
}, undefined>;
|
|
214
214
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
215
215
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -344,6 +344,7 @@ export declare const appwriteCommands: {
|
|
|
344
344
|
readonly state: v.LiteralSchema<"FAILED", undefined>;
|
|
345
345
|
}, undefined>], undefined>;
|
|
346
346
|
readonly states: readonly ["ACCEPTED", "RUNNING", "SUCCEEDED", "FAILED"];
|
|
347
|
+
readonly threadCommandBatchSize: 100;
|
|
347
348
|
readonly version: 1;
|
|
348
349
|
};
|
|
349
350
|
export type AppwriteCommandError = v.InferOutput<typeof appwriteCommands.errorSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/appwrite/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/appwrite/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,cAAc;2BACF,MAAM,UAAU,MAAM,KAAG,MAAM;CAEvD,CAAA;AA4PD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASnB,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,WAAW,CAAC,CAAA;AACrF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,aAAa,CAAC,CAAA;AACzF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAA;AAChE,MAAM,MAAM,sBAAsB,CAAC,KAAK,SAAS,mBAAmB,IAAI,OAAO,CAC7E,sBAAsB,EACtB;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAChB,CAAC,SAAS,CAAC,CAAA;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AAC3F,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -5,7 +5,8 @@ import { DRAFT_TYPES } from '../types';
|
|
|
5
5
|
const commandIdSchema = v.pipe(v.string(), v.uuid(), v.brand('CommandId'));
|
|
6
6
|
const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
7
7
|
const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
|
|
8
|
-
const
|
|
8
|
+
const appwriteThreadCommandBatchSize = 100;
|
|
9
|
+
const threadIdsSchema = v.pipe(v.array(id.threadId.required()), v.minLength(1), v.maxLength(appwriteThreadCommandBatchSize));
|
|
9
10
|
const avatarSha256Schema = v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/));
|
|
10
11
|
const appwriteUserIdSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(20), v.regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/));
|
|
11
12
|
export const appwriteAvatar = {
|
|
@@ -242,5 +243,6 @@ export const appwriteCommands = {
|
|
|
242
243
|
requestSchema: v.variant('kind', commandRequestSchemas),
|
|
243
244
|
responseSchema: v.variant('state', commandResponseSchemas),
|
|
244
245
|
states: commandStates,
|
|
246
|
+
threadCommandBatchSize: appwriteThreadCommandBatchSize,
|
|
245
247
|
version: 1,
|
|
246
248
|
};
|
|
@@ -298,6 +298,17 @@ describe('appwriteCommands', () => {
|
|
|
298
298
|
expect(() => appwriteAvatar.createFileId(avatarUserId, 'not-a-sha256')).toThrow();
|
|
299
299
|
expect(() => appwriteAvatar.createFileId('invalid!user', avatarSha256)).toThrow();
|
|
300
300
|
});
|
|
301
|
+
it('rejects a thread command larger than one bounded worker page', () => {
|
|
302
|
+
expect(v.safeParse(appwriteCommands.requestSchema, {
|
|
303
|
+
...commandMetadata,
|
|
304
|
+
accountId: 'account_1',
|
|
305
|
+
kind: 'thread.seen.set',
|
|
306
|
+
payload: {
|
|
307
|
+
seen: true,
|
|
308
|
+
threadIds: Array.from({ length: 101 }, (_, index) => `thread_${index}`),
|
|
309
|
+
},
|
|
310
|
+
}).success).toBe(false);
|
|
311
|
+
});
|
|
301
312
|
for (const { command } of commandFixtures) {
|
|
302
313
|
it(`accepts ${command.kind}`, () => {
|
|
303
314
|
expect(v.safeParse(appwriteCommands.requestSchema, command).success).toBe(true);
|
|
@@ -221,7 +221,7 @@ export declare const appwriteFunctions: {
|
|
|
221
221
|
readonly kind: v.LiteralSchema<"thread.label.add", undefined>;
|
|
222
222
|
readonly payload: v.StrictObjectSchema<{
|
|
223
223
|
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
224
|
-
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>]>;
|
|
224
|
+
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>]>;
|
|
225
225
|
}, undefined>;
|
|
226
226
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
227
227
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -231,7 +231,7 @@ export declare const appwriteFunctions: {
|
|
|
231
231
|
readonly kind: v.LiteralSchema<"thread.label.remove", undefined>;
|
|
232
232
|
readonly payload: v.StrictObjectSchema<{
|
|
233
233
|
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
|
|
234
|
-
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>]>;
|
|
234
|
+
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>]>;
|
|
235
235
|
}, undefined>;
|
|
236
236
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
237
237
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -241,7 +241,7 @@ export declare const appwriteFunctions: {
|
|
|
241
241
|
readonly kind: v.LiteralSchema<"thread.archive.set", undefined>;
|
|
242
242
|
readonly payload: v.StrictObjectSchema<{
|
|
243
243
|
readonly archived: v.BooleanSchema<undefined>;
|
|
244
|
-
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>]>;
|
|
244
|
+
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>]>;
|
|
245
245
|
}, undefined>;
|
|
246
246
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
247
247
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -251,7 +251,7 @@ export declare const appwriteFunctions: {
|
|
|
251
251
|
readonly kind: v.LiteralSchema<"thread.flagged.set", undefined>;
|
|
252
252
|
readonly payload: v.StrictObjectSchema<{
|
|
253
253
|
readonly flagged: v.BooleanSchema<undefined>;
|
|
254
|
-
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>]>;
|
|
254
|
+
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>]>;
|
|
255
255
|
}, undefined>;
|
|
256
256
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
257
257
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -261,7 +261,7 @@ export declare const appwriteFunctions: {
|
|
|
261
261
|
readonly kind: v.LiteralSchema<"thread.seen.set", undefined>;
|
|
262
262
|
readonly payload: v.StrictObjectSchema<{
|
|
263
263
|
readonly seen: v.BooleanSchema<undefined>;
|
|
264
|
-
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>]>;
|
|
264
|
+
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>]>;
|
|
265
265
|
}, undefined>;
|
|
266
266
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
267
267
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -271,7 +271,7 @@ export declare const appwriteFunctions: {
|
|
|
271
271
|
readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
|
|
272
272
|
readonly payload: v.StrictObjectSchema<{
|
|
273
273
|
readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
274
|
-
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>]>;
|
|
274
|
+
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>]>;
|
|
275
275
|
}, undefined>;
|
|
276
276
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
277
277
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -281,7 +281,7 @@ export declare const appwriteFunctions: {
|
|
|
281
281
|
readonly kind: v.LiteralSchema<"thread.spam.set", undefined>;
|
|
282
282
|
readonly payload: v.StrictObjectSchema<{
|
|
283
283
|
readonly spam: v.BooleanSchema<undefined>;
|
|
284
|
-
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>]>;
|
|
284
|
+
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>]>;
|
|
285
285
|
}, undefined>;
|
|
286
286
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
287
287
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
@@ -290,7 +290,7 @@ export declare const appwriteFunctions: {
|
|
|
290
290
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
291
291
|
readonly kind: v.LiteralSchema<"thread.trash.set", undefined>;
|
|
292
292
|
readonly payload: v.StrictObjectSchema<{
|
|
293
|
-
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>]>;
|
|
293
|
+
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>]>;
|
|
294
294
|
readonly trashed: v.BooleanSchema<undefined>;
|
|
295
295
|
}, undefined>;
|
|
296
296
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -300,7 +300,7 @@ export declare const appwriteFunctions: {
|
|
|
300
300
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
|
|
301
301
|
readonly kind: v.LiteralSchema<"thread.delete", undefined>;
|
|
302
302
|
readonly payload: v.StrictObjectSchema<{
|
|
303
|
-
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>]>;
|
|
303
|
+
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>]>;
|
|
304
304
|
}, undefined>;
|
|
305
305
|
readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
306
306
|
readonly version: v.LiteralSchema<1, undefined>;
|