@marcoappio/marco-config 2.0.408 → 2.0.410
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/emailProvider.d.ts.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/instantDB/instant.perms.d.ts +140 -0
- package/dist/instantDB/instant.perms.d.ts.map +1 -0
- package/dist/instantDB/instant.perms.js +139 -0
- package/dist/instantDB/instant.schema.d.ts +336 -0
- package/dist/instantDB/instant.schema.d.ts.map +1 -0
- package/dist/instantDB/instant.schema.js +174 -0
- package/dist/marcoPublicConfig.d.ts +0 -6
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +15 -32
- package/dist/schemas/app.d.ts.map +1 -1
- package/dist/schemas/app.js +1 -5
- package/dist/schemas/drafts.d.ts.map +1 -1
- package/dist/schemas/drafts.js +1 -4
- package/dist/schemas/emailAccount.d.ts +1 -1
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +3 -13
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/labels.d.ts +1 -1
- package/dist/schemas/labels.d.ts.map +1 -1
- package/dist/schemas/labels.js +2 -7
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/oauth.d.ts.map +1 -1
- package/dist/schemas/oauth.js +1 -4
- package/dist/schemas/pushNotifications.d.ts.map +1 -1
- package/dist/schemas/pushNotifications.js +1 -3
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +2 -1083
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +0 -2
- package/dist/sdk/endpoints/public/index.d.ts +0 -136
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +0 -2
- package/dist/sdk/index.d.ts +0 -1081
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +1 -1
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -1
- package/dist/types/DraftRecipientType.d.ts +3 -0
- package/dist/types/DraftRecipientType.d.ts.map +1 -0
- package/dist/types/DraftRecipientType.js +1 -0
- package/dist/types/DraftStatus.d.ts +3 -0
- package/dist/types/DraftStatus.d.ts.map +1 -0
- package/dist/types/DraftStatus.js +1 -0
- package/dist/types/DraftType.d.ts +3 -0
- package/dist/types/DraftType.d.ts.map +1 -0
- package/dist/types/DraftType.js +1 -0
- package/dist/types/Endpoint.d.ts +2 -3
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/ImapConnectionStatus.d.ts +3 -0
- package/dist/types/ImapConnectionStatus.d.ts.map +1 -0
- package/dist/types/ImapConnectionStatus.js +9 -0
- package/dist/types/LabelSpecialUse.d.ts +3 -0
- package/dist/types/LabelSpecialUse.d.ts.map +1 -0
- package/dist/types/LabelSpecialUse.js +1 -0
- package/dist/types/MessageAttachmentStatus.d.ts +3 -0
- package/dist/types/MessageAttachmentStatus.d.ts.map +1 -0
- package/dist/types/MessageAttachmentStatus.js +6 -0
- package/dist/types/MessageRecipientType.d.ts +3 -0
- package/dist/types/MessageRecipientType.d.ts.map +1 -0
- package/dist/types/MessageRecipientType.js +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +7 -3
- package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
- package/dist/utils/accounts/generateAccountColor.js +12 -3
- package/dist/utils/stringPatch/stringPatch.d.ts +2 -2
- package/dist/utils/stringPatch/stringPatch.d.ts.map +1 -1
- package/dist/utils/stringPatch/stringPatch.test.js +2 -2
- package/package.json +39 -46
- package/.eslintrc.json +0 -294
- package/dist/clients/account.d.ts +0 -144
- package/dist/clients/account.d.ts.map +0 -1
- package/dist/clients/account.js +0 -93
- package/dist/clients/contact.d.ts +0 -14
- package/dist/clients/contact.d.ts.map +0 -1
- package/dist/clients/contact.js +0 -14
- package/dist/clients/draft.d.ts +0 -202
- package/dist/clients/draft.d.ts.map +0 -1
- package/dist/clients/draft.js +0 -137
- package/dist/clients/index.d.ts +0 -532
- package/dist/clients/index.d.ts.map +0 -1
- package/dist/clients/index.js +0 -13
- package/dist/clients/thread.d.ts +0 -125
- package/dist/clients/thread.d.ts.map +0 -1
- package/dist/clients/thread.js +0 -121
- package/dist/clients/user.d.ts +0 -53
- package/dist/clients/user.d.ts.map +0 -1
- package/dist/clients/user.js +0 -52
- package/dist/clients/utils/index.d.ts +0 -4
- package/dist/clients/utils/index.d.ts.map +0 -1
- package/dist/clients/utils/index.js +0 -4
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts +0 -3
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +0 -1
- package/dist/clients/utils/labelSpecialUseOrdering.js +0 -7
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -21
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +0 -16
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +0 -19
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +0 -19
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -39
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/index.js +0 -6
- package/dist/sdk/endpoints/private/index.d.ts +0 -946
- package/dist/sdk/endpoints/private/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/index.js +0 -8
- package/dist/sdk/endpoints/private/sync/index.d.ts +0 -896
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/index.js +0 -3
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -71
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/account.js +0 -33
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +0 -56
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.js +0 -40
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +0 -72
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.js +0 -36
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -349
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/index.js +0 -6
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +0 -100
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.js +0 -45
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +0 -57
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/pull/user.js +0 -33
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +0 -151
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +0 -73
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +0 -214
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +0 -85
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -546
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/index.js +0 -5
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +0 -122
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +0 -79
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +0 -64
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +0 -43
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -10
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/deleteUser.js +0 -13
- package/dist/sdk/endpoints/private/user/index.d.ts +0 -11
- package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/index.js +0 -4
- package/dist/sdk/endpoints/public/auth/index.d.ts +0 -137
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/index.js +0 -8
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +0 -41
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +0 -33
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +0 -27
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +0 -19
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +0 -72
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +0 -40
- package/dist/types/MarcoClient.d.ts +0 -14
- package/dist/types/MarcoClient.d.ts.map +0 -1
- package/dist/types/MarcoClient.js +0 -1
- package/dist/types/SDKError.d.ts +0 -4
- package/dist/types/SDKError.d.ts.map +0 -1
- package/dist/types/SDKError.js +0 -1
- package/dist/types/WS.d.ts +0 -7
- package/dist/types/WS.d.ts.map +0 -1
- package/dist/types/WS.js +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
-
readonly cookie: v.NullableSchema<v.ObjectSchema<{
|
|
5
|
-
readonly order: v.StringSchema<undefined>;
|
|
6
|
-
readonly version: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
|
-
}, undefined>, undefined>;
|
|
8
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
9
|
-
readonly data: v.ObjectSchema<{
|
|
10
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
11
|
-
readonly issues: v.ObjectSchema<{
|
|
12
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
13
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
14
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
15
|
-
}, undefined>;
|
|
16
|
-
}, undefined>;
|
|
17
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
18
|
-
}, undefined>, v.ObjectSchema<{
|
|
19
|
-
readonly data: v.ObjectSchema<{
|
|
20
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
21
|
-
}, undefined>;
|
|
22
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
23
|
-
}, undefined>, v.ObjectSchema<{
|
|
24
|
-
readonly data: v.ObjectSchema<{
|
|
25
|
-
readonly cookie: v.ObjectSchema<{
|
|
26
|
-
readonly order: v.StringSchema<undefined>;
|
|
27
|
-
readonly version: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
28
|
-
}, undefined>;
|
|
29
|
-
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
30
|
-
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
31
|
-
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
32
|
-
}, undefined>, v.ObjectSchema<{
|
|
33
|
-
readonly key: v.StringSchema<undefined>;
|
|
34
|
-
readonly op: v.LiteralSchema<"del", undefined>;
|
|
35
|
-
}, undefined>, v.ObjectSchema<{
|
|
36
|
-
readonly key: v.StringSchema<undefined>;
|
|
37
|
-
readonly op: v.LiteralSchema<"put", undefined>;
|
|
38
|
-
readonly value: v.ObjectSchema<{
|
|
39
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
-
readonly settings: v.ObjectSchema<{
|
|
41
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
readonly notifications: v.ObjectSchema<{
|
|
43
|
-
readonly pushNotificationTokens: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
44
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
45
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
|
-
}, undefined>, undefined>;
|
|
48
|
-
}, undefined>;
|
|
49
|
-
readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
51
|
-
}, undefined>;
|
|
52
|
-
}, undefined>;
|
|
53
|
-
}, undefined>], undefined>, undefined>;
|
|
54
|
-
}, undefined>;
|
|
55
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
56
|
-
}, undefined>], undefined>>;
|
|
57
|
-
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAY5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { user } from '../../../../../clients/user';
|
|
3
|
-
import { marcoSchemas } from '../../../../../schemas';
|
|
4
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
5
|
-
import { errors } from '../../../../../sdk/validation/errors';
|
|
6
|
-
const cookieSchema = v.object({
|
|
7
|
-
order: v.string(),
|
|
8
|
-
version: marcoSchemas.number.positiveInteger(),
|
|
9
|
-
});
|
|
10
|
-
export const syncPullUser = createEndpoint({
|
|
11
|
-
body: v.object({
|
|
12
|
-
clientGroupID: marcoSchemas.string.required(),
|
|
13
|
-
cookie: v.nullable(cookieSchema),
|
|
14
|
-
}),
|
|
15
|
-
method: 'POST',
|
|
16
|
-
path: user.pullUrl,
|
|
17
|
-
response: v.union([
|
|
18
|
-
errors.validationFailedErrorSchema,
|
|
19
|
-
errors.authFailedErrorSchema,
|
|
20
|
-
v.object({
|
|
21
|
-
data: v.object({
|
|
22
|
-
cookie: cookieSchema,
|
|
23
|
-
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
24
|
-
patch: v.array(v.union([
|
|
25
|
-
v.object({ op: v.literal('clear') }),
|
|
26
|
-
v.object({ key: v.string(), op: v.literal('del') }),
|
|
27
|
-
v.object({ key: v.string(), op: v.literal('put'), value: user.model }),
|
|
28
|
-
])),
|
|
29
|
-
}),
|
|
30
|
-
status: v.literal(200),
|
|
31
|
-
}),
|
|
32
|
-
]),
|
|
33
|
-
});
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
|
|
5
|
-
readonly args: v.ObjectSchema<{
|
|
6
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
12
|
-
readonly id: v.NumberSchema<undefined>;
|
|
13
|
-
readonly name: v.LiteralSchema<"createAccount", undefined>;
|
|
14
|
-
}, undefined> | v.ObjectSchema<{
|
|
15
|
-
readonly args: v.ObjectSchema<{
|
|
16
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly alias: v.ObjectSchema<{
|
|
18
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
19
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
-
}, undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
24
|
-
readonly id: v.NumberSchema<undefined>;
|
|
25
|
-
readonly name: v.LiteralSchema<"createAlias", undefined>;
|
|
26
|
-
}, undefined> | v.ObjectSchema<{
|
|
27
|
-
readonly args: v.ObjectSchema<{
|
|
28
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
31
|
-
readonly id: v.NumberSchema<undefined>;
|
|
32
|
-
readonly name: v.LiteralSchema<"deleteAccount", undefined>;
|
|
33
|
-
}, undefined> | v.ObjectSchema<{
|
|
34
|
-
readonly args: v.ObjectSchema<{
|
|
35
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
39
|
-
readonly id: v.NumberSchema<undefined>;
|
|
40
|
-
readonly name: v.LiteralSchema<"deleteAlias", undefined>;
|
|
41
|
-
}, undefined> | v.ObjectSchema<{
|
|
42
|
-
readonly args: v.ObjectSchema<{
|
|
43
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
45
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
-
}, undefined>;
|
|
47
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
48
|
-
readonly id: v.NumberSchema<undefined>;
|
|
49
|
-
readonly name: v.LiteralSchema<"setAliasName", undefined>;
|
|
50
|
-
}, undefined> | v.ObjectSchema<{
|
|
51
|
-
readonly args: v.ObjectSchema<{
|
|
52
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
}, undefined>;
|
|
55
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
56
|
-
readonly id: v.NumberSchema<undefined>;
|
|
57
|
-
readonly name: v.LiteralSchema<"setAliasPrimary", undefined>;
|
|
58
|
-
}, undefined> | v.ObjectSchema<{
|
|
59
|
-
readonly args: v.ObjectSchema<{
|
|
60
|
-
readonly connectionConfig: v.ObjectSchema<{
|
|
61
|
-
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
62
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
63
|
-
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
64
|
-
readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
65
|
-
readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
66
|
-
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
68
|
-
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
69
|
-
readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
70
|
-
readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
-
}, undefined>;
|
|
72
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
}, undefined>;
|
|
74
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
75
|
-
readonly id: v.NumberSchema<undefined>;
|
|
76
|
-
readonly name: v.LiteralSchema<"setConnectionConfigImapRaw", undefined>;
|
|
77
|
-
}, undefined> | v.ObjectSchema<{
|
|
78
|
-
readonly args: v.ObjectSchema<{
|
|
79
|
-
readonly connectionConfig: v.ObjectSchema<{
|
|
80
|
-
readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
81
|
-
readonly provider: v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
|
|
82
|
-
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
83
|
-
}, undefined>;
|
|
84
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
85
|
-
}, undefined>;
|
|
86
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
87
|
-
readonly id: v.NumberSchema<undefined>;
|
|
88
|
-
readonly name: v.LiteralSchema<"setConnectionConfigOauth", undefined>;
|
|
89
|
-
}, undefined> | v.ObjectSchema<{
|
|
90
|
-
readonly args: v.ObjectSchema<{
|
|
91
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
92
|
-
readonly settings: Omit<v.ObjectSchema<{
|
|
93
|
-
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
94
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
95
|
-
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
96
|
-
readonly entries: {
|
|
97
|
-
readonly color: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
98
|
-
readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
99
|
-
};
|
|
100
|
-
readonly '~standard': v.StandardProps<{
|
|
101
|
-
color?: string | undefined;
|
|
102
|
-
name?: string | null | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
color?: string | undefined;
|
|
105
|
-
name?: string | null | undefined;
|
|
106
|
-
}>;
|
|
107
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
108
|
-
color?: string | undefined;
|
|
109
|
-
name?: string | null | undefined;
|
|
110
|
-
}, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.ObjectIssue>;
|
|
111
|
-
readonly '~types'?: {
|
|
112
|
-
readonly input: {
|
|
113
|
-
color?: string | undefined;
|
|
114
|
-
name?: string | null | undefined;
|
|
115
|
-
};
|
|
116
|
-
readonly output: {
|
|
117
|
-
color?: string | undefined;
|
|
118
|
-
name?: string | null | undefined;
|
|
119
|
-
};
|
|
120
|
-
readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.ObjectIssue;
|
|
121
|
-
} | undefined;
|
|
122
|
-
};
|
|
123
|
-
}, undefined>;
|
|
124
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
125
|
-
readonly id: v.NumberSchema<undefined>;
|
|
126
|
-
readonly name: v.LiteralSchema<"setSettings", undefined>;
|
|
127
|
-
}, undefined>)[], undefined>, undefined>;
|
|
128
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
129
|
-
readonly data: v.ObjectSchema<{
|
|
130
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
131
|
-
readonly issues: v.ObjectSchema<{
|
|
132
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
133
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
134
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
135
|
-
}, undefined>;
|
|
136
|
-
}, undefined>;
|
|
137
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
138
|
-
}, undefined>, v.ObjectSchema<{
|
|
139
|
-
readonly data: v.ObjectSchema<{
|
|
140
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
141
|
-
}, undefined>;
|
|
142
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
143
|
-
}, undefined>, v.ObjectSchema<{
|
|
144
|
-
readonly data: v.ObjectSchema<{
|
|
145
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
146
|
-
}, undefined>;
|
|
147
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
148
|
-
}, undefined>, v.ObjectSchema<{
|
|
149
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
150
|
-
}, undefined>], undefined>>;
|
|
151
|
-
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwE1B,CAAA"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { account } from '../../../../../clients/account';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const syncPushAccount = createEndpoint({
|
|
6
|
-
body: v.object({
|
|
7
|
-
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(Object.values({
|
|
9
|
-
createAccount: v.object({
|
|
10
|
-
args: account.mutators.createAccount.delta,
|
|
11
|
-
clientID: v.string(),
|
|
12
|
-
id: v.number(),
|
|
13
|
-
name: v.literal('createAccount'),
|
|
14
|
-
}),
|
|
15
|
-
createAlias: v.object({
|
|
16
|
-
args: account.mutators.createAlias.delta,
|
|
17
|
-
clientID: v.string(),
|
|
18
|
-
id: v.number(),
|
|
19
|
-
name: v.literal('createAlias'),
|
|
20
|
-
}),
|
|
21
|
-
deleteAccount: v.object({
|
|
22
|
-
args: account.mutators.deleteAccount.delta,
|
|
23
|
-
clientID: v.string(),
|
|
24
|
-
id: v.number(),
|
|
25
|
-
name: v.literal('deleteAccount'),
|
|
26
|
-
}),
|
|
27
|
-
deleteAlias: v.object({
|
|
28
|
-
args: account.mutators.deleteAlias.delta,
|
|
29
|
-
clientID: v.string(),
|
|
30
|
-
id: v.number(),
|
|
31
|
-
name: v.literal('deleteAlias'),
|
|
32
|
-
}),
|
|
33
|
-
setAliasName: v.object({
|
|
34
|
-
args: account.mutators.setAliasName.delta,
|
|
35
|
-
clientID: v.string(),
|
|
36
|
-
id: v.number(),
|
|
37
|
-
name: v.literal('setAliasName'),
|
|
38
|
-
}),
|
|
39
|
-
setAliasPrimary: v.object({
|
|
40
|
-
args: account.mutators.setAliasPrimary.delta,
|
|
41
|
-
clientID: v.string(),
|
|
42
|
-
id: v.number(),
|
|
43
|
-
name: v.literal('setAliasPrimary'),
|
|
44
|
-
}),
|
|
45
|
-
setConnectionConfigImapRaw: v.object({
|
|
46
|
-
args: account.mutators.setConnectionConfigImapRaw.delta,
|
|
47
|
-
clientID: v.string(),
|
|
48
|
-
id: v.number(),
|
|
49
|
-
name: v.literal('setConnectionConfigImapRaw'),
|
|
50
|
-
}),
|
|
51
|
-
setConnectionConfigOauth: v.object({
|
|
52
|
-
args: account.mutators.setConnectionConfigOauth.delta,
|
|
53
|
-
clientID: v.string(),
|
|
54
|
-
id: v.number(),
|
|
55
|
-
name: v.literal('setConnectionConfigOauth'),
|
|
56
|
-
}),
|
|
57
|
-
setSettings: v.object({
|
|
58
|
-
args: account.mutators.setSettings.delta,
|
|
59
|
-
clientID: v.string(),
|
|
60
|
-
id: v.number(),
|
|
61
|
-
name: v.literal('setSettings'),
|
|
62
|
-
}),
|
|
63
|
-
}))),
|
|
64
|
-
}),
|
|
65
|
-
method: 'POST',
|
|
66
|
-
path: account.pushUrl,
|
|
67
|
-
response: v.union([
|
|
68
|
-
errors.validationFailedErrorSchema,
|
|
69
|
-
errors.mutationRejectedErrorSchema,
|
|
70
|
-
errors.authFailedErrorSchema,
|
|
71
|
-
v.object({ status: v.literal(200) }),
|
|
72
|
-
]),
|
|
73
|
-
});
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/draft", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
|
|
5
|
-
readonly args: v.ObjectSchema<{
|
|
6
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
8
|
-
}, undefined>;
|
|
9
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
10
|
-
readonly id: v.NumberSchema<undefined>;
|
|
11
|
-
readonly name: v.LiteralSchema<"cancelSend", undefined>;
|
|
12
|
-
}, undefined> | v.ObjectSchema<{
|
|
13
|
-
readonly args: v.ObjectSchema<{
|
|
14
|
-
readonly attachment: v.ObjectSchema<{
|
|
15
|
-
readonly failed: v.BooleanSchema<undefined>;
|
|
16
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
-
readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
20
|
-
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
21
|
-
readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
27
|
-
readonly id: v.NumberSchema<undefined>;
|
|
28
|
-
readonly name: v.LiteralSchema<"createAttachment", undefined>;
|
|
29
|
-
}, undefined> | v.ObjectSchema<{
|
|
30
|
-
readonly args: v.ObjectSchema<{
|
|
31
|
-
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
32
|
-
readonly failed: v.BooleanSchema<undefined>;
|
|
33
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
37
|
-
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
38
|
-
readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
39
|
-
}, undefined>, undefined>;
|
|
40
|
-
readonly body: v.ObjectSchema<{
|
|
41
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
42
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
43
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
44
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
45
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
46
|
-
}, undefined>;
|
|
47
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
-
readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
50
|
-
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
-
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
-
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
54
|
-
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>, v.LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
55
|
-
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
56
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
57
|
-
}, undefined>;
|
|
58
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
59
|
-
readonly id: v.NumberSchema<undefined>;
|
|
60
|
-
readonly name: v.LiteralSchema<"createDraft", undefined>;
|
|
61
|
-
}, undefined> | v.ObjectSchema<{
|
|
62
|
-
readonly args: v.ObjectSchema<{
|
|
63
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
64
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
65
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
66
|
-
}, undefined>;
|
|
67
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
68
|
-
readonly id: v.NumberSchema<undefined>;
|
|
69
|
-
readonly name: v.LiteralSchema<"deleteAttachment", undefined>;
|
|
70
|
-
}, undefined> | v.ObjectSchema<{
|
|
71
|
-
readonly args: v.ObjectSchema<{
|
|
72
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
}, undefined>;
|
|
74
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
75
|
-
readonly id: v.NumberSchema<undefined>;
|
|
76
|
-
readonly name: v.LiteralSchema<"deleteDraft", undefined>;
|
|
77
|
-
}, undefined> | v.ObjectSchema<{
|
|
78
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
79
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
80
|
-
readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
|
|
81
|
-
readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
82
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
83
|
-
}, undefined>, v.ObjectSchema<{
|
|
84
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
85
|
-
readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
|
|
86
|
-
readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
87
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
88
|
-
}, undefined>], undefined>;
|
|
89
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
90
|
-
readonly id: v.NumberSchema<undefined>;
|
|
91
|
-
readonly name: v.LiteralSchema<"scheduleSend", undefined>;
|
|
92
|
-
}, undefined> | v.ObjectSchema<{
|
|
93
|
-
readonly args: v.ObjectSchema<{
|
|
94
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
95
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
96
|
-
}, undefined>;
|
|
97
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
98
|
-
readonly id: v.NumberSchema<undefined>;
|
|
99
|
-
readonly name: v.LiteralSchema<"sendDraft", undefined>;
|
|
100
|
-
}, undefined> | v.ObjectSchema<{
|
|
101
|
-
readonly args: v.ObjectSchema<{
|
|
102
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
103
|
-
readonly patch: v.ArraySchema<v.ObjectSchema<{
|
|
104
|
-
readonly index: v.NumberSchema<undefined>;
|
|
105
|
-
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
106
|
-
readonly value: v.StringSchema<undefined>;
|
|
107
|
-
}, undefined>, undefined>;
|
|
108
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
109
|
-
}, undefined>;
|
|
110
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
111
|
-
readonly id: v.NumberSchema<undefined>;
|
|
112
|
-
readonly name: v.LiteralSchema<"setContent", undefined>;
|
|
113
|
-
}, undefined> | v.ObjectSchema<{
|
|
114
|
-
readonly args: v.ObjectSchema<{
|
|
115
|
-
readonly envelope: Omit<v.ObjectSchema<{
|
|
116
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
117
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
118
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
119
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
120
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
121
|
-
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
122
|
-
readonly entries: Omit<{
|
|
123
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
124
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
125
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
126
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
127
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
128
|
-
}, "content">;
|
|
129
|
-
readonly '~standard': v.StandardProps<{
|
|
130
|
-
bcc: string[];
|
|
131
|
-
cc: string[];
|
|
132
|
-
to: string[];
|
|
133
|
-
subject: string | null;
|
|
134
|
-
}, {
|
|
135
|
-
bcc: string[];
|
|
136
|
-
cc: string[];
|
|
137
|
-
to: string[];
|
|
138
|
-
subject: string | null;
|
|
139
|
-
}>;
|
|
140
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
141
|
-
bcc: string[];
|
|
142
|
-
cc: string[];
|
|
143
|
-
to: string[];
|
|
144
|
-
subject: string | null;
|
|
145
|
-
}, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.ObjectIssue | v.ArrayIssue>;
|
|
146
|
-
readonly '~types'?: {
|
|
147
|
-
readonly input: {
|
|
148
|
-
bcc: string[];
|
|
149
|
-
cc: string[];
|
|
150
|
-
to: string[];
|
|
151
|
-
subject: string | null;
|
|
152
|
-
};
|
|
153
|
-
readonly output: {
|
|
154
|
-
bcc: string[];
|
|
155
|
-
cc: string[];
|
|
156
|
-
to: string[];
|
|
157
|
-
subject: string | null;
|
|
158
|
-
};
|
|
159
|
-
readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.ObjectIssue | v.ArrayIssue;
|
|
160
|
-
} | undefined;
|
|
161
|
-
};
|
|
162
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
163
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
164
|
-
}, undefined>;
|
|
165
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
166
|
-
readonly id: v.NumberSchema<undefined>;
|
|
167
|
-
readonly name: v.LiteralSchema<"setEnvelope", undefined>;
|
|
168
|
-
}, undefined> | v.ObjectSchema<{
|
|
169
|
-
readonly args: v.ObjectSchema<{
|
|
170
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
171
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
172
|
-
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
173
|
-
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
174
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
175
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
176
|
-
}, undefined>;
|
|
177
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
178
|
-
readonly id: v.NumberSchema<undefined>;
|
|
179
|
-
readonly name: v.LiteralSchema<"setFrom", undefined>;
|
|
180
|
-
}, undefined> | v.ObjectSchema<{
|
|
181
|
-
readonly args: v.ObjectSchema<{
|
|
182
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
183
|
-
readonly chunk: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
184
|
-
readonly chunkIndex: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
185
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
186
|
-
}, undefined>;
|
|
187
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
188
|
-
readonly id: v.NumberSchema<undefined>;
|
|
189
|
-
readonly name: v.LiteralSchema<"uploadAttachmentChunk", undefined>;
|
|
190
|
-
}, undefined>)[], undefined>, undefined>;
|
|
191
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
192
|
-
readonly data: v.ObjectSchema<{
|
|
193
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
194
|
-
readonly issues: v.ObjectSchema<{
|
|
195
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
196
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
197
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
198
|
-
}, undefined>;
|
|
199
|
-
}, undefined>;
|
|
200
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
201
|
-
}, undefined>, v.ObjectSchema<{
|
|
202
|
-
readonly data: v.ObjectSchema<{
|
|
203
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
204
|
-
}, undefined>;
|
|
205
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
206
|
-
}, undefined>, v.ObjectSchema<{
|
|
207
|
-
readonly data: v.ObjectSchema<{
|
|
208
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
209
|
-
}, undefined>;
|
|
210
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
211
|
-
}, undefined>, v.ObjectSchema<{
|
|
212
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
213
|
-
}, undefined>], undefined>>;
|
|
214
|
-
//# sourceMappingURL=draft.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoFxB,CAAA"}
|