@marcoappio/marco-config 2.0.161 → 2.0.163

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 (32) hide show
  1. package/dist/clients/draft.d.ts +66 -11
  2. package/dist/clients/draft.d.ts.map +1 -1
  3. package/dist/clients/draft.js +8 -1
  4. package/dist/clients/index.d.ts +66 -11
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/index.d.ts +71 -13
  7. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  8. package/dist/sdk/endpoints/private/{email-message/email-message-html-get.d.ts → emailMessage/getEmailMessageHTML.d.ts} +6 -3
  9. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
  10. package/dist/sdk/endpoints/private/{email-message/email-message-html-get.js → emailMessage/getEmailMessageHTML.js} +5 -2
  11. package/dist/sdk/endpoints/private/{email-message → emailMessage}/index.d.ts +5 -2
  12. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  13. package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
  14. package/dist/sdk/endpoints/private/index.d.ts +71 -13
  15. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/index.js +1 -1
  17. package/dist/sdk/endpoints/private/sync/index.d.ts +66 -11
  18. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  19. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +6 -1
  20. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +6 -1
  22. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  23. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +60 -10
  24. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  25. package/dist/sdk/endpoints/private/sync/push/index.d.ts +60 -10
  26. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  27. package/dist/sdk/index.d.ts +71 -13
  28. package/dist/sdk/index.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/sdk/endpoints/private/email-message/email-message-html-get.d.ts.map +0 -1
  31. package/dist/sdk/endpoints/private/email-message/index.d.ts.map +0 -1
  32. package/dist/sdk/endpoints/private/email-message/index.js +0 -4
@@ -4,7 +4,12 @@ export declare const draft: {
4
4
  readonly body: v.ObjectSchema<{
5
5
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
6
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;
7
+ readonly content: v.ObjectSchema<{
8
+ readonly content: v.ArraySchema<v.LooseObjectSchema<{
9
+ readonly type: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
10
+ }, undefined>, undefined>;
11
+ readonly type: v.UnionSchema<[v.LiteralSchema<"doc", undefined>], undefined>;
12
+ }, undefined>;
8
13
  readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
9
14
  readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
10
15
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -19,7 +24,12 @@ export declare const draft: {
19
24
  readonly body: v.ObjectSchema<{
20
25
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
21
26
  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;
27
+ readonly content: v.ObjectSchema<{
28
+ readonly content: v.ArraySchema<v.LooseObjectSchema<{
29
+ readonly type: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ }, undefined>, undefined>;
31
+ readonly type: v.UnionSchema<[v.LiteralSchema<"doc", undefined>], undefined>;
32
+ }, undefined>;
23
33
  readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
24
34
  readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
25
35
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -39,7 +49,12 @@ export declare const draft: {
39
49
  readonly body: Omit<v.ObjectSchema<{
40
50
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
41
51
  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;
52
+ readonly content: v.ObjectSchema<{
53
+ readonly content: v.ArraySchema<v.LooseObjectSchema<{
54
+ readonly type: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
55
+ }, undefined>, undefined>;
56
+ readonly type: v.UnionSchema<[v.LiteralSchema<"doc", undefined>], undefined>;
57
+ }, undefined>;
43
58
  readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
44
59
  readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
45
60
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -47,7 +62,12 @@ export declare const draft: {
47
62
  readonly entries: {
48
63
  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
64
  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>;
65
+ readonly content: v.OptionalSchema<v.ObjectSchema<{
66
+ readonly content: v.ArraySchema<v.LooseObjectSchema<{
67
+ readonly type: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
68
+ }, undefined>, undefined>;
69
+ readonly type: v.UnionSchema<[v.LiteralSchema<"doc", undefined>], undefined>;
70
+ }, undefined>, undefined>;
51
71
  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
72
  readonly subject: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
53
73
  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>;
@@ -55,44 +75,79 @@ export declare const draft: {
55
75
  readonly '~standard': v.StandardSchemaProps<{
56
76
  bcc?: string[] | undefined;
57
77
  cc?: string[] | undefined;
78
+ content?: {
79
+ type: "doc";
80
+ content: ({
81
+ type: string;
82
+ } & {
83
+ [key: string]: unknown;
84
+ })[];
85
+ } | undefined;
58
86
  replyTo?: string[] | undefined;
59
87
  to?: string[] | undefined;
60
- content?: unknown;
61
88
  subject?: string | undefined;
62
89
  }, {
63
90
  bcc?: string[] | undefined;
64
91
  cc?: string[] | undefined;
92
+ content?: {
93
+ type: "doc";
94
+ content: ({
95
+ type: string;
96
+ } & {
97
+ [key: string]: unknown;
98
+ })[];
99
+ } | undefined;
65
100
  replyTo?: string[] | undefined;
66
101
  to?: string[] | undefined;
67
- content?: unknown;
68
102
  subject?: string | undefined;
69
103
  }>;
70
104
  readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
71
105
  bcc?: string[] | undefined;
72
106
  cc?: string[] | undefined;
107
+ content?: {
108
+ type: "doc";
109
+ content: ({
110
+ type: string;
111
+ } & {
112
+ [key: string]: unknown;
113
+ })[];
114
+ } | undefined;
73
115
  replyTo?: string[] | undefined;
74
116
  to?: string[] | undefined;
75
- content?: unknown;
76
117
  subject?: string | undefined;
77
- }, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
118
+ }, v.LiteralIssue | v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.UnionIssue<v.LiteralIssue> | v.NonOptionalIssue | v.ArrayIssue | v.LooseObjectIssue>;
78
119
  readonly '~types'?: {
79
120
  readonly input: {
80
121
  bcc?: string[] | undefined;
81
122
  cc?: string[] | undefined;
123
+ content?: {
124
+ type: "doc";
125
+ content: ({
126
+ type: string;
127
+ } & {
128
+ [key: string]: unknown;
129
+ })[];
130
+ } | undefined;
82
131
  replyTo?: string[] | undefined;
83
132
  to?: string[] | undefined;
84
- content?: unknown;
85
133
  subject?: string | undefined;
86
134
  };
87
135
  readonly output: {
88
136
  bcc?: string[] | undefined;
89
137
  cc?: string[] | undefined;
138
+ content?: {
139
+ type: "doc";
140
+ content: ({
141
+ type: string;
142
+ } & {
143
+ [key: string]: unknown;
144
+ })[];
145
+ } | undefined;
90
146
  replyTo?: string[] | undefined;
91
147
  to?: string[] | undefined;
92
- content?: unknown;
93
148
  subject?: string | undefined;
94
149
  };
95
- readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
150
+ readonly issue: v.LiteralIssue | v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.UnionIssue<v.LiteralIssue> | v.NonOptionalIssue | v.ArrayIssue | v.LooseObjectIssue;
96
151
  } | undefined;
97
152
  };
98
153
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -1 +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"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCK,CAAA"}
@@ -3,7 +3,14 @@ import { marcoSchemas } from '../schemas';
3
3
  const body = v.object({
4
4
  bcc: v.array(marcoSchemas.string.email()),
5
5
  cc: v.array(marcoSchemas.string.email()),
6
- content: v.unknown(),
6
+ content: v.object({
7
+ content: v.array(v.looseObject({
8
+ type: marcoSchemas.string.required(),
9
+ })),
10
+ type: v.union([
11
+ v.literal('doc'),
12
+ ]),
13
+ }),
7
14
  replyTo: v.array(marcoSchemas.string.email()),
8
15
  subject: marcoSchemas.string.required(),
9
16
  to: v.array(marcoSchemas.string.email()),
@@ -116,7 +116,12 @@ export declare const marcoClients: {
116
116
  readonly body: import("valibot").ObjectSchema<{
117
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
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;
119
+ readonly content: import("valibot").ObjectSchema<{
120
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
121
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
122
+ }, undefined>, undefined>;
123
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
124
+ }, undefined>;
120
125
  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
126
  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
127
  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>;
@@ -131,7 +136,12 @@ export declare const marcoClients: {
131
136
  readonly body: import("valibot").ObjectSchema<{
132
137
  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
138
  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;
139
+ readonly content: import("valibot").ObjectSchema<{
140
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
141
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
142
+ }, undefined>, undefined>;
143
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
144
+ }, undefined>;
135
145
  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
146
  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
147
  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>;
@@ -151,7 +161,12 @@ export declare const marcoClients: {
151
161
  readonly body: Omit<import("valibot").ObjectSchema<{
152
162
  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
163
  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;
164
+ readonly content: import("valibot").ObjectSchema<{
165
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
166
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
167
+ }, undefined>, undefined>;
168
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
169
+ }, undefined>;
155
170
  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
171
  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
172
  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>;
@@ -159,7 +174,12 @@ export declare const marcoClients: {
159
174
  readonly entries: {
160
175
  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
176
  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>;
177
+ readonly content: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
178
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
179
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
180
+ }, undefined>, undefined>;
181
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
182
+ }, undefined>, undefined>;
163
183
  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
184
  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
185
  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>;
@@ -167,44 +187,79 @@ export declare const marcoClients: {
167
187
  readonly '~standard': import("valibot").StandardSchemaProps<{
168
188
  bcc?: string[] | undefined;
169
189
  cc?: string[] | undefined;
190
+ content?: {
191
+ type: "doc";
192
+ content: ({
193
+ type: string;
194
+ } & {
195
+ [key: string]: unknown;
196
+ })[];
197
+ } | undefined;
170
198
  replyTo?: string[] | undefined;
171
199
  to?: string[] | undefined;
172
- content?: unknown;
173
200
  subject?: string | undefined;
174
201
  }, {
175
202
  bcc?: string[] | undefined;
176
203
  cc?: string[] | undefined;
204
+ content?: {
205
+ type: "doc";
206
+ content: ({
207
+ type: string;
208
+ } & {
209
+ [key: string]: unknown;
210
+ })[];
211
+ } | undefined;
177
212
  replyTo?: string[] | undefined;
178
213
  to?: string[] | undefined;
179
- content?: unknown;
180
214
  subject?: string | undefined;
181
215
  }>;
182
216
  readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
183
217
  bcc?: string[] | undefined;
184
218
  cc?: string[] | undefined;
219
+ content?: {
220
+ type: "doc";
221
+ content: ({
222
+ type: string;
223
+ } & {
224
+ [key: string]: unknown;
225
+ })[];
226
+ } | undefined;
185
227
  replyTo?: string[] | undefined;
186
228
  to?: string[] | undefined;
187
- content?: unknown;
188
229
  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>;
230
+ }, import("valibot").LiteralIssue | import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").UnionIssue<import("valibot").LiteralIssue> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue | import("valibot").LooseObjectIssue>;
190
231
  readonly '~types'?: {
191
232
  readonly input: {
192
233
  bcc?: string[] | undefined;
193
234
  cc?: string[] | undefined;
235
+ content?: {
236
+ type: "doc";
237
+ content: ({
238
+ type: string;
239
+ } & {
240
+ [key: string]: unknown;
241
+ })[];
242
+ } | undefined;
194
243
  replyTo?: string[] | undefined;
195
244
  to?: string[] | undefined;
196
- content?: unknown;
197
245
  subject?: string | undefined;
198
246
  };
199
247
  readonly output: {
200
248
  bcc?: string[] | undefined;
201
249
  cc?: string[] | undefined;
250
+ content?: {
251
+ type: "doc";
252
+ content: ({
253
+ type: string;
254
+ } & {
255
+ [key: string]: unknown;
256
+ })[];
257
+ } | undefined;
202
258
  replyTo?: string[] | undefined;
203
259
  to?: string[] | undefined;
204
- content?: unknown;
205
260
  subject?: string | undefined;
206
261
  };
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;
262
+ readonly issue: import("valibot").LiteralIssue | import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").UnionIssue<import("valibot").LiteralIssue> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue | import("valibot").LooseObjectIssue;
208
263
  } | undefined;
209
264
  };
210
265
  readonly id: 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":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,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"}
@@ -3,14 +3,17 @@ import { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
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<{
6
+ getHTML: 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
7
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
8
  readonly status: import("valibot").LiteralSchema<401, undefined>;
9
9
  }, undefined>, import("valibot").ObjectSchema<{
10
10
  readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
11
11
  readonly status: import("valibot").LiteralSchema<404, undefined>;
12
12
  }, undefined>, import("valibot").ObjectSchema<{
13
- readonly status: import("valibot").LiteralSchema<204, undefined>;
13
+ readonly data: import("valibot").ObjectSchema<{
14
+ readonly html: import("valibot").StringSchema<undefined>;
15
+ }, undefined>;
16
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
14
17
  }, undefined>], undefined>>;
15
18
  };
16
19
  sync: {
@@ -120,7 +123,12 @@ export declare const endpoints: {
120
123
  readonly body: import("valibot").ObjectSchema<{
121
124
  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
125
  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;
126
+ readonly content: import("valibot").ObjectSchema<{
127
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
128
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
129
+ }, undefined>, undefined>;
130
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
131
+ }, undefined>;
124
132
  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
133
  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
134
  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>;
@@ -334,7 +342,12 @@ export declare const endpoints: {
334
342
  readonly body: Omit<import("valibot").ObjectSchema<{
335
343
  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
344
  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;
345
+ readonly content: import("valibot").ObjectSchema<{
346
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
347
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
348
+ }, undefined>, undefined>;
349
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
350
+ }, undefined>;
338
351
  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
352
  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
353
  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>;
@@ -342,7 +355,12 @@ export declare const endpoints: {
342
355
  readonly entries: {
343
356
  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
357
  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>;
358
+ readonly content: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
359
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
360
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
361
+ }, undefined>, undefined>;
362
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
363
+ }, undefined>, undefined>;
346
364
  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
365
  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
366
  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>;
@@ -350,44 +368,79 @@ export declare const endpoints: {
350
368
  readonly '~standard': import("valibot").StandardSchemaProps<{
351
369
  bcc?: string[] | undefined;
352
370
  cc?: string[] | undefined;
371
+ content?: {
372
+ type: "doc";
373
+ content: ({
374
+ type: string;
375
+ } & {
376
+ [key: string]: unknown;
377
+ })[];
378
+ } | undefined;
353
379
  replyTo?: string[] | undefined;
354
380
  to?: string[] | undefined;
355
- content?: unknown;
356
381
  subject?: string | undefined;
357
382
  }, {
358
383
  bcc?: string[] | undefined;
359
384
  cc?: string[] | undefined;
385
+ content?: {
386
+ type: "doc";
387
+ content: ({
388
+ type: string;
389
+ } & {
390
+ [key: string]: unknown;
391
+ })[];
392
+ } | undefined;
360
393
  replyTo?: string[] | undefined;
361
394
  to?: string[] | undefined;
362
- content?: unknown;
363
395
  subject?: string | undefined;
364
396
  }>;
365
397
  readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
366
398
  bcc?: string[] | undefined;
367
399
  cc?: string[] | undefined;
400
+ content?: {
401
+ type: "doc";
402
+ content: ({
403
+ type: string;
404
+ } & {
405
+ [key: string]: unknown;
406
+ })[];
407
+ } | undefined;
368
408
  replyTo?: string[] | undefined;
369
409
  to?: string[] | undefined;
370
- content?: unknown;
371
410
  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>;
411
+ }, import("valibot").LiteralIssue | import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").UnionIssue<import("valibot").LiteralIssue> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue | import("valibot").LooseObjectIssue>;
373
412
  readonly '~types'?: {
374
413
  readonly input: {
375
414
  bcc?: string[] | undefined;
376
415
  cc?: string[] | undefined;
416
+ content?: {
417
+ type: "doc";
418
+ content: ({
419
+ type: string;
420
+ } & {
421
+ [key: string]: unknown;
422
+ })[];
423
+ } | undefined;
377
424
  replyTo?: string[] | undefined;
378
425
  to?: string[] | undefined;
379
- content?: unknown;
380
426
  subject?: string | undefined;
381
427
  };
382
428
  readonly output: {
383
429
  bcc?: string[] | undefined;
384
430
  cc?: string[] | undefined;
431
+ content?: {
432
+ type: "doc";
433
+ content: ({
434
+ type: string;
435
+ } & {
436
+ [key: string]: unknown;
437
+ })[];
438
+ } | undefined;
385
439
  replyTo?: string[] | undefined;
386
440
  to?: string[] | undefined;
387
- content?: unknown;
388
441
  subject?: string | undefined;
389
442
  };
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;
443
+ readonly issue: import("valibot").LiteralIssue | import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").UnionIssue<import("valibot").LiteralIssue> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue | import("valibot").LooseObjectIssue;
391
444
  } | undefined;
392
445
  };
393
446
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -400,7 +453,12 @@ export declare const endpoints: {
400
453
  readonly body: import("valibot").ObjectSchema<{
401
454
  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
455
  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;
456
+ readonly content: import("valibot").ObjectSchema<{
457
+ readonly content: import("valibot").ArraySchema<import("valibot").LooseObjectSchema<{
458
+ readonly type: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
459
+ }, undefined>, undefined>;
460
+ readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"doc", undefined>], undefined>;
461
+ }, undefined>;
404
462
  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
463
  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
464
  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>;
@@ -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"}
@@ -1,11 +1,14 @@
1
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<{
2
+ export declare const getEmailMessageHTML: 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
3
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
4
4
  readonly status: v.LiteralSchema<401, undefined>;
5
5
  }, undefined>, v.ObjectSchema<{
6
6
  readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
7
7
  readonly status: v.LiteralSchema<404, undefined>;
8
8
  }, undefined>, v.ObjectSchema<{
9
- readonly status: v.LiteralSchema<204, undefined>;
9
+ readonly data: v.ObjectSchema<{
10
+ readonly html: v.StringSchema<undefined>;
11
+ }, undefined>;
12
+ readonly status: v.LiteralSchema<200, undefined>;
10
13
  }, undefined>], undefined>>;
11
- //# sourceMappingURL=email-message-html-get.d.ts.map
14
+ //# sourceMappingURL=getEmailMessageHTML.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;2BAa9B,CAAA"}
@@ -1,14 +1,17 @@
1
1
  import * as v from 'valibot';
2
2
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
3
  import { authenticationFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
4
- export const emailMessageHtmlGet = createEndpoint({
4
+ export const getEmailMessageHTML = createEndpoint({
5
5
  method: 'GET',
6
6
  path: '/v1/pv/message/:messageId/html',
7
7
  response: v.union([
8
8
  authenticationFailedErrorSchema,
9
9
  messageNotFoundErrorSchema,
10
10
  v.object({
11
- status: v.literal(204),
11
+ data: v.object({
12
+ html: v.string(),
13
+ }),
14
+ status: v.literal(200),
12
15
  }),
13
16
  ]),
14
17
  });
@@ -1,12 +1,15 @@
1
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<{
2
+ getHTML: 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
3
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
4
4
  readonly status: import("valibot").LiteralSchema<401, undefined>;
5
5
  }, undefined>, import("valibot").ObjectSchema<{
6
6
  readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
7
7
  readonly status: import("valibot").LiteralSchema<404, undefined>;
8
8
  }, undefined>, import("valibot").ObjectSchema<{
9
- readonly status: import("valibot").LiteralSchema<204, undefined>;
9
+ readonly data: import("valibot").ObjectSchema<{
10
+ readonly html: import("valibot").StringSchema<undefined>;
11
+ }, undefined>;
12
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
10
13
  }, undefined>], undefined>>;
11
14
  };
12
15
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAExB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { getEmailMessageHTML } from './getEmailMessageHTML';
2
+ export const emailMessage = {
3
+ getHTML: getEmailMessageHTML,
4
+ };