@marcoappio/marco-config 2.0.120 → 2.0.121
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/sdk/endpoints/index.d.ts +89 -4
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +89 -4
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +89 -4
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +5 -2
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.js +2 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +35 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.js +30 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +85 -3
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.js +4 -2
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +48 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.js +30 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +3 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +4 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/index.js +2 -2
- package/dist/sdk/index.d.ts +89 -4
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +8 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export declare const endpoints: {
|
|
|
4
4
|
private: {
|
|
5
5
|
sync: {
|
|
6
6
|
pull: {
|
|
7
|
-
|
|
7
|
+
account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
8
8
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
9
9
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
10
10
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -13,15 +13,18 @@ export declare const endpoints: {
|
|
|
13
13
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
14
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
15
15
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
18
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
19
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
20
|
readonly data: import("valibot").ObjectSchema<{
|
|
18
21
|
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
19
22
|
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
20
23
|
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
24
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
26
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
22
27
|
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
23
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
|
-
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
25
28
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
29
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
27
30
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
@@ -44,9 +47,88 @@ export declare const endpoints: {
|
|
|
44
47
|
}, undefined>;
|
|
45
48
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
46
49
|
}, undefined>], undefined>>;
|
|
50
|
+
contact: EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
51
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
52
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
53
|
+
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
54
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
55
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
56
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
57
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
58
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
59
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
60
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
61
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
62
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
63
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
64
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
65
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
66
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
67
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
68
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
69
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
70
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
71
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
73
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
74
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
75
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
76
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
77
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
}, undefined>], undefined>, undefined>;
|
|
80
|
+
}, undefined>;
|
|
81
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
82
|
+
}, undefined>], undefined>>;
|
|
83
|
+
thread: EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
84
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
85
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
86
|
+
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
87
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
88
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
89
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
91
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
92
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
93
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
94
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
95
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
96
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
97
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
98
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
99
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
100
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
101
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
102
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
103
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
104
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
105
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
106
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
107
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
108
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
109
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
110
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
111
|
+
readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
112
|
+
readonly associationType: import("valibot").EnumSchema<typeof import("../../types").ContactAssociationType, undefined>;
|
|
113
|
+
readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
114
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
}, undefined>, undefined>;
|
|
116
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
117
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
118
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
119
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
120
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
121
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
122
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
123
|
+
}, undefined>, undefined>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
}, undefined>], undefined>, undefined>;
|
|
126
|
+
}, undefined>;
|
|
127
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
128
|
+
}, undefined>], undefined>>;
|
|
47
129
|
};
|
|
48
130
|
push: {
|
|
49
|
-
|
|
131
|
+
account: EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
50
132
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
51
133
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
52
134
|
readonly args: import("valibot").ObjectSchema<{
|
|
@@ -75,6 +157,9 @@ export declare const endpoints: {
|
|
|
75
157
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
76
158
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
77
159
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
160
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
161
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
162
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
78
163
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
79
164
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
80
165
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const privateGroup: {
|
|
2
2
|
sync: {
|
|
3
3
|
pull: {
|
|
4
|
-
|
|
4
|
+
account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
5
5
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
6
6
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
7
7
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -10,15 +10,18 @@ export declare const privateGroup: {
|
|
|
10
10
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
11
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
12
12
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
16
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
17
|
readonly data: import("valibot").ObjectSchema<{
|
|
15
18
|
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
16
19
|
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
17
20
|
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
21
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
22
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
23
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
19
24
|
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
20
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
-
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
22
25
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
26
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
24
27
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
@@ -41,9 +44,88 @@ export declare const privateGroup: {
|
|
|
41
44
|
}, undefined>;
|
|
42
45
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
43
46
|
}, undefined>], undefined>>;
|
|
47
|
+
contact: import("../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
48
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
49
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
50
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
51
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
52
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
53
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
54
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
55
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
56
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
57
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
58
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
59
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
60
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
61
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
62
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
63
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
64
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
65
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
66
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
67
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
68
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
69
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
70
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
71
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
72
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
74
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
}, undefined>], undefined>, undefined>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
79
|
+
}, undefined>], undefined>>;
|
|
80
|
+
thread: import("../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
81
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
82
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
83
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
84
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
85
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
86
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
87
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
88
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
89
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
91
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
92
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
93
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
94
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
95
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
96
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
97
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
98
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
99
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
100
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
101
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
102
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
103
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
104
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
105
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
106
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
107
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
108
|
+
readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
109
|
+
readonly associationType: import("valibot").EnumSchema<typeof import("../../..").ContactAssociationType, undefined>;
|
|
110
|
+
readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
111
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
112
|
+
}, undefined>, undefined>;
|
|
113
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
114
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
116
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
117
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
118
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
119
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
120
|
+
}, undefined>, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
}, undefined>], undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
125
|
+
}, undefined>], undefined>>;
|
|
44
126
|
};
|
|
45
127
|
push: {
|
|
46
|
-
|
|
128
|
+
account: import("../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
47
129
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
48
130
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
49
131
|
readonly args: import("valibot").ObjectSchema<{
|
|
@@ -72,6 +154,9 @@ export declare const privateGroup: {
|
|
|
72
154
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
73
155
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
74
156
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
157
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
158
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
159
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
75
160
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
76
161
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
77
162
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const sync: {
|
|
2
2
|
pull: {
|
|
3
|
-
|
|
3
|
+
account: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
4
4
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
5
5
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
6
6
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -9,15 +9,18 @@ export declare const sync: {
|
|
|
9
9
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
10
10
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
11
11
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
15
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
16
|
readonly data: import("valibot").ObjectSchema<{
|
|
14
17
|
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
15
18
|
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
16
19
|
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
20
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
21
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
22
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
18
23
|
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
19
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
|
-
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
21
24
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
25
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
23
26
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
@@ -40,9 +43,88 @@ export declare const sync: {
|
|
|
40
43
|
}, undefined>;
|
|
41
44
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
42
45
|
}, undefined>], undefined>>;
|
|
46
|
+
contact: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
47
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
48
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
50
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
51
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
52
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
53
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
54
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
55
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
56
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
57
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
58
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
59
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
60
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
61
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
62
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
63
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
64
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
65
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
66
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
67
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
69
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
70
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
71
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
72
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
74
|
+
}, undefined>;
|
|
75
|
+
}, undefined>], undefined>, undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
78
|
+
}, undefined>], undefined>>;
|
|
79
|
+
thread: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
80
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
81
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
82
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
83
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
84
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
85
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
86
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
89
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
90
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
91
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
92
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
93
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
94
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
95
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
96
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
97
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
98
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
99
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
100
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
101
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
102
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
103
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
104
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
105
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
106
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
107
|
+
readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
108
|
+
readonly associationType: import("valibot").EnumSchema<typeof import("../../../..").ContactAssociationType, undefined>;
|
|
109
|
+
readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
110
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
111
|
+
}, undefined>, undefined>;
|
|
112
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
113
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
114
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
115
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
116
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
117
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
118
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
119
|
+
}, undefined>, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
}, undefined>], undefined>, undefined>;
|
|
122
|
+
}, undefined>;
|
|
123
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
124
|
+
}, undefined>], undefined>>;
|
|
43
125
|
};
|
|
44
126
|
push: {
|
|
45
|
-
|
|
127
|
+
account: import("../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
46
128
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
47
129
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
48
130
|
readonly args: import("valibot").ObjectSchema<{
|
|
@@ -71,6 +153,9 @@ export declare const sync: {
|
|
|
71
153
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
154
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
73
155
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
156
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
157
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
158
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
74
159
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
75
160
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
76
161
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -8,15 +8,18 @@ export declare const syncPullAccount: import("../../../../../types").EndpointCon
|
|
|
8
8
|
}, undefined>, v.ObjectSchema<{
|
|
9
9
|
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
10
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
11
14
|
}, undefined>, v.ObjectSchema<{
|
|
12
15
|
readonly data: v.ObjectSchema<{
|
|
13
16
|
readonly cookie: v.NumberSchema<undefined>;
|
|
14
17
|
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
15
18
|
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
19
|
+
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
16
21
|
readonly key: v.StringSchema<undefined>;
|
|
17
22
|
readonly op: v.LiteralSchema<"del", undefined>;
|
|
18
|
-
}, undefined>, v.ObjectSchema<{
|
|
19
|
-
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
20
23
|
}, undefined>, v.ObjectSchema<{
|
|
21
24
|
readonly key: v.StringSchema<undefined>;
|
|
22
25
|
readonly op: v.LiteralSchema<"put", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
|
|
@@ -13,13 +13,14 @@ export const syncPullAccount = createEndpoint({
|
|
|
13
13
|
response: v.union([
|
|
14
14
|
errorManifest.validationFailedErrorSchema,
|
|
15
15
|
errorManifest.notAuthenticatedErrorSchema,
|
|
16
|
+
errorManifest.userNotFoundErrorSchema,
|
|
16
17
|
v.object({
|
|
17
18
|
data: v.object({
|
|
18
19
|
cookie: v.number(),
|
|
19
20
|
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
20
21
|
patch: v.array(v.union([
|
|
21
|
-
v.object({ key: v.string(), op: v.literal('del') }),
|
|
22
22
|
v.object({ op: v.literal('clear') }),
|
|
23
|
+
v.object({ key: v.string(), op: v.literal('del') }),
|
|
23
24
|
v.object({ key: v.string(), op: v.literal('put'), value: account.model }),
|
|
24
25
|
])),
|
|
25
26
|
}),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPullContact: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/contact", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
8
|
+
}, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly data: v.ObjectSchema<{
|
|
16
|
+
readonly cookie: v.NumberSchema<undefined>;
|
|
17
|
+
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
18
|
+
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
19
|
+
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly key: v.StringSchema<undefined>;
|
|
22
|
+
readonly op: v.LiteralSchema<"del", undefined>;
|
|
23
|
+
}, undefined>, v.ObjectSchema<{
|
|
24
|
+
readonly key: v.StringSchema<undefined>;
|
|
25
|
+
readonly op: v.LiteralSchema<"put", undefined>;
|
|
26
|
+
readonly value: v.ObjectSchema<{
|
|
27
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
}, undefined>], undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
34
|
+
}, undefined>], undefined>>;
|
|
35
|
+
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { contact } from '../../../../../clients/contact';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errorManifest } from '../../../../../sdk/validation/errors';
|
|
5
|
+
import { HTTPMethod } from '../../../../../types';
|
|
6
|
+
export const syncPullContact = createEndpoint({
|
|
7
|
+
body: v.object({
|
|
8
|
+
clientGroupID: v.string(),
|
|
9
|
+
cookie: v.nullable(v.number()),
|
|
10
|
+
}),
|
|
11
|
+
method: HTTPMethod.POST,
|
|
12
|
+
path: contact.pullURL,
|
|
13
|
+
response: v.union([
|
|
14
|
+
errorManifest.validationFailedErrorSchema,
|
|
15
|
+
errorManifest.notAuthenticatedErrorSchema,
|
|
16
|
+
errorManifest.userNotFoundErrorSchema,
|
|
17
|
+
v.object({
|
|
18
|
+
data: v.object({
|
|
19
|
+
cookie: v.number(),
|
|
20
|
+
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
21
|
+
patch: v.array(v.union([
|
|
22
|
+
v.object({ op: v.literal('clear') }),
|
|
23
|
+
v.object({ key: v.string(), op: v.literal('del') }),
|
|
24
|
+
v.object({ key: v.string(), op: v.literal('put'), value: contact.model }),
|
|
25
|
+
])),
|
|
26
|
+
}),
|
|
27
|
+
status: v.literal(200),
|
|
28
|
+
}),
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const pull: {
|
|
2
|
-
|
|
2
|
+
account: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
4
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -8,15 +8,18 @@ export declare const pull: {
|
|
|
8
8
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
9
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
10
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
11
14
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
15
|
readonly data: import("valibot").ObjectSchema<{
|
|
13
16
|
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
14
17
|
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
15
18
|
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
19
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
21
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
17
22
|
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
18
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
|
-
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
20
23
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
24
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
22
25
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
@@ -39,5 +42,84 @@ export declare const pull: {
|
|
|
39
42
|
}, undefined>;
|
|
40
43
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
41
44
|
}, undefined>], undefined>>;
|
|
45
|
+
contact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
46
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
47
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
48
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
49
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
50
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
51
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
52
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
53
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
54
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
55
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
56
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
57
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
58
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
59
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
60
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
61
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
62
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
63
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
64
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
65
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
66
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
67
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
68
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
69
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
70
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
71
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
72
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
}, undefined>], undefined>, undefined>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
77
|
+
}, undefined>], undefined>>;
|
|
78
|
+
thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
79
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
80
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
81
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
82
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
83
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
84
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
85
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
86
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
87
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
88
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
89
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
90
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
91
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
92
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
93
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
94
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
95
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
96
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
97
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
98
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
99
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
100
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
101
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
102
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
103
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
104
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
105
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
106
|
+
readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
107
|
+
readonly associationType: import("valibot").EnumSchema<typeof import("../../../../..").ContactAssociationType, undefined>;
|
|
108
|
+
readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
109
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
110
|
+
}, undefined>, undefined>;
|
|
111
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
112
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
113
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
114
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
115
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
116
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
117
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
118
|
+
}, undefined>, undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
}, undefined>], undefined>, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
123
|
+
}, undefined>], undefined>>;
|
|
42
124
|
};
|
|
43
125
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { syncPullAccount } from './account';
|
|
2
|
-
|
|
1
|
+
import { syncPullAccount as account } from './account';
|
|
2
|
+
import { syncPullContact as contact } from './contact';
|
|
3
|
+
import { syncPullThread as thread } from './thread';
|
|
4
|
+
export const pull = { account, contact, thread };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPullThread: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
8
|
+
}, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly data: v.ObjectSchema<{
|
|
16
|
+
readonly cookie: v.NumberSchema<undefined>;
|
|
17
|
+
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
18
|
+
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
19
|
+
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly key: v.StringSchema<undefined>;
|
|
22
|
+
readonly op: v.LiteralSchema<"del", undefined>;
|
|
23
|
+
}, undefined>, v.ObjectSchema<{
|
|
24
|
+
readonly key: v.StringSchema<undefined>;
|
|
25
|
+
readonly op: v.LiteralSchema<"put", undefined>;
|
|
26
|
+
readonly value: v.ObjectSchema<{
|
|
27
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
30
|
+
readonly contacts: v.ArraySchema<v.ObjectSchema<{
|
|
31
|
+
readonly associationType: v.EnumSchema<typeof import("../../../../../types").ContactAssociationType, undefined>;
|
|
32
|
+
readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
33
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
+
}, undefined>, undefined>;
|
|
35
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
36
|
+
readonly envelopeSubject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
37
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
38
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
39
|
+
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
40
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
41
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
42
|
+
}, undefined>, undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
}, undefined>], undefined>, undefined>;
|
|
45
|
+
}, undefined>;
|
|
46
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
47
|
+
}, undefined>], undefined>>;
|
|
48
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyBzB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { thread } from '../../../../../clients/thread';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errorManifest } from '../../../../../sdk/validation/errors';
|
|
5
|
+
import { HTTPMethod } from '../../../../../types';
|
|
6
|
+
export const syncPullThread = createEndpoint({
|
|
7
|
+
body: v.object({
|
|
8
|
+
clientGroupID: v.string(),
|
|
9
|
+
cookie: v.nullable(v.number()),
|
|
10
|
+
}),
|
|
11
|
+
method: HTTPMethod.POST,
|
|
12
|
+
path: thread.pullURL,
|
|
13
|
+
response: v.union([
|
|
14
|
+
errorManifest.validationFailedErrorSchema,
|
|
15
|
+
errorManifest.notAuthenticatedErrorSchema,
|
|
16
|
+
errorManifest.userNotFoundErrorSchema,
|
|
17
|
+
v.object({
|
|
18
|
+
data: v.object({
|
|
19
|
+
cookie: v.number(),
|
|
20
|
+
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
21
|
+
patch: v.array(v.union([
|
|
22
|
+
v.object({ op: v.literal('clear') }),
|
|
23
|
+
v.object({ key: v.string(), op: v.literal('del') }),
|
|
24
|
+
v.object({ key: v.string(), op: v.literal('put'), value: thread.model }),
|
|
25
|
+
])),
|
|
26
|
+
}),
|
|
27
|
+
status: v.literal(200),
|
|
28
|
+
}),
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
@@ -28,6 +28,9 @@ export declare const syncPushAccount: import("../../../../../types").EndpointCon
|
|
|
28
28
|
}, undefined>, v.ObjectSchema<{
|
|
29
29
|
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
30
30
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
33
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
31
34
|
}, undefined>, v.ObjectSchema<{
|
|
32
35
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
33
36
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0B1B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const push: {
|
|
2
|
-
|
|
2
|
+
account: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
4
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
5
|
readonly args: import("valibot").ObjectSchema<{
|
|
@@ -28,6 +28,9 @@ export declare const push: {
|
|
|
28
28
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
29
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
30
30
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
33
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
31
34
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
35
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
33
36
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { syncPushAccount } from './account';
|
|
2
|
-
export const push = {
|
|
1
|
+
import { syncPushAccount as account } from './account';
|
|
2
|
+
export const push = { account };
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const marcoSDK: {
|
|
|
3
3
|
private: {
|
|
4
4
|
sync: {
|
|
5
5
|
pull: {
|
|
6
|
-
|
|
6
|
+
account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
7
7
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
8
8
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
9
9
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -12,15 +12,18 @@ export declare const marcoSDK: {
|
|
|
12
12
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
13
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
14
14
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
18
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
19
|
readonly data: import("valibot").ObjectSchema<{
|
|
17
20
|
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
18
21
|
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
19
22
|
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
23
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
24
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
25
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
21
26
|
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
22
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
|
-
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
24
27
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
25
28
|
readonly key: import("valibot").StringSchema<undefined>;
|
|
26
29
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
@@ -43,9 +46,88 @@ export declare const marcoSDK: {
|
|
|
43
46
|
}, undefined>;
|
|
44
47
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
45
48
|
}, undefined>], undefined>>;
|
|
49
|
+
contact: import("..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
|
|
50
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
51
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
52
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
53
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
54
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
55
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
56
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
57
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
58
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
59
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
60
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
61
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
62
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
63
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
64
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
65
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
66
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
67
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
69
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
70
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
72
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
73
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
74
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
75
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
76
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
}, undefined>], undefined>, undefined>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
81
|
+
}, undefined>], undefined>>;
|
|
82
|
+
thread: import("..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
|
|
83
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
84
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
85
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
86
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
89
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
90
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
91
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
92
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
93
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
94
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
95
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
96
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
97
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
98
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
99
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
100
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
101
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
102
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
103
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
104
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
105
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
106
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
107
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
108
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
109
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
110
|
+
readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
111
|
+
readonly associationType: import("valibot").EnumSchema<typeof import("..").ContactAssociationType, undefined>;
|
|
112
|
+
readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
113
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
114
|
+
}, undefined>, undefined>;
|
|
115
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
116
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
117
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
118
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
119
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
120
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
121
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
122
|
+
}, undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
}, undefined>], undefined>, undefined>;
|
|
125
|
+
}, undefined>;
|
|
126
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
127
|
+
}, undefined>], undefined>>;
|
|
46
128
|
};
|
|
47
129
|
push: {
|
|
48
|
-
|
|
130
|
+
account: import("..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
49
131
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
50
132
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
51
133
|
readonly args: import("valibot").ObjectSchema<{
|
|
@@ -74,6 +156,9 @@ export declare const marcoSDK: {
|
|
|
74
156
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
75
157
|
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
76
158
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
159
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
160
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
161
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
77
162
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
78
163
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
79
164
|
}, undefined>], undefined>>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -12,6 +12,10 @@ export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
|
12
12
|
readonly details: v.StringSchema<undefined>;
|
|
13
13
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
14
14
|
}, undefined>;
|
|
15
|
+
export declare const userNotFoundErrorSchema: v.ObjectSchema<{
|
|
16
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
17
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
18
|
+
}, undefined>;
|
|
15
19
|
export declare const errorManifest: {
|
|
16
20
|
authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
17
21
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -22,6 +26,10 @@ export declare const errorManifest: {
|
|
|
22
26
|
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
23
27
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
24
28
|
}, undefined>;
|
|
29
|
+
userNotFoundErrorSchema: v.ObjectSchema<{
|
|
30
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
31
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
32
|
+
}, undefined>;
|
|
25
33
|
validationFailedErrorSchema: v.ObjectSchema<{
|
|
26
34
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
35
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;aAI1C,CAAA;AAEF,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;aAI1C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAKD,CAAA"}
|
|
@@ -12,8 +12,13 @@ export const authenticationFailedErrorSchema = v.object({
|
|
|
12
12
|
details: v.string(),
|
|
13
13
|
status: v.literal(400),
|
|
14
14
|
});
|
|
15
|
+
export const userNotFoundErrorSchema = v.object({
|
|
16
|
+
code: v.literal('USER_NOT_FOUND'),
|
|
17
|
+
status: v.literal(404),
|
|
18
|
+
});
|
|
15
19
|
export const errorManifest = {
|
|
16
20
|
authenticationFailedErrorSchema,
|
|
17
21
|
notAuthenticatedErrorSchema,
|
|
22
|
+
userNotFoundErrorSchema,
|
|
18
23
|
validationFailedErrorSchema,
|
|
19
24
|
};
|