@marcoappio/marco-config 2.0.133 → 2.0.134

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.
@@ -176,6 +176,37 @@ export declare const endpoints: {
176
176
  }, undefined>, import("valibot").ObjectSchema<{
177
177
  readonly status: import("valibot").LiteralSchema<200, undefined>;
178
178
  }, undefined>], undefined>>;
179
+ thread: EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
180
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
181
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
182
+ readonly args: import("valibot").ObjectSchema<{
183
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
184
+ }, undefined>;
185
+ readonly clientID: import("valibot").StringSchema<undefined>;
186
+ readonly id: import("valibot").NumberSchema<undefined>;
187
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
188
+ }, undefined>, import("valibot").ObjectSchema<{
189
+ readonly args: import("valibot").ObjectSchema<{
190
+ readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
191
+ readonly seen: import("valibot").BooleanSchema<undefined>;
192
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
193
+ }, undefined>;
194
+ readonly clientID: import("valibot").StringSchema<undefined>;
195
+ readonly id: import("valibot").NumberSchema<undefined>;
196
+ readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
197
+ }, undefined>], undefined>, undefined>;
198
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
199
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
200
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
201
+ }, undefined>, import("valibot").ObjectSchema<{
202
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
203
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
204
+ }, undefined>, import("valibot").ObjectSchema<{
205
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
206
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
207
+ }, undefined>, import("valibot").ObjectSchema<{
208
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
209
+ }, undefined>], undefined>>;
179
210
  };
180
211
  };
181
212
  user: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -173,6 +173,37 @@ export declare const privateGroup: {
173
173
  }, undefined>, import("valibot").ObjectSchema<{
174
174
  readonly status: import("valibot").LiteralSchema<200, undefined>;
175
175
  }, undefined>], undefined>>;
176
+ thread: import("../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
177
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
178
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
179
+ readonly args: import("valibot").ObjectSchema<{
180
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
181
+ }, undefined>;
182
+ readonly clientID: import("valibot").StringSchema<undefined>;
183
+ readonly id: import("valibot").NumberSchema<undefined>;
184
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
185
+ }, undefined>, import("valibot").ObjectSchema<{
186
+ readonly args: import("valibot").ObjectSchema<{
187
+ readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
188
+ readonly seen: import("valibot").BooleanSchema<undefined>;
189
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
190
+ }, undefined>;
191
+ readonly clientID: import("valibot").StringSchema<undefined>;
192
+ readonly id: import("valibot").NumberSchema<undefined>;
193
+ readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
194
+ }, undefined>], undefined>, undefined>;
195
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
196
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
197
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
198
+ }, undefined>, import("valibot").ObjectSchema<{
199
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
200
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
201
+ }, undefined>, import("valibot").ObjectSchema<{
202
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
203
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
204
+ }, undefined>, import("valibot").ObjectSchema<{
205
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
206
+ }, undefined>], undefined>>;
176
207
  };
177
208
  };
178
209
  user: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -172,6 +172,37 @@ export declare const sync: {
172
172
  }, undefined>, import("valibot").ObjectSchema<{
173
173
  readonly status: import("valibot").LiteralSchema<200, undefined>;
174
174
  }, undefined>], undefined>>;
175
+ thread: import("../../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
176
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
177
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
178
+ readonly args: import("valibot").ObjectSchema<{
179
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
180
+ }, undefined>;
181
+ readonly clientID: import("valibot").StringSchema<undefined>;
182
+ readonly id: import("valibot").NumberSchema<undefined>;
183
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
184
+ }, undefined>, import("valibot").ObjectSchema<{
185
+ readonly args: import("valibot").ObjectSchema<{
186
+ readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
187
+ readonly seen: import("valibot").BooleanSchema<undefined>;
188
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
189
+ }, undefined>;
190
+ readonly clientID: import("valibot").StringSchema<undefined>;
191
+ readonly id: import("valibot").NumberSchema<undefined>;
192
+ readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
193
+ }, undefined>], undefined>, undefined>;
194
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
195
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
196
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
197
+ }, undefined>, import("valibot").ObjectSchema<{
198
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
199
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
200
+ }, undefined>, import("valibot").ObjectSchema<{
201
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
202
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
203
+ }, undefined>, import("valibot").ObjectSchema<{
204
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
205
+ }, undefined>], undefined>>;
175
206
  };
176
207
  };
177
208
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -31,5 +31,36 @@ export declare const push: {
31
31
  }, undefined>, import("valibot").ObjectSchema<{
32
32
  readonly status: import("valibot").LiteralSchema<200, undefined>;
33
33
  }, undefined>], undefined>>;
34
+ thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
35
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
36
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
37
+ readonly args: import("valibot").ObjectSchema<{
38
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
39
+ }, undefined>;
40
+ readonly clientID: import("valibot").StringSchema<undefined>;
41
+ readonly id: import("valibot").NumberSchema<undefined>;
42
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
43
+ }, undefined>, import("valibot").ObjectSchema<{
44
+ readonly args: import("valibot").ObjectSchema<{
45
+ readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
46
+ readonly seen: import("valibot").BooleanSchema<undefined>;
47
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
48
+ }, undefined>;
49
+ readonly clientID: import("valibot").StringSchema<undefined>;
50
+ readonly id: import("valibot").NumberSchema<undefined>;
51
+ readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
52
+ }, undefined>], undefined>, undefined>;
53
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
54
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
55
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
56
+ }, undefined>, import("valibot").ObjectSchema<{
57
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
58
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
59
+ }, undefined>, import("valibot").ObjectSchema<{
60
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
61
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
62
+ }, undefined>, import("valibot").ObjectSchema<{
63
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
64
+ }, undefined>], undefined>>;
34
65
  };
35
66
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { syncPushAccount as account } from './account';
2
- export const push = { account };
2
+ import { syncPushThread as thread } from './thread';
3
+ export const push = { account, thread };
@@ -0,0 +1,33 @@
1
+ import * as v from 'valibot';
2
+ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", v.ObjectSchema<{
3
+ readonly clientGroupID: v.StringSchema<undefined>;
4
+ readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
5
+ readonly args: v.ObjectSchema<{
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
7
+ }, undefined>;
8
+ readonly clientID: v.StringSchema<undefined>;
9
+ readonly id: v.NumberSchema<undefined>;
10
+ readonly name: v.LiteralSchema<"delete", undefined>;
11
+ }, undefined>, v.ObjectSchema<{
12
+ readonly args: v.ObjectSchema<{
13
+ readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
14
+ readonly seen: v.BooleanSchema<undefined>;
15
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
16
+ }, undefined>;
17
+ readonly clientID: v.StringSchema<undefined>;
18
+ readonly id: v.NumberSchema<undefined>;
19
+ readonly name: v.LiteralSchema<"setMessageSeen", undefined>;
20
+ }, undefined>], undefined>, undefined>;
21
+ }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
23
+ readonly status: v.LiteralSchema<400, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
26
+ readonly status: v.LiteralSchema<401, undefined>;
27
+ }, undefined>, v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
29
+ readonly status: v.LiteralSchema<404, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly status: v.LiteralSchema<200, undefined>;
32
+ }, undefined>], undefined>>;
33
+ //# sourceMappingURL=thread.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BzB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import * as v from 'valibot';
2
+ import { thread } from '../../../../../clients/thread';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errorManifest } from '../../../../../sdk/validation/errors';
5
+ export const syncPushThread = createEndpoint({
6
+ body: v.object({
7
+ clientGroupID: v.string(),
8
+ mutations: v.array(v.union([
9
+ v.object({
10
+ args: thread.mutators.delete.delta,
11
+ clientID: v.string(),
12
+ id: v.number(),
13
+ name: v.literal('delete'),
14
+ }),
15
+ v.object({
16
+ args: thread.mutators.setMessageSeen.delta,
17
+ clientID: v.string(),
18
+ id: v.number(),
19
+ name: v.literal('setMessageSeen'),
20
+ }),
21
+ ])),
22
+ }),
23
+ method: 'POST',
24
+ path: thread.pushURL,
25
+ response: v.union([
26
+ errorManifest.validationFailedErrorSchema,
27
+ errorManifest.notAuthenticatedErrorSchema,
28
+ errorManifest.messageNotFoundErrorSchema,
29
+ v.object({ status: v.literal(200) }),
30
+ ]),
31
+ });
@@ -175,6 +175,37 @@ export declare const marcoSDK: {
175
175
  }, undefined>, import("valibot").ObjectSchema<{
176
176
  readonly status: import("valibot").LiteralSchema<200, undefined>;
177
177
  }, undefined>], undefined>>;
178
+ thread: import("..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
179
+ readonly clientGroupID: import("valibot").StringSchema<undefined>;
180
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
181
+ readonly args: import("valibot").ObjectSchema<{
182
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
183
+ }, undefined>;
184
+ readonly clientID: import("valibot").StringSchema<undefined>;
185
+ readonly id: import("valibot").NumberSchema<undefined>;
186
+ readonly name: import("valibot").LiteralSchema<"delete", undefined>;
187
+ }, undefined>, import("valibot").ObjectSchema<{
188
+ readonly args: import("valibot").ObjectSchema<{
189
+ readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
190
+ readonly seen: import("valibot").BooleanSchema<undefined>;
191
+ readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
192
+ }, undefined>;
193
+ readonly clientID: import("valibot").StringSchema<undefined>;
194
+ readonly id: import("valibot").NumberSchema<undefined>;
195
+ readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
196
+ }, undefined>], undefined>, undefined>;
197
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
198
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
199
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
200
+ }, undefined>, import("valibot").ObjectSchema<{
201
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
202
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
203
+ }, undefined>, import("valibot").ObjectSchema<{
204
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
205
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
206
+ }, undefined>, import("valibot").ObjectSchema<{
207
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
208
+ }, undefined>], undefined>>;
178
209
  };
179
210
  };
180
211
  user: {
@@ -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"}
@@ -12,12 +12,20 @@ export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
12
12
  readonly details: v.StringSchema<undefined>;
13
13
  readonly status: v.LiteralSchema<400, undefined>;
14
14
  }, undefined>;
15
+ export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
17
+ readonly status: v.LiteralSchema<404, undefined>;
18
+ }, undefined>;
15
19
  export declare const errorManifest: {
16
20
  authenticationFailedErrorSchema: v.ObjectSchema<{
17
21
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
18
22
  readonly details: v.StringSchema<undefined>;
19
23
  readonly status: v.LiteralSchema<400, undefined>;
20
24
  }, undefined>;
25
+ messageNotFoundErrorSchema: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
27
+ readonly status: v.LiteralSchema<404, undefined>;
28
+ }, undefined>;
21
29
  notAuthenticatedErrorSchema: v.ObjectSchema<{
22
30
  readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
23
31
  readonly status: v.LiteralSchema<401, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;aAI1C,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAID,CAAA"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;aAI1C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAKD,CAAA"}
@@ -12,8 +12,13 @@ export const authenticationFailedErrorSchema = v.object({
12
12
  details: v.string(),
13
13
  status: v.literal(400),
14
14
  });
15
+ export const messageNotFoundErrorSchema = v.object({
16
+ code: v.literal('MESSAGE_NOT_FOUND'),
17
+ status: v.literal(404),
18
+ });
15
19
  export const errorManifest = {
16
20
  authenticationFailedErrorSchema,
21
+ messageNotFoundErrorSchema,
17
22
  notAuthenticatedErrorSchema,
18
23
  validationFailedErrorSchema,
19
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.133",
3
+ "version": "2.0.134",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",