@marcoappio/marco-config 2.0.351 → 2.0.353
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 +4 -4
- package/dist/clients/account.js +4 -4
- package/dist/clients/draft.d.ts +4 -4
- package/dist/clients/draft.js +2 -2
- package/dist/clients/index.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/index.d.ts +1 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/number.d.ts +1 -0
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +1 -0
- package/dist/schemas/string.d.ts +0 -2
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +0 -3
- package/dist/sdk/endpoints/index.d.ts +24 -24
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -1
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +16 -16
- package/dist/sdk/endpoints/private/sync/index.d.ts +15 -15
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +5 -5
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +13 -13
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -3
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.js +3 -2
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +2 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +7 -7
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +4 -4
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +3 -3
- package/dist/sdk/endpoints/public/config/index.d.ts +1 -1
- package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/config/index.js +2 -1
- package/dist/sdk/endpoints/public/index.d.ts +8 -8
- package/dist/sdk/index.d.ts +24 -24
- package/dist/utils/accounts/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/ws.d.ts.map +1 -1
- package/dist/ws.js +1 -6
- package/package.json +3 -4
- package/dist/schemas/string.test.d.ts +0 -2
- package/dist/schemas/string.test.d.ts.map +0 -1
- package/dist/schemas/string.test.js +0 -20
- package/dist/utils/accounts/labelIdGenerate.d.ts +0 -5
- package/dist/utils/accounts/labelIdGenerate.d.ts.map +0 -1
- package/dist/utils/accounts/labelIdGenerate.js +0 -6
- package/dist/utils/shortUUID/index.d.ts +0 -2
- package/dist/utils/shortUUID/index.d.ts.map +0 -1
- package/dist/utils/shortUUID/index.js +0 -1
- package/dist/utils/shortUUID/shortUUID.d.ts +0 -7
- package/dist/utils/shortUUID/shortUUID.d.ts.map +0 -1
- package/dist/utils/shortUUID/shortUUID.js +0 -8
- package/dist/utils/shortUUID/shortUUID.test.d.ts +0 -2
- package/dist/utils/shortUUID/shortUUID.test.d.ts.map +0 -1
- package/dist/utils/shortUUID/shortUUID.test.js +0 -19
|
@@ -26,7 +26,7 @@ export declare const privateGroup: {
|
|
|
26
26
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
27
27
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
28
|
readonly data: import("valibot").ObjectSchema<{
|
|
29
|
-
readonly html: import("valibot").StringSchema<undefined>;
|
|
29
|
+
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
30
|
}, undefined>;
|
|
31
31
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
32
32
|
}, undefined>], undefined>>;
|
|
@@ -34,7 +34,7 @@ export declare const privateGroup: {
|
|
|
34
34
|
sync: {
|
|
35
35
|
pull: {
|
|
36
36
|
account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
37
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
37
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
38
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
39
39
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
40
40
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -80,13 +80,13 @@ export declare const privateGroup: {
|
|
|
80
80
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
81
81
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
82
82
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
83
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
84
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
85
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
86
|
-
}, undefined>;
|
|
87
83
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
88
84
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
89
85
|
}, undefined>, undefined>;
|
|
86
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
87
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
88
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
90
|
readonly settings: import("valibot").ObjectSchema<{
|
|
91
91
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
92
92
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -97,7 +97,7 @@ export declare const privateGroup: {
|
|
|
97
97
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
98
98
|
}, undefined>], undefined>>;
|
|
99
99
|
contact: import("../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
100
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
100
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
101
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
102
102
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
103
103
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -136,7 +136,7 @@ export declare const privateGroup: {
|
|
|
136
136
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
137
137
|
}, undefined>], undefined>>;
|
|
138
138
|
draft: import("../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
139
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
139
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
140
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
141
141
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
142
142
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -183,11 +183,11 @@ export declare const privateGroup: {
|
|
|
183
183
|
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>;
|
|
184
184
|
}, undefined>;
|
|
185
185
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
186
|
-
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
186
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
187
187
|
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
188
188
|
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
189
189
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
190
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").
|
|
190
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
191
191
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
192
192
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
193
193
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -198,10 +198,10 @@ export declare const privateGroup: {
|
|
|
198
198
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
199
199
|
}, undefined>], undefined>>;
|
|
200
200
|
thread: import("../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
201
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
201
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
202
202
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
203
203
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
204
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
204
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
205
205
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
206
206
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
207
207
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -226,7 +226,7 @@ export declare const privateGroup: {
|
|
|
226
226
|
readonly data: import("valibot").ObjectSchema<{
|
|
227
227
|
readonly cookie: import("valibot").ObjectSchema<{
|
|
228
228
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
229
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
229
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
230
230
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
231
231
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
232
232
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -288,7 +288,7 @@ export declare const privateGroup: {
|
|
|
288
288
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
289
289
|
}, undefined>], undefined>>;
|
|
290
290
|
user: import("../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
|
|
291
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
291
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
292
292
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
293
293
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
294
294
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -529,11 +529,11 @@ export declare const privateGroup: {
|
|
|
529
529
|
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>;
|
|
530
530
|
}, undefined>;
|
|
531
531
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
532
|
-
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
532
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
533
533
|
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
534
534
|
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
535
535
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
536
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").
|
|
536
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
537
537
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
538
538
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
539
539
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const sync: {
|
|
2
2
|
pull: {
|
|
3
3
|
account: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
4
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
5
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
6
6
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
7
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -47,13 +47,13 @@ export declare const sync: {
|
|
|
47
47
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
48
48
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
49
49
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
51
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
53
|
-
}, undefined>;
|
|
54
50
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
51
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
56
52
|
}, undefined>, undefined>;
|
|
53
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
54
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
57
|
readonly settings: import("valibot").ObjectSchema<{
|
|
58
58
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
59
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -64,7 +64,7 @@ export declare const sync: {
|
|
|
64
64
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
65
65
|
}, undefined>], undefined>>;
|
|
66
66
|
contact: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
67
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
67
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
68
68
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
69
69
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
70
70
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -103,7 +103,7 @@ export declare const sync: {
|
|
|
103
103
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
104
104
|
}, undefined>], undefined>>;
|
|
105
105
|
draft: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
106
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
106
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
107
107
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
108
108
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
109
109
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -150,11 +150,11 @@ export declare const sync: {
|
|
|
150
150
|
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>;
|
|
151
151
|
}, undefined>;
|
|
152
152
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
153
|
-
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
153
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
154
154
|
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
155
155
|
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
156
156
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
157
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").
|
|
157
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
158
158
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
159
159
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
160
160
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -165,10 +165,10 @@ export declare const sync: {
|
|
|
165
165
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
166
166
|
}, undefined>], undefined>>;
|
|
167
167
|
thread: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
168
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
168
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
169
169
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
170
170
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
171
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
171
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
172
172
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
173
173
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
174
174
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -193,7 +193,7 @@ export declare const sync: {
|
|
|
193
193
|
readonly data: import("valibot").ObjectSchema<{
|
|
194
194
|
readonly cookie: import("valibot").ObjectSchema<{
|
|
195
195
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
196
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
196
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
197
197
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
198
198
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
199
199
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -255,7 +255,7 @@ export declare const sync: {
|
|
|
255
255
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
256
256
|
}, undefined>], undefined>>;
|
|
257
257
|
user: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
|
|
258
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
258
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
259
259
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
260
260
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
261
261
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -496,11 +496,11 @@ export declare const sync: {
|
|
|
496
496
|
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>;
|
|
497
497
|
}, undefined>;
|
|
498
498
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
499
|
-
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
499
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
500
500
|
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
501
501
|
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
502
502
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
503
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").
|
|
503
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
504
504
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
505
505
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
506
506
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
6
|
readonly data: v.ObjectSchema<{
|
|
@@ -46,13 +46,13 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
|
|
|
46
46
|
readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
47
47
|
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
48
48
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly mailCounts: v.ObjectSchema<{
|
|
50
|
-
readonly processed: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
51
|
-
readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
}, undefined>;
|
|
53
49
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
50
|
readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
55
51
|
}, undefined>, undefined>;
|
|
52
|
+
readonly mailCounts: v.ObjectSchema<{
|
|
53
|
+
readonly processed: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
|
+
readonly total: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
56
|
readonly settings: v.ObjectSchema<{
|
|
57
57
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
58
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { account } from '../../../../../clients/account';
|
|
3
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
4
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
5
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
6
|
export const syncPullAccount = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
7
|
-
clientGroupID:
|
|
8
|
-
cookie:
|
|
8
|
+
clientGroupID: marcoSchemas.string.required(),
|
|
9
|
+
cookie: marcoSchemas.number.nullable(),
|
|
9
10
|
}),
|
|
10
11
|
method: 'POST',
|
|
11
12
|
path: account.pullUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPullContact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
6
|
readonly data: v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { contact } from '../../../../../clients/contact';
|
|
3
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
4
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
5
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
6
|
export const syncPullContact = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
7
|
-
clientGroupID:
|
|
8
|
-
cookie:
|
|
8
|
+
clientGroupID: marcoSchemas.string.required(),
|
|
9
|
+
cookie: marcoSchemas.number.nullable(),
|
|
9
10
|
}),
|
|
10
11
|
method: 'POST',
|
|
11
12
|
path: contact.pullUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
6
|
readonly data: v.ObjectSchema<{
|
|
@@ -47,11 +47,11 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
|
|
|
47
47
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
48
48
|
}, undefined>;
|
|
49
49
|
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly error: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
51
|
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
52
52
|
readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly referencedMessageId: v.NullableSchema<v.
|
|
54
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
55
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
56
56
|
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
57
57
|
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBxB,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { draft } from '../../../../../clients/draft';
|
|
3
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
4
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
5
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
6
|
export const syncPullDraft = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
7
|
-
clientGroupID:
|
|
8
|
-
cookie:
|
|
8
|
+
clientGroupID: marcoSchemas.string.required(),
|
|
9
|
+
cookie: marcoSchemas.number.nullable(),
|
|
9
10
|
}),
|
|
10
11
|
method: 'POST',
|
|
11
12
|
path: draft.pullUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const pull: {
|
|
2
2
|
account: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
6
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -46,13 +46,13 @@ export declare const pull: {
|
|
|
46
46
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
47
47
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
48
48
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
50
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
51
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
}, undefined>;
|
|
53
49
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
50
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
55
51
|
}, undefined>, undefined>;
|
|
52
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
53
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
56
|
readonly settings: import("valibot").ObjectSchema<{
|
|
57
57
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
58
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -63,7 +63,7 @@ export declare const pull: {
|
|
|
63
63
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
64
64
|
}, undefined>], undefined>>;
|
|
65
65
|
contact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
66
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
66
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
67
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
68
68
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
69
69
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -102,7 +102,7 @@ export declare const pull: {
|
|
|
102
102
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
103
103
|
}, undefined>], undefined>>;
|
|
104
104
|
draft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
|
|
105
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
105
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
106
106
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
107
107
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
108
108
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -149,11 +149,11 @@ export declare const pull: {
|
|
|
149
149
|
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>;
|
|
150
150
|
}, undefined>;
|
|
151
151
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
152
|
-
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
152
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
153
153
|
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
154
154
|
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
155
155
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
156
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").
|
|
156
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
157
157
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
158
158
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
159
159
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -164,10 +164,10 @@ export declare const pull: {
|
|
|
164
164
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
165
165
|
}, undefined>], undefined>>;
|
|
166
166
|
thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
167
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
167
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
168
168
|
readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
169
169
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
170
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
170
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
171
171
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
172
172
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
173
173
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -192,7 +192,7 @@ export declare const pull: {
|
|
|
192
192
|
readonly data: import("valibot").ObjectSchema<{
|
|
193
193
|
readonly cookie: import("valibot").ObjectSchema<{
|
|
194
194
|
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
195
|
-
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").
|
|
195
|
+
readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
196
196
|
readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
197
197
|
readonly order: import("valibot").StringSchema<undefined>;
|
|
198
198
|
readonly versionMax: import("valibot").NumberSchema<undefined>;
|
|
@@ -254,7 +254,7 @@ export declare const pull: {
|
|
|
254
254
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
255
255
|
}, undefined>], undefined>>;
|
|
256
256
|
user: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
|
|
257
|
-
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
257
|
+
readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
258
258
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
259
259
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
260
260
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: v.NullableSchema<v.ObjectSchema<{
|
|
5
5
|
readonly hasMore: v.BooleanSchema<undefined>;
|
|
6
|
-
readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.
|
|
6
|
+
readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
7
|
readonly latestSentAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
8
|
readonly order: v.StringSchema<undefined>;
|
|
9
9
|
readonly versionMax: v.NumberSchema<undefined>;
|
|
@@ -28,7 +28,7 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
|
|
|
28
28
|
readonly data: v.ObjectSchema<{
|
|
29
29
|
readonly cookie: v.ObjectSchema<{
|
|
30
30
|
readonly hasMore: v.BooleanSchema<undefined>;
|
|
31
|
-
readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.
|
|
31
|
+
readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
32
|
readonly latestSentAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
33
|
readonly order: v.StringSchema<undefined>;
|
|
34
34
|
readonly versionMax: v.NumberSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuCzB,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { thread } from '../../../../../clients/thread';
|
|
3
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
4
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
5
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
6
|
export const syncPullThread = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
7
|
-
clientGroupID:
|
|
8
|
+
clientGroupID: marcoSchemas.string.required(),
|
|
8
9
|
cookie: v.nullable(v.object({
|
|
9
10
|
hasMore: v.boolean(),
|
|
10
|
-
id:
|
|
11
|
+
id: marcoSchemas.string.nullable(),
|
|
11
12
|
latestSentAt: v.nullable(v.number()),
|
|
12
13
|
order: v.string(),
|
|
13
14
|
versionMax: v.number(),
|
|
@@ -23,7 +24,7 @@ export const syncPullThread = createEndpoint({
|
|
|
23
24
|
data: v.object({
|
|
24
25
|
cookie: v.object({
|
|
25
26
|
hasMore: v.boolean(),
|
|
26
|
-
id:
|
|
27
|
+
id: marcoSchemas.string.nullable(),
|
|
27
28
|
latestSentAt: v.nullable(v.number()),
|
|
28
29
|
order: v.string(),
|
|
29
30
|
versionMax: v.number(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
3
|
+
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
6
|
readonly data: v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { user } from '../../../../../clients/user';
|
|
3
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
4
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
5
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
6
|
export const syncPullUser = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
7
|
-
clientGroupID:
|
|
8
|
-
cookie:
|
|
8
|
+
clientGroupID: marcoSchemas.string.required(),
|
|
9
|
+
cookie: marcoSchemas.number.nullable(),
|
|
9
10
|
}),
|
|
10
11
|
method: 'POST',
|
|
11
12
|
path: user.pullUrl,
|