@marcoappio/marco-config 2.0.188 → 2.0.189
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +159 -33
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +6 -2
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -2
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -2
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +111 -22
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +102 -19
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.js +3 -3
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -3
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -3
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +55 -10
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.js +3 -3
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.js +3 -3
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +3 -3
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +3 -3
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +47 -9
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +14 -3
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +4 -4
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +11 -2
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +3 -3
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +3 -1
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/user/deleteUser.js +2 -2
- package/dist/sdk/endpoints/private/user/index.d.ts +3 -1
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +48 -11
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +14 -3
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +11 -2
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +3 -3
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +23 -6
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +7 -7
- package/dist/sdk/endpoints/public/index.d.ts +48 -11
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +220 -33
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +77 -31
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +19 -12
- package/dist/sdk/validation/index.d.ts +61 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/sdk/validation/index.js +2 -3
- package/dist/types/Endpoint.d.ts +4 -9
- package/dist/types/Endpoint.d.ts.map +1 -1
- 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/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicCon
|
|
|
5
5
|
export { marcoSchemas } from './schemas';
|
|
6
6
|
export { marcoSDK } from './sdk';
|
|
7
7
|
export { marcoWS } from './ws';
|
|
8
|
-
export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig,
|
|
8
|
+
export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, SDKResponse as EndpointResponse, LabelSpecialUse, SDKError as ServerError } from './types';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GenericSchema } from 'valibot';
|
|
2
|
-
import { EndpointConfig,
|
|
2
|
+
import { EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
|
|
3
3
|
export declare const createURLPattern: <T extends string>(pattern: T) => (params: URLPattern<T>) => string;
|
|
4
|
-
export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<
|
|
4
|
+
export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>>(params: {
|
|
5
5
|
body?: TRequestBody;
|
|
6
6
|
method: HTTPMethod;
|
|
7
7
|
path: TPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAElG,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,WACtC,CAAC,cACE,UAAU,CAAC,CAAC,CAAC,KAAG,MAW3B,CAAA;AAEH,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,UACpC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAChB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,SAAS,CAQP,CAAA"}
|
|
@@ -4,10 +4,14 @@ export declare const endpoints: {
|
|
|
4
4
|
private: {
|
|
5
5
|
emailMessage: {
|
|
6
6
|
getHTML: EndpointConfig<"/v1/pv/message/:messageId/html", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
-
readonly
|
|
7
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
8
10
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
9
11
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
10
|
-
readonly
|
|
12
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
11
15
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
16
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
17
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -22,10 +26,19 @@ export declare const endpoints: {
|
|
|
22
26
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
23
27
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
24
28
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
25
|
-
readonly
|
|
29
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
30
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
31
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
32
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
33
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
34
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
}, undefined>;
|
|
26
37
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
27
38
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
-
readonly
|
|
39
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
40
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
41
|
+
}, undefined>;
|
|
29
42
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
30
43
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
31
44
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -75,10 +88,19 @@ export declare const endpoints: {
|
|
|
75
88
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
76
89
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
77
90
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
78
|
-
readonly
|
|
91
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
92
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
93
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
94
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
95
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
96
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
}, undefined>;
|
|
79
99
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
80
100
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
81
|
-
readonly
|
|
101
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
102
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
103
|
+
}, undefined>;
|
|
82
104
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
83
105
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
84
106
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -104,10 +126,19 @@ export declare const endpoints: {
|
|
|
104
126
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
105
127
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
106
128
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
107
|
-
readonly
|
|
129
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
130
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
131
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
132
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
133
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
134
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
}, undefined>;
|
|
108
137
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
109
138
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
110
|
-
readonly
|
|
139
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
140
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
141
|
+
}, undefined>;
|
|
111
142
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
112
143
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
113
144
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -146,10 +177,19 @@ export declare const endpoints: {
|
|
|
146
177
|
readonly version: import("valibot").NumberSchema<undefined>;
|
|
147
178
|
}, undefined>, undefined>;
|
|
148
179
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
149
|
-
readonly
|
|
180
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
181
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
182
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
183
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
184
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
185
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
}, undefined>;
|
|
150
188
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
151
189
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
152
|
-
readonly
|
|
190
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
191
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
192
|
+
}, undefined>;
|
|
153
193
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
154
194
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
155
195
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -209,10 +249,19 @@ export declare const endpoints: {
|
|
|
209
249
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
210
250
|
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
211
251
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
212
|
-
readonly
|
|
252
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
253
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
254
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
255
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
256
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
257
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
258
|
+
}, undefined>;
|
|
259
|
+
}, undefined>;
|
|
213
260
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
214
261
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
215
|
-
readonly
|
|
262
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
263
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
264
|
+
}, undefined>;
|
|
216
265
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
217
266
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
218
267
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -320,10 +369,19 @@ export declare const endpoints: {
|
|
|
320
369
|
readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
|
|
321
370
|
}, undefined>], undefined>, undefined>;
|
|
322
371
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
323
|
-
readonly
|
|
372
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
373
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
374
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
375
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
376
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
377
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
}, undefined>;
|
|
324
380
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
325
381
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
326
|
-
readonly
|
|
382
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
383
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
384
|
+
}, undefined>;
|
|
327
385
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
328
386
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
329
387
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -438,10 +496,19 @@ export declare const endpoints: {
|
|
|
438
496
|
readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
|
|
439
497
|
}, undefined>)[], undefined>, undefined>;
|
|
440
498
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
441
|
-
readonly
|
|
499
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
500
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
501
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
502
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
503
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
504
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
505
|
+
}, undefined>;
|
|
506
|
+
}, undefined>;
|
|
442
507
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
443
508
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
444
|
-
readonly
|
|
509
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
510
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
511
|
+
}, undefined>;
|
|
445
512
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
446
513
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
447
514
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -459,13 +526,24 @@ export declare const endpoints: {
|
|
|
459
526
|
readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
|
|
460
527
|
}, undefined>], undefined>, undefined>;
|
|
461
528
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
462
|
-
readonly
|
|
529
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
530
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
531
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
532
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
533
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
534
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
535
|
+
}, undefined>;
|
|
536
|
+
}, undefined>;
|
|
463
537
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
464
538
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
465
|
-
readonly
|
|
539
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
540
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
541
|
+
}, undefined>;
|
|
466
542
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
467
543
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
468
|
-
readonly
|
|
544
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
545
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
546
|
+
}, undefined>;
|
|
469
547
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
470
548
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
471
549
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -512,10 +590,19 @@ export declare const endpoints: {
|
|
|
512
590
|
readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
|
|
513
591
|
}, undefined>], undefined>, undefined>;
|
|
514
592
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
515
|
-
readonly
|
|
593
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
594
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
595
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
596
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
597
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
598
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
599
|
+
}, undefined>;
|
|
600
|
+
}, undefined>;
|
|
516
601
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
517
602
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
518
|
-
readonly
|
|
603
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
604
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
605
|
+
}, undefined>;
|
|
519
606
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
520
607
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
521
608
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -524,7 +611,9 @@ export declare const endpoints: {
|
|
|
524
611
|
};
|
|
525
612
|
user: {
|
|
526
613
|
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
527
|
-
readonly
|
|
614
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
615
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
616
|
+
}, undefined>;
|
|
528
617
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
529
618
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
530
619
|
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
@@ -536,13 +625,24 @@ export declare const endpoints: {
|
|
|
536
625
|
refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
537
626
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
538
627
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
539
|
-
readonly
|
|
628
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
629
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
630
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
631
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
632
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
633
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
634
|
+
}, undefined>;
|
|
635
|
+
}, undefined>;
|
|
540
636
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
541
637
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
542
|
-
readonly
|
|
638
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
639
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
640
|
+
}, undefined>;
|
|
543
641
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
544
642
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
545
|
-
readonly
|
|
643
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
644
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
645
|
+
}, undefined>;
|
|
546
646
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
547
647
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
548
648
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -564,10 +664,19 @@ export declare const endpoints: {
|
|
|
564
664
|
sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
565
665
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
566
666
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
567
|
-
readonly
|
|
667
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
668
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
669
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
670
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
671
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
672
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
673
|
+
}, undefined>;
|
|
674
|
+
}, undefined>;
|
|
568
675
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
569
676
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
570
|
-
readonly
|
|
677
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
678
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
679
|
+
}, undefined>;
|
|
571
680
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
572
681
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
573
682
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -576,22 +685,39 @@ export declare const endpoints: {
|
|
|
576
685
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
577
686
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
578
687
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
579
|
-
readonly
|
|
688
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
689
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
690
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
691
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
692
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
693
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
694
|
+
}, undefined>;
|
|
695
|
+
}, undefined>;
|
|
580
696
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
581
697
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
582
|
-
readonly
|
|
698
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
699
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
700
|
+
}, undefined>;
|
|
583
701
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
584
702
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
585
|
-
readonly
|
|
703
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
704
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
705
|
+
}, undefined>;
|
|
586
706
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
587
707
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
588
|
-
readonly
|
|
708
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
709
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
710
|
+
}, undefined>;
|
|
589
711
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
590
712
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
591
|
-
readonly
|
|
713
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
714
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
715
|
+
}, undefined>;
|
|
592
716
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
593
717
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
594
|
-
readonly
|
|
718
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
719
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
720
|
+
}, undefined>;
|
|
595
721
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
596
722
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
597
723
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -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,
|
|
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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const getEmailMessageHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
5
7
|
}, undefined>, v.ObjectSchema<{
|
|
6
|
-
readonly
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
7
11
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
8
12
|
}, undefined>, v.ObjectSchema<{
|
|
9
13
|
readonly data: v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;2BAa9B,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import {
|
|
3
|
+
import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
|
|
4
4
|
export const getEmailMessageHTML = createEndpoint({
|
|
5
5
|
method: 'GET',
|
|
6
6
|
path: '/v1/pv/message/:messageId/html',
|
|
7
7
|
response: v.union([
|
|
8
|
-
|
|
8
|
+
authFailedErrorSchema,
|
|
9
9
|
messageNotFoundErrorSchema,
|
|
10
10
|
v.object({
|
|
11
11
|
data: v.object({
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export declare const emailMessage: {
|
|
2
2
|
getHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly
|
|
3
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
4
6
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
5
7
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
6
|
-
readonly
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
7
11
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
8
12
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
13
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|