@marcoappio/marco-config 2.0.544 → 2.0.546

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.
@@ -610,7 +610,7 @@ export declare const marcoSchemas: {
610
610
  websocket: {
611
611
  pokeEvent: import("valibot").ObjectSchema<{
612
612
  readonly event: import("valibot").LiteralSchema<"poke", undefined>;
613
- readonly model: import("valibot").PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "label"], undefined>;
613
+ readonly model: import("valibot").PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
614
614
  }, undefined>;
615
615
  };
616
616
  };
@@ -1,12 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const pokeEventSchema: v.ObjectSchema<{
3
3
  readonly event: v.LiteralSchema<"poke", undefined>;
4
- readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "label"], undefined>;
4
+ readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
5
5
  }, undefined>;
6
6
  export declare const websocket: {
7
7
  pokeEvent: v.ObjectSchema<{
8
8
  readonly event: v.LiteralSchema<"poke", undefined>;
9
- readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "label"], undefined>;
9
+ readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
10
10
  }, undefined>;
11
11
  };
12
12
  //# sourceMappingURL=websocket.d.ts.map
@@ -57,7 +57,6 @@ export declare const endpoints: {
57
57
  account: typeof import("./private/models/account");
58
58
  contact: typeof import("./private/models/contact");
59
59
  draft: typeof import("./private/models/draft");
60
- label: typeof import("./private/models/label");
61
60
  thread: typeof import("./private/models/thread");
62
61
  user: typeof import("./private/models/user");
63
62
  };
@@ -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"}
@@ -54,7 +54,6 @@ export declare const privateGroup: {
54
54
  account: typeof import("./models/account");
55
55
  contact: typeof import("./models/contact");
56
56
  draft: typeof import("./models/draft");
57
- label: typeof import("./models/label");
58
57
  thread: typeof import("./models/thread");
59
58
  user: typeof import("./models/user");
60
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const getContacts: import("../../../../..").EndpointConfig<"/v1/pv/models/contacts/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
3
  readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
- readonly emailAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
+ readonly emailAddresses: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5
5
  readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6
6
  readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
7
7
  readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -8,7 +8,7 @@ export const getContacts = createEndpoint({
8
8
  path: '/v1/pv/models/contacts/list',
9
9
  query: v.object({
10
10
  cursor: v.optional(v.string()),
11
- emailAddress: v.optional(v.string()),
11
+ emailAddresses: v.optional(v.array(v.string())),
12
12
  ids: v.optional(v.array(v.string())),
13
13
  limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
14
14
  name: v.optional(v.string()),
@@ -1,14 +1,12 @@
1
1
  import * as account from './account';
2
2
  import * as contact from './contact';
3
3
  import * as draft from './draft';
4
- import * as label from './label';
5
4
  import * as thread from './thread';
6
5
  import * as user from './user';
7
6
  export declare const models: {
8
7
  account: typeof account;
9
8
  contact: typeof contact;
10
9
  draft: typeof draft;
11
- label: typeof label;
12
10
  thread: typeof thread;
13
11
  user: typeof user;
14
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAA"}
@@ -1,14 +1,12 @@
1
1
  import * as account from './account';
2
2
  import * as contact from './contact';
3
3
  import * as draft from './draft';
4
- import * as label from './label';
5
4
  import * as thread from './thread';
6
5
  import * as user from './user';
7
6
  export const models = {
8
7
  account,
9
8
  contact,
10
9
  draft,
11
- label,
12
10
  thread,
13
11
  user,
14
12
  };
@@ -56,7 +56,6 @@ export declare const marcoSDK: {
56
56
  account: typeof import("./endpoints/private/models/account");
57
57
  contact: typeof import("./endpoints/private/models/contact");
58
58
  draft: typeof import("./endpoints/private/models/draft");
59
- label: typeof import("./endpoints/private/models/label");
60
59
  thread: typeof import("./endpoints/private/models/thread");
61
60
  user: typeof import("./endpoints/private/models/user");
62
61
  };
@@ -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"}
@@ -1,6 +1,6 @@
1
1
  import type * as v from 'valibot';
2
2
  import type { marcoSchemas } from '../schemas';
3
- export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread", "label"];
3
+ export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread"];
4
4
  export type PokeModel = (typeof POKE_MODELS)[number];
5
5
  export type PokeEvent = v.InferOutput<typeof marcoSchemas.websocket.pokeEvent>;
6
6
  //# sourceMappingURL=PokeEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,qEAAsE,CAAA;AAE9F,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,4DAA6D,CAAA;AAErF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA"}
@@ -1 +1 @@
1
- export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread', 'label'];
1
+ export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.544",
3
+ "version": "2.0.546",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,44 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getLabels: import("../../../../../types").EndpointConfig<"/v1/pv/models/labels/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
- readonly accountIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4
- readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
- readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6
- readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
7
- readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
8
- readonly specialUse: v.OptionalSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
9
- }, undefined>, v.UnionSchema<[v.ObjectSchema<{
10
- readonly data: v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
12
- }, undefined>;
13
- readonly status: v.LiteralSchema<401, undefined>;
14
- }, undefined>, v.ObjectSchema<{
15
- readonly data: v.ObjectSchema<{
16
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
17
- }, undefined>;
18
- readonly status: v.LiteralSchema<404, undefined>;
19
- }, undefined>, v.ObjectSchema<{
20
- readonly data: v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
22
- readonly issues: v.ObjectSchema<{
23
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
24
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
25
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
- }, undefined>;
27
- }, undefined>;
28
- readonly status: v.LiteralSchema<400, undefined>;
29
- }, undefined>, v.ObjectSchema<{
30
- readonly data: v.ObjectSchema<{
31
- readonly items: v.ArraySchema<v.ObjectSchema<{
32
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
37
- readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
38
- readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
39
- }, undefined>, undefined>;
40
- readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
41
- }, undefined>;
42
- readonly status: v.LiteralSchema<200, undefined>;
43
- }, undefined>], undefined>>;
44
- //# sourceMappingURL=getLabels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getLabels.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/label/getLabels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBpB,CAAA"}
@@ -1,27 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../../schemas';
3
- import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
- import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
- import { LABEL_SPECIAL_USES } from '../../../../../types';
7
- export const getLabels = createEndpoint({
8
- method: 'GET',
9
- path: '/v1/pv/models/labels/list',
10
- query: v.object({
11
- accountIds: v.optional(v.array(v.string())),
12
- cursor: v.optional(v.string()),
13
- ids: v.optional(v.array(v.string())),
14
- limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
15
- search: v.optional(v.string()),
16
- specialUse: v.optional(v.picklist(LABEL_SPECIAL_USES)),
17
- }),
18
- response: v.union([
19
- authFailedErrorSchema,
20
- userNotFoundErrorSchema,
21
- validationFailedErrorSchema,
22
- v.object({
23
- data: paginatedResponseSchema(marcoSchemas.models.accountLabelSchema),
24
- status: v.literal(200),
25
- }),
26
- ]),
27
- });
@@ -1,2 +0,0 @@
1
- export { getLabels } from './getLabels';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- export { getLabels } from './getLabels';