@marcoappio/marco-config 2.0.245 → 2.0.247
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/clients/account.d.ts +8 -8
- package/dist/clients/account.js +5 -5
- package/dist/clients/contact.d.ts +1 -1
- package/dist/clients/contact.js +1 -1
- package/dist/clients/draft.d.ts +21 -21
- package/dist/clients/draft.js +13 -13
- package/dist/clients/index.d.ts +48 -48
- package/dist/clients/thread.d.ts +13 -13
- package/dist/clients/thread.js +13 -13
- package/dist/clients/user.d.ts +5 -5
- package/dist/clients/user.js +2 -2
- package/dist/{schemas.d.ts → schemas/index.d.ts} +2 -1
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/{schemas.js → schemas/index.js} +2 -9
- package/dist/schemas/string.d.ts +12 -0
- package/dist/schemas/string.d.ts.map +1 -0
- package/dist/schemas/string.js +12 -0
- package/dist/schemas/string.test.d.ts +2 -0
- package/dist/schemas/string.test.d.ts.map +1 -0
- package/dist/schemas/string.test.js +11 -0
- package/dist/sdk/endpoints/index.d.ts +48 -48
- package/dist/sdk/endpoints/private/index.d.ts +48 -48
- package/dist/sdk/endpoints/private/sync/index.d.ts +48 -48
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +4 -4
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +11 -11
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +4 -4
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +7 -7
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +17 -17
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +37 -37
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +9 -9
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +4 -4
- package/dist/sdk/index.d.ts +48 -48
- package/dist/utils/shortUUID/shortUUID.d.ts +1 -0
- package/dist/utils/shortUUID/shortUUID.d.ts.map +1 -1
- package/dist/utils/shortUUID/shortUUID.js +1 -0
- package/dist/utils/shortUUID/shortUUID.test.js +4 -0
- package/package.json +1 -1
- package/dist/schemas.d.ts.map +0 -1
package/dist/clients/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const marcoClients: {
|
|
|
11
11
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
12
12
|
}, undefined>, undefined>;
|
|
13
13
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
14
|
-
readonly id: import("valibot").
|
|
14
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
15
15
|
readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
16
16
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
17
17
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -33,12 +33,12 @@ export declare const marcoClients: {
|
|
|
33
33
|
delta: import("valibot").ObjectSchema<{
|
|
34
34
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
35
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
|
-
readonly id: import("valibot").
|
|
36
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
37
37
|
}, undefined>;
|
|
38
38
|
};
|
|
39
39
|
delete: {
|
|
40
40
|
delta: import("valibot").ObjectSchema<{
|
|
41
|
-
readonly id: import("valibot").
|
|
41
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
};
|
|
44
44
|
setConnectionConfig: {
|
|
@@ -51,16 +51,16 @@ export declare const marcoClients: {
|
|
|
51
51
|
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
52
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
53
53
|
}, undefined>;
|
|
54
|
-
readonly id: import("valibot").
|
|
54
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
55
55
|
}, undefined>;
|
|
56
56
|
};
|
|
57
57
|
setSettings: {
|
|
58
58
|
delta: import("valibot").ObjectSchema<{
|
|
59
|
-
readonly id: import("valibot").
|
|
59
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
60
60
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
61
61
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
62
62
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
63
|
-
}, undefined>, "~
|
|
63
|
+
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
64
64
|
readonly entries: {
|
|
65
65
|
readonly color: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
66
66
|
readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
@@ -75,7 +75,7 @@ export declare const marcoClients: {
|
|
|
75
75
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
76
76
|
name?: string | null | undefined;
|
|
77
77
|
color?: string | undefined;
|
|
78
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
78
|
+
}, import("valibot").StringIssue | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue>;
|
|
79
79
|
readonly '~types'?: {
|
|
80
80
|
readonly input: {
|
|
81
81
|
name?: string | null | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const marcoClients: {
|
|
|
85
85
|
name?: string | null | undefined;
|
|
86
86
|
color?: string | undefined;
|
|
87
87
|
};
|
|
88
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
88
|
+
readonly issue: import("valibot").StringIssue | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue;
|
|
89
89
|
} | undefined;
|
|
90
90
|
};
|
|
91
91
|
}, undefined>;
|
|
@@ -99,7 +99,7 @@ export declare const marcoClients: {
|
|
|
99
99
|
contact: {
|
|
100
100
|
model: import("valibot").ObjectSchema<{
|
|
101
101
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
102
|
-
readonly id: import("valibot").
|
|
102
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
103
103
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
104
104
|
}, undefined>;
|
|
105
105
|
mutators: {};
|
|
@@ -112,7 +112,7 @@ export declare const marcoClients: {
|
|
|
112
112
|
model: import("valibot").ObjectSchema<{
|
|
113
113
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
114
114
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
115
|
-
readonly id: import("valibot").
|
|
115
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
116
116
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
117
117
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
118
118
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -125,9 +125,9 @@ export declare const marcoClients: {
|
|
|
125
125
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
126
126
|
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
127
127
|
}, undefined>;
|
|
128
|
-
readonly emailAccountId: import("valibot").
|
|
129
|
-
readonly id: import("valibot").
|
|
130
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
128
|
+
readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
129
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
130
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
131
131
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
132
132
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
133
133
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -137,7 +137,7 @@ export declare const marcoClients: {
|
|
|
137
137
|
delta: import("valibot").ObjectSchema<{
|
|
138
138
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
139
139
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
-
readonly id: import("valibot").
|
|
140
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
141
141
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
142
142
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
143
143
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -150,9 +150,9 @@ export declare const marcoClients: {
|
|
|
150
150
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
151
151
|
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
-
readonly emailAccountId: import("valibot").
|
|
154
|
-
readonly id: import("valibot").
|
|
155
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
153
|
+
readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
154
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
155
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
156
156
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
157
157
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
158
158
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -162,23 +162,23 @@ export declare const marcoClients: {
|
|
|
162
162
|
delta: import("valibot").ObjectSchema<{
|
|
163
163
|
readonly attachment: import("valibot").ObjectSchema<{
|
|
164
164
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
165
|
-
readonly id: import("valibot").
|
|
165
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
166
166
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
167
167
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
168
168
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
169
169
|
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
170
170
|
}, undefined>;
|
|
171
|
-
readonly id: import("valibot").
|
|
171
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
172
172
|
}, undefined>;
|
|
173
173
|
};
|
|
174
174
|
delete: {
|
|
175
175
|
delta: import("valibot").ObjectSchema<{
|
|
176
|
-
readonly id: import("valibot").
|
|
176
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
177
177
|
}, undefined>;
|
|
178
178
|
};
|
|
179
179
|
setContent: {
|
|
180
180
|
delta: import("valibot").ObjectSchema<{
|
|
181
|
-
readonly id: import("valibot").
|
|
181
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
182
182
|
readonly patch: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
183
183
|
readonly index: import("valibot").NumberSchema<undefined>;
|
|
184
184
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"INSERTION", undefined>, import("valibot").LiteralSchema<"DELETION", undefined>], undefined>;
|
|
@@ -189,8 +189,8 @@ export declare const marcoClients: {
|
|
|
189
189
|
};
|
|
190
190
|
setEmailAccountId: {
|
|
191
191
|
delta: import("valibot").ObjectSchema<{
|
|
192
|
-
readonly emailAccountId: import("valibot").
|
|
193
|
-
readonly id: import("valibot").
|
|
192
|
+
readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
193
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
194
194
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
195
195
|
}, undefined>;
|
|
196
196
|
};
|
|
@@ -202,7 +202,7 @@ export declare const marcoClients: {
|
|
|
202
202
|
readonly content: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
203
203
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
204
204
|
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
205
|
-
}, undefined>, "~
|
|
205
|
+
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
206
206
|
readonly entries: Omit<{
|
|
207
207
|
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
208
208
|
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -226,7 +226,7 @@ export declare const marcoClients: {
|
|
|
226
226
|
cc: string[];
|
|
227
227
|
to: string[];
|
|
228
228
|
subject: string | null;
|
|
229
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
229
|
+
}, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
|
|
230
230
|
readonly '~types'?: {
|
|
231
231
|
readonly input: {
|
|
232
232
|
bcc: string[];
|
|
@@ -240,25 +240,25 @@ export declare const marcoClients: {
|
|
|
240
240
|
to: string[];
|
|
241
241
|
subject: string | null;
|
|
242
242
|
};
|
|
243
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
243
|
+
readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
|
|
244
244
|
} | undefined;
|
|
245
245
|
};
|
|
246
|
-
readonly id: import("valibot").
|
|
246
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
247
247
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
248
248
|
}, undefined>;
|
|
249
249
|
};
|
|
250
250
|
setStatus: {
|
|
251
251
|
delta: import("valibot").ObjectSchema<{
|
|
252
|
-
readonly id: import("valibot").
|
|
252
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
253
253
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
254
254
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
255
255
|
}, undefined>;
|
|
256
256
|
};
|
|
257
257
|
uploadAttachmentChunk: {
|
|
258
258
|
delta: import("valibot").ObjectSchema<{
|
|
259
|
-
readonly attachmentId: import("valibot").
|
|
259
|
+
readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
260
260
|
readonly chunk: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
261
|
-
readonly id: import("valibot").
|
|
261
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
262
262
|
}, undefined>;
|
|
263
263
|
};
|
|
264
264
|
};
|
|
@@ -272,11 +272,11 @@ export declare const marcoClients: {
|
|
|
272
272
|
readonly bagOfWords: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
273
273
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
274
274
|
readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
275
|
-
readonly id: import("valibot").
|
|
275
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
276
276
|
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
277
277
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
278
278
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
279
|
-
readonly id: import("valibot").
|
|
279
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
280
280
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
281
281
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
282
282
|
}, undefined>, undefined>;
|
|
@@ -294,8 +294,8 @@ export declare const marcoClients: {
|
|
|
294
294
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
295
295
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
296
296
|
}, undefined>, undefined>;
|
|
297
|
-
readonly id: import("valibot").
|
|
298
|
-
readonly labelIds: import("valibot").ArraySchema<import("valibot").
|
|
297
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
298
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
299
299
|
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
300
300
|
readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
301
301
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -311,45 +311,45 @@ export declare const marcoClients: {
|
|
|
311
311
|
mutators: {
|
|
312
312
|
delete: {
|
|
313
313
|
delta: import("valibot").ObjectSchema<{
|
|
314
|
-
readonly threadId: import("valibot").
|
|
314
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
315
315
|
}, undefined>;
|
|
316
316
|
};
|
|
317
317
|
setFlagged: {
|
|
318
318
|
delta: import("valibot").ObjectSchema<{
|
|
319
319
|
readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
320
|
-
readonly threadId: import("valibot").
|
|
320
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
321
321
|
}, undefined>;
|
|
322
322
|
};
|
|
323
323
|
setLabels: {
|
|
324
324
|
delta: import("valibot").ObjectSchema<{
|
|
325
|
-
readonly labelIds: import("valibot").ArraySchema<import("valibot").
|
|
326
|
-
readonly threadId: import("valibot").
|
|
325
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
326
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
327
327
|
}, undefined>;
|
|
328
328
|
};
|
|
329
329
|
setSeen: {
|
|
330
330
|
delta: import("valibot").ObjectSchema<{
|
|
331
331
|
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
332
|
-
readonly threadId: import("valibot").
|
|
332
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
333
333
|
}, undefined>;
|
|
334
334
|
};
|
|
335
335
|
setArchive: {
|
|
336
336
|
delta: import("valibot").ObjectSchema<{
|
|
337
|
-
readonly threadId: import("valibot").
|
|
337
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
338
338
|
}, undefined>;
|
|
339
339
|
};
|
|
340
340
|
setInbox: {
|
|
341
341
|
delta: import("valibot").ObjectSchema<{
|
|
342
|
-
readonly threadId: import("valibot").
|
|
342
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
343
343
|
}, undefined>;
|
|
344
344
|
};
|
|
345
345
|
setSpam: {
|
|
346
346
|
delta: import("valibot").ObjectSchema<{
|
|
347
|
-
readonly threadId: import("valibot").
|
|
347
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
348
348
|
}, undefined>;
|
|
349
349
|
};
|
|
350
350
|
setTrash: {
|
|
351
351
|
delta: import("valibot").ObjectSchema<{
|
|
352
|
-
readonly threadId: import("valibot").
|
|
352
|
+
readonly threadId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
353
353
|
}, undefined>;
|
|
354
354
|
};
|
|
355
355
|
};
|
|
@@ -360,7 +360,7 @@ export declare const marcoClients: {
|
|
|
360
360
|
};
|
|
361
361
|
user: {
|
|
362
362
|
model: import("valibot").ObjectSchema<{
|
|
363
|
-
readonly id: import("valibot").
|
|
363
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
364
364
|
readonly settings: import("valibot").ObjectSchema<{
|
|
365
365
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
366
366
|
}, undefined>;
|
|
@@ -368,10 +368,10 @@ export declare const marcoClients: {
|
|
|
368
368
|
mutators: {
|
|
369
369
|
setSettings: {
|
|
370
370
|
delta: import("valibot").ObjectSchema<{
|
|
371
|
-
readonly id: import("valibot").
|
|
371
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
372
372
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
373
373
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
374
|
-
}, undefined>, "~
|
|
374
|
+
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
375
375
|
readonly entries: {
|
|
376
376
|
readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
377
377
|
};
|
|
@@ -382,7 +382,7 @@ export declare const marcoClients: {
|
|
|
382
382
|
}>;
|
|
383
383
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
384
384
|
name?: string | null | undefined;
|
|
385
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
385
|
+
}, import("valibot").StringIssue | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
|
|
386
386
|
readonly '~types'?: {
|
|
387
387
|
readonly input: {
|
|
388
388
|
name?: string | null | undefined;
|
|
@@ -390,7 +390,7 @@ export declare const marcoClients: {
|
|
|
390
390
|
readonly output: {
|
|
391
391
|
name?: string | null | undefined;
|
|
392
392
|
};
|
|
393
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
393
|
+
readonly issue: import("valibot").StringIssue | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
|
|
394
394
|
} | undefined;
|
|
395
395
|
};
|
|
396
396
|
}, undefined>;
|
package/dist/clients/thread.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ export declare const thread: {
|
|
|
4
4
|
readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
5
5
|
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
6
|
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7
|
-
readonly id: v.
|
|
7
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
8
8
|
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
9
9
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
10
10
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
|
-
readonly id: v.
|
|
11
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
12
12
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
13
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
14
14
|
}, undefined>, undefined>;
|
|
@@ -26,8 +26,8 @@ export declare const thread: {
|
|
|
26
26
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
27
27
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
28
|
}, undefined>, undefined>;
|
|
29
|
-
readonly id: v.
|
|
30
|
-
readonly labelIds: v.ArraySchema<v.
|
|
29
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
30
|
+
readonly labelIds: v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
31
31
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
32
|
readonly replyTo: v.ArraySchema<v.ObjectSchema<{
|
|
33
33
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -43,45 +43,45 @@ export declare const thread: {
|
|
|
43
43
|
mutators: {
|
|
44
44
|
delete: {
|
|
45
45
|
delta: v.ObjectSchema<{
|
|
46
|
-
readonly threadId: v.
|
|
46
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
47
47
|
}, undefined>;
|
|
48
48
|
};
|
|
49
49
|
setFlagged: {
|
|
50
50
|
delta: v.ObjectSchema<{
|
|
51
51
|
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
52
|
-
readonly threadId: v.
|
|
52
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
53
53
|
}, undefined>;
|
|
54
54
|
};
|
|
55
55
|
setLabels: {
|
|
56
56
|
delta: v.ObjectSchema<{
|
|
57
|
-
readonly labelIds: v.ArraySchema<v.
|
|
58
|
-
readonly threadId: v.
|
|
57
|
+
readonly labelIds: v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
|
|
58
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
59
59
|
}, undefined>;
|
|
60
60
|
};
|
|
61
61
|
setSeen: {
|
|
62
62
|
delta: v.ObjectSchema<{
|
|
63
63
|
readonly seen: v.BooleanSchema<undefined>;
|
|
64
|
-
readonly threadId: v.
|
|
64
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
65
65
|
}, undefined>;
|
|
66
66
|
};
|
|
67
67
|
setArchive: {
|
|
68
68
|
delta: v.ObjectSchema<{
|
|
69
|
-
readonly threadId: v.
|
|
69
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
70
70
|
}, undefined>;
|
|
71
71
|
};
|
|
72
72
|
setInbox: {
|
|
73
73
|
delta: v.ObjectSchema<{
|
|
74
|
-
readonly threadId: v.
|
|
74
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
75
75
|
}, undefined>;
|
|
76
76
|
};
|
|
77
77
|
setSpam: {
|
|
78
78
|
delta: v.ObjectSchema<{
|
|
79
|
-
readonly threadId: v.
|
|
79
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
80
80
|
}, undefined>;
|
|
81
81
|
};
|
|
82
82
|
setTrash: {
|
|
83
83
|
delta: v.ObjectSchema<{
|
|
84
|
-
readonly threadId: v.
|
|
84
|
+
readonly threadId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
85
85
|
}, undefined>;
|
|
86
86
|
};
|
|
87
87
|
};
|
package/dist/clients/thread.js
CHANGED
|
@@ -7,29 +7,29 @@ const inlineContact = v.object({
|
|
|
7
7
|
});
|
|
8
8
|
const inlineAttachment = v.object({
|
|
9
9
|
fileName: marcoSchemas.string.required(),
|
|
10
|
-
id: marcoSchemas.string.
|
|
10
|
+
id: marcoSchemas.string.shortUUID(),
|
|
11
11
|
mimeType: marcoSchemas.string.required(),
|
|
12
12
|
size: marcoSchemas.number.positiveInteger(),
|
|
13
13
|
});
|
|
14
14
|
const specialUseMutators = {
|
|
15
15
|
setArchive: {
|
|
16
16
|
delta: v.object({
|
|
17
|
-
threadId: marcoSchemas.string.
|
|
17
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
18
18
|
}),
|
|
19
19
|
},
|
|
20
20
|
setInbox: {
|
|
21
21
|
delta: v.object({
|
|
22
|
-
threadId: marcoSchemas.string.
|
|
22
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
23
23
|
}),
|
|
24
24
|
},
|
|
25
25
|
setSpam: {
|
|
26
26
|
delta: v.object({
|
|
27
|
-
threadId: marcoSchemas.string.
|
|
27
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
28
28
|
}),
|
|
29
29
|
},
|
|
30
30
|
setTrash: {
|
|
31
31
|
delta: v.object({
|
|
32
|
-
threadId: marcoSchemas.string.
|
|
32
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
33
33
|
}),
|
|
34
34
|
},
|
|
35
35
|
};
|
|
@@ -38,7 +38,7 @@ export const thread = {
|
|
|
38
38
|
bagOfWords: v.array(marcoSchemas.string.required()),
|
|
39
39
|
emailAccountId: marcoSchemas.string.required(),
|
|
40
40
|
flagged: v.nonOptional(v.boolean()),
|
|
41
|
-
id: marcoSchemas.string.
|
|
41
|
+
id: marcoSchemas.string.shortUUID(),
|
|
42
42
|
messages: v.array(v.object({
|
|
43
43
|
attachments: v.array(inlineAttachment),
|
|
44
44
|
bcc: v.array(inlineContact),
|
|
@@ -46,8 +46,8 @@ export const thread = {
|
|
|
46
46
|
envelopeDate: marcoSchemas.number.positiveInteger(),
|
|
47
47
|
envelopeSubject: marcoSchemas.string.nullable(),
|
|
48
48
|
from: v.array(inlineContact),
|
|
49
|
-
id: marcoSchemas.string.
|
|
50
|
-
labelIds: v.array(marcoSchemas.string.
|
|
49
|
+
id: marcoSchemas.string.shortUUID(),
|
|
50
|
+
labelIds: v.array(marcoSchemas.string.shortUUID()),
|
|
51
51
|
previewText: marcoSchemas.string.required(marcoConstants.messages.PREVIEW_TEXT_MAX_LENGTH),
|
|
52
52
|
replyTo: v.array(inlineContact),
|
|
53
53
|
to: v.array(inlineContact),
|
|
@@ -58,25 +58,25 @@ export const thread = {
|
|
|
58
58
|
...specialUseMutators,
|
|
59
59
|
delete: {
|
|
60
60
|
delta: v.object({
|
|
61
|
-
threadId: marcoSchemas.string.
|
|
61
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
62
62
|
}),
|
|
63
63
|
},
|
|
64
64
|
setFlagged: {
|
|
65
65
|
delta: v.object({
|
|
66
66
|
flagged: v.nonOptional(v.boolean()),
|
|
67
|
-
threadId: marcoSchemas.string.
|
|
67
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
68
68
|
}),
|
|
69
69
|
},
|
|
70
70
|
setLabels: {
|
|
71
71
|
delta: v.object({
|
|
72
|
-
labelIds: v.array(marcoSchemas.string.
|
|
73
|
-
threadId: marcoSchemas.string.
|
|
72
|
+
labelIds: v.array(marcoSchemas.string.shortUUID()),
|
|
73
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
74
74
|
}),
|
|
75
75
|
},
|
|
76
76
|
setSeen: {
|
|
77
77
|
delta: v.object({
|
|
78
78
|
seen: v.boolean(),
|
|
79
|
-
threadId: marcoSchemas.string.
|
|
79
|
+
threadId: marcoSchemas.string.shortUUID(),
|
|
80
80
|
}),
|
|
81
81
|
},
|
|
82
82
|
},
|
package/dist/clients/user.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const user: {
|
|
3
3
|
model: v.ObjectSchema<{
|
|
4
|
-
readonly id: v.
|
|
4
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
5
5
|
readonly settings: v.ObjectSchema<{
|
|
6
6
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
7
|
}, undefined>;
|
|
@@ -9,10 +9,10 @@ export declare const user: {
|
|
|
9
9
|
mutators: {
|
|
10
10
|
setSettings: {
|
|
11
11
|
delta: v.ObjectSchema<{
|
|
12
|
-
readonly id: v.
|
|
12
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
13
13
|
readonly settings: Omit<v.ObjectSchema<{
|
|
14
14
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
-
}, undefined>, "~
|
|
15
|
+
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
16
16
|
readonly entries: {
|
|
17
17
|
readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
18
18
|
};
|
|
@@ -23,7 +23,7 @@ export declare const user: {
|
|
|
23
23
|
}>;
|
|
24
24
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
25
25
|
name?: string | null | undefined;
|
|
26
|
-
}, v.StringIssue | v.
|
|
26
|
+
}, v.StringIssue | v.MaxLengthIssue<string, number> | v.ObjectIssue>;
|
|
27
27
|
readonly '~types'?: {
|
|
28
28
|
readonly input: {
|
|
29
29
|
name?: string | null | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const user: {
|
|
|
31
31
|
readonly output: {
|
|
32
32
|
name?: string | null | undefined;
|
|
33
33
|
};
|
|
34
|
-
readonly issue: v.StringIssue | v.
|
|
34
|
+
readonly issue: v.StringIssue | v.MaxLengthIssue<string, number> | v.ObjectIssue;
|
|
35
35
|
} | undefined;
|
|
36
36
|
};
|
|
37
37
|
}, undefined>;
|