@marcoappio/marco-config 2.0.407 → 2.0.409
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/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.map +1 -1
- package/dist/schemas/emailAccount.js +1 -4
- package/dist/schemas/labels.d.ts.map +1 -1
- package/dist/schemas/labels.js +1 -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 -1103
- 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 -1101
- 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/Endpoint.d.ts +2 -3
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -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 +38 -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 -209
- package/dist/clients/draft.d.ts.map +0 -1
- package/dist/clients/draft.js +0 -145
- package/dist/clients/index.d.ts +0 -548
- package/dist/clients/index.d.ts.map +0 -1
- package/dist/clients/index.js +0 -13
- package/dist/clients/thread.d.ts +0 -134
- package/dist/clients/thread.d.ts.map +0 -1
- package/dist/clients/thread.js +0 -134
- 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 -966
- 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 -916
- 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 -223
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +0 -91
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -566
- 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 -133
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +0 -85
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", v.ObjectSchema<{
|
|
3
|
-
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
|
|
5
|
-
readonly args: v.ObjectSchema<{
|
|
6
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
8
|
-
}, undefined>;
|
|
9
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
10
|
-
readonly id: v.NumberSchema<undefined>;
|
|
11
|
-
readonly name: v.LiteralSchema<"addLabel", undefined>;
|
|
12
|
-
}, undefined> | v.ObjectSchema<{
|
|
13
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
14
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
-
}, undefined>, v.ObjectSchema<{
|
|
16
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
17
|
-
}, undefined>], undefined>;
|
|
18
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
19
|
-
readonly id: v.NumberSchema<undefined>;
|
|
20
|
-
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
21
|
-
}, undefined> | v.ObjectSchema<{
|
|
22
|
-
readonly args: v.ObjectSchema<{
|
|
23
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
27
|
-
readonly id: v.NumberSchema<undefined>;
|
|
28
|
-
readonly name: v.LiteralSchema<"removeLabel", undefined>;
|
|
29
|
-
}, undefined> | v.ObjectSchema<{
|
|
30
|
-
readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
31
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
}, undefined>, v.ObjectSchema<{
|
|
34
|
-
readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
35
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
36
|
-
}, undefined>], undefined>;
|
|
37
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
38
|
-
readonly id: v.NumberSchema<undefined>;
|
|
39
|
-
readonly name: v.LiteralSchema<"requestAttachmentDownload", undefined>;
|
|
40
|
-
}, undefined> | v.ObjectSchema<{
|
|
41
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
42
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
-
}, undefined>, v.ObjectSchema<{
|
|
44
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
45
|
-
}, undefined>], undefined>;
|
|
46
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
47
|
-
readonly id: v.NumberSchema<undefined>;
|
|
48
|
-
readonly name: v.LiteralSchema<"setArchive", undefined>;
|
|
49
|
-
}, undefined> | v.ObjectSchema<{
|
|
50
|
-
readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
51
|
-
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
52
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
-
}, undefined>, v.ObjectSchema<{
|
|
54
|
-
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
55
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
56
|
-
}, undefined>], undefined>;
|
|
57
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
58
|
-
readonly id: v.NumberSchema<undefined>;
|
|
59
|
-
readonly name: v.LiteralSchema<"setFlagged", undefined>;
|
|
60
|
-
}, undefined> | v.ObjectSchema<{
|
|
61
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
62
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
63
|
-
}, undefined>, v.ObjectSchema<{
|
|
64
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
65
|
-
}, undefined>], undefined>;
|
|
66
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
67
|
-
readonly id: v.NumberSchema<undefined>;
|
|
68
|
-
readonly name: v.LiteralSchema<"setInbox", undefined>;
|
|
69
|
-
}, undefined> | v.ObjectSchema<{
|
|
70
|
-
readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
71
|
-
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
72
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
}, undefined>, v.ObjectSchema<{
|
|
74
|
-
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
75
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
76
|
-
}, undefined>], undefined>;
|
|
77
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
78
|
-
readonly id: v.NumberSchema<undefined>;
|
|
79
|
-
readonly name: v.LiteralSchema<"setLabels", undefined>;
|
|
80
|
-
}, undefined> | v.ObjectSchema<{
|
|
81
|
-
readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
82
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
83
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
84
|
-
}, undefined>, v.ObjectSchema<{
|
|
85
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
86
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
87
|
-
}, undefined>], undefined>;
|
|
88
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
89
|
-
readonly id: v.NumberSchema<undefined>;
|
|
90
|
-
readonly name: v.LiteralSchema<"setSeen", undefined>;
|
|
91
|
-
}, undefined> | v.ObjectSchema<{
|
|
92
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
93
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
94
|
-
}, undefined>, v.ObjectSchema<{
|
|
95
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
96
|
-
}, undefined>], undefined>;
|
|
97
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
98
|
-
readonly id: v.NumberSchema<undefined>;
|
|
99
|
-
readonly name: v.LiteralSchema<"setSpam", undefined>;
|
|
100
|
-
}, undefined> | v.ObjectSchema<{
|
|
101
|
-
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
102
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
103
|
-
}, undefined>, v.ObjectSchema<{
|
|
104
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
105
|
-
}, undefined>], undefined>;
|
|
106
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
107
|
-
readonly id: v.NumberSchema<undefined>;
|
|
108
|
-
readonly name: v.LiteralSchema<"setTrash", undefined>;
|
|
109
|
-
}, undefined>)[], undefined>, undefined>;
|
|
110
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
111
|
-
readonly data: v.ObjectSchema<{
|
|
112
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
113
|
-
readonly issues: v.ObjectSchema<{
|
|
114
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
115
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
116
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
117
|
-
}, undefined>;
|
|
118
|
-
}, undefined>;
|
|
119
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
120
|
-
}, undefined>, v.ObjectSchema<{
|
|
121
|
-
readonly data: v.ObjectSchema<{
|
|
122
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
123
|
-
}, undefined>;
|
|
124
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
125
|
-
}, undefined>, v.ObjectSchema<{
|
|
126
|
-
readonly data: v.ObjectSchema<{
|
|
127
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
128
|
-
}, undefined>;
|
|
129
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
130
|
-
}, undefined>, v.ObjectSchema<{
|
|
131
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
132
|
-
}, undefined>], undefined>>;
|
|
133
|
-
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoFzB,CAAA"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { thread } from '../../../../../clients/thread';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const syncPushThread = createEndpoint({
|
|
6
|
-
body: v.object({
|
|
7
|
-
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(Object.values({
|
|
9
|
-
addLabel: v.object({
|
|
10
|
-
args: thread.mutators.addLabel.delta,
|
|
11
|
-
clientID: v.string(),
|
|
12
|
-
id: v.number(),
|
|
13
|
-
name: v.literal('addLabel'),
|
|
14
|
-
}),
|
|
15
|
-
delete: v.object({
|
|
16
|
-
args: thread.mutators.delete.delta,
|
|
17
|
-
clientID: v.string(),
|
|
18
|
-
id: v.number(),
|
|
19
|
-
name: v.literal('delete'),
|
|
20
|
-
}),
|
|
21
|
-
removeLabel: v.object({
|
|
22
|
-
args: thread.mutators.removeLabel.delta,
|
|
23
|
-
clientID: v.string(),
|
|
24
|
-
id: v.number(),
|
|
25
|
-
name: v.literal('removeLabel'),
|
|
26
|
-
}),
|
|
27
|
-
requestAttachmentDownload: v.object({
|
|
28
|
-
args: thread.mutators.requestAttachmentDownload.delta,
|
|
29
|
-
clientID: v.string(),
|
|
30
|
-
id: v.number(),
|
|
31
|
-
name: v.literal('requestAttachmentDownload'),
|
|
32
|
-
}),
|
|
33
|
-
setArchive: v.object({
|
|
34
|
-
args: thread.mutators.setArchive.delta,
|
|
35
|
-
clientID: v.string(),
|
|
36
|
-
id: v.number(),
|
|
37
|
-
name: v.literal('setArchive'),
|
|
38
|
-
}),
|
|
39
|
-
setFlagged: v.object({
|
|
40
|
-
args: thread.mutators.setFlagged.delta,
|
|
41
|
-
clientID: v.string(),
|
|
42
|
-
id: v.number(),
|
|
43
|
-
name: v.literal('setFlagged'),
|
|
44
|
-
}),
|
|
45
|
-
setInbox: v.object({
|
|
46
|
-
args: thread.mutators.setInbox.delta,
|
|
47
|
-
clientID: v.string(),
|
|
48
|
-
id: v.number(),
|
|
49
|
-
name: v.literal('setInbox'),
|
|
50
|
-
}),
|
|
51
|
-
setLabels: v.object({
|
|
52
|
-
args: thread.mutators.setLabels.delta,
|
|
53
|
-
clientID: v.string(),
|
|
54
|
-
id: v.number(),
|
|
55
|
-
name: v.literal('setLabels'),
|
|
56
|
-
}),
|
|
57
|
-
setSeen: v.object({
|
|
58
|
-
args: thread.mutators.setSeen.delta,
|
|
59
|
-
clientID: v.string(),
|
|
60
|
-
id: v.number(),
|
|
61
|
-
name: v.literal('setSeen'),
|
|
62
|
-
}),
|
|
63
|
-
setSpam: v.object({
|
|
64
|
-
args: thread.mutators.setSpam.delta,
|
|
65
|
-
clientID: v.string(),
|
|
66
|
-
id: v.number(),
|
|
67
|
-
name: v.literal('setSpam'),
|
|
68
|
-
}),
|
|
69
|
-
setTrash: v.object({
|
|
70
|
-
args: thread.mutators.setTrash.delta,
|
|
71
|
-
clientID: v.string(),
|
|
72
|
-
id: v.number(),
|
|
73
|
-
name: v.literal('setTrash'),
|
|
74
|
-
}),
|
|
75
|
-
}))),
|
|
76
|
-
}),
|
|
77
|
-
method: 'POST',
|
|
78
|
-
path: thread.pushUrl,
|
|
79
|
-
response: v.union([
|
|
80
|
-
errors.validationFailedErrorSchema,
|
|
81
|
-
errors.authFailedErrorSchema,
|
|
82
|
-
errors.mutationRejectedErrorSchema,
|
|
83
|
-
v.object({ status: v.literal(200) }),
|
|
84
|
-
]),
|
|
85
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", 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 token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
-
}, undefined>;
|
|
9
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
10
|
-
readonly id: v.NumberSchema<undefined>;
|
|
11
|
-
readonly name: v.LiteralSchema<"deleteSettingsPushNotificationToken", undefined>;
|
|
12
|
-
}, undefined> | v.ObjectSchema<{
|
|
13
|
-
readonly args: v.ObjectSchema<{
|
|
14
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
|
-
}, undefined>;
|
|
17
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
18
|
-
readonly id: v.NumberSchema<undefined>;
|
|
19
|
-
readonly name: v.LiteralSchema<"deleteSettingsPushNotificationTokenForDevice", undefined>;
|
|
20
|
-
}, undefined> | v.ObjectSchema<{
|
|
21
|
-
readonly args: v.ObjectSchema<{
|
|
22
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
26
|
-
readonly id: v.NumberSchema<undefined>;
|
|
27
|
-
readonly name: v.LiteralSchema<"setSettingsName", undefined>;
|
|
28
|
-
}, undefined> | v.ObjectSchema<{
|
|
29
|
-
readonly args: v.ObjectSchema<{
|
|
30
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
|
-
readonly pushNotificationToken: v.ObjectSchema<{
|
|
32
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
33
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
}, undefined>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
38
|
-
readonly id: v.NumberSchema<undefined>;
|
|
39
|
-
readonly name: v.LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
40
|
-
}, undefined>)[], undefined>, undefined>;
|
|
41
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
42
|
-
readonly data: v.ObjectSchema<{
|
|
43
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
44
|
-
readonly issues: v.ObjectSchema<{
|
|
45
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
46
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
47
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
48
|
-
}, undefined>;
|
|
49
|
-
}, undefined>;
|
|
50
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
51
|
-
}, undefined>, v.ObjectSchema<{
|
|
52
|
-
readonly data: v.ObjectSchema<{
|
|
53
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
54
|
-
}, undefined>;
|
|
55
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
56
|
-
}, undefined>, v.ObjectSchema<{
|
|
57
|
-
readonly data: v.ObjectSchema<{
|
|
58
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
59
|
-
}, undefined>;
|
|
60
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
61
|
-
}, undefined>, v.ObjectSchema<{
|
|
62
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
63
|
-
}, undefined>], undefined>>;
|
|
64
|
-
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0CvB,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { user } from '../../../../../clients/user';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const syncPushUser = createEndpoint({
|
|
6
|
-
body: v.object({
|
|
7
|
-
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(Object.values({
|
|
9
|
-
deleteSettingsPushNotificationToken: v.object({
|
|
10
|
-
args: user.mutators.deleteSettingsPushNotificationToken.delta,
|
|
11
|
-
clientID: v.string(),
|
|
12
|
-
id: v.number(),
|
|
13
|
-
name: v.literal('deleteSettingsPushNotificationToken'),
|
|
14
|
-
}),
|
|
15
|
-
deleteSettingsPushNotificationTokenForDevice: v.object({
|
|
16
|
-
args: user.mutators.deleteSettingsPushNotificationTokenForDevice.delta,
|
|
17
|
-
clientID: v.string(),
|
|
18
|
-
id: v.number(),
|
|
19
|
-
name: v.literal('deleteSettingsPushNotificationTokenForDevice'),
|
|
20
|
-
}),
|
|
21
|
-
setSettingsName: v.object({
|
|
22
|
-
args: user.mutators.setSettingsName.delta,
|
|
23
|
-
clientID: v.string(),
|
|
24
|
-
id: v.number(),
|
|
25
|
-
name: v.literal('setSettingsName'),
|
|
26
|
-
}),
|
|
27
|
-
setSettingsPushNotificationToken: v.object({
|
|
28
|
-
args: user.mutators.setSettingsPushNotificationToken.delta,
|
|
29
|
-
clientID: v.string(),
|
|
30
|
-
id: v.number(),
|
|
31
|
-
name: v.literal('setSettingsPushNotificationToken'),
|
|
32
|
-
}),
|
|
33
|
-
}))),
|
|
34
|
-
}),
|
|
35
|
-
method: 'POST',
|
|
36
|
-
path: user.pushUrl,
|
|
37
|
-
response: v.union([
|
|
38
|
-
errors.validationFailedErrorSchema,
|
|
39
|
-
errors.authFailedErrorSchema,
|
|
40
|
-
errors.mutationRejectedErrorSchema,
|
|
41
|
-
v.object({ status: v.literal(200) }),
|
|
42
|
-
]),
|
|
43
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly data: v.ObjectSchema<{
|
|
4
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
-
}, undefined>;
|
|
6
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
-
}, undefined>, v.ObjectSchema<{
|
|
8
|
-
readonly status: v.LiteralSchema<204, undefined>;
|
|
9
|
-
}, undefined>], undefined>>;
|
|
10
|
-
//# sourceMappingURL=deleteUser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,UAAU;;;;;;;2BASrB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { authFailedErrorSchema } from '../../../../sdk/validation/errors';
|
|
4
|
-
export const deleteUser = createEndpoint({
|
|
5
|
-
method: 'DELETE',
|
|
6
|
-
path: '/v1/pv/user',
|
|
7
|
-
response: v.union([
|
|
8
|
-
authFailedErrorSchema,
|
|
9
|
-
v.object({
|
|
10
|
-
status: v.literal(204),
|
|
11
|
-
}),
|
|
12
|
-
]),
|
|
13
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const user: {
|
|
2
|
-
deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
-
}, undefined>;
|
|
6
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
-
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
9
|
-
}, undefined>], undefined>>;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAEhB,CAAA"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
export declare const auth: {
|
|
2
|
-
refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
3
|
-
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
6
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
8
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
9
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
-
}, undefined>;
|
|
12
|
-
}, undefined>;
|
|
13
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
14
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
15
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
16
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
19
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
21
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
24
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
25
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
26
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
27
|
-
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
28
|
-
readonly user: import("valibot").ObjectSchema<{
|
|
29
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
31
|
-
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
32
|
-
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
}, undefined>;
|
|
39
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
40
|
-
}, undefined>], undefined>>;
|
|
41
|
-
sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
42
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
43
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
44
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
45
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
46
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
47
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
48
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
49
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
50
|
-
}, undefined>;
|
|
51
|
-
}, undefined>;
|
|
52
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
53
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
54
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
55
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
56
|
-
}, undefined>;
|
|
57
|
-
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
58
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
59
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
60
|
-
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
63
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
64
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
65
|
-
}, undefined>], undefined>>;
|
|
66
|
-
verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
67
|
-
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
68
|
-
readonly code: import("valibot").StringSchema<undefined>;
|
|
69
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
70
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
72
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
74
|
-
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
75
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
76
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
77
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
78
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
79
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
80
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
81
|
-
}, undefined>;
|
|
82
|
-
}, undefined>;
|
|
83
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
84
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
85
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
86
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
87
|
-
}, undefined>;
|
|
88
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
89
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
90
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
91
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
92
|
-
}, undefined>;
|
|
93
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
94
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
95
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
96
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
97
|
-
}, undefined>;
|
|
98
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
99
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
100
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
101
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
102
|
-
}, undefined>;
|
|
103
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
104
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
105
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
106
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
107
|
-
}, undefined>;
|
|
108
|
-
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
109
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
110
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
111
|
-
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
112
|
-
}, undefined>;
|
|
113
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
114
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
115
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
116
|
-
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
117
|
-
}, undefined>;
|
|
118
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
119
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
120
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
121
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
122
|
-
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
123
|
-
readonly user: import("valibot").ObjectSchema<{
|
|
124
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
125
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
126
|
-
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
127
|
-
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
|
-
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
-
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
131
|
-
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
132
|
-
}, undefined>;
|
|
133
|
-
}, undefined>;
|
|
134
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
135
|
-
}, undefined>], undefined>>;
|
|
136
|
-
};
|
|
137
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
|
|
3
|
-
readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
-
readonly data: v.ObjectSchema<{
|
|
6
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
-
readonly issues: v.ObjectSchema<{
|
|
8
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
9
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
-
}, undefined>;
|
|
12
|
-
}, undefined>;
|
|
13
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
14
|
-
}, undefined>, v.ObjectSchema<{
|
|
15
|
-
readonly data: v.ObjectSchema<{
|
|
16
|
-
readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
19
|
-
}, undefined>, v.ObjectSchema<{
|
|
20
|
-
readonly data: v.ObjectSchema<{
|
|
21
|
-
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly status: v.LiteralSchema<502, undefined>;
|
|
24
|
-
}, undefined>, v.ObjectSchema<{
|
|
25
|
-
readonly data: v.ObjectSchema<{
|
|
26
|
-
readonly accessToken: v.StringSchema<undefined>;
|
|
27
|
-
readonly refreshToken: v.StringSchema<undefined>;
|
|
28
|
-
readonly user: v.ObjectSchema<{
|
|
29
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
31
|
-
readonly emailVerified: v.BooleanSchema<undefined>;
|
|
32
|
-
readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
}, undefined>;
|
|
39
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
40
|
-
}, undefined>], undefined>>;
|
|
41
|
-
//# sourceMappingURL=refreshAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4BtB,CAAA"}
|