@marcoappio/marco-config 2.0.413 → 2.0.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/account.d.ts +144 -0
- package/dist/clients/account.d.ts.map +1 -0
- package/dist/clients/account.js +93 -0
- package/dist/clients/contact.d.ts +14 -0
- package/dist/clients/contact.d.ts.map +1 -0
- package/dist/clients/contact.js +14 -0
- package/dist/clients/draft.d.ts +196 -0
- package/dist/clients/draft.d.ts.map +1 -0
- package/dist/clients/draft.js +122 -0
- package/dist/clients/index.d.ts +526 -0
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +13 -0
- package/dist/clients/thread.d.ts +125 -0
- package/dist/clients/thread.d.ts.map +1 -0
- package/dist/clients/thread.js +117 -0
- package/dist/clients/user.d.ts +53 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +52 -0
- package/dist/clients/utils/index.d.ts +4 -0
- package/dist/clients/utils/index.d.ts.map +1 -0
- package/dist/clients/utils/index.js +4 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
- package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/marcoPublicConfig.d.ts +6 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +18 -0
- package/dist/sdk/endpoints/index.d.ts +1073 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +2 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
- package/dist/sdk/endpoints/private/index.d.ts +938 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +8 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/index.js +3 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +4 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
- package/dist/sdk/endpoints/public/index.d.ts +136 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -0
- package/dist/sdk/index.d.ts +1073 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +2 -1
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/MarcoClient.d.ts +12 -0
- package/dist/types/MarcoClient.d.ts.map +1 -0
- package/dist/types/MarcoClient.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/WS.d.ts +7 -0
- package/dist/types/WS.d.ts.map +1 -0
- package/dist/types/WS.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/ws.d.ts +6 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +5 -0
- package/package.json +1 -2
- package/dist/instantDB/index.d.ts +0 -3
- package/dist/instantDB/index.d.ts.map +0 -1
- package/dist/instantDB/index.js +0 -2
- package/dist/instantDB/instant.perms.d.ts +0 -110
- package/dist/instantDB/instant.perms.d.ts.map +0 -1
- package/dist/instantDB/instant.perms.js +0 -109
- package/dist/instantDB/instant.schema.d.ts +0 -313
- package/dist/instantDB/instant.schema.d.ts.map +0 -1
- package/dist/instantDB/instant.schema.js +0 -156
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 seen: v.BooleanSchema<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 seen: v.BooleanSchema<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<"setSeen", undefined>;
|
|
80
|
+
}, undefined> | v.ObjectSchema<{
|
|
81
|
+
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
82
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
83
|
+
}, undefined>, v.ObjectSchema<{
|
|
84
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
85
|
+
}, undefined>], undefined>;
|
|
86
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
87
|
+
readonly id: v.NumberSchema<undefined>;
|
|
88
|
+
readonly name: v.LiteralSchema<"setSpam", undefined>;
|
|
89
|
+
}, undefined> | v.ObjectSchema<{
|
|
90
|
+
readonly args: v.UnionSchema<[v.ObjectSchema<{
|
|
91
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
92
|
+
}, undefined>, v.ObjectSchema<{
|
|
93
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
94
|
+
}, undefined>], undefined>;
|
|
95
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
96
|
+
readonly id: v.NumberSchema<undefined>;
|
|
97
|
+
readonly name: v.LiteralSchema<"setTrash", undefined>;
|
|
98
|
+
}, undefined>)[], undefined>, undefined>;
|
|
99
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
100
|
+
readonly data: v.ObjectSchema<{
|
|
101
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
102
|
+
readonly issues: v.ObjectSchema<{
|
|
103
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
104
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
105
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
109
|
+
}, undefined>, v.ObjectSchema<{
|
|
110
|
+
readonly data: v.ObjectSchema<{
|
|
111
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
114
|
+
}, undefined>, v.ObjectSchema<{
|
|
115
|
+
readonly data: v.ObjectSchema<{
|
|
116
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
119
|
+
}, undefined>, v.ObjectSchema<{
|
|
120
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
121
|
+
}, undefined>], undefined>>;
|
|
122
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8EzB,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
setSeen: v.object({
|
|
52
|
+
args: thread.mutators.setSeen.delta,
|
|
53
|
+
clientID: v.string(),
|
|
54
|
+
id: v.number(),
|
|
55
|
+
name: v.literal('setSeen'),
|
|
56
|
+
}),
|
|
57
|
+
setSpam: v.object({
|
|
58
|
+
args: thread.mutators.setSpam.delta,
|
|
59
|
+
clientID: v.string(),
|
|
60
|
+
id: v.number(),
|
|
61
|
+
name: v.literal('setSpam'),
|
|
62
|
+
}),
|
|
63
|
+
setTrash: v.object({
|
|
64
|
+
args: thread.mutators.setTrash.delta,
|
|
65
|
+
clientID: v.string(),
|
|
66
|
+
id: v.number(),
|
|
67
|
+
name: v.literal('setTrash'),
|
|
68
|
+
}),
|
|
69
|
+
}))),
|
|
70
|
+
}),
|
|
71
|
+
method: 'POST',
|
|
72
|
+
path: thread.pushUrl,
|
|
73
|
+
response: v.union([
|
|
74
|
+
errors.validationFailedErrorSchema,
|
|
75
|
+
errors.authFailedErrorSchema,
|
|
76
|
+
errors.mutationRejectedErrorSchema,
|
|
77
|
+
v.object({ status: v.literal(200) }),
|
|
78
|
+
]),
|
|
79
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAEhB,CAAA"}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|