@marcoappio/marco-config 2.0.226 → 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.
@@ -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>;
@@ -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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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>;
@@ -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"}
@@ -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>;
@@ -807,6 +826,12 @@ export declare const marcoSDK: {
807
826
  };
808
827
  validation: {
809
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>;
810
835
  readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
811
836
  readonly data: import("valibot").ObjectSchema<{
812
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,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaT,CAAA"}
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,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,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.226",
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",