@marcoappio/marco-config 2.0.159 → 2.0.161

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 (34) hide show
  1. package/dist/clients/draft.d.ts +107 -0
  2. package/dist/clients/draft.d.ts.map +1 -0
  3. package/dist/clients/draft.js +43 -0
  4. package/dist/clients/index.d.ts +105 -0
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/clients/index.js +2 -0
  7. package/dist/sdk/endpoints/index.d.ts +151 -0
  8. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/private/email-message/email-message-html-get.d.ts +11 -0
  10. package/dist/sdk/endpoints/private/email-message/email-message-html-get.d.ts.map +1 -0
  11. package/dist/sdk/endpoints/private/email-message/email-message-html-get.js +14 -0
  12. package/dist/sdk/endpoints/private/email-message/index.d.ts +12 -0
  13. package/dist/sdk/endpoints/private/email-message/index.d.ts.map +1 -0
  14. package/dist/sdk/endpoints/private/email-message/index.js +4 -0
  15. package/dist/sdk/endpoints/private/index.d.ts +151 -0
  16. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/index.js +2 -0
  18. package/dist/sdk/endpoints/private/sync/index.d.ts +140 -0
  19. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +40 -0
  21. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
  22. package/dist/sdk/endpoints/private/sync/pull/draft.js +28 -0
  23. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +38 -0
  24. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  25. package/dist/sdk/endpoints/private/sync/pull/index.js +2 -1
  26. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +104 -0
  27. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
  28. package/dist/sdk/endpoints/private/sync/push/draft.js +36 -0
  29. package/dist/sdk/endpoints/private/sync/push/index.d.ts +102 -0
  30. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  31. package/dist/sdk/endpoints/private/sync/push/index.js +2 -1
  32. package/dist/sdk/index.d.ts +151 -0
  33. package/dist/sdk/index.d.ts.map +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,107 @@
1
+ import * as v from 'valibot';
2
+ export declare const draft: {
3
+ model: v.ObjectSchema<{
4
+ readonly body: v.ObjectSchema<{
5
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
6
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
7
+ readonly content: v.UnknownSchema;
8
+ readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
9
+ readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
10
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
11
+ }, undefined>;
12
+ readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
13
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
14
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
15
+ }, undefined>;
16
+ mutators: {
17
+ create: {
18
+ delta: v.ObjectSchema<{
19
+ readonly body: v.ObjectSchema<{
20
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
21
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
22
+ readonly content: v.UnknownSchema;
23
+ readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
24
+ readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
25
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
26
+ }, undefined>;
27
+ readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
29
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ }, undefined>;
31
+ };
32
+ delete: {
33
+ delta: v.ObjectSchema<{
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ }, undefined>;
36
+ };
37
+ update: {
38
+ delta: v.ObjectSchema<{
39
+ readonly body: Omit<v.ObjectSchema<{
40
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
41
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
42
+ readonly content: v.UnknownSchema;
43
+ readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
44
+ readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
45
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
46
+ }, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
47
+ readonly entries: {
48
+ readonly bcc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
49
+ readonly cc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
50
+ readonly content: v.OptionalSchema<v.UnknownSchema, undefined>;
51
+ readonly replyTo: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
52
+ readonly subject: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
53
+ readonly to: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
54
+ };
55
+ readonly '~standard': v.StandardSchemaProps<{
56
+ bcc?: string[] | undefined;
57
+ cc?: string[] | undefined;
58
+ replyTo?: string[] | undefined;
59
+ to?: string[] | undefined;
60
+ content?: unknown;
61
+ subject?: string | undefined;
62
+ }, {
63
+ bcc?: string[] | undefined;
64
+ cc?: string[] | undefined;
65
+ replyTo?: string[] | undefined;
66
+ to?: string[] | undefined;
67
+ content?: unknown;
68
+ subject?: string | undefined;
69
+ }>;
70
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
71
+ bcc?: string[] | undefined;
72
+ cc?: string[] | undefined;
73
+ replyTo?: string[] | undefined;
74
+ to?: string[] | undefined;
75
+ content?: unknown;
76
+ subject?: string | undefined;
77
+ }, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
78
+ readonly '~types'?: {
79
+ readonly input: {
80
+ bcc?: string[] | undefined;
81
+ cc?: string[] | undefined;
82
+ replyTo?: string[] | undefined;
83
+ to?: string[] | undefined;
84
+ content?: unknown;
85
+ subject?: string | undefined;
86
+ };
87
+ readonly output: {
88
+ bcc?: string[] | undefined;
89
+ cc?: string[] | undefined;
90
+ replyTo?: string[] | undefined;
91
+ to?: string[] | undefined;
92
+ content?: unknown;
93
+ subject?: string | undefined;
94
+ };
95
+ readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
96
+ } | undefined;
97
+ };
98
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
99
+ }, undefined>;
100
+ };
101
+ };
102
+ name: "draft";
103
+ pullURL: "/v1/pv/sync/pull/draft";
104
+ pushURL: "/v1/pv/sync/push/draft";
105
+ schemaVersion: "v1";
106
+ };
107
+ //# sourceMappingURL=draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCK,CAAA"}
@@ -0,0 +1,43 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../schemas';
3
+ const body = v.object({
4
+ bcc: v.array(marcoSchemas.string.email()),
5
+ cc: v.array(marcoSchemas.string.email()),
6
+ content: v.unknown(),
7
+ replyTo: v.array(marcoSchemas.string.email()),
8
+ subject: marcoSchemas.string.required(),
9
+ to: v.array(marcoSchemas.string.email()),
10
+ });
11
+ export const draft = {
12
+ model: v.object({
13
+ body: body,
14
+ emailAccountId: marcoSchemas.string.required(),
15
+ id: marcoSchemas.string.required(),
16
+ referencedMessageId: marcoSchemas.string.nullable(),
17
+ }),
18
+ mutators: {
19
+ create: {
20
+ delta: v.object({
21
+ body: body,
22
+ emailAccountId: marcoSchemas.string.required(),
23
+ id: marcoSchemas.string.required(),
24
+ referencedMessageId: marcoSchemas.string.nullable(),
25
+ }),
26
+ },
27
+ delete: {
28
+ delta: v.object({
29
+ id: marcoSchemas.string.required(),
30
+ }),
31
+ },
32
+ update: {
33
+ delta: v.object({
34
+ body: v.partial(body),
35
+ id: marcoSchemas.string.required(),
36
+ }),
37
+ },
38
+ },
39
+ name: 'draft',
40
+ pullURL: '/v1/pv/sync/pull/draft',
41
+ pushURL: '/v1/pv/sync/push/draft',
42
+ schemaVersion: 'v1',
43
+ };
@@ -111,6 +111,111 @@ export declare const marcoClients: {
111
111
  pushURL: null;
112
112
  schemaVersion: "v1";
113
113
  };
114
+ draft: {
115
+ model: import("valibot").ObjectSchema<{
116
+ readonly body: import("valibot").ObjectSchema<{
117
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
118
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
119
+ readonly content: import("valibot").UnknownSchema;
120
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
121
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
122
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
123
+ }, undefined>;
124
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
125
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
126
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
127
+ }, undefined>;
128
+ mutators: {
129
+ create: {
130
+ delta: import("valibot").ObjectSchema<{
131
+ readonly body: import("valibot").ObjectSchema<{
132
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
133
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
134
+ readonly content: import("valibot").UnknownSchema;
135
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
136
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
137
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
138
+ }, undefined>;
139
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
140
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
141
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
142
+ }, undefined>;
143
+ };
144
+ delete: {
145
+ delta: import("valibot").ObjectSchema<{
146
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
147
+ }, undefined>;
148
+ };
149
+ update: {
150
+ delta: import("valibot").ObjectSchema<{
151
+ readonly body: Omit<import("valibot").ObjectSchema<{
152
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
153
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
154
+ readonly content: import("valibot").UnknownSchema;
155
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
156
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
157
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
158
+ }, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
159
+ readonly entries: {
160
+ readonly bcc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
161
+ readonly cc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
162
+ readonly content: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
163
+ readonly replyTo: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
164
+ readonly subject: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
165
+ readonly to: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
166
+ };
167
+ readonly '~standard': import("valibot").StandardSchemaProps<{
168
+ bcc?: string[] | undefined;
169
+ cc?: string[] | undefined;
170
+ replyTo?: string[] | undefined;
171
+ to?: string[] | undefined;
172
+ content?: unknown;
173
+ subject?: string | undefined;
174
+ }, {
175
+ bcc?: string[] | undefined;
176
+ cc?: string[] | undefined;
177
+ replyTo?: string[] | undefined;
178
+ to?: string[] | undefined;
179
+ content?: unknown;
180
+ subject?: string | undefined;
181
+ }>;
182
+ readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
183
+ bcc?: string[] | undefined;
184
+ cc?: string[] | undefined;
185
+ replyTo?: string[] | undefined;
186
+ to?: string[] | undefined;
187
+ content?: unknown;
188
+ subject?: string | undefined;
189
+ }, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
190
+ readonly '~types'?: {
191
+ readonly input: {
192
+ bcc?: string[] | undefined;
193
+ cc?: string[] | undefined;
194
+ replyTo?: string[] | undefined;
195
+ to?: string[] | undefined;
196
+ content?: unknown;
197
+ subject?: string | undefined;
198
+ };
199
+ readonly output: {
200
+ bcc?: string[] | undefined;
201
+ cc?: string[] | undefined;
202
+ replyTo?: string[] | undefined;
203
+ to?: string[] | undefined;
204
+ content?: unknown;
205
+ subject?: string | undefined;
206
+ };
207
+ readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
208
+ } | undefined;
209
+ };
210
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
211
+ }, undefined>;
212
+ };
213
+ };
214
+ name: "draft";
215
+ pullURL: "/v1/pv/sync/pull/draft";
216
+ pushURL: "/v1/pv/sync/push/draft";
217
+ schemaVersion: "v1";
218
+ };
114
219
  thread: {
115
220
  model: import("valibot").ObjectSchema<{
116
221
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
@@ -1,11 +1,13 @@
1
1
  import { account } from './account';
2
2
  import { contact } from './contact';
3
+ import { draft } from './draft';
3
4
  import { thread } from './thread';
4
5
  import { user } from './user';
5
6
  export { marcoClientsUtils } from './utils';
6
7
  export const marcoClients = {
7
8
  account,
8
9
  contact,
10
+ draft,
9
11
  thread,
10
12
  user,
11
13
  };
@@ -2,6 +2,17 @@ import { GenericSchema } from 'valibot';
2
2
  import { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
+ emailMessage: {
6
+ htmlGet: EndpointConfig<"/v1/pv/message/:messageId/html", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
9
+ }, undefined>, import("valibot").ObjectSchema<{
10
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
11
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
12
+ }, undefined>, import("valibot").ObjectSchema<{
13
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
14
+ }, undefined>], undefined>>;
15
+ };
5
16
  sync: {
6
17
  pull: {
7
18
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -84,6 +95,44 @@ export declare const endpoints: {
84
95
  }, undefined>;
85
96
  readonly status: import("valibot").LiteralSchema<200, undefined>;
86
97
  }, undefined>], undefined>>;
98
+ draft: EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
99
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
100
+ readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
101
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
102
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
103
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
104
+ }, undefined>, import("valibot").ObjectSchema<{
105
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
106
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
107
+ }, undefined>, import("valibot").ObjectSchema<{
108
+ readonly data: import("valibot").ObjectSchema<{
109
+ readonly cookie: import("valibot").NumberSchema<undefined>;
110
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
111
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
112
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
113
+ }, undefined>, import("valibot").ObjectSchema<{
114
+ readonly key: import("valibot").StringSchema<undefined>;
115
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
116
+ }, undefined>, import("valibot").ObjectSchema<{
117
+ readonly key: import("valibot").StringSchema<undefined>;
118
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
119
+ readonly value: import("valibot").ObjectSchema<{
120
+ readonly body: import("valibot").ObjectSchema<{
121
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
122
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
123
+ readonly content: import("valibot").UnknownSchema;
124
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
125
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
126
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
127
+ }, undefined>;
128
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
129
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
130
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
131
+ }, undefined>;
132
+ }, undefined>], undefined>, undefined>;
133
+ }, undefined>;
134
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
135
+ }, undefined>], undefined>>;
87
136
  thread: EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
88
137
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
89
138
  readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
@@ -271,6 +320,108 @@ export declare const endpoints: {
271
320
  }, undefined>, import("valibot").ObjectSchema<{
272
321
  readonly status: import("valibot").LiteralSchema<200, undefined>;
273
322
  }, undefined>], undefined>>;
323
+ draft: EndpointConfig<"/v1/pv/sync/push/draft", import("valibot").ObjectSchema<{
324
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
325
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
326
+ readonly args: import("valibot").ObjectSchema<{
327
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
328
+ }, undefined>;
329
+ readonly clientID: import("valibot").StringSchema<undefined>;
330
+ readonly id: import("valibot").NumberSchema<undefined>;
331
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
332
+ }, undefined>, import("valibot").ObjectSchema<{
333
+ readonly args: import("valibot").ObjectSchema<{
334
+ readonly body: Omit<import("valibot").ObjectSchema<{
335
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
336
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
337
+ readonly content: import("valibot").UnknownSchema;
338
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
339
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
340
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
341
+ }, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
342
+ readonly entries: {
343
+ readonly bcc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
344
+ readonly cc: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
345
+ readonly content: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
346
+ readonly replyTo: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
347
+ readonly subject: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
348
+ readonly to: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
349
+ };
350
+ readonly '~standard': import("valibot").StandardSchemaProps<{
351
+ bcc?: string[] | undefined;
352
+ cc?: string[] | undefined;
353
+ replyTo?: string[] | undefined;
354
+ to?: string[] | undefined;
355
+ content?: unknown;
356
+ subject?: string | undefined;
357
+ }, {
358
+ bcc?: string[] | undefined;
359
+ cc?: string[] | undefined;
360
+ replyTo?: string[] | undefined;
361
+ to?: string[] | undefined;
362
+ content?: unknown;
363
+ subject?: string | undefined;
364
+ }>;
365
+ readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
366
+ bcc?: string[] | undefined;
367
+ cc?: string[] | undefined;
368
+ replyTo?: string[] | undefined;
369
+ to?: string[] | undefined;
370
+ content?: unknown;
371
+ subject?: string | undefined;
372
+ }, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
373
+ readonly '~types'?: {
374
+ readonly input: {
375
+ bcc?: string[] | undefined;
376
+ cc?: string[] | undefined;
377
+ replyTo?: string[] | undefined;
378
+ to?: string[] | undefined;
379
+ content?: unknown;
380
+ subject?: string | undefined;
381
+ };
382
+ readonly output: {
383
+ bcc?: string[] | undefined;
384
+ cc?: string[] | undefined;
385
+ replyTo?: string[] | undefined;
386
+ to?: string[] | undefined;
387
+ content?: unknown;
388
+ subject?: string | undefined;
389
+ };
390
+ readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
391
+ } | undefined;
392
+ };
393
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
394
+ }, undefined>;
395
+ readonly clientID: import("valibot").StringSchema<undefined>;
396
+ readonly id: import("valibot").NumberSchema<undefined>;
397
+ readonly name: import("valibot").LiteralSchema<"update", undefined>;
398
+ }, undefined>, import("valibot").ObjectSchema<{
399
+ readonly args: import("valibot").ObjectSchema<{
400
+ readonly body: import("valibot").ObjectSchema<{
401
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
402
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
403
+ readonly content: import("valibot").UnknownSchema;
404
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
405
+ readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
406
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
407
+ }, undefined>;
408
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
409
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
410
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
411
+ }, undefined>;
412
+ readonly clientID: import("valibot").StringSchema<undefined>;
413
+ readonly id: import("valibot").NumberSchema<undefined>;
414
+ readonly name: import("valibot").LiteralSchema<"create", undefined>;
415
+ }, undefined>], undefined>, undefined>;
416
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
417
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
418
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
419
+ }, undefined>, import("valibot").ObjectSchema<{
420
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
421
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
422
+ }, undefined>, import("valibot").ObjectSchema<{
423
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
424
+ }, undefined>], undefined>>;
274
425
  thread: EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
275
426
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
276
427
  readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,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"}
@@ -0,0 +1,11 @@
1
+ import * as v from 'valibot';
2
+ export declare const emailMessageHtmlGet: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
4
+ readonly status: v.LiteralSchema<401, undefined>;
5
+ }, undefined>, v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
7
+ readonly status: v.LiteralSchema<404, undefined>;
8
+ }, undefined>, v.ObjectSchema<{
9
+ readonly status: v.LiteralSchema<204, undefined>;
10
+ }, undefined>], undefined>>;
11
+ //# sourceMappingURL=email-message-html-get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-message-html-get.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/email-message/email-message-html-get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB;;;;;;;;2BAU9B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { authenticationFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
4
+ export const emailMessageHtmlGet = createEndpoint({
5
+ method: 'GET',
6
+ path: '/v1/pv/message/:messageId/html',
7
+ response: v.union([
8
+ authenticationFailedErrorSchema,
9
+ messageNotFoundErrorSchema,
10
+ v.object({
11
+ status: v.literal(204),
12
+ }),
13
+ ]),
14
+ });
@@ -0,0 +1,12 @@
1
+ export declare const emailMessage: {
2
+ htmlGet: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
4
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
5
+ }, undefined>, import("valibot").ObjectSchema<{
6
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
7
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
8
+ }, undefined>, import("valibot").ObjectSchema<{
9
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
10
+ }, undefined>], undefined>>;
11
+ };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/email-message/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;CAExB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { emailMessageHtmlGet } from './email-message-html-get';
2
+ export const emailMessage = {
3
+ htmlGet: emailMessageHtmlGet,
4
+ };