@marcoappio/marco-config 11.0.13 → 11.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/rules.d.ts +8 -0
- package/dist/constants/rules.d.ts.map +1 -0
- package/dist/constants/rules.js +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/id.d.ts +5 -0
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +1 -0
- package/dist/schemas/index.d.ts +442 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/models/index.d.ts +1 -0
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -0
- package/dist/schemas/models/rule.d.ts +300 -0
- package/dist/schemas/models/rule.d.ts.map +1 -0
- package/dist/schemas/models/rule.js +79 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +265 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +24 -0
- package/dist/sdk/endpoints/private/models/account/getRules.d.ts +155 -0
- package/dist/sdk/endpoints/private/models/account/getRules.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/account/getRules.js +17 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts +1 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/account/index.js +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createRule.d.ts +170 -0
- package/dist/sdk/endpoints/private/mutations/account/createRule.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createRule.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteRule.d.ts +48 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteRule.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteRule.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts +5 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/account/index.js +5 -0
- package/dist/sdk/endpoints/private/mutations/account/reorderRules.d.ts +48 -0
- package/dist/sdk/endpoints/private/mutations/account/reorderRules.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/reorderRules.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.d.ts +54 -0
- package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.js +21 -0
- package/dist/sdk/endpoints/private/mutations/account/updateRule.d.ts +175 -0
- package/dist/sdk/endpoints/private/mutations/account/updateRule.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/updateRule.js +21 -0
- package/dist/sdk/index.d.ts +6 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +12 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -0
- package/dist/sdk/validation/index.d.ts +6 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/RuleActionType.d.ts +3 -0
- package/dist/types/RuleActionType.d.ts.map +1 -0
- package/dist/types/RuleActionType.js +10 -0
- package/dist/types/RuleConditionField.d.ts +3 -0
- package/dist/types/RuleConditionField.d.ts.map +1 -0
- package/dist/types/RuleConditionField.js +1 -0
- package/dist/types/RuleConditionOperator.d.ts +5 -0
- package/dist/types/RuleConditionOperator.d.ts.map +1 -0
- package/dist/types/RuleConditionOperator.js +2 -0
- package/dist/types/RuleDisabledReason.d.ts +3 -0
- package/dist/types/RuleDisabledReason.d.ts.map +1 -0
- package/dist/types/RuleDisabledReason.js +1 -0
- package/dist/types/RuleMatchMode.d.ts +3 -0
- package/dist/types/RuleMatchMode.d.ts.map +1 -0
- package/dist/types/RuleMatchMode.js +1 -0
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -0
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, TaskId, TaskNoteId, ThreadId, UserId, ViewId, } from './id';
|
|
2
|
-
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, LabelMove, Task, TaskNote, TaskSource, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
1
|
+
export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, RuleId, TaskId, TaskNoteId, ThreadId, UserId, ViewId, } from './id';
|
|
2
|
+
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, LabelMove, Rule, RuleAction, RuleCondition, Task, TaskNote, TaskSource, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
3
3
|
export { mutatorSchemas } from './mutators';
|
|
4
4
|
export declare const marcoSchemas: {
|
|
5
5
|
app: {
|
|
@@ -74,6 +74,10 @@ export declare const marcoSchemas: {
|
|
|
74
74
|
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RecipientId">]>, undefined>;
|
|
75
75
|
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RecipientId">]>, undefined>;
|
|
76
76
|
};
|
|
77
|
+
ruleId: {
|
|
78
|
+
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
79
|
+
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
80
|
+
};
|
|
77
81
|
taskId: {
|
|
78
82
|
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
79
83
|
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
@@ -249,6 +253,177 @@ export declare const marcoSchemas: {
|
|
|
249
253
|
readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
250
254
|
readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
251
255
|
}, undefined>], undefined>;
|
|
256
|
+
ruleActionSchema: import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
|
|
257
|
+
readonly type: import("valibot").LiteralSchema<"ARCHIVE", undefined>;
|
|
258
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
259
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
260
|
+
readonly type: import("valibot").LiteralSchema<"MOVE_TO_FOLDER", undefined>;
|
|
261
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
262
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
263
|
+
readonly type: import("valibot").LiteralSchema<"ADD_LABEL", undefined>;
|
|
264
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
265
|
+
readonly type: import("valibot").LiteralSchema<"MARK_READ", undefined>;
|
|
266
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
267
|
+
readonly type: import("valibot").LiteralSchema<"STAR", undefined>;
|
|
268
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
269
|
+
readonly type: import("valibot").LiteralSchema<"TRASH", undefined>;
|
|
270
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
271
|
+
readonly type: import("valibot").LiteralSchema<"MARK_SPAM", undefined>;
|
|
272
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
273
|
+
readonly type: import("valibot").LiteralSchema<"MUTE_NOTIFICATION", undefined>;
|
|
274
|
+
}, undefined>], undefined>;
|
|
275
|
+
ruleConditionSchema: import("valibot").VariantSchema<"field", [import("valibot").ObjectSchema<{
|
|
276
|
+
readonly field: import("valibot").LiteralSchema<"FROM", undefined>;
|
|
277
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
278
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
279
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
280
|
+
readonly field: import("valibot").LiteralSchema<"TO_OR_CC", undefined>;
|
|
281
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
282
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
283
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
284
|
+
readonly field: import("valibot").LiteralSchema<"SUBJECT", undefined>;
|
|
285
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS"], undefined>;
|
|
286
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
287
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
288
|
+
readonly field: import("valibot").LiteralSchema<"BODY", undefined>;
|
|
289
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
290
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
291
|
+
readonly field: import("valibot").LiteralSchema<"HAS_ATTACHMENT", undefined>;
|
|
292
|
+
readonly value: import("valibot").BooleanSchema<undefined>;
|
|
293
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
294
|
+
readonly field: import("valibot").LiteralSchema<"MAILING_LIST", undefined>;
|
|
295
|
+
readonly listId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
296
|
+
}, undefined>], undefined>;
|
|
297
|
+
ruleSchema: import("valibot").ObjectSchema<{
|
|
298
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
299
|
+
readonly disabledReason: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["LABEL_NOT_FOUND"], undefined>, undefined>;
|
|
300
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
301
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
302
|
+
readonly lastMatchedAt: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
303
|
+
readonly matchCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
304
|
+
readonly actions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
|
|
305
|
+
readonly type: import("valibot").LiteralSchema<"ARCHIVE", undefined>;
|
|
306
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
307
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
308
|
+
readonly type: import("valibot").LiteralSchema<"MOVE_TO_FOLDER", undefined>;
|
|
309
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
310
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
311
|
+
readonly type: import("valibot").LiteralSchema<"ADD_LABEL", undefined>;
|
|
312
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
313
|
+
readonly type: import("valibot").LiteralSchema<"MARK_READ", undefined>;
|
|
314
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
315
|
+
readonly type: import("valibot").LiteralSchema<"STAR", undefined>;
|
|
316
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
317
|
+
readonly type: import("valibot").LiteralSchema<"TRASH", undefined>;
|
|
318
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
319
|
+
readonly type: import("valibot").LiteralSchema<"MARK_SPAM", undefined>;
|
|
320
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
321
|
+
readonly type: import("valibot").LiteralSchema<"MUTE_NOTIFICATION", undefined>;
|
|
322
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
323
|
+
type: "ARCHIVE";
|
|
324
|
+
} | {
|
|
325
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
326
|
+
type: "MOVE_TO_FOLDER";
|
|
327
|
+
} | {
|
|
328
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
329
|
+
type: "ADD_LABEL";
|
|
330
|
+
} | {
|
|
331
|
+
type: "MARK_READ";
|
|
332
|
+
} | {
|
|
333
|
+
type: "STAR";
|
|
334
|
+
} | {
|
|
335
|
+
type: "TRASH";
|
|
336
|
+
} | {
|
|
337
|
+
type: "MARK_SPAM";
|
|
338
|
+
} | {
|
|
339
|
+
type: "MUTE_NOTIFICATION";
|
|
340
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
341
|
+
type: "ARCHIVE";
|
|
342
|
+
} | {
|
|
343
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
344
|
+
type: "MOVE_TO_FOLDER";
|
|
345
|
+
} | {
|
|
346
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
347
|
+
type: "ADD_LABEL";
|
|
348
|
+
} | {
|
|
349
|
+
type: "MARK_READ";
|
|
350
|
+
} | {
|
|
351
|
+
type: "STAR";
|
|
352
|
+
} | {
|
|
353
|
+
type: "TRASH";
|
|
354
|
+
} | {
|
|
355
|
+
type: "MARK_SPAM";
|
|
356
|
+
} | {
|
|
357
|
+
type: "MUTE_NOTIFICATION";
|
|
358
|
+
})[], number, undefined>]>;
|
|
359
|
+
readonly conditions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"field", [import("valibot").ObjectSchema<{
|
|
360
|
+
readonly field: import("valibot").LiteralSchema<"FROM", undefined>;
|
|
361
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
362
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
363
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
364
|
+
readonly field: import("valibot").LiteralSchema<"TO_OR_CC", undefined>;
|
|
365
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
366
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
367
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
368
|
+
readonly field: import("valibot").LiteralSchema<"SUBJECT", undefined>;
|
|
369
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS"], undefined>;
|
|
370
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
371
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
372
|
+
readonly field: import("valibot").LiteralSchema<"BODY", undefined>;
|
|
373
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
374
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
375
|
+
readonly field: import("valibot").LiteralSchema<"HAS_ATTACHMENT", undefined>;
|
|
376
|
+
readonly value: import("valibot").BooleanSchema<undefined>;
|
|
377
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
378
|
+
readonly field: import("valibot").LiteralSchema<"MAILING_LIST", undefined>;
|
|
379
|
+
readonly listId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
380
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
381
|
+
field: "FROM";
|
|
382
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
383
|
+
value: string;
|
|
384
|
+
} | {
|
|
385
|
+
field: "TO_OR_CC";
|
|
386
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
387
|
+
value: string;
|
|
388
|
+
} | {
|
|
389
|
+
field: "SUBJECT";
|
|
390
|
+
operator: "CONTAINS" | "IS";
|
|
391
|
+
value: string;
|
|
392
|
+
} | {
|
|
393
|
+
field: "BODY";
|
|
394
|
+
value: string;
|
|
395
|
+
} | {
|
|
396
|
+
field: "HAS_ATTACHMENT";
|
|
397
|
+
value: boolean;
|
|
398
|
+
} | {
|
|
399
|
+
field: "MAILING_LIST";
|
|
400
|
+
listId: string | null;
|
|
401
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
402
|
+
field: "FROM";
|
|
403
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
404
|
+
value: string;
|
|
405
|
+
} | {
|
|
406
|
+
field: "TO_OR_CC";
|
|
407
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
408
|
+
value: string;
|
|
409
|
+
} | {
|
|
410
|
+
field: "SUBJECT";
|
|
411
|
+
operator: "CONTAINS" | "IS";
|
|
412
|
+
value: string;
|
|
413
|
+
} | {
|
|
414
|
+
field: "BODY";
|
|
415
|
+
value: string;
|
|
416
|
+
} | {
|
|
417
|
+
field: "HAS_ATTACHMENT";
|
|
418
|
+
value: boolean;
|
|
419
|
+
} | {
|
|
420
|
+
field: "MAILING_LIST";
|
|
421
|
+
listId: string | null;
|
|
422
|
+
})[], number, undefined>]>;
|
|
423
|
+
readonly match: import("valibot").PicklistSchema<readonly ["ALL", "ANY"], undefined>;
|
|
424
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
425
|
+
readonly stopProcessing: import("valibot").BooleanSchema<undefined>;
|
|
426
|
+
}, undefined>;
|
|
252
427
|
taskNoteSchema: import("valibot").ObjectSchema<{
|
|
253
428
|
readonly body: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
254
429
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -496,6 +671,132 @@ export declare const marcoSchemas: {
|
|
|
496
671
|
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
497
672
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>;
|
|
498
673
|
}, undefined>;
|
|
674
|
+
createRule: import("valibot").ObjectSchema<{
|
|
675
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
676
|
+
readonly ruleId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
677
|
+
readonly actions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
|
|
678
|
+
readonly type: import("valibot").LiteralSchema<"ARCHIVE", undefined>;
|
|
679
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
680
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
681
|
+
readonly type: import("valibot").LiteralSchema<"MOVE_TO_FOLDER", undefined>;
|
|
682
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
683
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
684
|
+
readonly type: import("valibot").LiteralSchema<"ADD_LABEL", undefined>;
|
|
685
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
686
|
+
readonly type: import("valibot").LiteralSchema<"MARK_READ", undefined>;
|
|
687
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
688
|
+
readonly type: import("valibot").LiteralSchema<"STAR", undefined>;
|
|
689
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
690
|
+
readonly type: import("valibot").LiteralSchema<"TRASH", undefined>;
|
|
691
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
692
|
+
readonly type: import("valibot").LiteralSchema<"MARK_SPAM", undefined>;
|
|
693
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
694
|
+
readonly type: import("valibot").LiteralSchema<"MUTE_NOTIFICATION", undefined>;
|
|
695
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
696
|
+
type: "ARCHIVE";
|
|
697
|
+
} | {
|
|
698
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
699
|
+
type: "MOVE_TO_FOLDER";
|
|
700
|
+
} | {
|
|
701
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
702
|
+
type: "ADD_LABEL";
|
|
703
|
+
} | {
|
|
704
|
+
type: "MARK_READ";
|
|
705
|
+
} | {
|
|
706
|
+
type: "STAR";
|
|
707
|
+
} | {
|
|
708
|
+
type: "TRASH";
|
|
709
|
+
} | {
|
|
710
|
+
type: "MARK_SPAM";
|
|
711
|
+
} | {
|
|
712
|
+
type: "MUTE_NOTIFICATION";
|
|
713
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
714
|
+
type: "ARCHIVE";
|
|
715
|
+
} | {
|
|
716
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
717
|
+
type: "MOVE_TO_FOLDER";
|
|
718
|
+
} | {
|
|
719
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
720
|
+
type: "ADD_LABEL";
|
|
721
|
+
} | {
|
|
722
|
+
type: "MARK_READ";
|
|
723
|
+
} | {
|
|
724
|
+
type: "STAR";
|
|
725
|
+
} | {
|
|
726
|
+
type: "TRASH";
|
|
727
|
+
} | {
|
|
728
|
+
type: "MARK_SPAM";
|
|
729
|
+
} | {
|
|
730
|
+
type: "MUTE_NOTIFICATION";
|
|
731
|
+
})[], number, undefined>]>;
|
|
732
|
+
readonly conditions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"field", [import("valibot").ObjectSchema<{
|
|
733
|
+
readonly field: import("valibot").LiteralSchema<"FROM", undefined>;
|
|
734
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
735
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
736
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
737
|
+
readonly field: import("valibot").LiteralSchema<"TO_OR_CC", undefined>;
|
|
738
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
739
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
740
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
741
|
+
readonly field: import("valibot").LiteralSchema<"SUBJECT", undefined>;
|
|
742
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS"], undefined>;
|
|
743
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
744
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
745
|
+
readonly field: import("valibot").LiteralSchema<"BODY", undefined>;
|
|
746
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
747
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
748
|
+
readonly field: import("valibot").LiteralSchema<"HAS_ATTACHMENT", undefined>;
|
|
749
|
+
readonly value: import("valibot").BooleanSchema<undefined>;
|
|
750
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
751
|
+
readonly field: import("valibot").LiteralSchema<"MAILING_LIST", undefined>;
|
|
752
|
+
readonly listId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
753
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
754
|
+
field: "FROM";
|
|
755
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
756
|
+
value: string;
|
|
757
|
+
} | {
|
|
758
|
+
field: "TO_OR_CC";
|
|
759
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
760
|
+
value: string;
|
|
761
|
+
} | {
|
|
762
|
+
field: "SUBJECT";
|
|
763
|
+
operator: "CONTAINS" | "IS";
|
|
764
|
+
value: string;
|
|
765
|
+
} | {
|
|
766
|
+
field: "BODY";
|
|
767
|
+
value: string;
|
|
768
|
+
} | {
|
|
769
|
+
field: "HAS_ATTACHMENT";
|
|
770
|
+
value: boolean;
|
|
771
|
+
} | {
|
|
772
|
+
field: "MAILING_LIST";
|
|
773
|
+
listId: string | null;
|
|
774
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
775
|
+
field: "FROM";
|
|
776
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
777
|
+
value: string;
|
|
778
|
+
} | {
|
|
779
|
+
field: "TO_OR_CC";
|
|
780
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
781
|
+
value: string;
|
|
782
|
+
} | {
|
|
783
|
+
field: "SUBJECT";
|
|
784
|
+
operator: "CONTAINS" | "IS";
|
|
785
|
+
value: string;
|
|
786
|
+
} | {
|
|
787
|
+
field: "BODY";
|
|
788
|
+
value: string;
|
|
789
|
+
} | {
|
|
790
|
+
field: "HAS_ATTACHMENT";
|
|
791
|
+
value: boolean;
|
|
792
|
+
} | {
|
|
793
|
+
field: "MAILING_LIST";
|
|
794
|
+
listId: string | null;
|
|
795
|
+
})[], number, undefined>]>;
|
|
796
|
+
readonly match: import("valibot").PicklistSchema<readonly ["ALL", "ANY"], undefined>;
|
|
797
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
798
|
+
readonly stopProcessing: import("valibot").BooleanSchema<undefined>;
|
|
799
|
+
}, undefined>;
|
|
499
800
|
deleteAccount: import("valibot").ObjectSchema<{
|
|
500
801
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
501
802
|
}, undefined>;
|
|
@@ -507,11 +808,19 @@ export declare const marcoSchemas: {
|
|
|
507
808
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
508
809
|
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
509
810
|
}, undefined>;
|
|
811
|
+
deleteRule: import("valibot").ObjectSchema<{
|
|
812
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
813
|
+
readonly ruleId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
814
|
+
}, undefined>;
|
|
510
815
|
renameLabel: import("valibot").ObjectSchema<{
|
|
511
816
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
512
817
|
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
513
818
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>;
|
|
514
819
|
}, undefined>;
|
|
820
|
+
reorderRules: import("valibot").ObjectSchema<{
|
|
821
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
822
|
+
readonly ruleIds: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>, undefined>, import("valibot").MaxLengthAction<(string & import("valibot").Brand<"RuleId">)[], number, undefined>, import("valibot").CheckAction<(string & import("valibot").Brand<"RuleId">)[], "Rule IDs must be unique">]>;
|
|
823
|
+
}, undefined>;
|
|
515
824
|
setAliasName: import("valibot").ObjectSchema<{
|
|
516
825
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
517
826
|
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AliasId">]>, undefined>;
|
|
@@ -555,11 +864,142 @@ export declare const marcoSchemas: {
|
|
|
555
864
|
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
556
865
|
readonly sidebarHidden: import("valibot").BooleanSchema<undefined>;
|
|
557
866
|
}, undefined>;
|
|
867
|
+
setRuleEnabled: import("valibot").ObjectSchema<{
|
|
868
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
869
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
870
|
+
readonly ruleId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
871
|
+
}, undefined>;
|
|
558
872
|
setSettings: import("valibot").ObjectSchema<{
|
|
559
873
|
readonly color: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
560
874
|
readonly displayName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
561
875
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
562
876
|
}, undefined>;
|
|
877
|
+
updateRule: import("valibot").ObjectSchema<{
|
|
878
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
879
|
+
readonly ruleId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RuleId">]>, undefined>;
|
|
880
|
+
readonly actions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
|
|
881
|
+
readonly type: import("valibot").LiteralSchema<"ARCHIVE", undefined>;
|
|
882
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
883
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
884
|
+
readonly type: import("valibot").LiteralSchema<"MOVE_TO_FOLDER", undefined>;
|
|
885
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
886
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
|
|
887
|
+
readonly type: import("valibot").LiteralSchema<"ADD_LABEL", undefined>;
|
|
888
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
889
|
+
readonly type: import("valibot").LiteralSchema<"MARK_READ", undefined>;
|
|
890
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
891
|
+
readonly type: import("valibot").LiteralSchema<"STAR", undefined>;
|
|
892
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
893
|
+
readonly type: import("valibot").LiteralSchema<"TRASH", undefined>;
|
|
894
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
895
|
+
readonly type: import("valibot").LiteralSchema<"MARK_SPAM", undefined>;
|
|
896
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
897
|
+
readonly type: import("valibot").LiteralSchema<"MUTE_NOTIFICATION", undefined>;
|
|
898
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
899
|
+
type: "ARCHIVE";
|
|
900
|
+
} | {
|
|
901
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
902
|
+
type: "MOVE_TO_FOLDER";
|
|
903
|
+
} | {
|
|
904
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
905
|
+
type: "ADD_LABEL";
|
|
906
|
+
} | {
|
|
907
|
+
type: "MARK_READ";
|
|
908
|
+
} | {
|
|
909
|
+
type: "STAR";
|
|
910
|
+
} | {
|
|
911
|
+
type: "TRASH";
|
|
912
|
+
} | {
|
|
913
|
+
type: "MARK_SPAM";
|
|
914
|
+
} | {
|
|
915
|
+
type: "MUTE_NOTIFICATION";
|
|
916
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
917
|
+
type: "ARCHIVE";
|
|
918
|
+
} | {
|
|
919
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
920
|
+
type: "MOVE_TO_FOLDER";
|
|
921
|
+
} | {
|
|
922
|
+
labelId: string & import("valibot").Brand<"LabelId">;
|
|
923
|
+
type: "ADD_LABEL";
|
|
924
|
+
} | {
|
|
925
|
+
type: "MARK_READ";
|
|
926
|
+
} | {
|
|
927
|
+
type: "STAR";
|
|
928
|
+
} | {
|
|
929
|
+
type: "TRASH";
|
|
930
|
+
} | {
|
|
931
|
+
type: "MARK_SPAM";
|
|
932
|
+
} | {
|
|
933
|
+
type: "MUTE_NOTIFICATION";
|
|
934
|
+
})[], number, undefined>]>;
|
|
935
|
+
readonly conditions: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"field", [import("valibot").ObjectSchema<{
|
|
936
|
+
readonly field: import("valibot").LiteralSchema<"FROM", undefined>;
|
|
937
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
938
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
939
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
940
|
+
readonly field: import("valibot").LiteralSchema<"TO_OR_CC", undefined>;
|
|
941
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS", "DOMAIN_IS"], undefined>;
|
|
942
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
943
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
944
|
+
readonly field: import("valibot").LiteralSchema<"SUBJECT", undefined>;
|
|
945
|
+
readonly operator: import("valibot").PicklistSchema<readonly ["CONTAINS", "IS"], undefined>;
|
|
946
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
947
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
948
|
+
readonly field: import("valibot").LiteralSchema<"BODY", undefined>;
|
|
949
|
+
readonly value: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
950
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
951
|
+
readonly field: import("valibot").LiteralSchema<"HAS_ATTACHMENT", undefined>;
|
|
952
|
+
readonly value: import("valibot").BooleanSchema<undefined>;
|
|
953
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
954
|
+
readonly field: import("valibot").LiteralSchema<"MAILING_LIST", undefined>;
|
|
955
|
+
readonly listId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
956
|
+
}, undefined>], undefined>, undefined>, import("valibot").MinLengthAction<({
|
|
957
|
+
field: "FROM";
|
|
958
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
959
|
+
value: string;
|
|
960
|
+
} | {
|
|
961
|
+
field: "TO_OR_CC";
|
|
962
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
963
|
+
value: string;
|
|
964
|
+
} | {
|
|
965
|
+
field: "SUBJECT";
|
|
966
|
+
operator: "CONTAINS" | "IS";
|
|
967
|
+
value: string;
|
|
968
|
+
} | {
|
|
969
|
+
field: "BODY";
|
|
970
|
+
value: string;
|
|
971
|
+
} | {
|
|
972
|
+
field: "HAS_ATTACHMENT";
|
|
973
|
+
value: boolean;
|
|
974
|
+
} | {
|
|
975
|
+
field: "MAILING_LIST";
|
|
976
|
+
listId: string | null;
|
|
977
|
+
})[], 1, undefined>, import("valibot").MaxLengthAction<({
|
|
978
|
+
field: "FROM";
|
|
979
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
980
|
+
value: string;
|
|
981
|
+
} | {
|
|
982
|
+
field: "TO_OR_CC";
|
|
983
|
+
operator: "CONTAINS" | "IS" | "DOMAIN_IS";
|
|
984
|
+
value: string;
|
|
985
|
+
} | {
|
|
986
|
+
field: "SUBJECT";
|
|
987
|
+
operator: "CONTAINS" | "IS";
|
|
988
|
+
value: string;
|
|
989
|
+
} | {
|
|
990
|
+
field: "BODY";
|
|
991
|
+
value: string;
|
|
992
|
+
} | {
|
|
993
|
+
field: "HAS_ATTACHMENT";
|
|
994
|
+
value: boolean;
|
|
995
|
+
} | {
|
|
996
|
+
field: "MAILING_LIST";
|
|
997
|
+
listId: string | null;
|
|
998
|
+
})[], number, undefined>]>;
|
|
999
|
+
readonly match: import("valibot").PicklistSchema<readonly ["ALL", "ANY"], undefined>;
|
|
1000
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
1001
|
+
readonly stopProcessing: import("valibot").BooleanSchema<undefined>;
|
|
1002
|
+
}, undefined>;
|
|
563
1003
|
};
|
|
564
1004
|
draft: {
|
|
565
1005
|
cancelSend: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAqCA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,UAAU,EACV,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { boolean } from './boolean';
|
|
|
4
4
|
import { emailAccount } from './emailAccount';
|
|
5
5
|
import { id } from './id';
|
|
6
6
|
import { labels } from './labels';
|
|
7
|
-
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, labelMoveSchema, taskNoteSchema, taskSchema, taskSourceSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
7
|
+
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, labelMoveSchema, ruleActionSchema, ruleConditionSchema, ruleSchema, taskNoteSchema, taskSchema, taskSourceSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
8
8
|
import { mutatorSchemas } from './mutators';
|
|
9
9
|
import { number } from './number';
|
|
10
10
|
import { oauth } from './oauth';
|
|
@@ -28,6 +28,9 @@ export const marcoSchemas = {
|
|
|
28
28
|
draftBodySchema,
|
|
29
29
|
draftSchema,
|
|
30
30
|
labelMoveSchema,
|
|
31
|
+
ruleActionSchema,
|
|
32
|
+
ruleConditionSchema,
|
|
33
|
+
ruleSchema,
|
|
31
34
|
taskNoteSchema,
|
|
32
35
|
taskSchema,
|
|
33
36
|
taskSourceSchema,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
2
|
export { type Contact, contactSchema } from './contact';
|
|
3
3
|
export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { type Rule, type RuleAction, type RuleCondition, ruleActionSchema, ruleConditionSchema, ruleSchema, } from './rule';
|
|
4
5
|
export { type Task, type TaskNote, type TaskSource, taskNoteSchema, taskSchema, taskSourceSchema, } from './task';
|
|
5
6
|
export { type LabelMove, labelMoveSchema, type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
6
7
|
export { type User, type UserPushNotificationToken, type UserView, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,QAAQ,CAAA;AACf,OAAO,EACL,KAAK,SAAS,EACd,eAAe,EACf,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,GACX,MAAM,QAAQ,CAAA;AACf,OAAO,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,QAAQ,CAAA;AACf,OAAO,EACL,KAAK,SAAS,EACd,eAAe,EACf,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
2
|
export { contactSchema } from './contact';
|
|
3
3
|
export { draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { ruleActionSchema, ruleConditionSchema, ruleSchema, } from './rule';
|
|
4
5
|
export { taskNoteSchema, taskSchema, taskSourceSchema, } from './task';
|
|
5
6
|
export { labelMoveSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
6
7
|
export { userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|