@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
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
|
-
export { instantDBPermissions, instantDBSchema } from './instantDB';
|
|
3
2
|
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
3
|
export { marcoSchemas } from './schemas';
|
|
5
4
|
export { marcoSDK } from './sdk';
|
|
6
|
-
export { EndpointConfig, SDKResponse as EndpointResponse } from './types';
|
|
7
|
-
export { accountUtils, stringPatch } from './utils';
|
|
5
|
+
export { EndpointConfig, LabelSpecialUse, SDKError, SDKResponse as EndpointResponse } from './types';
|
|
6
|
+
export { accountUtils, labelUtils, stringPatch } from './utils';
|
|
7
|
+
export { AccountMutatorHandlers, accountMutatorDefinitions, createMutators, DraftMutatorHandlers, draftMutatorDefinitions, MarcoZeroMutatorHandlers, MarcoZeroMutators, MarcoZeroSchema, marcoZero, schema as zeroSchema, ThreadMutatorHandlers, threadMutatorDefinitions, UserMutatorHandlers, userMutatorDefinitions, ZeroMutatorValidationError, zeroMutatorSchemas, zeroTables, } from './zero';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACpG,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/D,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,MAAM,IAAI,UAAU,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,UAAU,GACX,MAAM,QAAQ,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
|
-
export { instantDBPermissions, instantDBSchema } from './instantDB';
|
|
3
2
|
export { MARCO_ENV, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
3
|
export { marcoSchemas } from './schemas';
|
|
5
4
|
export { marcoSDK } from './sdk';
|
|
6
|
-
export { accountUtils, stringPatch } from './utils';
|
|
5
|
+
export { accountUtils, labelUtils, stringPatch } from './utils';
|
|
6
|
+
export { accountMutatorDefinitions, createMutators, draftMutatorDefinitions, marcoZero, schema as zeroSchema, threadMutatorDefinitions, userMutatorDefinitions, ZeroMutatorValidationError, zeroMutatorSchemas, zeroTables, } from './zero';
|
|
@@ -23,6 +23,20 @@ type MarcoPublicConfig = {
|
|
|
23
23
|
tenantId: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Replicache support is being removed in favor of Zero.
|
|
28
|
+
* Downstream consumers should migrate to `zero`.
|
|
29
|
+
*/
|
|
30
|
+
replicache?: {
|
|
31
|
+
licenseKey: string;
|
|
32
|
+
};
|
|
33
|
+
zero: {
|
|
34
|
+
cacheUrl: string;
|
|
35
|
+
pushUrl: string;
|
|
36
|
+
};
|
|
37
|
+
workOS: {
|
|
38
|
+
clientId: string;
|
|
39
|
+
};
|
|
26
40
|
};
|
|
27
41
|
export declare const marcoPublicConfig: (env?: MarcoEnvironment) => MarcoPublicConfig;
|
|
28
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;IACD;;;OAGG;IACH,UAAU,CAAC,EAAE;QACX,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AA2GD,eAAO,MAAM,iBAAiB,SAAS,gBAAgB,sBAAmC,CAAA"}
|
|
@@ -25,6 +25,16 @@ const configMap = {
|
|
|
25
25
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
+
replicache: {
|
|
29
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
30
|
+
},
|
|
31
|
+
workOS: {
|
|
32
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
33
|
+
},
|
|
34
|
+
zero: {
|
|
35
|
+
cacheUrl: 'https://zero.staging.marcoapp.io',
|
|
36
|
+
pushUrl: 'https://api.staging.marcoapp.io/v1/zero/push',
|
|
37
|
+
},
|
|
28
38
|
},
|
|
29
39
|
production: {
|
|
30
40
|
marco: {
|
|
@@ -49,6 +59,16 @@ const configMap = {
|
|
|
49
59
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
50
60
|
},
|
|
51
61
|
},
|
|
62
|
+
replicache: {
|
|
63
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
64
|
+
},
|
|
65
|
+
workOS: {
|
|
66
|
+
clientId: 'client_01J51ET6RT5WCS3NNQYBB7FAE7',
|
|
67
|
+
},
|
|
68
|
+
zero: {
|
|
69
|
+
cacheUrl: 'https://zero.marcoapp.io',
|
|
70
|
+
pushUrl: 'https://api.marcoapp.io/v1/zero/push',
|
|
71
|
+
},
|
|
52
72
|
},
|
|
53
73
|
staging: {
|
|
54
74
|
marco: {
|
|
@@ -73,6 +93,16 @@ const configMap = {
|
|
|
73
93
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
74
94
|
},
|
|
75
95
|
},
|
|
96
|
+
replicache: {
|
|
97
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
98
|
+
},
|
|
99
|
+
workOS: {
|
|
100
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
101
|
+
},
|
|
102
|
+
zero: {
|
|
103
|
+
cacheUrl: 'https://zero.staging.marcoapp.io',
|
|
104
|
+
pushUrl: 'https://api.staging.marcoapp.io/v1/zero/push',
|
|
105
|
+
},
|
|
76
106
|
},
|
|
77
107
|
};
|
|
78
108
|
export const marcoPublicConfig = (env = 'development') => configMap[env];
|
package/dist/schemas/app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const app: {
|
|
3
|
-
platform: () => v.
|
|
3
|
+
platform: () => v.PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/schemas/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/schemas/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,GAAG;;CAEf,CAAA"}
|
package/dist/schemas/app.js
CHANGED
|
@@ -14,7 +14,7 @@ export declare const emailAccount: {
|
|
|
14
14
|
}, undefined>;
|
|
15
15
|
connectionConfigOauth: () => v.ObjectSchema<{
|
|
16
16
|
readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly provider: v.
|
|
17
|
+
readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
18
18
|
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
19
|
}, undefined>;
|
|
20
20
|
imapConnectionStatus: () => v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const marcoSchemas: {
|
|
2
2
|
app: {
|
|
3
|
-
platform: () => import("valibot").
|
|
3
|
+
platform: () => import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
|
|
4
4
|
};
|
|
5
5
|
auth: {
|
|
6
6
|
code: import("valibot").ObjectSchema<{
|
|
@@ -43,7 +43,7 @@ export declare const marcoSchemas: {
|
|
|
43
43
|
}, undefined>;
|
|
44
44
|
connectionConfigOauth: () => import("valibot").ObjectSchema<{
|
|
45
45
|
readonly code: 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 provider: import("valibot").
|
|
46
|
+
readonly provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
47
47
|
readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
}, undefined>;
|
|
49
49
|
imapConnectionStatus: () => import("valibot").PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
|
@@ -57,7 +57,7 @@ export declare const marcoSchemas: {
|
|
|
57
57
|
positiveInteger: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
58
58
|
};
|
|
59
59
|
oauth: {
|
|
60
|
-
provider: () => import("valibot").
|
|
60
|
+
provider: () => import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
61
61
|
};
|
|
62
62
|
pushNotifications: {
|
|
63
63
|
payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
package/dist/schemas/oauth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const oauth: {
|
|
3
|
-
provider: () => v.
|
|
3
|
+
provider: () => v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
|
package/dist/schemas/oauth.js
CHANGED
|
@@ -1,7 +1,193 @@
|
|
|
1
1
|
import type { GenericSchema } from 'valibot';
|
|
2
2
|
import type { EndpointConfig } from '../../types';
|
|
3
3
|
export declare const endpoints: {
|
|
4
|
+
private: {
|
|
5
|
+
emailMessage: {
|
|
6
|
+
getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
21
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
23
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
24
|
+
}, undefined>], undefined>>;
|
|
25
|
+
getHTML: EndpointConfig<"/v1/pv/message/:messageId/html", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
26
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
30
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
31
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
32
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
35
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
36
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
37
|
+
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
38
|
+
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>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
41
|
+
}, undefined>], undefined>>;
|
|
42
|
+
};
|
|
43
|
+
user: {
|
|
44
|
+
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
45
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
46
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
49
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
50
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
51
|
+
}, undefined>], undefined>>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
4
54
|
public: {
|
|
55
|
+
auth: {
|
|
56
|
+
refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
57
|
+
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>;
|
|
58
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
59
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
60
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
61
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
62
|
+
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>;
|
|
63
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
64
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
65
|
+
}, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
68
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
69
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
70
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
73
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
74
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
75
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
78
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
79
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
80
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
81
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
82
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
83
|
+
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>;
|
|
84
|
+
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>;
|
|
85
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
86
|
+
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>;
|
|
87
|
+
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>;
|
|
88
|
+
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>;
|
|
89
|
+
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>;
|
|
90
|
+
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>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
}, undefined>;
|
|
93
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
94
|
+
}, undefined>], undefined>>;
|
|
95
|
+
sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
96
|
+
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>;
|
|
97
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
98
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
99
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
100
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
101
|
+
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>;
|
|
102
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
103
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
104
|
+
}, undefined>;
|
|
105
|
+
}, undefined>;
|
|
106
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
107
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
108
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
109
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
110
|
+
}, undefined>;
|
|
111
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
112
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
113
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
114
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
117
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
118
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
119
|
+
}, undefined>], undefined>>;
|
|
120
|
+
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
121
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
122
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
123
|
+
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>;
|
|
124
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
125
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", 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 password: import("valibot").StringSchema<undefined>;
|
|
128
|
+
}, undefined>], undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
129
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
130
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
131
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
132
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
133
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
134
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
}, undefined>;
|
|
137
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
138
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
139
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
140
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
141
|
+
}, undefined>;
|
|
142
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
143
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
144
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
145
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
146
|
+
}, undefined>;
|
|
147
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
148
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
149
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
150
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
151
|
+
}, undefined>;
|
|
152
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
153
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
154
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
155
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
158
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
159
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
160
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
161
|
+
}, undefined>;
|
|
162
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
163
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
164
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
165
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
166
|
+
}, undefined>;
|
|
167
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
168
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
169
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
170
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
171
|
+
}, undefined>;
|
|
172
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
173
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
174
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
175
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
176
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
177
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
178
|
+
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>;
|
|
179
|
+
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>;
|
|
180
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
181
|
+
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>;
|
|
182
|
+
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>;
|
|
183
|
+
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>;
|
|
184
|
+
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>;
|
|
185
|
+
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>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
}, undefined>;
|
|
188
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
189
|
+
}, undefined>], undefined>>;
|
|
190
|
+
};
|
|
5
191
|
config: EndpointConfig<"/v1/pb/config", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
|
|
6
192
|
readonly data: import("valibot").ObjectSchema<{
|
|
7
193
|
readonly app: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, v.ObjectSchema<{
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
20
|
+
}, undefined>], undefined>>;
|
|
21
|
+
//# sourceMappingURL=getEmailMessageAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAS5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
4
|
+
export const getEmailMessageAttachment = createEndpoint({
|
|
5
|
+
method: 'GET',
|
|
6
|
+
path: '/v1/pv/attachment/:attachmentId',
|
|
7
|
+
response: v.union([
|
|
8
|
+
authFailedErrorSchema,
|
|
9
|
+
attachmentNotFoundErrorSchema,
|
|
10
|
+
attachmentStateInvalidErrorSchema,
|
|
11
|
+
v.object({
|
|
12
|
+
file: v.nonOptional(v.file()),
|
|
13
|
+
status: v.literal(200),
|
|
14
|
+
}),
|
|
15
|
+
]),
|
|
16
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getEmailMessageHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, v.ObjectSchema<{
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly content: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly html: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
18
|
+
}, undefined>], undefined>>;
|
|
19
|
+
//# sourceMappingURL=getEmailMessageHTML.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;2BAc9B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
|
|
5
|
+
export const getEmailMessageHTML = createEndpoint({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
path: '/v1/pv/message/:messageId/html',
|
|
8
|
+
response: v.union([
|
|
9
|
+
authFailedErrorSchema,
|
|
10
|
+
messageNotFoundErrorSchema,
|
|
11
|
+
v.object({
|
|
12
|
+
data: v.object({
|
|
13
|
+
content: v.record(v.string(), v.string()),
|
|
14
|
+
html: marcoSchemas.string.required(),
|
|
15
|
+
}),
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const emailMessage: {
|
|
2
|
+
getAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
20
|
+
}, undefined>], undefined>>;
|
|
21
|
+
getHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
22
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
26
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
28
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
33
|
+
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
34
|
+
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>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
37
|
+
}, undefined>], undefined>>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const privateGroup: {
|
|
2
|
+
emailMessage: {
|
|
3
|
+
getAttachment: import("../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
4
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
5
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
8
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
18
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
21
|
+
}, undefined>], undefined>>;
|
|
22
|
+
getHTML: import("../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
23
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
27
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
29
|
+
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
32
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
33
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
34
|
+
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
35
|
+
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>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
38
|
+
}, undefined>], undefined>>;
|
|
39
|
+
};
|
|
40
|
+
user: {
|
|
41
|
+
deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
42
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
43
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
46
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
47
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
48
|
+
}, undefined>], undefined>>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|