@marcoappio/marco-config 7.0.0 → 8.0.0
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/schemas/index.d.ts +2 -59
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -2
- package/dist/schemas/models/index.d.ts +1 -1
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -1
- package/dist/schemas/models/thread.d.ts +3 -60
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +1 -7
- package/dist/sdk/endpoints/index.d.ts +124 -2
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +17 -42
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThread.js +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +17 -42
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts +43 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.js +21 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts +43 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.js +21 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts +47 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadMessages.js +21 -0
- package/dist/sdk/endpoints/private/models/thread/index.d.ts +3 -1
- package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/thread/index.js +3 -1
- package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.d.ts +6 -0
- package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.js +7 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +17 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts +123 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +40 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts +82 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.js +25 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +69 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.js +21 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +124 -2
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +2 -14
- package/dist/sdk/endpoints/public/auth/schemas.d.ts +39 -0
- package/dist/sdk/endpoints/public/auth/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/schemas.js +20 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -14
- package/dist/sdk/endpoints/public/index.d.ts +124 -2
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +124 -2
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +0 -83
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/getThreads.js +0 -36
|
@@ -1,5 +1,127 @@
|
|
|
1
1
|
export declare const publicGroup: {
|
|
2
2
|
auth: {
|
|
3
|
+
browser: {
|
|
4
|
+
deleteSession: import("../../..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
5
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
6
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
7
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
9
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
11
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
12
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
18
|
+
}, undefined>], undefined>>;
|
|
19
|
+
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
20
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
21
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
22
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
23
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
32
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
33
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
36
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
37
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
38
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
41
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
42
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
43
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
44
|
+
user: import("valibot").ObjectSchema<{
|
|
45
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
47
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
48
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
+
}, undefined>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
56
|
+
}, undefined>], undefined>>;
|
|
57
|
+
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
|
|
58
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
59
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
60
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
61
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
62
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
63
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
64
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
65
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
66
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
67
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
68
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
69
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
73
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
74
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
75
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
78
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
79
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
80
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
83
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
84
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
85
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
89
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
93
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
94
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
95
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
98
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
99
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
100
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
103
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
104
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
105
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
108
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
109
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
110
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
111
|
+
user: import("valibot").ObjectSchema<{
|
|
112
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
113
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
114
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
115
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
116
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
117
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
118
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
119
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
123
|
+
}, undefined>], undefined>>;
|
|
124
|
+
};
|
|
3
125
|
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
4
126
|
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
127
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -24,8 +146,8 @@ export declare const publicGroup: {
|
|
|
24
146
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
25
147
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
148
|
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
28
149
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
150
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
29
151
|
readonly user: import("valibot").ObjectSchema<{
|
|
30
152
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
153
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -115,8 +237,8 @@ export declare const publicGroup: {
|
|
|
115
237
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
116
238
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
117
239
|
readonly data: import("valibot").ObjectSchema<{
|
|
118
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
119
240
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
241
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
120
242
|
readonly user: import("valibot").ObjectSchema<{
|
|
121
243
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
122
244
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -114,6 +114,128 @@ export declare const marcoSDK: {
|
|
|
114
114
|
};
|
|
115
115
|
public: {
|
|
116
116
|
auth: {
|
|
117
|
+
browser: {
|
|
118
|
+
deleteSession: import("..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
119
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
120
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
121
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
122
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
123
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
124
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
125
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
126
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
127
|
+
}, undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
130
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
131
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
132
|
+
}, undefined>], undefined>>;
|
|
133
|
+
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
134
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
135
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
136
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
137
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
138
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
139
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
140
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
141
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
}, undefined>;
|
|
144
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
145
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
146
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
147
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
150
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
151
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
152
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
153
|
+
}, undefined>;
|
|
154
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
155
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
156
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
157
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
158
|
+
user: import("valibot").ObjectSchema<{
|
|
159
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
160
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
161
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
162
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
163
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
164
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
165
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
166
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
167
|
+
}, undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
170
|
+
}, undefined>], undefined>>;
|
|
171
|
+
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
|
|
172
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
173
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
174
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
175
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
176
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
177
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
178
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
179
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
180
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
181
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
182
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
183
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
187
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
188
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
189
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
192
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
193
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
194
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
195
|
+
}, undefined>;
|
|
196
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
197
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
198
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
199
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
200
|
+
}, undefined>;
|
|
201
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
202
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
203
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
204
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
205
|
+
}, undefined>;
|
|
206
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
207
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
208
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
209
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
210
|
+
}, undefined>;
|
|
211
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
212
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
213
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
214
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
215
|
+
}, undefined>;
|
|
216
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
217
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
218
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
219
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
220
|
+
}, undefined>;
|
|
221
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
222
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
223
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
224
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
225
|
+
user: import("valibot").ObjectSchema<{
|
|
226
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
227
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
228
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
229
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
230
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
231
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
232
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
233
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
234
|
+
}, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
237
|
+
}, undefined>], undefined>>;
|
|
238
|
+
};
|
|
117
239
|
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
118
240
|
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
119
241
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -138,8 +260,8 @@ export declare const marcoSDK: {
|
|
|
138
260
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
139
261
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
140
262
|
readonly data: import("valibot").ObjectSchema<{
|
|
141
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
142
263
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
264
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
143
265
|
readonly user: import("valibot").ObjectSchema<{
|
|
144
266
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
145
267
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -229,8 +351,8 @@ export declare const marcoSDK: {
|
|
|
229
351
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
230
352
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
231
353
|
readonly data: import("valibot").ObjectSchema<{
|
|
232
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
233
354
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
355
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
234
356
|
readonly user: import("valibot").ObjectSchema<{
|
|
235
357
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
236
358
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, 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"}
|
package/package.json
CHANGED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const getThreads: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/full", v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
4
|
-
readonly labelIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
-
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
|
-
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
8
|
-
}, undefined>, v.ObjectSchema<{
|
|
9
|
-
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
-
readonly labelIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
11
|
-
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
13
|
-
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
14
|
-
}, undefined>], undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
15
|
-
readonly data: v.ObjectSchema<{
|
|
16
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
19
|
-
}, undefined>, v.ObjectSchema<{
|
|
20
|
-
readonly data: v.ObjectSchema<{
|
|
21
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
24
|
-
}, undefined>, v.ObjectSchema<{
|
|
25
|
-
readonly data: v.ObjectSchema<{
|
|
26
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
-
readonly issues: v.ObjectSchema<{
|
|
28
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
29
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
30
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
-
}, undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
34
|
-
}, undefined>, v.ObjectSchema<{
|
|
35
|
-
readonly data: v.ObjectSchema<{
|
|
36
|
-
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
37
|
-
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
38
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
39
|
-
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
40
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
42
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
-
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
44
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
45
|
-
}, undefined>, undefined>;
|
|
46
|
-
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
47
|
-
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
49
|
-
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
51
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
53
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
55
|
-
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
56
|
-
}, undefined>, undefined>;
|
|
57
|
-
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
-
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
60
|
-
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
-
}, undefined>, undefined>;
|
|
62
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
63
|
-
readonly flagged: v.BooleanSchema<undefined>;
|
|
64
|
-
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
65
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
66
|
-
readonly labelIdList: v.StringSchema<undefined>;
|
|
67
|
-
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
68
|
-
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
69
|
-
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
70
|
-
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
72
|
-
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
-
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
75
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
76
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
77
|
-
readonly words: v.StringSchema<undefined>;
|
|
78
|
-
}, undefined>, undefined>;
|
|
79
|
-
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
-
}, undefined>;
|
|
81
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
82
|
-
}, undefined>], undefined>>;
|
|
83
|
-
//# sourceMappingURL=getThreads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8B5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAarB,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
-
import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
|
|
4
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
5
|
-
import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
6
|
-
const baseQuerySchema = {
|
|
7
|
-
cursor: v.optional(v.string()),
|
|
8
|
-
limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
|
|
9
|
-
participants: v.optional(v.array(v.string())),
|
|
10
|
-
};
|
|
11
|
-
const getThreadsQuerySchema = v.union([
|
|
12
|
-
v.object({
|
|
13
|
-
...baseQuerySchema,
|
|
14
|
-
ids: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
15
|
-
labelIds: v.optional(v.array(v.string())),
|
|
16
|
-
}),
|
|
17
|
-
v.object({
|
|
18
|
-
...baseQuerySchema,
|
|
19
|
-
ids: v.optional(v.array(v.string())),
|
|
20
|
-
labelIds: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
21
|
-
}),
|
|
22
|
-
]);
|
|
23
|
-
export const getThreads = createEndpoint({
|
|
24
|
-
method: 'GET',
|
|
25
|
-
path: '/v1/pv/models/threads/full',
|
|
26
|
-
query: getThreadsQuerySchema,
|
|
27
|
-
response: v.union([
|
|
28
|
-
authFailedErrorSchema,
|
|
29
|
-
userNotFoundErrorSchema,
|
|
30
|
-
validationFailedErrorSchema,
|
|
31
|
-
v.object({
|
|
32
|
-
data: paginatedResponseSchema(marcoSchemas.models.threadFullSchema),
|
|
33
|
-
status: v.literal(200),
|
|
34
|
-
}),
|
|
35
|
-
]),
|
|
36
|
-
});
|