@marcoappio/marco-config 2.0.523 → 2.0.525

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.
@@ -42,6 +42,13 @@ export declare const marcoConstants: {
42
42
  };
43
43
  readonly redirectPath: "/v1/wh/oauth/callback";
44
44
  };
45
+ user: {
46
+ profilePicture: {
47
+ allowedMimeTypes: string[];
48
+ maxDimension: number;
49
+ maxFileSize: number;
50
+ };
51
+ };
45
52
  zero: {
46
53
  mutateURL: string;
47
54
  queryURL: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1B,CAAA"}
@@ -3,6 +3,7 @@ import { emailAccounts } from './emailAccounts';
3
3
  import { emailProvider } from './emailProvider';
4
4
  import { messages } from './messages';
5
5
  import { oauth } from './oauth';
6
+ import { user } from './user';
6
7
  import { zero } from './zero';
7
8
  export const marcoConstants = {
8
9
  api,
@@ -10,5 +11,6 @@ export const marcoConstants = {
10
11
  emailProvider,
11
12
  messages,
12
13
  oauth,
14
+ user,
13
15
  zero,
14
16
  };
@@ -0,0 +1,8 @@
1
+ export declare const user: {
2
+ profilePicture: {
3
+ allowedMimeTypes: string[];
4
+ maxDimension: number;
5
+ maxFileSize: number;
6
+ };
7
+ };
8
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/constants/user.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export const user = {
2
+ profilePicture: {
3
+ allowedMimeTypes: ['image/jpeg', 'image/png', 'image/webp', 'image/gif'],
4
+ maxDimension: 10_000,
5
+ maxFileSize: 5 * 1024 * 1024,
6
+ },
7
+ };
@@ -62,6 +62,32 @@ export declare const endpoints: {
62
62
  }, undefined>, import("valibot").ObjectSchema<{
63
63
  readonly status: import("valibot").LiteralSchema<204, undefined>;
64
64
  }, undefined>], undefined>>;
65
+ uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
66
+ readonly data: import("valibot").ObjectSchema<{
67
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
68
+ }, undefined>;
69
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
70
+ }, undefined>, import("valibot").ObjectSchema<{
71
+ readonly data: import("valibot").ObjectSchema<{
72
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
73
+ }, undefined>;
74
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
75
+ }, undefined>, import("valibot").ObjectSchema<{
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
78
+ }, undefined>;
79
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
80
+ }, undefined>, import("valibot").ObjectSchema<{
81
+ readonly data: import("valibot").ObjectSchema<{
82
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
83
+ }, undefined>;
84
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
85
+ }, undefined>, import("valibot").ObjectSchema<{
86
+ readonly data: import("valibot").ObjectSchema<{
87
+ readonly profilePicture: import("valibot").StringSchema<undefined>;
88
+ }, undefined>;
89
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
90
+ }, undefined>], undefined>>;
65
91
  };
66
92
  };
67
93
  public: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -59,6 +59,32 @@ export declare const privateGroup: {
59
59
  }, undefined>, import("valibot").ObjectSchema<{
60
60
  readonly status: import("valibot").LiteralSchema<204, undefined>;
61
61
  }, undefined>], undefined>>;
62
+ uploadProfilePicture: import("../../..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
63
+ readonly data: import("valibot").ObjectSchema<{
64
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
65
+ }, undefined>;
66
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
67
+ }, undefined>, import("valibot").ObjectSchema<{
68
+ readonly data: import("valibot").ObjectSchema<{
69
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
70
+ }, undefined>;
71
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
72
+ }, undefined>, import("valibot").ObjectSchema<{
73
+ readonly data: import("valibot").ObjectSchema<{
74
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
75
+ }, undefined>;
76
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
77
+ }, undefined>, import("valibot").ObjectSchema<{
78
+ readonly data: import("valibot").ObjectSchema<{
79
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
80
+ }, undefined>;
81
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
82
+ }, undefined>, import("valibot").ObjectSchema<{
83
+ readonly data: import("valibot").ObjectSchema<{
84
+ readonly profilePicture: import("valibot").StringSchema<undefined>;
85
+ }, undefined>;
86
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
87
+ }, undefined>], undefined>>;
62
88
  };
63
89
  };
64
90
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -7,5 +7,31 @@ export declare const user: {
7
7
  }, undefined>, import("valibot").ObjectSchema<{
8
8
  readonly status: import("valibot").LiteralSchema<204, undefined>;
9
9
  }, undefined>], undefined>>;
10
+ uploadProfilePicture: import("../../../..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
11
+ readonly data: import("valibot").ObjectSchema<{
12
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
13
+ }, undefined>;
14
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
15
+ }, undefined>, import("valibot").ObjectSchema<{
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly data: import("valibot").ObjectSchema<{
22
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
23
+ }, undefined>;
24
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
25
+ }, undefined>, import("valibot").ObjectSchema<{
26
+ readonly data: import("valibot").ObjectSchema<{
27
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
28
+ }, undefined>;
29
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
30
+ }, undefined>, import("valibot").ObjectSchema<{
31
+ readonly data: import("valibot").ObjectSchema<{
32
+ readonly profilePicture: import("valibot").StringSchema<undefined>;
33
+ }, undefined>;
34
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
35
+ }, undefined>], undefined>>;
10
36
  };
11
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAEhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  import { deleteUser } from './deleteUser';
2
+ import { uploadProfilePicture } from './uploadProfilePicture';
2
3
  export const user = {
3
4
  deleteUser,
5
+ uploadProfilePicture,
4
6
  };
@@ -0,0 +1,28 @@
1
+ import * as v from 'valibot';
2
+ export declare const uploadProfilePicture: import("../../../..").EndpointConfig<"/v1/pv/user/profile-picture", v.BlobSchema<undefined>, v.GenericSchema | 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<"FILE_TOO_LARGE", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<413, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"INVALID_FILE_TYPE", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<415, undefined>;
17
+ }, undefined>, v.ObjectSchema<{
18
+ readonly data: v.ObjectSchema<{
19
+ readonly code: v.LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
20
+ }, undefined>;
21
+ readonly status: v.LiteralSchema<415, undefined>;
22
+ }, undefined>, v.ObjectSchema<{
23
+ readonly data: v.ObjectSchema<{
24
+ readonly profilePicture: v.StringSchema<undefined>;
25
+ }, undefined>;
26
+ readonly status: v.LiteralSchema<200, undefined>;
27
+ }, undefined>], undefined>>;
28
+ //# sourceMappingURL=uploadProfilePicture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadProfilePicture.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/uploadProfilePicture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;2BAe/B,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { authFailedErrorSchema, fileTooLargeErrorSchema, invalidFileTypeErrorSchema, invalidImageDimensionsErrorSchema, } from '../../../../sdk/validation/errors';
4
+ export const uploadProfilePicture = createEndpoint({
5
+ body: v.blob(),
6
+ bodyType: 'blob',
7
+ method: 'POST',
8
+ path: '/v1/pv/user/profile-picture',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ fileTooLargeErrorSchema,
12
+ invalidFileTypeErrorSchema,
13
+ invalidImageDimensionsErrorSchema,
14
+ v.object({
15
+ data: v.object({ profilePicture: v.string() }),
16
+ status: v.literal(200),
17
+ }),
18
+ ]),
19
+ });
@@ -61,6 +61,32 @@ export declare const marcoSDK: {
61
61
  }, undefined>, import("valibot").ObjectSchema<{
62
62
  readonly status: import("valibot").LiteralSchema<204, undefined>;
63
63
  }, undefined>], undefined>>;
64
+ uploadProfilePicture: import("..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
65
+ readonly data: import("valibot").ObjectSchema<{
66
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
67
+ }, undefined>;
68
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
69
+ }, undefined>, import("valibot").ObjectSchema<{
70
+ readonly data: import("valibot").ObjectSchema<{
71
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
72
+ }, undefined>;
73
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
74
+ }, undefined>, import("valibot").ObjectSchema<{
75
+ readonly data: import("valibot").ObjectSchema<{
76
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
77
+ }, undefined>;
78
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
79
+ }, undefined>, import("valibot").ObjectSchema<{
80
+ readonly data: import("valibot").ObjectSchema<{
81
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
82
+ }, undefined>;
83
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
84
+ }, undefined>, import("valibot").ObjectSchema<{
85
+ readonly data: import("valibot").ObjectSchema<{
86
+ readonly profilePicture: import("valibot").StringSchema<undefined>;
87
+ }, undefined>;
88
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
89
+ }, undefined>], undefined>>;
64
90
  };
65
91
  };
66
92
  public: {
@@ -274,6 +300,24 @@ export declare const marcoSDK: {
274
300
  }, undefined>;
275
301
  readonly status: import("valibot").LiteralSchema<401, undefined>;
276
302
  }, undefined>;
303
+ readonly fileTooLargeErrorSchema: import("valibot").ObjectSchema<{
304
+ readonly data: import("valibot").ObjectSchema<{
305
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
306
+ }, undefined>;
307
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
308
+ }, undefined>;
309
+ readonly invalidFileTypeErrorSchema: import("valibot").ObjectSchema<{
310
+ readonly data: import("valibot").ObjectSchema<{
311
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
312
+ }, undefined>;
313
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
314
+ }, undefined>;
315
+ readonly invalidImageDimensionsErrorSchema: import("valibot").ObjectSchema<{
316
+ readonly data: import("valibot").ObjectSchema<{
317
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
318
+ }, undefined>;
319
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
320
+ }, undefined>;
277
321
  readonly inviteNotFoundErrorSchema: import("valibot").ObjectSchema<{
278
322
  readonly data: import("valibot").ObjectSchema<{
279
323
  readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -100,6 +100,24 @@ export declare const validationFailedErrorSchema: v.ObjectSchema<{
100
100
  }, undefined>;
101
101
  readonly status: v.LiteralSchema<400, undefined>;
102
102
  }, undefined>;
103
+ export declare const fileTooLargeErrorSchema: v.ObjectSchema<{
104
+ readonly data: v.ObjectSchema<{
105
+ readonly code: v.LiteralSchema<"FILE_TOO_LARGE", undefined>;
106
+ }, undefined>;
107
+ readonly status: v.LiteralSchema<413, undefined>;
108
+ }, undefined>;
109
+ export declare const invalidFileTypeErrorSchema: v.ObjectSchema<{
110
+ readonly data: v.ObjectSchema<{
111
+ readonly code: v.LiteralSchema<"INVALID_FILE_TYPE", undefined>;
112
+ }, undefined>;
113
+ readonly status: v.LiteralSchema<415, undefined>;
114
+ }, undefined>;
115
+ export declare const invalidImageDimensionsErrorSchema: v.ObjectSchema<{
116
+ readonly data: v.ObjectSchema<{
117
+ readonly code: v.LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
118
+ }, undefined>;
119
+ readonly status: v.LiteralSchema<415, undefined>;
120
+ }, undefined>;
103
121
  export declare const errors: {
104
122
  readonly accountNotFoundErrorSchema: v.ObjectSchema<{
105
123
  readonly data: v.ObjectSchema<{
@@ -161,6 +179,24 @@ export declare const errors: {
161
179
  }, undefined>;
162
180
  readonly status: v.LiteralSchema<401, undefined>;
163
181
  }, undefined>;
182
+ readonly fileTooLargeErrorSchema: v.ObjectSchema<{
183
+ readonly data: v.ObjectSchema<{
184
+ readonly code: v.LiteralSchema<"FILE_TOO_LARGE", undefined>;
185
+ }, undefined>;
186
+ readonly status: v.LiteralSchema<413, undefined>;
187
+ }, undefined>;
188
+ readonly invalidFileTypeErrorSchema: v.ObjectSchema<{
189
+ readonly data: v.ObjectSchema<{
190
+ readonly code: v.LiteralSchema<"INVALID_FILE_TYPE", undefined>;
191
+ }, undefined>;
192
+ readonly status: v.LiteralSchema<415, undefined>;
193
+ }, undefined>;
194
+ readonly invalidImageDimensionsErrorSchema: v.ObjectSchema<{
195
+ readonly data: v.ObjectSchema<{
196
+ readonly code: v.LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
197
+ }, undefined>;
198
+ readonly status: v.LiteralSchema<415, undefined>;
199
+ }, undefined>;
164
200
  readonly inviteNotFoundErrorSchema: v.ObjectSchema<{
165
201
  readonly data: v.ObjectSchema<{
166
202
  readonly code: v.LiteralSchema<"INVITE_NOT_FOUND", 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,yBAAyB;;;;;aAGpC,CAAA;AAEF,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,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBT,CAAA"}
@@ -70,6 +70,18 @@ export const validationFailedErrorSchema = v.object({
70
70
  }),
71
71
  status: v.literal(400),
72
72
  });
73
+ export const fileTooLargeErrorSchema = v.object({
74
+ data: v.object({ code: v.literal('FILE_TOO_LARGE') }),
75
+ status: v.literal(413),
76
+ });
77
+ export const invalidFileTypeErrorSchema = v.object({
78
+ data: v.object({ code: v.literal('INVALID_FILE_TYPE') }),
79
+ status: v.literal(415),
80
+ });
81
+ export const invalidImageDimensionsErrorSchema = v.object({
82
+ data: v.object({ code: v.literal('INVALID_IMAGE_DIMENSIONS') }),
83
+ status: v.literal(415),
84
+ });
73
85
  export const errors = {
74
86
  accountNotFoundErrorSchema,
75
87
  attachmentNotFoundErrorSchema,
@@ -81,6 +93,9 @@ export const errors = {
81
93
  authRefreshTokenInvalid,
82
94
  authServerResponseUnexpectedErrorSchema,
83
95
  authTooManyAttemptsErrorSchema,
96
+ fileTooLargeErrorSchema,
97
+ invalidFileTypeErrorSchema,
98
+ invalidImageDimensionsErrorSchema,
84
99
  inviteNotFoundErrorSchema,
85
100
  messageNotFoundErrorSchema,
86
101
  mutationRejectedErrorSchema,
@@ -60,6 +60,24 @@ export declare const validation: {
60
60
  }, undefined>;
61
61
  readonly status: import("valibot").LiteralSchema<401, undefined>;
62
62
  }, undefined>;
63
+ readonly fileTooLargeErrorSchema: import("valibot").ObjectSchema<{
64
+ readonly data: import("valibot").ObjectSchema<{
65
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
66
+ }, undefined>;
67
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
68
+ }, undefined>;
69
+ readonly invalidFileTypeErrorSchema: import("valibot").ObjectSchema<{
70
+ readonly data: import("valibot").ObjectSchema<{
71
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
72
+ }, undefined>;
73
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
74
+ }, undefined>;
75
+ readonly invalidImageDimensionsErrorSchema: import("valibot").ObjectSchema<{
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
78
+ }, undefined>;
79
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
80
+ }, undefined>;
63
81
  readonly inviteNotFoundErrorSchema: import("valibot").ObjectSchema<{
64
82
  readonly data: import("valibot").ObjectSchema<{
65
83
  readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", 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 type * as v from 'valibot';
2
2
  import type { 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.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema>;
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.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema>;
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,KAAK,C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vD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.523",
3
+ "version": "2.0.525",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",