@marcoappio/marco-config 2.0.116 → 2.0.118

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.
Files changed (67) hide show
  1. package/dist/clients/account.d.ts +1 -0
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/account.js +1 -0
  4. package/dist/clients/index.d.ts +1 -0
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/index.d.ts +80 -34
  7. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  8. package/dist/sdk/endpoints/index.js +0 -2
  9. package/dist/sdk/endpoints/private/index.d.ts +77 -23
  10. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/private/index.js +2 -4
  12. package/dist/sdk/endpoints/private/sync/index.d.ts +79 -0
  13. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
  14. package/dist/sdk/endpoints/private/sync/index.js +3 -0
  15. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +42 -0
  16. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
  17. package/dist/sdk/endpoints/private/sync/pull/account.js +29 -0
  18. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +43 -0
  19. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
  20. package/dist/sdk/endpoints/private/sync/pull/index.js +2 -0
  21. package/dist/sdk/endpoints/private/sync/push/account.d.ts +34 -0
  22. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
  23. package/dist/sdk/endpoints/private/sync/push/account.js +31 -0
  24. package/dist/sdk/endpoints/private/sync/push/index.d.ts +35 -0
  25. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
  26. package/dist/sdk/endpoints/private/sync/push/index.js +2 -0
  27. package/dist/sdk/endpoints/public/auth/index.d.ts +3 -3
  28. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
  29. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
  30. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
  31. package/dist/sdk/endpoints/public/index.d.ts +3 -3
  32. package/dist/sdk/index.d.ts +80 -34
  33. package/dist/sdk/index.d.ts.map +1 -1
  34. package/dist/sdk/validation/errors.d.ts +30 -0
  35. package/dist/sdk/validation/errors.d.ts.map +1 -0
  36. package/dist/sdk/validation/errors.js +19 -0
  37. package/package.json +1 -1
  38. package/dist/sdk/endpoints/private/emailMessage/getText.d.ts +0 -16
  39. package/dist/sdk/endpoints/private/emailMessage/getText.d.ts.map +0 -1
  40. package/dist/sdk/endpoints/private/emailMessage/getText.js +0 -23
  41. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -17
  42. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
  43. package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
  44. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -8
  45. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
  46. package/dist/sdk/endpoints/private/user/deleteUser.js +0 -14
  47. package/dist/sdk/endpoints/private/user/index.d.ts +0 -9
  48. package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
  49. package/dist/sdk/endpoints/private/user/index.js +0 -4
  50. package/dist/sdk/endpoints/webhook/emailEngine.d.ts +0 -8
  51. package/dist/sdk/endpoints/webhook/emailEngine.d.ts.map +0 -1
  52. package/dist/sdk/endpoints/webhook/emailEngine.js +0 -12
  53. package/dist/sdk/endpoints/webhook/index.d.ts +0 -9
  54. package/dist/sdk/endpoints/webhook/index.d.ts.map +0 -1
  55. package/dist/sdk/endpoints/webhook/index.js +0 -4
  56. package/dist/sdk/validation/errors/index.d.ts +0 -15
  57. package/dist/sdk/validation/errors/index.d.ts.map +0 -1
  58. package/dist/sdk/validation/errors/index.js +0 -8
  59. package/dist/sdk/validation/errors/unauthenticated.d.ts +0 -6
  60. package/dist/sdk/validation/errors/unauthenticated.d.ts.map +0 -1
  61. package/dist/sdk/validation/errors/unauthenticated.js +0 -5
  62. package/dist/sdk/validation/errors/unexpected.d.ts +0 -6
  63. package/dist/sdk/validation/errors/unexpected.d.ts.map +0 -1
  64. package/dist/sdk/validation/errors/unexpected.js +0 -5
  65. package/dist/sdk/validation/errors/validationFailed.d.ts +0 -6
  66. package/dist/sdk/validation/errors/validationFailed.d.ts.map +0 -1
  67. package/dist/sdk/validation/errors/validationFailed.js +0 -5
@@ -11,6 +11,7 @@ export declare const account: {
11
11
  readonly status: v.EnumSchema<typeof IMAPPasswordConfigStatus, undefined>;
12
12
  }, undefined>, undefined>;
13
13
  readonly labels: v.ArraySchema<v.ObjectSchema<{
14
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
14
15
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
15
16
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
16
17
  }, undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,wBAAwB,EAAe,MAAM,qBAAqB,CAAA;AAS3E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCG,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,wBAAwB,EAAe,MAAM,qBAAqB,CAAA;AAS3E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCG,CAAA"}
@@ -13,6 +13,7 @@ export const account = {
13
13
  id: marcoSchemas.string.required(),
14
14
  imapPasswordConfig: v.nullable(imapPasswordConfig),
15
15
  labels: v.array(v.object({
16
+ id: marcoSchemas.string.required(),
16
17
  name: marcoSchemas.string.required(),
17
18
  path: marcoSchemas.string.required(),
18
19
  })),
@@ -10,6 +10,7 @@ export declare const marcoClients: {
10
10
  readonly status: import("valibot").EnumSchema<typeof import("../types").IMAPPasswordConfigStatus, undefined>;
11
11
  }, undefined>, undefined>;
12
12
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
13
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
13
14
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
14
15
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
15
16
  }, undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
@@ -2,29 +2,83 @@ import { GenericSchema } from 'valibot';
2
2
  import { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
- emailMessage: {
6
- getText: EndpointConfig<"/v1/pv/email-message/:messageId/text", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
- readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
8
- readonly status: import("valibot").LiteralSchema<401, undefined>;
9
- }, undefined>, import("valibot").ObjectSchema<{
10
- readonly code: import("valibot").LiteralSchema<"GET_TEXT::MESSAGE_NOT_FOUND", undefined>;
11
- readonly status: import("valibot").LiteralSchema<404, undefined>;
12
- }, undefined>, import("valibot").ObjectSchema<{
13
- readonly data: import("valibot").ObjectSchema<{
14
- readonly hasMore: import("valibot").BooleanSchema<undefined>;
15
- readonly html: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
16
- readonly text: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
17
- }, undefined>;
18
- readonly status: import("valibot").LiteralSchema<200, undefined>;
19
- }, undefined>], undefined>>;
20
- };
21
- user: {
22
- deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
23
- readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
24
- readonly status: import("valibot").LiteralSchema<401, undefined>;
25
- }, undefined>, import("valibot").ObjectSchema<{
26
- readonly status: import("valibot").LiteralSchema<204, undefined>;
27
- }, undefined>], undefined>>;
5
+ sync: {
6
+ pull: {
7
+ syncPullAccount: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
8
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
9
+ readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
10
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
11
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
12
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
13
+ }, undefined>, import("valibot").ObjectSchema<{
14
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
15
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
16
+ }, undefined>, import("valibot").ObjectSchema<{
17
+ readonly data: import("valibot").ObjectSchema<{
18
+ readonly cookie: import("valibot").NumberSchema<undefined>;
19
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
20
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
21
+ readonly key: import("valibot").StringSchema<undefined>;
22
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
23
+ }, undefined>, import("valibot").ObjectSchema<{
24
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
25
+ }, undefined>, import("valibot").ObjectSchema<{
26
+ readonly key: import("valibot").StringSchema<undefined>;
27
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
28
+ readonly value: import("valibot").ObjectSchema<{
29
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
31
+ readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
32
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
33
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
34
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
35
+ readonly status: import("valibot").EnumSchema<typeof import("../../types").IMAPPasswordConfigStatus, undefined>;
36
+ }, undefined>, undefined>;
37
+ readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
38
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
39
+ readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
+ }, undefined>, undefined>;
42
+ }, undefined>;
43
+ }, undefined>], undefined>, undefined>;
44
+ }, undefined>;
45
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
46
+ }, undefined>], undefined>>;
47
+ };
48
+ push: {
49
+ syncPushAccount: EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
50
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
51
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
52
+ readonly args: import("valibot").ObjectSchema<{
53
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
54
+ readonly imapPasswordConfig: import("valibot").ObjectSchema<{
55
+ readonly status: import("valibot").LiteralSchema<import("../../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
56
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
57
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
58
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
59
+ }, undefined>;
60
+ }, undefined>;
61
+ readonly clientID: import("valibot").StringSchema<undefined>;
62
+ readonly id: import("valibot").NumberSchema<undefined>;
63
+ readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
64
+ }, undefined>, import("valibot").ObjectSchema<{
65
+ readonly args: import("valibot").ObjectSchema<{
66
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
67
+ }, undefined>;
68
+ readonly clientID: import("valibot").StringSchema<undefined>;
69
+ readonly id: import("valibot").NumberSchema<undefined>;
70
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
71
+ }, undefined>], undefined>, undefined>;
72
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
73
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
74
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
75
+ }, undefined>, import("valibot").ObjectSchema<{
76
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
77
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
78
+ }, undefined>, import("valibot").ObjectSchema<{
79
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
80
+ }, undefined>], undefined>>;
81
+ };
28
82
  };
29
83
  };
30
84
  public: {
@@ -32,7 +86,7 @@ export declare const endpoints: {
32
86
  refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
33
87
  readonly refreshToken: import("valibot").StringSchema<undefined>;
34
88
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
35
- readonly code: import("valibot").LiteralSchema<"::VALIDATION_FAILED", undefined>;
89
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
36
90
  readonly status: import("valibot").LiteralSchema<400, undefined>;
37
91
  }, undefined>, import("valibot").ObjectSchema<{
38
92
  readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
@@ -52,7 +106,7 @@ export declare const endpoints: {
52
106
  sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
53
107
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
54
108
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
55
- readonly code: import("valibot").LiteralSchema<"::VALIDATION_FAILED", undefined>;
109
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
56
110
  readonly status: import("valibot").LiteralSchema<400, undefined>;
57
111
  }, undefined>, import("valibot").ObjectSchema<{
58
112
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -61,7 +115,7 @@ export declare const endpoints: {
61
115
  readonly code: import("valibot").StringSchema<undefined>;
62
116
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
63
117
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
64
- readonly code: import("valibot").LiteralSchema<"::VALIDATION_FAILED", undefined>;
118
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
65
119
  readonly status: import("valibot").LiteralSchema<400, undefined>;
66
120
  }, undefined>, import("valibot").ObjectSchema<{
67
121
  readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
@@ -86,13 +140,5 @@ export declare const endpoints: {
86
140
  readonly status: import("valibot").LiteralSchema<200, undefined>;
87
141
  }, undefined>>;
88
142
  };
89
- webhook: {
90
- emailEngine: EndpointConfig<"/v1/wh/email-engine", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
91
- readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
92
- readonly status: import("valibot").LiteralSchema<401, undefined>;
93
- }, undefined>, import("valibot").ObjectSchema<{
94
- readonly status: import("valibot").LiteralSchema<200, undefined>;
95
- }, undefined>], undefined>>;
96
- };
97
143
  };
98
144
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AAetE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -1,8 +1,6 @@
1
1
  import { privateGroup } from './private';
2
2
  import { publicGroup } from './public';
3
- import { webhook } from './webhook';
4
3
  export const endpoints = {
5
4
  private: privateGroup,
6
5
  public: publicGroup,
7
- webhook,
8
6
  };
@@ -1,27 +1,81 @@
1
1
  export declare const privateGroup: {
2
- emailMessage: {
3
- getText: import("../../..").EndpointConfig<"/v1/pv/email-message/:messageId/text", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
4
- readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
5
- readonly status: import("valibot").LiteralSchema<401, undefined>;
6
- }, undefined>, import("valibot").ObjectSchema<{
7
- readonly code: import("valibot").LiteralSchema<"GET_TEXT::MESSAGE_NOT_FOUND", undefined>;
8
- readonly status: import("valibot").LiteralSchema<404, undefined>;
9
- }, undefined>, import("valibot").ObjectSchema<{
10
- readonly data: import("valibot").ObjectSchema<{
11
- readonly hasMore: import("valibot").BooleanSchema<undefined>;
12
- readonly html: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
13
- readonly text: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
14
- }, undefined>;
15
- readonly status: import("valibot").LiteralSchema<200, undefined>;
16
- }, undefined>], undefined>>;
17
- };
18
- user: {
19
- deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
20
- readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
21
- readonly status: import("valibot").LiteralSchema<401, undefined>;
22
- }, undefined>, import("valibot").ObjectSchema<{
23
- readonly status: import("valibot").LiteralSchema<204, undefined>;
24
- }, undefined>], undefined>>;
2
+ sync: {
3
+ pull: {
4
+ syncPullAccount: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
5
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
6
+ readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
7
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
9
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
10
+ }, undefined>, import("valibot").ObjectSchema<{
11
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
12
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
13
+ }, undefined>, import("valibot").ObjectSchema<{
14
+ readonly data: import("valibot").ObjectSchema<{
15
+ readonly cookie: import("valibot").NumberSchema<undefined>;
16
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
17
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
18
+ readonly key: import("valibot").StringSchema<undefined>;
19
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
22
+ }, undefined>, import("valibot").ObjectSchema<{
23
+ readonly key: import("valibot").StringSchema<undefined>;
24
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
25
+ readonly value: import("valibot").ObjectSchema<{
26
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
27
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
29
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
31
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
32
+ readonly status: import("valibot").EnumSchema<typeof import("../../..").IMAPPasswordConfigStatus, undefined>;
33
+ }, undefined>, undefined>;
34
+ readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
35
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
37
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
38
+ }, undefined>, undefined>;
39
+ }, undefined>;
40
+ }, undefined>], undefined>, undefined>;
41
+ }, undefined>;
42
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
43
+ }, undefined>], undefined>>;
44
+ };
45
+ push: {
46
+ syncPushAccount: import("../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
47
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
48
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
49
+ readonly args: import("valibot").ObjectSchema<{
50
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
51
+ readonly imapPasswordConfig: import("valibot").ObjectSchema<{
52
+ readonly status: import("valibot").LiteralSchema<import("../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
53
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
54
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
55
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
56
+ }, undefined>;
57
+ }, undefined>;
58
+ readonly clientID: import("valibot").StringSchema<undefined>;
59
+ readonly id: import("valibot").NumberSchema<undefined>;
60
+ readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
61
+ }, undefined>, import("valibot").ObjectSchema<{
62
+ readonly args: import("valibot").ObjectSchema<{
63
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
64
+ }, undefined>;
65
+ readonly clientID: import("valibot").StringSchema<undefined>;
66
+ readonly id: import("valibot").NumberSchema<undefined>;
67
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
68
+ }, undefined>], undefined>, undefined>;
69
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
70
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
71
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
72
+ }, undefined>, import("valibot").ObjectSchema<{
73
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
74
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
75
+ }, undefined>, import("valibot").ObjectSchema<{
76
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
77
+ }, undefined>], undefined>>;
78
+ };
25
79
  };
26
80
  };
27
81
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
@@ -1,6 +1,4 @@
1
- import { emailMessage } from './emailMessage';
2
- import { user } from './user';
1
+ import { sync } from './sync';
3
2
  export const privateGroup = {
4
- emailMessage,
5
- user,
3
+ sync,
6
4
  };
@@ -0,0 +1,79 @@
1
+ export declare const sync: {
2
+ pull: {
3
+ syncPullAccount: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
4
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
5
+ readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
6
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
9
+ }, undefined>, import("valibot").ObjectSchema<{
10
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
11
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
12
+ }, undefined>, import("valibot").ObjectSchema<{
13
+ readonly data: import("valibot").ObjectSchema<{
14
+ readonly cookie: import("valibot").NumberSchema<undefined>;
15
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
16
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
17
+ readonly key: import("valibot").StringSchema<undefined>;
18
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
19
+ }, undefined>, import("valibot").ObjectSchema<{
20
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
21
+ }, undefined>, import("valibot").ObjectSchema<{
22
+ readonly key: import("valibot").StringSchema<undefined>;
23
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
24
+ readonly value: import("valibot").ObjectSchema<{
25
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
26
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
27
+ readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
28
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
29
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
31
+ readonly status: import("valibot").EnumSchema<typeof import("../../../..").IMAPPasswordConfigStatus, undefined>;
32
+ }, undefined>, undefined>;
33
+ readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
34
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
37
+ }, undefined>, undefined>;
38
+ }, undefined>;
39
+ }, undefined>], undefined>, undefined>;
40
+ }, undefined>;
41
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
42
+ }, undefined>], undefined>>;
43
+ };
44
+ push: {
45
+ syncPushAccount: import("../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
46
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
47
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
48
+ readonly args: import("valibot").ObjectSchema<{
49
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
50
+ readonly imapPasswordConfig: import("valibot").ObjectSchema<{
51
+ readonly status: import("valibot").LiteralSchema<import("../../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
52
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
53
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
54
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
55
+ }, undefined>;
56
+ }, undefined>;
57
+ readonly clientID: import("valibot").StringSchema<undefined>;
58
+ readonly id: import("valibot").NumberSchema<undefined>;
59
+ readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
60
+ }, undefined>, import("valibot").ObjectSchema<{
61
+ readonly args: import("valibot").ObjectSchema<{
62
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
63
+ }, undefined>;
64
+ readonly clientID: import("valibot").StringSchema<undefined>;
65
+ readonly id: import("valibot").NumberSchema<undefined>;
66
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
67
+ }, undefined>], undefined>, undefined>;
68
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
69
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
70
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
71
+ }, undefined>, import("valibot").ObjectSchema<{
72
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
73
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
74
+ }, undefined>, import("valibot").ObjectSchema<{
75
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
76
+ }, undefined>], undefined>>;
77
+ };
78
+ };
79
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { pull } from './pull';
2
+ import { push } from './push';
3
+ export const sync = { pull, push };
@@ -0,0 +1,42 @@
1
+ import * as v from 'valibot';
2
+ export declare const syncPullAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
3
+ readonly clientGroupID: v.StringSchema<undefined>;
4
+ readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
+ }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly status: v.LiteralSchema<400, undefined>;
8
+ }, undefined>, v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
10
+ readonly status: v.LiteralSchema<401, undefined>;
11
+ }, undefined>, v.ObjectSchema<{
12
+ readonly data: v.ObjectSchema<{
13
+ readonly cookie: v.NumberSchema<undefined>;
14
+ readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
15
+ readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
16
+ readonly key: v.StringSchema<undefined>;
17
+ readonly op: v.LiteralSchema<"del", undefined>;
18
+ }, undefined>, v.ObjectSchema<{
19
+ readonly op: v.LiteralSchema<"clear", undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly key: v.StringSchema<undefined>;
22
+ readonly op: v.LiteralSchema<"put", undefined>;
23
+ readonly value: v.ObjectSchema<{
24
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
25
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
26
+ readonly imapPasswordConfig: v.NullableSchema<v.ObjectSchema<{
27
+ readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
29
+ readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
30
+ readonly status: v.EnumSchema<typeof import("../../../../../types").IMAPPasswordConfigStatus, undefined>;
31
+ }, undefined>, undefined>;
32
+ readonly labels: v.ArraySchema<v.ObjectSchema<{
33
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
+ readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ }, undefined>, undefined>;
37
+ }, undefined>;
38
+ }, undefined>], undefined>, undefined>;
39
+ }, undefined>;
40
+ readonly status: v.LiteralSchema<200, undefined>;
41
+ }, undefined>], undefined>>;
42
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -0,0 +1,29 @@
1
+ import * as v from 'valibot';
2
+ import { account } from '../../../../../clients/account';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errorManifest } from '../../../../../sdk/validation/errors';
5
+ import { HTTPMethod } from '../../../../../types';
6
+ export const syncPullAccount = createEndpoint({
7
+ body: v.object({
8
+ clientGroupID: v.string(),
9
+ cookie: v.nullable(v.number()),
10
+ }),
11
+ method: HTTPMethod.POST,
12
+ path: account.pullURL,
13
+ response: v.union([
14
+ errorManifest.validationFailedErrorSchema,
15
+ errorManifest.notAuthenticatedErrorSchema,
16
+ v.object({
17
+ data: v.object({
18
+ cookie: v.number(),
19
+ lastMutationIDChanges: v.record(v.string(), v.number()),
20
+ patch: v.array(v.union([
21
+ v.object({ key: v.string(), op: v.literal('del') }),
22
+ v.object({ op: v.literal('clear') }),
23
+ v.object({ key: v.string(), op: v.literal('put'), value: account.model }),
24
+ ])),
25
+ }),
26
+ status: v.literal(200),
27
+ }),
28
+ ]),
29
+ });
@@ -0,0 +1,43 @@
1
+ export declare const pull: {
2
+ syncPullAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
3
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
4
+ readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
5
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
8
+ }, undefined>, import("valibot").ObjectSchema<{
9
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
10
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
11
+ }, undefined>, import("valibot").ObjectSchema<{
12
+ readonly data: import("valibot").ObjectSchema<{
13
+ readonly cookie: import("valibot").NumberSchema<undefined>;
14
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
15
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
16
+ readonly key: import("valibot").StringSchema<undefined>;
17
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
18
+ }, undefined>, import("valibot").ObjectSchema<{
19
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly key: import("valibot").StringSchema<undefined>;
22
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
23
+ readonly value: import("valibot").ObjectSchema<{
24
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
25
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
26
+ readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
27
+ readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
29
+ readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
30
+ readonly status: import("valibot").EnumSchema<typeof import("../../../../..").IMAPPasswordConfigStatus, undefined>;
31
+ }, undefined>, undefined>;
32
+ readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
33
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
34
+ readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ }, undefined>, undefined>;
37
+ }, undefined>;
38
+ }, undefined>], undefined>, undefined>;
39
+ }, undefined>;
40
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
41
+ }, undefined>], undefined>>;
42
+ };
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { syncPullAccount } from './account';
2
+ export const pull = { syncPullAccount };