@marcoappio/marco-config 2.0.516 → 2.0.517

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.
@@ -59,10 +59,132 @@ export declare const marcoSchemas: {
59
59
  payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
60
60
  readonly data: import("valibot").ObjectSchema<{
61
61
  readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
62
+ readonly thread: import("valibot").ObjectSchema<{
63
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly flagged: import("valibot").BooleanSchema<undefined>;
65
+ readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
66
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
67
+ readonly labelIdList: import("valibot").StringSchema<undefined>;
68
+ readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
69
+ readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
70
+ readonly messageCount: import("valibot").NumberSchema<undefined>;
71
+ readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
72
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
73
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
74
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
75
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
76
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
77
+ readonly size: import("valibot").NumberSchema<undefined>;
78
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
79
+ }, undefined>, undefined>;
80
+ readonly envelopeDate: import("valibot").NumberSchema<undefined>;
81
+ readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
82
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
83
+ readonly previewText: import("valibot").StringSchema<undefined>;
84
+ readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
85
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
86
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
87
+ readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
88
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
89
+ readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
90
+ }, undefined>, undefined>;
91
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
92
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
93
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
94
+ }, undefined>, undefined>;
95
+ readonly previewText: import("valibot").StringSchema<undefined>;
96
+ readonly seen: import("valibot").BooleanSchema<undefined>;
97
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
98
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
99
+ readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
100
+ readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
101
+ readonly words: import("valibot").StringSchema<undefined>;
102
+ }, undefined>;
62
103
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
63
104
  }, undefined>;
64
105
  readonly event: import("valibot").LiteralSchema<"EMAIL_RECEIVED", undefined>;
65
106
  }, undefined>], undefined>;
107
+ schemas: {
108
+ attachment: import("valibot").ObjectSchema<{
109
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
110
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
111
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
112
+ readonly size: import("valibot").NumberSchema<undefined>;
113
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
114
+ }, undefined>;
115
+ message: import("valibot").ObjectSchema<{
116
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
117
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
118
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
119
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
120
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
121
+ readonly size: import("valibot").NumberSchema<undefined>;
122
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
123
+ }, undefined>, undefined>;
124
+ readonly envelopeDate: import("valibot").NumberSchema<undefined>;
125
+ readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
126
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
127
+ readonly previewText: import("valibot").StringSchema<undefined>;
128
+ readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
129
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
130
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
131
+ readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
132
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
133
+ readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
134
+ }, undefined>, undefined>;
135
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
136
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
137
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
138
+ }, undefined>;
139
+ recipient: import("valibot").ObjectSchema<{
140
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
141
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
142
+ readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
143
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
144
+ readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
145
+ }, undefined>;
146
+ thread: import("valibot").ObjectSchema<{
147
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
148
+ readonly flagged: import("valibot").BooleanSchema<undefined>;
149
+ readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
150
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
151
+ readonly labelIdList: import("valibot").StringSchema<undefined>;
152
+ readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
153
+ readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
154
+ readonly messageCount: import("valibot").NumberSchema<undefined>;
155
+ readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
156
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
157
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
158
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
159
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
160
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
161
+ readonly size: import("valibot").NumberSchema<undefined>;
162
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
163
+ }, undefined>, undefined>;
164
+ readonly envelopeDate: import("valibot").NumberSchema<undefined>;
165
+ readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
166
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
167
+ readonly previewText: import("valibot").StringSchema<undefined>;
168
+ readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
169
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
170
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
171
+ readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
172
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
173
+ readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
174
+ }, undefined>, undefined>;
175
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
176
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
177
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
178
+ }, undefined>, undefined>;
179
+ readonly previewText: import("valibot").StringSchema<undefined>;
180
+ readonly seen: import("valibot").BooleanSchema<undefined>;
181
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
182
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
183
+ readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
184
+ readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
185
+ readonly words: import("valibot").StringSchema<undefined>;
186
+ }, undefined>;
187
+ };
66
188
  };
67
189
  string: {
68
190
  email: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
@@ -3,9 +3,131 @@ export declare const pushNotifications: {
3
3
  payload: v.UnionSchema<[v.ObjectSchema<{
4
4
  readonly data: v.ObjectSchema<{
5
5
  readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
+ readonly thread: v.ObjectSchema<{
7
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
+ readonly flagged: v.BooleanSchema<undefined>;
9
+ readonly hasAttachments: v.BooleanSchema<undefined>;
10
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
+ readonly labelIdList: v.StringSchema<undefined>;
12
+ readonly latestMessageDate: v.NumberSchema<undefined>;
13
+ readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
+ readonly messageCount: v.NumberSchema<undefined>;
15
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
16
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
18
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
+ readonly size: v.NumberSchema<undefined>;
22
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
+ }, undefined>, undefined>;
24
+ readonly envelopeDate: v.NumberSchema<undefined>;
25
+ readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly previewText: v.StringSchema<undefined>;
28
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
29
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
32
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
34
+ }, undefined>, undefined>;
35
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
37
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ }, undefined>, undefined>;
39
+ readonly previewText: v.StringSchema<undefined>;
40
+ readonly seen: v.BooleanSchema<undefined>;
41
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
43
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
44
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly words: v.StringSchema<undefined>;
46
+ }, undefined>;
6
47
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
48
  }, undefined>;
8
49
  readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
9
50
  }, undefined>], undefined>;
51
+ schemas: {
52
+ attachment: v.ObjectSchema<{
53
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ readonly size: v.NumberSchema<undefined>;
57
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
+ }, undefined>;
59
+ message: v.ObjectSchema<{
60
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
62
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
63
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
65
+ readonly size: v.NumberSchema<undefined>;
66
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
+ }, undefined>, undefined>;
68
+ readonly envelopeDate: v.NumberSchema<undefined>;
69
+ readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
+ readonly previewText: v.StringSchema<undefined>;
72
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
73
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
74
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
78
+ }, undefined>, undefined>;
79
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
80
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
81
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
82
+ }, undefined>;
83
+ recipient: v.ObjectSchema<{
84
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
85
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
86
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
87
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
88
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
89
+ }, undefined>;
90
+ thread: v.ObjectSchema<{
91
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
92
+ readonly flagged: v.BooleanSchema<undefined>;
93
+ readonly hasAttachments: v.BooleanSchema<undefined>;
94
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
95
+ readonly labelIdList: v.StringSchema<undefined>;
96
+ readonly latestMessageDate: v.NumberSchema<undefined>;
97
+ readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
98
+ readonly messageCount: v.NumberSchema<undefined>;
99
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
100
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
101
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
102
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
103
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
104
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
105
+ readonly size: v.NumberSchema<undefined>;
106
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
107
+ }, undefined>, undefined>;
108
+ readonly envelopeDate: v.NumberSchema<undefined>;
109
+ readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
110
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
111
+ readonly previewText: v.StringSchema<undefined>;
112
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
113
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
114
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
115
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
116
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
117
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
118
+ }, undefined>, undefined>;
119
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
120
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
121
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
122
+ }, undefined>, undefined>;
123
+ readonly previewText: v.StringSchema<undefined>;
124
+ readonly seen: v.BooleanSchema<undefined>;
125
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
126
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
127
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
128
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
129
+ readonly words: v.StringSchema<undefined>;
130
+ }, undefined>;
131
+ };
10
132
  };
11
133
  //# sourceMappingURL=pushNotifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,iBAAiB;;;;;;;;CAE7B,CAAA"}
1
+ {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiE5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ7B,CAAA"}
@@ -1,8 +1,54 @@
1
1
  import * as v from 'valibot';
2
+ import { MESSAGE_RECIPIENT_TYPES } from '../types';
2
3
  import { string } from './string';
4
+ const pushNotificationRecipient = v.object({
5
+ emailAddress: string.required(),
6
+ id: string.required(),
7
+ name: v.nullable(v.string()),
8
+ threadMessageId: string.required(),
9
+ type: v.picklist(MESSAGE_RECIPIENT_TYPES),
10
+ });
11
+ const pushNotificationAttachment = v.object({
12
+ fileName: string.required(),
13
+ id: string.required(),
14
+ mimeType: string.required(),
15
+ size: v.number(),
16
+ threadMessageId: string.required(),
17
+ });
18
+ const pushNotificationMessage = v.object({
19
+ accountId: string.required(),
20
+ attachments: v.array(pushNotificationAttachment),
21
+ envelopeDate: v.number(),
22
+ envelopeSubject: v.nullable(v.string()),
23
+ id: string.required(),
24
+ previewText: v.string(),
25
+ recipients: v.array(pushNotificationRecipient),
26
+ senderEmail: string.required(),
27
+ senderName: v.nullable(v.string()),
28
+ threadId: string.required(),
29
+ });
30
+ const pushNotificationThread = v.object({
31
+ accountId: string.required(),
32
+ flagged: v.boolean(),
33
+ hasAttachments: v.boolean(),
34
+ id: string.required(),
35
+ labelIdList: v.string(),
36
+ latestMessageDate: v.number(),
37
+ latestMessageId: string.required(),
38
+ messageCount: v.number(),
39
+ messages: v.array(pushNotificationMessage),
40
+ previewText: v.string(),
41
+ seen: v.boolean(),
42
+ senderEmail: string.required(),
43
+ senderName: v.nullable(v.string()),
44
+ subject: v.nullable(v.string()),
45
+ userId: string.required(),
46
+ words: v.string(),
47
+ });
3
48
  const pushNotificationEmailReceivedPayload = v.object({
4
49
  data: v.object({
5
50
  messageId: string.required(),
51
+ thread: pushNotificationThread,
6
52
  threadId: string.required(),
7
53
  }),
8
54
  event: v.literal('EMAIL_RECEIVED'),
@@ -10,4 +56,10 @@ const pushNotificationEmailReceivedPayload = v.object({
10
56
  const pushNotificationPayload = v.union([pushNotificationEmailReceivedPayload]);
11
57
  export const pushNotifications = {
12
58
  payload: pushNotificationPayload,
59
+ schemas: {
60
+ attachment: pushNotificationAttachment,
61
+ message: pushNotificationMessage,
62
+ recipient: pushNotificationRecipient,
63
+ thread: pushNotificationThread,
64
+ },
13
65
  };
@@ -202,6 +202,49 @@ export declare const marcoZero: {
202
202
  readonly threadIds: 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>]>, undefined>, undefined>;
203
203
  }, undefined>, undefined>;
204
204
  }, undefined>;
205
+ insertFromPushNotification: import("valibot").ObjectSchema<{
206
+ readonly thread: import("valibot").ObjectSchema<{
207
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
208
+ readonly flagged: import("valibot").BooleanSchema<undefined>;
209
+ readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
210
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
211
+ readonly labelIdList: import("valibot").StringSchema<undefined>;
212
+ readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
213
+ readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
214
+ readonly messageCount: import("valibot").NumberSchema<undefined>;
215
+ readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
216
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
217
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
218
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
219
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
220
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
221
+ readonly size: import("valibot").NumberSchema<undefined>;
222
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
223
+ }, undefined>, undefined>;
224
+ readonly envelopeDate: import("valibot").NumberSchema<undefined>;
225
+ readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
226
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
227
+ readonly previewText: import("valibot").StringSchema<undefined>;
228
+ readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
229
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
231
+ readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
232
+ readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
233
+ readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
234
+ }, undefined>, undefined>;
235
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
236
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
237
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
238
+ }, undefined>, undefined>;
239
+ readonly previewText: import("valibot").StringSchema<undefined>;
240
+ readonly seen: import("valibot").BooleanSchema<undefined>;
241
+ readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
242
+ readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
243
+ readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
244
+ readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
245
+ readonly words: import("valibot").StringSchema<undefined>;
246
+ }, undefined>;
247
+ }, undefined>;
205
248
  removeLabel: import("valibot").ObjectSchema<{
206
249
  readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
207
250
  readonly threadIds: 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>]>, undefined>, undefined>;
@@ -606,6 +649,93 @@ export declare const marcoZero: {
606
649
  }, {
607
650
  userId: string;
608
651
  }, unknown>;
652
+ readonly insertFromPushNotification: import("@rocicorp/zero").MutatorDefinition<{
653
+ thread: {
654
+ accountId: string;
655
+ flagged: boolean;
656
+ hasAttachments: boolean;
657
+ id: string;
658
+ labelIdList: string;
659
+ latestMessageDate: number;
660
+ latestMessageId: string;
661
+ messageCount: number;
662
+ messages: {
663
+ accountId: string;
664
+ attachments: {
665
+ fileName: string;
666
+ id: string;
667
+ mimeType: string;
668
+ size: number;
669
+ threadMessageId: string;
670
+ }[];
671
+ envelopeDate: number;
672
+ envelopeSubject: string | null;
673
+ id: string;
674
+ previewText: string;
675
+ recipients: {
676
+ emailAddress: string;
677
+ id: string;
678
+ name: string | null;
679
+ threadMessageId: string;
680
+ type: "bcc" | "cc" | "to" | "replyTo";
681
+ }[];
682
+ senderEmail: string;
683
+ senderName: string | null;
684
+ threadId: string;
685
+ }[];
686
+ previewText: string;
687
+ seen: boolean;
688
+ senderEmail: string;
689
+ senderName: string | null;
690
+ subject: string | null;
691
+ userId: string;
692
+ words: string;
693
+ };
694
+ }, {
695
+ thread: {
696
+ accountId: string;
697
+ flagged: boolean;
698
+ hasAttachments: boolean;
699
+ id: string;
700
+ labelIdList: string;
701
+ latestMessageDate: number;
702
+ latestMessageId: string;
703
+ messageCount: number;
704
+ messages: {
705
+ accountId: string;
706
+ attachments: {
707
+ fileName: string;
708
+ id: string;
709
+ mimeType: string;
710
+ size: number;
711
+ threadMessageId: string;
712
+ }[];
713
+ envelopeDate: number;
714
+ envelopeSubject: string | null;
715
+ id: string;
716
+ previewText: string;
717
+ recipients: {
718
+ emailAddress: string;
719
+ id: string;
720
+ name: string | null;
721
+ threadMessageId: string;
722
+ type: "bcc" | "cc" | "to" | "replyTo";
723
+ }[];
724
+ senderEmail: string;
725
+ senderName: string | null;
726
+ threadId: string;
727
+ }[];
728
+ previewText: string;
729
+ seen: boolean;
730
+ senderEmail: string;
731
+ senderName: string | null;
732
+ subject: string | null;
733
+ userId: string;
734
+ words: string;
735
+ };
736
+ }, {
737
+ userId: string;
738
+ }, unknown>;
609
739
  readonly removeLabel: import("@rocicorp/zero").MutatorDefinition<{
610
740
  accounts: {
611
741
  [x: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;CAMZ,CAAA"}
@@ -202,6 +202,49 @@ export declare const mutatorSchemas: {
202
202
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
203
203
  }, undefined>, undefined>;
204
204
  }, undefined>;
205
+ insertFromPushNotification: v.ObjectSchema<{
206
+ readonly thread: v.ObjectSchema<{
207
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
208
+ readonly flagged: v.BooleanSchema<undefined>;
209
+ readonly hasAttachments: v.BooleanSchema<undefined>;
210
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
211
+ readonly labelIdList: v.StringSchema<undefined>;
212
+ readonly latestMessageDate: v.NumberSchema<undefined>;
213
+ readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
214
+ readonly messageCount: v.NumberSchema<undefined>;
215
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
216
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
217
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
218
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
219
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
220
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
221
+ readonly size: v.NumberSchema<undefined>;
222
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
223
+ }, undefined>, undefined>;
224
+ readonly envelopeDate: v.NumberSchema<undefined>;
225
+ readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
226
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
227
+ readonly previewText: v.StringSchema<undefined>;
228
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
229
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
230
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
231
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
232
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
233
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
234
+ }, undefined>, undefined>;
235
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
236
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
238
+ }, undefined>, undefined>;
239
+ readonly previewText: v.StringSchema<undefined>;
240
+ readonly seen: v.BooleanSchema<undefined>;
241
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
242
+ readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
243
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
244
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
245
+ readonly words: v.StringSchema<undefined>;
246
+ }, undefined>;
247
+ }, undefined>;
205
248
  removeLabel: v.ObjectSchema<{
206
249
  readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
207
250
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqE5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I1B,CAAA"}
1
+ {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqE5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6I1B,CAAA"}
@@ -163,6 +163,9 @@ export const mutatorSchemas = {
163
163
  thread: {
164
164
  addLabel: threadChangeLabelSchema,
165
165
  delete: baseThreadSchema,
166
+ insertFromPushNotification: v.object({
167
+ thread: marcoSchemas.pushNotifications.schemas.thread,
168
+ }),
166
169
  removeLabel: threadChangeLabelSchema,
167
170
  setArchive: baseThreadSchema,
168
171
  setFlagged: v.object({
@@ -307,6 +307,91 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
307
307
  };
308
308
  };
309
309
  }, Context, unknown>;
310
+ readonly insertFromPushNotification: import("@rocicorp/zero").MutatorDefinition<{
311
+ thread: {
312
+ accountId: string;
313
+ flagged: boolean;
314
+ hasAttachments: boolean;
315
+ id: string;
316
+ labelIdList: string;
317
+ latestMessageDate: number;
318
+ latestMessageId: string;
319
+ messageCount: number;
320
+ messages: {
321
+ accountId: string;
322
+ attachments: {
323
+ fileName: string;
324
+ id: string;
325
+ mimeType: string;
326
+ size: number;
327
+ threadMessageId: string;
328
+ }[];
329
+ envelopeDate: number;
330
+ envelopeSubject: string | null;
331
+ id: string;
332
+ previewText: string;
333
+ recipients: {
334
+ emailAddress: string;
335
+ id: string;
336
+ name: string | null;
337
+ threadMessageId: string;
338
+ type: "bcc" | "cc" | "to" | "replyTo";
339
+ }[];
340
+ senderEmail: string;
341
+ senderName: string | null;
342
+ threadId: string;
343
+ }[];
344
+ previewText: string;
345
+ seen: boolean;
346
+ senderEmail: string;
347
+ senderName: string | null;
348
+ subject: string | null;
349
+ userId: string;
350
+ words: string;
351
+ };
352
+ }, {
353
+ thread: {
354
+ accountId: string;
355
+ flagged: boolean;
356
+ hasAttachments: boolean;
357
+ id: string;
358
+ labelIdList: string;
359
+ latestMessageDate: number;
360
+ latestMessageId: string;
361
+ messageCount: number;
362
+ messages: {
363
+ accountId: string;
364
+ attachments: {
365
+ fileName: string;
366
+ id: string;
367
+ mimeType: string;
368
+ size: number;
369
+ threadMessageId: string;
370
+ }[];
371
+ envelopeDate: number;
372
+ envelopeSubject: string | null;
373
+ id: string;
374
+ previewText: string;
375
+ recipients: {
376
+ emailAddress: string;
377
+ id: string;
378
+ name: string | null;
379
+ threadMessageId: string;
380
+ type: "bcc" | "cc" | "to" | "replyTo";
381
+ }[];
382
+ senderEmail: string;
383
+ senderName: string | null;
384
+ threadId: string;
385
+ }[];
386
+ previewText: string;
387
+ seen: boolean;
388
+ senderEmail: string;
389
+ senderName: string | null;
390
+ subject: string | null;
391
+ userId: string;
392
+ words: string;
393
+ };
394
+ }, Context, unknown>;
310
395
  readonly removeLabel: import("@rocicorp/zero").MutatorDefinition<{
311
396
  accounts: {
312
397
  [x: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IAAE,MAAM,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0nBnB,CAAA"}
@@ -390,6 +390,75 @@ export const mutators = defineMutators({
390
390
  }
391
391
  }
392
392
  }),
393
+ insertFromPushNotification: defineMutator(mutatorSchemas.thread.insertFromPushNotification, async ({ tx, args: { thread } }) => {
394
+ const labelIds = threadsUtils.parseLabelIdList(thread.labelIdList);
395
+ await tx.mutate.thread.insert({
396
+ accountId: thread.accountId,
397
+ flagged: thread.flagged,
398
+ hasAttachments: thread.hasAttachments,
399
+ id: thread.id,
400
+ labelIdList: thread.labelIdList,
401
+ latestMessageDate: thread.latestMessageDate,
402
+ latestMessageId: thread.latestMessageId,
403
+ messageCount: thread.messageCount,
404
+ previewText: thread.previewText,
405
+ seen: thread.seen,
406
+ senderEmail: thread.senderEmail,
407
+ senderName: thread.senderName ?? undefined,
408
+ subject: thread.subject ?? undefined,
409
+ userId: thread.userId,
410
+ words: thread.words,
411
+ });
412
+ for (const message of thread.messages) {
413
+ await tx.mutate.threadMessage.insert({
414
+ accountId: message.accountId,
415
+ envelopeDate: message.envelopeDate,
416
+ envelopeSubject: message.envelopeSubject ?? undefined,
417
+ id: message.id,
418
+ previewText: message.previewText,
419
+ senderEmail: message.senderEmail,
420
+ senderName: message.senderName ?? undefined,
421
+ threadId: message.threadId,
422
+ });
423
+ for (const recipient of message.recipients) {
424
+ await tx.mutate.threadMessageRecipient.insert({
425
+ emailAddress: recipient.emailAddress,
426
+ id: recipient.id,
427
+ name: recipient.name ?? undefined,
428
+ threadMessageId: recipient.threadMessageId,
429
+ type: recipient.type,
430
+ });
431
+ }
432
+ for (const attachment of message.attachments) {
433
+ await tx.mutate.threadMessageAttachment.insert({
434
+ fileName: attachment.fileName,
435
+ id: attachment.id,
436
+ mimeType: attachment.mimeType,
437
+ size: attachment.size,
438
+ threadMessageId: attachment.threadMessageId,
439
+ });
440
+ }
441
+ const baseTimestamp = Date.now();
442
+ for (const [index, labelId] of labelIds.entries()) {
443
+ await tx.mutate.threadLabel.insert({
444
+ accountId: thread.accountId,
445
+ labelId,
446
+ lastSyncedAt: 0,
447
+ threadId: thread.id,
448
+ threadMessageId: message.id,
449
+ uid: -(baseTimestamp + index),
450
+ uidValidity: 0,
451
+ });
452
+ }
453
+ }
454
+ for (const labelId of labelIds) {
455
+ await tx.mutate.threadByLabel.insert({
456
+ labelId,
457
+ latestMessageDate: thread.latestMessageDate,
458
+ threadId: thread.id,
459
+ });
460
+ }
461
+ }),
393
462
  removeLabel: defineMutator(mutatorSchemas.thread.removeLabel, async ({ tx, args }) => {
394
463
  for (const [accountId, { threadIds }] of Object.entries(args.accounts)) {
395
464
  const label = await tx.run(zql.accountLabel.where('accountId', accountId).where('path', args.labelPath).one());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.516",
3
+ "version": "2.0.517",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",