@marcoappio/marco-config 2.0.414 → 2.0.416
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 +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/marcoPublicConfig.d.ts +14 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +30 -0
- package/dist/schemas/app.d.ts +1 -1
- package/dist/schemas/app.d.ts.map +1 -1
- package/dist/schemas/app.js +2 -1
- package/dist/schemas/emailAccount.d.ts +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/oauth.d.ts +1 -1
- package/dist/schemas/oauth.d.ts.map +1 -1
- package/dist/schemas/oauth.js +2 -1
- package/dist/sdk/endpoints/index.d.ts +186 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +2 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
- package/dist/sdk/endpoints/private/index.d.ts +51 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +6 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +4 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
- package/dist/sdk/endpoints/public/index.d.ts +136 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -0
- package/dist/sdk/index.d.ts +186 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +2 -1
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/MarcoPlatform.d.ts +3 -0
- package/dist/types/MarcoPlatform.d.ts.map +1 -0
- package/dist/types/MarcoPlatform.js +1 -0
- package/dist/types/OAuthProvider.d.ts +3 -0
- package/dist/types/OAuthProvider.d.ts.map +1 -0
- package/dist/types/OAuthProvider.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/labels/index.d.ts +4 -0
- package/dist/utils/labels/index.d.ts.map +1 -0
- package/dist/utils/labels/index.js +4 -0
- package/dist/zero/index.d.ts +1448 -0
- package/dist/zero/index.d.ts.map +1 -0
- package/dist/zero/index.js +13 -0
- package/dist/zero/mutators/account.d.ts +109 -0
- package/dist/zero/mutators/account.d.ts.map +1 -0
- package/dist/zero/mutators/account.js +69 -0
- package/dist/zero/mutators/draft.d.ts +162 -0
- package/dist/zero/mutators/draft.d.ts.map +1 -0
- package/dist/zero/mutators/draft.js +114 -0
- package/dist/zero/mutators/thread.d.ts +78 -0
- package/dist/zero/mutators/thread.d.ts.map +1 -0
- package/dist/zero/mutators/thread.js +76 -0
- package/dist/zero/mutators/user.d.ts +32 -0
- package/dist/zero/mutators/user.d.ts.map +1 -0
- package/dist/zero/mutators/user.js +33 -0
- package/dist/zero/mutators.d.ts +412 -0
- package/dist/zero/mutators.d.ts.map +1 -0
- package/dist/zero/mutators.js +44 -0
- package/dist/zero/mutators.test.d.ts +2 -0
- package/dist/zero/mutators.test.d.ts.map +1 -0
- package/dist/zero/mutators.test.js +33 -0
- package/dist/zero/schema.d.ts +1438 -0
- package/dist/zero/schema.d.ts.map +1 -0
- package/dist/zero/schema.js +430 -0
- package/package.json +2 -2
- package/dist/instantDB/index.d.ts +0 -3
- package/dist/instantDB/index.d.ts.map +0 -1
- package/dist/instantDB/index.js +0 -2
- package/dist/instantDB/instant.perms.d.ts +0 -134
- package/dist/instantDB/instant.perms.d.ts.map +0 -1
- package/dist/instantDB/instant.perms.js +0 -133
- package/dist/instantDB/instant.schema.d.ts +0 -338
- package/dist/instantDB/instant.schema.d.ts.map +0 -1
- package/dist/instantDB/instant.schema.js +0 -180
|
@@ -1,4 +1,140 @@
|
|
|
1
1
|
export declare const publicGroup: {
|
|
2
|
+
auth: {
|
|
3
|
+
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
4
|
+
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
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
8
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
9
|
+
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>;
|
|
10
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
28
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
29
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
30
|
+
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
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
32
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
33
|
+
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>;
|
|
34
|
+
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>;
|
|
35
|
+
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>;
|
|
36
|
+
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>;
|
|
37
|
+
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>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
41
|
+
}, undefined>], undefined>>;
|
|
42
|
+
sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
43
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
44
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
45
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
46
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
47
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
48
|
+
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>;
|
|
49
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
50
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
51
|
+
}, undefined>;
|
|
52
|
+
}, undefined>;
|
|
53
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
54
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
55
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
56
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
59
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
60
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
61
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
64
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
65
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
66
|
+
}, undefined>], undefined>>;
|
|
67
|
+
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
68
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
69
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
70
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
71
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
73
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
74
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
75
|
+
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
76
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
77
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
78
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
79
|
+
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>;
|
|
80
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
81
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
82
|
+
}, undefined>;
|
|
83
|
+
}, undefined>;
|
|
84
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
85
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
86
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
87
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
90
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
91
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
92
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
93
|
+
}, undefined>;
|
|
94
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
95
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
96
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
97
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
98
|
+
}, undefined>;
|
|
99
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
100
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
101
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
102
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
105
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
106
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
107
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
110
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
111
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
112
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
115
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
116
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
117
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
120
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
121
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
122
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
123
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
124
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
125
|
+
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>;
|
|
126
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
127
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
128
|
+
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>;
|
|
129
|
+
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>;
|
|
130
|
+
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>;
|
|
131
|
+
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>;
|
|
132
|
+
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>;
|
|
133
|
+
}, undefined>;
|
|
134
|
+
}, undefined>;
|
|
135
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
136
|
+
}, undefined>], undefined>>;
|
|
137
|
+
};
|
|
2
138
|
config: import("../../..").EndpointConfig<"/v1/pb/config", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").ObjectSchema<{
|
|
3
139
|
readonly data: import("valibot").ObjectSchema<{
|
|
4
140
|
readonly app: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"
|
|
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
|
@@ -1,6 +1,192 @@
|
|
|
1
1
|
export declare const marcoSDK: {
|
|
2
2
|
endpoints: {
|
|
3
|
+
private: {
|
|
4
|
+
emailMessage: {
|
|
5
|
+
getAttachment: import("..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
12
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
22
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
23
|
+
}, undefined>], undefined>>;
|
|
24
|
+
getHTML: import("..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
25
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
26
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
29
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
30
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
31
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
34
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
35
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
36
|
+
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
40
|
+
}, undefined>], undefined>>;
|
|
41
|
+
};
|
|
42
|
+
user: {
|
|
43
|
+
deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
44
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
45
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
48
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
49
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
50
|
+
}, undefined>], undefined>>;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
3
53
|
public: {
|
|
54
|
+
auth: {
|
|
55
|
+
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
56
|
+
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>;
|
|
57
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
58
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
59
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
60
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
61
|
+
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>;
|
|
62
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
63
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
}, undefined>;
|
|
66
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
67
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
69
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
72
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
73
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
74
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
77
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
78
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
79
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
80
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
81
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
82
|
+
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>;
|
|
83
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
84
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
85
|
+
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>;
|
|
86
|
+
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>;
|
|
87
|
+
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>;
|
|
88
|
+
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>;
|
|
89
|
+
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>;
|
|
90
|
+
}, undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
93
|
+
}, undefined>], undefined>>;
|
|
94
|
+
sendAuthCode: import("..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
95
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
96
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
97
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
98
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
99
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
100
|
+
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>;
|
|
101
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
102
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
}, undefined>;
|
|
105
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
106
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
107
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
108
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
109
|
+
}, undefined>;
|
|
110
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
111
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
112
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
113
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
114
|
+
}, undefined>;
|
|
115
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
116
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
117
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
118
|
+
}, undefined>], undefined>>;
|
|
119
|
+
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
120
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
121
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
122
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
123
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
124
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
125
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
126
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
127
|
+
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
128
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
129
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
130
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
131
|
+
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>;
|
|
132
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
133
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
134
|
+
}, undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
137
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
138
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
139
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
140
|
+
}, undefined>;
|
|
141
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
142
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
143
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
144
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
145
|
+
}, undefined>;
|
|
146
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
147
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
148
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
149
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
150
|
+
}, undefined>;
|
|
151
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
152
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
153
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
154
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
155
|
+
}, undefined>;
|
|
156
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
157
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
158
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
159
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
160
|
+
}, undefined>;
|
|
161
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
162
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
163
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
164
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
165
|
+
}, undefined>;
|
|
166
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
167
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
168
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
169
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
170
|
+
}, undefined>;
|
|
171
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
172
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
173
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
174
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
175
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
176
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
177
|
+
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>;
|
|
178
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
179
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
180
|
+
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>;
|
|
181
|
+
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>;
|
|
182
|
+
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>;
|
|
183
|
+
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>;
|
|
184
|
+
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>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
188
|
+
}, undefined>], undefined>>;
|
|
189
|
+
};
|
|
4
190
|
config: import("..").EndpointConfig<"/v1/pb/config", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").ObjectSchema<{
|
|
5
191
|
readonly data: import("valibot").ObjectSchema<{
|
|
6
192
|
readonly app: import("valibot").ObjectSchema<{
|
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/dist/types/Endpoint.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GenericSchema } from 'valibot';
|
|
2
|
+
import type { SDKError } from '../types/SDKError';
|
|
2
3
|
type Split<S extends string> = S extends `${infer T}/${infer U}` ? [T, ...Split<U>] : [S];
|
|
3
4
|
type URLParams<Segments extends readonly string[]> = {
|
|
4
5
|
[Seg in Segments[number] as Seg extends `:${infer Param}` ? Param : never]: string;
|
|
@@ -9,7 +10,7 @@ export type HTTPMethod = 'DELETE' | 'GET' | 'PATCH' | 'POST' | 'PUT';
|
|
|
9
10
|
export type SDKResponse = {
|
|
10
11
|
data?: any;
|
|
11
12
|
status: HTTPSuccessStatusCode;
|
|
12
|
-
};
|
|
13
|
+
} | SDKError;
|
|
13
14
|
export type EndpointConfig<TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>> = {
|
|
14
15
|
body: TRequestBody;
|
|
15
16
|
buildPath: (params: URLPattern<TPath>) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoint.d.ts","sourceRoot":"","sources":["../../src/types/Endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,KAAK,KA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Root":"","sources":["../../src/types/MarcoPlatform.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,gCAAiC,CAAA;AAE5D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MARCO_PLATFORM = ['ios', 'osx', 'web'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProvider.d.ts","sourceRoot":"","sources":["../../src/types/OAuthProvider.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,gCAAiC,CAAA;AAE7D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const OAUTH_PROVIDERS = ['GOOGLE', 'OUTLOOK'];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type * as v from 'valibot';
|
|
2
|
+
import type { errors } from '../sdk/validation/errors';
|
|
3
|
+
export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateIn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AC,GAC1D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from './EmailProvider';
|
|
|
5
5
|
export * from './Endpoint';
|
|
6
6
|
export * from './ImapConnectionStatus';
|
|
7
7
|
export * from './LabelSpecialUse';
|
|
8
|
+
export * from './MarcoPlatform';
|
|
8
9
|
export * from './MessageAttachmentStatus';
|
|
9
10
|
export * from './MessageRecipientType';
|
|
11
|
+
export * from './OAuthProvider';
|
|
12
|
+
export * from './SDKError';
|
|
10
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA"}
|
package/dist/types/index.js
CHANGED
|
@@ -5,5 +5,8 @@ export * from './EmailProvider';
|
|
|
5
5
|
export * from './Endpoint';
|
|
6
6
|
export * from './ImapConnectionStatus';
|
|
7
7
|
export * from './LabelSpecialUse';
|
|
8
|
+
export * from './MarcoPlatform';
|
|
8
9
|
export * from './MessageAttachmentStatus';
|
|
9
10
|
export * from './MessageRecipientType';
|
|
11
|
+
export * from './OAuthProvider';
|
|
12
|
+
export * from './SDKError';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/utils/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/labels/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;CAEtB,CAAA"}
|