@marcoappio/marco-config 2.0.225 → 2.0.227

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/index.d.ts +18 -4
  2. package/dist/clients/index.d.ts.map +1 -1
  3. package/dist/clients/thread.d.ts +18 -4
  4. package/dist/clients/thread.d.ts.map +1 -1
  5. package/dist/clients/thread.js +24 -7
  6. package/dist/schemas.d.ts +1 -0
  7. package/dist/schemas.d.ts.map +1 -1
  8. package/dist/sdk/endpoints/index.d.ts +43 -4
  9. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  10. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
  11. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
  12. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
  13. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +19 -0
  14. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/emailMessage/index.js +2 -0
  16. package/dist/sdk/endpoints/private/index.d.ts +43 -4
  17. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/index.d.ts +24 -4
  19. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/push/index.d.ts +24 -4
  21. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +24 -4
  23. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/push/thread.js +24 -6
  25. package/dist/sdk/index.d.ts +49 -4
  26. package/dist/sdk/index.d.ts.map +1 -1
  27. package/dist/sdk/validation/errors.d.ts +12 -0
  28. package/dist/sdk/validation/errors.d.ts.map +1 -1
  29. package/dist/sdk/validation/errors.js +5 -0
  30. package/dist/sdk/validation/index.d.ts +6 -0
  31. package/dist/sdk/validation/index.d.ts.map +1 -1
  32. package/dist/types/SDKError.d.ts +1 -1
  33. package/dist/types/SDKError.d.ts.map +1 -1
  34. package/package.json +1 -1
@@ -284,15 +284,29 @@ export declare const marcoClients: {
284
284
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
285
285
  }, undefined>;
286
286
  };
287
- setSpecialUse: {
287
+ setSeen: {
288
288
  delta: import("valibot").ObjectSchema<{
289
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
289
+ readonly seen: import("valibot").BooleanSchema<undefined>;
290
290
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
291
291
  }, undefined>;
292
292
  };
293
- setThreadSeen: {
293
+ setArchive: {
294
+ delta: import("valibot").ObjectSchema<{
295
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
296
+ }, undefined>;
297
+ };
298
+ setInbox: {
299
+ delta: import("valibot").ObjectSchema<{
300
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
301
+ }, undefined>;
302
+ };
303
+ setSpam: {
304
+ delta: import("valibot").ObjectSchema<{
305
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
306
+ }, undefined>;
307
+ };
308
+ setTrash: {
294
309
  delta: import("valibot").ObjectSchema<{
295
- readonly seen: import("valibot").BooleanSchema<undefined>;
296
310
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
297
311
  }, undefined>;
298
312
  };
@@ -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"}
@@ -54,15 +54,29 @@ export declare const thread: {
54
54
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
55
55
  }, undefined>;
56
56
  };
57
- setSpecialUse: {
57
+ setSeen: {
58
58
  delta: v.ObjectSchema<{
59
- readonly specialUse: v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
59
+ readonly seen: v.BooleanSchema<undefined>;
60
60
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
61
61
  }, undefined>;
62
62
  };
63
- setThreadSeen: {
63
+ setArchive: {
64
+ delta: v.ObjectSchema<{
65
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
66
+ }, undefined>;
67
+ };
68
+ setInbox: {
69
+ delta: v.ObjectSchema<{
70
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
71
+ }, undefined>;
72
+ };
73
+ setSpam: {
74
+ delta: v.ObjectSchema<{
75
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
76
+ }, undefined>;
77
+ };
78
+ setTrash: {
64
79
  delta: v.ObjectSchema<{
65
- readonly seen: v.BooleanSchema<undefined>;
66
80
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
67
81
  }, undefined>;
68
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDI,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA2C5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDI,CAAA"}
@@ -11,6 +11,28 @@ const inlineAttachment = v.object({
11
11
  mimeType: marcoSchemas.string.required(),
12
12
  size: marcoSchemas.number.positiveInteger(),
13
13
  });
14
+ const specialUseMutators = {
15
+ setArchive: {
16
+ delta: v.object({
17
+ threadId: marcoSchemas.string.uuid(),
18
+ }),
19
+ },
20
+ setInbox: {
21
+ delta: v.object({
22
+ threadId: marcoSchemas.string.uuid(),
23
+ }),
24
+ },
25
+ setSpam: {
26
+ delta: v.object({
27
+ threadId: marcoSchemas.string.uuid(),
28
+ }),
29
+ },
30
+ setTrash: {
31
+ delta: v.object({
32
+ threadId: marcoSchemas.string.uuid(),
33
+ }),
34
+ },
35
+ };
14
36
  export const thread = {
15
37
  model: v.object({
16
38
  bagOfWords: v.array(marcoSchemas.string.required()),
@@ -35,6 +57,7 @@ export const thread = {
35
57
  })),
36
58
  }),
37
59
  mutators: {
60
+ ...specialUseMutators,
38
61
  delete: {
39
62
  delta: v.object({
40
63
  threadId: marcoSchemas.string.uuid(),
@@ -46,13 +69,7 @@ export const thread = {
46
69
  threadId: marcoSchemas.string.uuid(),
47
70
  }),
48
71
  },
49
- setSpecialUse: {
50
- delta: v.object({
51
- specialUse: marcoSchemas.labelSpecialUse(),
52
- threadId: marcoSchemas.string.uuid(),
53
- }),
54
- },
55
- setThreadSeen: {
72
+ setSeen: {
56
73
  delta: v.object({
57
74
  seen: v.boolean(),
58
75
  threadId: marcoSchemas.string.uuid(),
package/dist/schemas.d.ts CHANGED
@@ -40,4 +40,5 @@ export declare const marcoSchemas: {
40
40
  uuid: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
41
41
  };
42
42
  };
43
+ export type LabelSpecialUse = v.InferInput<ReturnType<typeof marcoSchemas.labelSpecialUse>>;
43
44
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8BP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;;;CAW1B,CAAA"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8BP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;;;CAW1B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
@@ -3,6 +3,25 @@ import { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
5
  emailMessage: {
6
+ getAttachment: EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
+ readonly data: import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
+ }, undefined>;
10
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
11
+ }, undefined>, import("valibot").ObjectSchema<{
12
+ readonly data: import("valibot").ObjectSchema<{
13
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
14
+ }, undefined>;
15
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
16
+ }, undefined>, import("valibot").ObjectSchema<{
17
+ readonly data: import("valibot").ObjectSchema<{
18
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
19
+ }, undefined>;
20
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
21
+ }, undefined>, import("valibot").ObjectSchema<{
22
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
23
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
24
+ }, undefined>], undefined>>;
6
25
  getHTML: EndpointConfig<"/v1/pv/thread/:threadId/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
26
  readonly data: import("valibot").ObjectSchema<{
8
27
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -538,6 +557,20 @@ export declare const endpoints: {
538
557
  readonly clientID: import("valibot").StringSchema<undefined>;
539
558
  readonly id: import("valibot").NumberSchema<undefined>;
540
559
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
560
+ }, undefined> | import("valibot").ObjectSchema<{
561
+ readonly args: import("valibot").ObjectSchema<{
562
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
563
+ }, undefined>;
564
+ readonly clientID: import("valibot").StringSchema<undefined>;
565
+ readonly id: import("valibot").NumberSchema<undefined>;
566
+ readonly name: import("valibot").LiteralSchema<"setArchive", undefined>;
567
+ }, undefined> | import("valibot").ObjectSchema<{
568
+ readonly args: import("valibot").ObjectSchema<{
569
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
570
+ }, undefined>;
571
+ readonly clientID: import("valibot").StringSchema<undefined>;
572
+ readonly id: import("valibot").NumberSchema<undefined>;
573
+ readonly name: import("valibot").LiteralSchema<"setInbox", undefined>;
541
574
  }, undefined> | import("valibot").ObjectSchema<{
542
575
  readonly args: import("valibot").ObjectSchema<{
543
576
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -548,20 +581,26 @@ export declare const endpoints: {
548
581
  readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
549
582
  }, undefined> | import("valibot").ObjectSchema<{
550
583
  readonly args: import("valibot").ObjectSchema<{
551
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
584
+ readonly seen: import("valibot").BooleanSchema<undefined>;
552
585
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
553
586
  }, undefined>;
554
587
  readonly clientID: import("valibot").StringSchema<undefined>;
555
588
  readonly id: import("valibot").NumberSchema<undefined>;
556
- readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
589
+ readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
590
+ }, undefined> | import("valibot").ObjectSchema<{
591
+ readonly args: import("valibot").ObjectSchema<{
592
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
593
+ }, undefined>;
594
+ readonly clientID: import("valibot").StringSchema<undefined>;
595
+ readonly id: import("valibot").NumberSchema<undefined>;
596
+ readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
557
597
  }, undefined> | import("valibot").ObjectSchema<{
558
598
  readonly args: import("valibot").ObjectSchema<{
559
- readonly seen: import("valibot").BooleanSchema<undefined>;
560
599
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
561
600
  }, undefined>;
562
601
  readonly clientID: import("valibot").StringSchema<undefined>;
563
602
  readonly id: import("valibot").NumberSchema<undefined>;
564
- readonly name: import("valibot").LiteralSchema<"setThreadSeen", undefined>;
603
+ readonly name: import("valibot").LiteralSchema<"setTrash", undefined>;
565
604
  }, undefined>)[], undefined>, undefined>;
566
605
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
567
606
  readonly data: 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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -0,0 +1,21 @@
1
+ import * as v from 'valibot';
2
+ export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
6
+ readonly status: v.LiteralSchema<401, undefined>;
7
+ }, undefined>, v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<404, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<404, undefined>;
17
+ }, undefined>, v.ObjectSchema<{
18
+ readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
19
+ readonly status: v.LiteralSchema<200, undefined>;
20
+ }, undefined>], undefined>>;
21
+ //# sourceMappingURL=getEmailMessageAttachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { attachmentNotFoundErrorSchema, authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
4
+ export const getEmailMessageAttachment = createEndpoint({
5
+ method: 'GET',
6
+ path: '/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId',
7
+ response: v.union([
8
+ authFailedErrorSchema,
9
+ messageNotFoundErrorSchema,
10
+ attachmentNotFoundErrorSchema,
11
+ v.object({
12
+ file: v.nonOptional(v.file()),
13
+ status: v.literal(200),
14
+ }),
15
+ ]),
16
+ });
@@ -1,4 +1,23 @@
1
1
  export declare const emailMessage: {
2
+ getAttachment: import("../../../..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", 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 data: import("valibot").ObjectSchema<{
4
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
6
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
7
+ }, undefined>, import("valibot").ObjectSchema<{
8
+ readonly data: import("valibot").ObjectSchema<{
9
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
10
+ }, undefined>;
11
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
12
+ }, undefined>, import("valibot").ObjectSchema<{
13
+ readonly data: import("valibot").ObjectSchema<{
14
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
15
+ }, undefined>;
16
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
17
+ }, undefined>, import("valibot").ObjectSchema<{
18
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
20
+ }, undefined>], undefined>>;
2
21
  getHTML: import("../../../..").EndpointConfig<"/v1/pv/thread/:threadId/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
22
  readonly data: import("valibot").ObjectSchema<{
4
23
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -1,4 +1,6 @@
1
+ import { getEmailMessageAttachment } from './getEmailMessageAttachment';
1
2
  import { getEmailMessageHTML } from './getEmailMessageHTML';
2
3
  export const emailMessage = {
4
+ getAttachment: getEmailMessageAttachment,
3
5
  getHTML: getEmailMessageHTML,
4
6
  };
@@ -1,5 +1,24 @@
1
1
  export declare const privateGroup: {
2
2
  emailMessage: {
3
+ getAttachment: import("../../..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
4
+ readonly data: import("valibot").ObjectSchema<{
5
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
6
+ }, undefined>;
7
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
8
+ }, undefined>, import("valibot").ObjectSchema<{
9
+ readonly data: import("valibot").ObjectSchema<{
10
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
11
+ }, undefined>;
12
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
13
+ }, undefined>, import("valibot").ObjectSchema<{
14
+ readonly data: import("valibot").ObjectSchema<{
15
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
16
+ }, undefined>;
17
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
18
+ }, undefined>, import("valibot").ObjectSchema<{
19
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
20
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
21
+ }, undefined>], undefined>>;
3
22
  getHTML: import("../../..").EndpointConfig<"/v1/pv/thread/:threadId/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<{
4
23
  readonly data: import("valibot").ObjectSchema<{
5
24
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -535,6 +554,20 @@ export declare const privateGroup: {
535
554
  readonly clientID: import("valibot").StringSchema<undefined>;
536
555
  readonly id: import("valibot").NumberSchema<undefined>;
537
556
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
557
+ }, undefined> | import("valibot").ObjectSchema<{
558
+ readonly args: import("valibot").ObjectSchema<{
559
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
560
+ }, undefined>;
561
+ readonly clientID: import("valibot").StringSchema<undefined>;
562
+ readonly id: import("valibot").NumberSchema<undefined>;
563
+ readonly name: import("valibot").LiteralSchema<"setArchive", undefined>;
564
+ }, undefined> | import("valibot").ObjectSchema<{
565
+ readonly args: import("valibot").ObjectSchema<{
566
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
567
+ }, undefined>;
568
+ readonly clientID: import("valibot").StringSchema<undefined>;
569
+ readonly id: import("valibot").NumberSchema<undefined>;
570
+ readonly name: import("valibot").LiteralSchema<"setInbox", undefined>;
538
571
  }, undefined> | import("valibot").ObjectSchema<{
539
572
  readonly args: import("valibot").ObjectSchema<{
540
573
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -545,20 +578,26 @@ export declare const privateGroup: {
545
578
  readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
546
579
  }, undefined> | import("valibot").ObjectSchema<{
547
580
  readonly args: import("valibot").ObjectSchema<{
548
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
581
+ readonly seen: import("valibot").BooleanSchema<undefined>;
549
582
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
550
583
  }, undefined>;
551
584
  readonly clientID: import("valibot").StringSchema<undefined>;
552
585
  readonly id: import("valibot").NumberSchema<undefined>;
553
- readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
586
+ readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
587
+ }, undefined> | import("valibot").ObjectSchema<{
588
+ readonly args: import("valibot").ObjectSchema<{
589
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
590
+ }, undefined>;
591
+ readonly clientID: import("valibot").StringSchema<undefined>;
592
+ readonly id: import("valibot").NumberSchema<undefined>;
593
+ readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
554
594
  }, undefined> | import("valibot").ObjectSchema<{
555
595
  readonly args: import("valibot").ObjectSchema<{
556
- readonly seen: import("valibot").BooleanSchema<undefined>;
557
596
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
558
597
  }, undefined>;
559
598
  readonly clientID: import("valibot").StringSchema<undefined>;
560
599
  readonly id: import("valibot").NumberSchema<undefined>;
561
- readonly name: import("valibot").LiteralSchema<"setThreadSeen", undefined>;
600
+ readonly name: import("valibot").LiteralSchema<"setTrash", undefined>;
562
601
  }, undefined>)[], undefined>, undefined>;
563
602
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
564
603
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -516,6 +516,20 @@ export declare const sync: {
516
516
  readonly clientID: import("valibot").StringSchema<undefined>;
517
517
  readonly id: import("valibot").NumberSchema<undefined>;
518
518
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
519
+ }, undefined> | import("valibot").ObjectSchema<{
520
+ readonly args: import("valibot").ObjectSchema<{
521
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
522
+ }, undefined>;
523
+ readonly clientID: import("valibot").StringSchema<undefined>;
524
+ readonly id: import("valibot").NumberSchema<undefined>;
525
+ readonly name: import("valibot").LiteralSchema<"setArchive", undefined>;
526
+ }, undefined> | import("valibot").ObjectSchema<{
527
+ readonly args: import("valibot").ObjectSchema<{
528
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
529
+ }, undefined>;
530
+ readonly clientID: import("valibot").StringSchema<undefined>;
531
+ readonly id: import("valibot").NumberSchema<undefined>;
532
+ readonly name: import("valibot").LiteralSchema<"setInbox", undefined>;
519
533
  }, undefined> | import("valibot").ObjectSchema<{
520
534
  readonly args: import("valibot").ObjectSchema<{
521
535
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -526,20 +540,26 @@ export declare const sync: {
526
540
  readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
527
541
  }, undefined> | import("valibot").ObjectSchema<{
528
542
  readonly args: import("valibot").ObjectSchema<{
529
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
543
+ readonly seen: import("valibot").BooleanSchema<undefined>;
530
544
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
531
545
  }, undefined>;
532
546
  readonly clientID: import("valibot").StringSchema<undefined>;
533
547
  readonly id: import("valibot").NumberSchema<undefined>;
534
- readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
548
+ readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
549
+ }, undefined> | import("valibot").ObjectSchema<{
550
+ readonly args: import("valibot").ObjectSchema<{
551
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
552
+ }, undefined>;
553
+ readonly clientID: import("valibot").StringSchema<undefined>;
554
+ readonly id: import("valibot").NumberSchema<undefined>;
555
+ readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
535
556
  }, undefined> | import("valibot").ObjectSchema<{
536
557
  readonly args: import("valibot").ObjectSchema<{
537
- readonly seen: import("valibot").BooleanSchema<undefined>;
538
558
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
539
559
  }, undefined>;
540
560
  readonly clientID: import("valibot").StringSchema<undefined>;
541
561
  readonly id: import("valibot").NumberSchema<undefined>;
542
- readonly name: import("valibot").LiteralSchema<"setThreadSeen", undefined>;
562
+ readonly name: import("valibot").LiteralSchema<"setTrash", undefined>;
543
563
  }, undefined>)[], undefined>, undefined>;
544
564
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
545
565
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -240,6 +240,20 @@ export declare const push: {
240
240
  readonly clientID: import("valibot").StringSchema<undefined>;
241
241
  readonly id: import("valibot").NumberSchema<undefined>;
242
242
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
243
+ }, undefined> | import("valibot").ObjectSchema<{
244
+ readonly args: import("valibot").ObjectSchema<{
245
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
246
+ }, undefined>;
247
+ readonly clientID: import("valibot").StringSchema<undefined>;
248
+ readonly id: import("valibot").NumberSchema<undefined>;
249
+ readonly name: import("valibot").LiteralSchema<"setArchive", undefined>;
250
+ }, undefined> | import("valibot").ObjectSchema<{
251
+ readonly args: import("valibot").ObjectSchema<{
252
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
253
+ }, undefined>;
254
+ readonly clientID: import("valibot").StringSchema<undefined>;
255
+ readonly id: import("valibot").NumberSchema<undefined>;
256
+ readonly name: import("valibot").LiteralSchema<"setInbox", undefined>;
243
257
  }, undefined> | import("valibot").ObjectSchema<{
244
258
  readonly args: import("valibot").ObjectSchema<{
245
259
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -250,20 +264,26 @@ export declare const push: {
250
264
  readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
251
265
  }, undefined> | import("valibot").ObjectSchema<{
252
266
  readonly args: import("valibot").ObjectSchema<{
253
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
267
+ readonly seen: import("valibot").BooleanSchema<undefined>;
254
268
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
255
269
  }, undefined>;
256
270
  readonly clientID: import("valibot").StringSchema<undefined>;
257
271
  readonly id: import("valibot").NumberSchema<undefined>;
258
- readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
272
+ readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
273
+ }, undefined> | import("valibot").ObjectSchema<{
274
+ readonly args: import("valibot").ObjectSchema<{
275
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
276
+ }, undefined>;
277
+ readonly clientID: import("valibot").StringSchema<undefined>;
278
+ readonly id: import("valibot").NumberSchema<undefined>;
279
+ readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
259
280
  }, undefined> | import("valibot").ObjectSchema<{
260
281
  readonly args: import("valibot").ObjectSchema<{
261
- readonly seen: import("valibot").BooleanSchema<undefined>;
262
282
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
263
283
  }, undefined>;
264
284
  readonly clientID: import("valibot").StringSchema<undefined>;
265
285
  readonly id: import("valibot").NumberSchema<undefined>;
266
- readonly name: import("valibot").LiteralSchema<"setThreadSeen", undefined>;
286
+ readonly name: import("valibot").LiteralSchema<"setTrash", undefined>;
267
287
  }, undefined>)[], undefined>, undefined>;
268
288
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
269
289
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
@@ -8,6 +8,20 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
8
8
  readonly clientID: v.StringSchema<undefined>;
9
9
  readonly id: v.NumberSchema<undefined>;
10
10
  readonly name: v.LiteralSchema<"delete", undefined>;
11
+ }, undefined> | v.ObjectSchema<{
12
+ readonly args: v.ObjectSchema<{
13
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
14
+ }, undefined>;
15
+ readonly clientID: v.StringSchema<undefined>;
16
+ readonly id: v.NumberSchema<undefined>;
17
+ readonly name: v.LiteralSchema<"setArchive", undefined>;
18
+ }, undefined> | v.ObjectSchema<{
19
+ readonly args: v.ObjectSchema<{
20
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
21
+ }, undefined>;
22
+ readonly clientID: v.StringSchema<undefined>;
23
+ readonly id: v.NumberSchema<undefined>;
24
+ readonly name: v.LiteralSchema<"setInbox", undefined>;
11
25
  }, undefined> | v.ObjectSchema<{
12
26
  readonly args: v.ObjectSchema<{
13
27
  readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -18,20 +32,26 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
18
32
  readonly name: v.LiteralSchema<"setLabels", undefined>;
19
33
  }, undefined> | v.ObjectSchema<{
20
34
  readonly args: v.ObjectSchema<{
21
- readonly specialUse: v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
35
+ readonly seen: v.BooleanSchema<undefined>;
22
36
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
23
37
  }, undefined>;
24
38
  readonly clientID: v.StringSchema<undefined>;
25
39
  readonly id: v.NumberSchema<undefined>;
26
- readonly name: v.LiteralSchema<"setSpecialUse", undefined>;
40
+ readonly name: v.LiteralSchema<"setSeen", undefined>;
41
+ }, undefined> | v.ObjectSchema<{
42
+ readonly args: v.ObjectSchema<{
43
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
44
+ }, undefined>;
45
+ readonly clientID: v.StringSchema<undefined>;
46
+ readonly id: v.NumberSchema<undefined>;
47
+ readonly name: v.LiteralSchema<"setSpam", undefined>;
27
48
  }, undefined> | v.ObjectSchema<{
28
49
  readonly args: v.ObjectSchema<{
29
- readonly seen: v.BooleanSchema<undefined>;
30
50
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
31
51
  }, undefined>;
32
52
  readonly clientID: v.StringSchema<undefined>;
33
53
  readonly id: v.NumberSchema<undefined>;
34
- readonly name: v.LiteralSchema<"setThreadSeen", undefined>;
54
+ readonly name: v.LiteralSchema<"setTrash", undefined>;
35
55
  }, undefined>)[], undefined>, undefined>;
36
56
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
37
57
  readonly data: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0CzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4DzB,CAAA"}
@@ -12,23 +12,41 @@ export const syncPushThread = createEndpoint({
12
12
  id: v.number(),
13
13
  name: v.literal('delete'),
14
14
  }),
15
+ setArchive: v.object({
16
+ args: thread.mutators.setArchive.delta,
17
+ clientID: v.string(),
18
+ id: v.number(),
19
+ name: v.literal('setArchive'),
20
+ }),
21
+ setInbox: v.object({
22
+ args: thread.mutators.setInbox.delta,
23
+ clientID: v.string(),
24
+ id: v.number(),
25
+ name: v.literal('setInbox'),
26
+ }),
15
27
  setLabels: v.object({
16
28
  args: thread.mutators.setLabels.delta,
17
29
  clientID: v.string(),
18
30
  id: v.number(),
19
31
  name: v.literal('setLabels'),
20
32
  }),
21
- setSpecialUse: v.object({
22
- args: thread.mutators.setSpecialUse.delta,
33
+ setSeen: v.object({
34
+ args: thread.mutators.setSeen.delta,
35
+ clientID: v.string(),
36
+ id: v.number(),
37
+ name: v.literal('setSeen'),
38
+ }),
39
+ setSpam: v.object({
40
+ args: thread.mutators.setSpam.delta,
23
41
  clientID: v.string(),
24
42
  id: v.number(),
25
- name: v.literal('setSpecialUse'),
43
+ name: v.literal('setSpam'),
26
44
  }),
27
- setThreadSeen: v.object({
28
- args: thread.mutators.setThreadSeen.delta,
45
+ setTrash: v.object({
46
+ args: thread.mutators.setTrash.delta,
29
47
  clientID: v.string(),
30
48
  id: v.number(),
31
- name: v.literal('setThreadSeen'),
49
+ name: v.literal('setTrash'),
32
50
  }),
33
51
  }))),
34
52
  }),
@@ -2,6 +2,25 @@ export declare const marcoSDK: {
2
2
  endpoints: {
3
3
  private: {
4
4
  emailMessage: {
5
+ getAttachment: import("..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", 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<{
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
10
+ }, undefined>, import("valibot").ObjectSchema<{
11
+ readonly data: import("valibot").ObjectSchema<{
12
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
15
+ }, undefined>, import("valibot").ObjectSchema<{
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
22
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
23
+ }, undefined>], undefined>>;
5
24
  getHTML: import("..").EndpointConfig<"/v1/pv/thread/:threadId/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<{
6
25
  readonly data: import("valibot").ObjectSchema<{
7
26
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -537,6 +556,20 @@ export declare const marcoSDK: {
537
556
  readonly clientID: import("valibot").StringSchema<undefined>;
538
557
  readonly id: import("valibot").NumberSchema<undefined>;
539
558
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
559
+ }, undefined> | import("valibot").ObjectSchema<{
560
+ readonly args: import("valibot").ObjectSchema<{
561
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
562
+ }, undefined>;
563
+ readonly clientID: import("valibot").StringSchema<undefined>;
564
+ readonly id: import("valibot").NumberSchema<undefined>;
565
+ readonly name: import("valibot").LiteralSchema<"setArchive", undefined>;
566
+ }, undefined> | import("valibot").ObjectSchema<{
567
+ readonly args: import("valibot").ObjectSchema<{
568
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
569
+ }, undefined>;
570
+ readonly clientID: import("valibot").StringSchema<undefined>;
571
+ readonly id: import("valibot").NumberSchema<undefined>;
572
+ readonly name: import("valibot").LiteralSchema<"setInbox", undefined>;
540
573
  }, undefined> | import("valibot").ObjectSchema<{
541
574
  readonly args: import("valibot").ObjectSchema<{
542
575
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -547,20 +580,26 @@ export declare const marcoSDK: {
547
580
  readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
548
581
  }, undefined> | import("valibot").ObjectSchema<{
549
582
  readonly args: import("valibot").ObjectSchema<{
550
- readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
583
+ readonly seen: import("valibot").BooleanSchema<undefined>;
551
584
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
552
585
  }, undefined>;
553
586
  readonly clientID: import("valibot").StringSchema<undefined>;
554
587
  readonly id: import("valibot").NumberSchema<undefined>;
555
- readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
588
+ readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
556
589
  }, undefined> | import("valibot").ObjectSchema<{
557
590
  readonly args: import("valibot").ObjectSchema<{
558
- readonly seen: import("valibot").BooleanSchema<undefined>;
559
591
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
560
592
  }, undefined>;
561
593
  readonly clientID: import("valibot").StringSchema<undefined>;
562
594
  readonly id: import("valibot").NumberSchema<undefined>;
563
- readonly name: import("valibot").LiteralSchema<"setThreadSeen", undefined>;
595
+ readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
596
+ }, undefined> | import("valibot").ObjectSchema<{
597
+ readonly args: import("valibot").ObjectSchema<{
598
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
599
+ }, undefined>;
600
+ readonly clientID: import("valibot").StringSchema<undefined>;
601
+ readonly id: import("valibot").NumberSchema<undefined>;
602
+ readonly name: import("valibot").LiteralSchema<"setTrash", undefined>;
564
603
  }, undefined>)[], undefined>, undefined>;
565
604
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
566
605
  readonly data: import("valibot").ObjectSchema<{
@@ -787,6 +826,12 @@ export declare const marcoSDK: {
787
826
  };
788
827
  validation: {
789
828
  errors: {
829
+ readonly attachmentNotFoundErrorSchema: import("valibot").ObjectSchema<{
830
+ readonly data: import("valibot").ObjectSchema<{
831
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
832
+ }, undefined>;
833
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
834
+ }, undefined>;
790
835
  readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
791
836
  readonly data: import("valibot").ObjectSchema<{
792
837
  readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -53,6 +53,12 @@ export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
53
53
  }, undefined>;
54
54
  readonly status: v.LiteralSchema<404, undefined>;
55
55
  }, undefined>;
56
+ export declare const attachmentNotFoundErrorSchema: v.ObjectSchema<{
57
+ readonly data: v.ObjectSchema<{
58
+ readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
59
+ }, undefined>;
60
+ readonly status: v.LiteralSchema<404, undefined>;
61
+ }, undefined>;
56
62
  export declare const threadNotFoundErrorSchema: v.ObjectSchema<{
57
63
  readonly data: v.ObjectSchema<{
58
64
  readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
@@ -77,6 +83,12 @@ export declare const validationFailedErrorSchema: v.ObjectSchema<{
77
83
  readonly status: v.LiteralSchema<400, undefined>;
78
84
  }, undefined>;
79
85
  export declare const errors: {
86
+ readonly attachmentNotFoundErrorSchema: v.ObjectSchema<{
87
+ readonly data: v.ObjectSchema<{
88
+ readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
89
+ }, undefined>;
90
+ readonly status: v.LiteralSchema<404, undefined>;
91
+ }, undefined>;
80
92
  readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
81
93
  readonly data: v.ObjectSchema<{
82
94
  readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,0BA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M,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcT,CAAA"}
@@ -35,6 +35,10 @@ export const messageNotFoundErrorSchema = v.object({
35
35
  data: v.object({ code: v.literal('MESSAGE_NOT_FOUND') }),
36
36
  status: v.literal(404),
37
37
  });
38
+ export const attachmentNotFoundErrorSchema = v.object({
39
+ data: v.object({ code: v.literal('ATTACHMENT_NOT_FOUND') }),
40
+ status: v.literal(404),
41
+ });
38
42
  export const threadNotFoundErrorSchema = v.object({
39
43
  data: v.object({ code: v.literal('MESSAGE_NOT_FOUND') }),
40
44
  status: v.literal(404),
@@ -55,6 +59,7 @@ export const validationFailedErrorSchema = v.object({
55
59
  status: v.literal(400),
56
60
  });
57
61
  export const errors = {
62
+ attachmentNotFoundErrorSchema,
58
63
  authCodeExpiredErrorSchema,
59
64
  authCodeInvalidErrorSchema,
60
65
  authCodePreviouslyUsedErrorSchema,
@@ -1,5 +1,11 @@
1
1
  export declare const validation: {
2
2
  errors: {
3
+ readonly attachmentNotFoundErrorSchema: import("valibot").ObjectSchema<{
4
+ readonly data: import("valibot").ObjectSchema<{
5
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
6
+ }, undefined>;
7
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
8
+ }, undefined>;
3
9
  readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
4
10
  readonly data: import("valibot").ObjectSchema<{
5
11
  readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import * as v from 'valibot';
2
2
  import { errors } from '../sdk/validation/errors';
3
- export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.mutationDriftErrorSchema>;
3
+ export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.mutationDriftErrorSchema>;
4
4
  //# sourceMappingURL=SDKError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAA"}
1
+ {"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,6BAA6B,CAAC,GAC1D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
3
  "packageManager": "bun@1.2.0",
4
- "version": "2.0.225",
4
+ "version": "2.0.227",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",