@marcoappio/marco-config 2.0.123 → 2.0.125

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 (37) hide show
  1. package/dist/clients/account.d.ts +2 -1
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/account.js +2 -1
  4. package/dist/clients/index.d.ts +2 -0
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/clients/index.js +1 -0
  7. package/dist/clients/utils/index.d.ts +4 -0
  8. package/dist/clients/utils/index.d.ts.map +1 -0
  9. package/dist/clients/utils/index.js +4 -0
  10. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
  11. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
  12. package/dist/clients/utils/labelSpecialUseOrdering.js +8 -0
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -2
  16. package/dist/sdk/endpoints/index.d.ts +5 -1
  17. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/index.d.ts +5 -1
  19. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/index.d.ts +5 -1
  21. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -0
  23. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +5 -1
  25. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  26. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +4 -1
  27. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  28. package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -1
  29. package/dist/sdk/index.d.ts +5 -1
  30. package/dist/sdk/index.d.ts.map +1 -1
  31. package/dist/types/LabelSpecialUse.d.ts +8 -0
  32. package/dist/types/LabelSpecialUse.d.ts.map +1 -0
  33. package/dist/types/LabelSpecialUse.js +8 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/index.d.ts.map +1 -1
  36. package/dist/types/index.js +1 -0
  37. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { IMAPPasswordConfigStatus } from '../types';
2
+ import { IMAPPasswordConfigStatus, LabelSpecialUse } from '../types';
3
3
  export declare const account: {
4
4
  model: v.ObjectSchema<{
5
5
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -14,6 +14,7 @@ export declare const account: {
14
14
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
15
15
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
16
16
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
17
+ readonly specialUse: v.NullableSchema<v.EnumSchema<typeof LabelSpecialUse, undefined>, undefined>;
17
18
  }, undefined>, undefined>;
18
19
  }, undefined>;
19
20
  mutators: {
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,wBAAwB,EAAe,MAAM,qBAAqB,CAAA;AAS3E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCG,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAe,MAAM,qBAAqB,CAAA;AAS5F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCG,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../schemas';
3
- import { IMAPPasswordConfigStatus } from '../types';
3
+ import { IMAPPasswordConfigStatus, LabelSpecialUse } from '../types';
4
4
  const imapPasswordConfig = v.object({
5
5
  host: marcoSchemas.string.required(),
6
6
  password: marcoSchemas.string.required(),
@@ -16,6 +16,7 @@ export const account = {
16
16
  id: marcoSchemas.string.required(),
17
17
  name: marcoSchemas.string.required(),
18
18
  path: marcoSchemas.string.required(),
19
+ specialUse: v.nullable(v.enum(LabelSpecialUse)),
19
20
  })),
20
21
  }),
21
22
  mutators: {
@@ -1,3 +1,4 @@
1
+ export { marcoClientsUtils } from './utils';
1
2
  export declare const marcoClients: {
2
3
  account: {
3
4
  model: import("valibot").ObjectSchema<{
@@ -13,6 +14,7 @@ export declare const marcoClients: {
13
14
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
14
15
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
15
16
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
17
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../types").LabelSpecialUse, undefined>, undefined>;
16
18
  }, undefined>, undefined>;
17
19
  }, undefined>;
18
20
  mutators: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { account } from './account';
2
2
  import { contact } from './contact';
3
3
  import { thread } from './thread';
4
+ export { marcoClientsUtils } from './utils';
4
5
  export const marcoClients = {
5
6
  account,
6
7
  contact,
@@ -0,0 +1,4 @@
1
+ export declare const marcoClientsUtils: {
2
+ labelSpecialUseOrdering: import("../..").LabelSpecialUse[];
3
+ };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;CAE7B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { labelSpecialUseOrdering } from './labelSpecialUseOrdering';
2
+ export const marcoClientsUtils = {
3
+ labelSpecialUseOrdering,
4
+ };
@@ -0,0 +1,3 @@
1
+ import { LabelSpecialUse } from '../../types';
2
+ export declare const labelSpecialUseOrdering: LabelSpecialUse[];
3
+ //# sourceMappingURL=labelSpecialUseOrdering.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelSpecialUseOrdering.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/labelSpecialUseOrdering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,eAAO,MAAM,uBAAuB,EAAE,eAAe,EAMpD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { LabelSpecialUse } from '../../types';
2
+ export const labelSpecialUseOrdering = [
3
+ LabelSpecialUse.INBOX,
4
+ LabelSpecialUse.SENT,
5
+ LabelSpecialUse.SPAM,
6
+ LabelSpecialUse.ARCHIVE,
7
+ LabelSpecialUse.TRASH,
8
+ ];
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { marcoClients } from './clients';
1
+ export { marcoClients, marcoClientsUtils } from './clients';
2
2
  export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicConfig';
3
3
  export { marcoSDK } from './sdk';
4
- export { ContactAssociationType, MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse, IMAPPasswordConfigStatus } from './types';
4
+ export { LabelSpecialUse, ContactAssociationType, MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse, IMAPPasswordConfigStatus } from './types';
5
5
  export { marcoSchemas } from './schemas';
6
6
  export { marcoWS } from './ws';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AACvK,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AACxL,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { marcoClients } from './clients';
1
+ export { marcoClients, marcoClientsUtils } from './clients';
2
2
  export { marcoPublicConfig, MARCO_ENV } from './marcoPublicConfig';
3
3
  export { marcoSDK } from './sdk';
4
- export { ContactAssociationType, IMAPPasswordConfigStatus } from './types';
4
+ export { LabelSpecialUse, ContactAssociationType, IMAPPasswordConfigStatus } from './types';
5
5
  export { marcoSchemas } from './schemas';
6
6
  export { marcoWS } from './ws';
@@ -38,6 +38,7 @@ export declare const endpoints: {
38
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
39
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
40
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../types").LabelSpecialUse, undefined>, undefined>;
41
42
  }, undefined>, undefined>;
42
43
  }, undefined>;
43
44
  }, undefined>], undefined>, undefined>;
@@ -76,7 +77,10 @@ export declare const endpoints: {
76
77
  }, undefined>], undefined>>;
77
78
  thread: EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
78
79
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
79
- readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
80
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
81
+ readonly id: import("valibot").StringSchema<undefined>;
82
+ readonly version: import("valibot").NumberSchema<undefined>;
83
+ }, undefined>, undefined>;
80
84
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
81
85
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
82
86
  readonly status: import("valibot").LiteralSchema<400, 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,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"}
@@ -35,6 +35,7 @@ export declare const privateGroup: {
35
35
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
36
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
37
37
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
38
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../..").LabelSpecialUse, undefined>, undefined>;
38
39
  }, undefined>, undefined>;
39
40
  }, undefined>;
40
41
  }, undefined>], undefined>, undefined>;
@@ -73,7 +74,10 @@ export declare const privateGroup: {
73
74
  }, undefined>], undefined>>;
74
75
  thread: import("../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
75
76
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
76
- readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
77
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
78
+ readonly id: import("valibot").StringSchema<undefined>;
79
+ readonly version: import("valibot").NumberSchema<undefined>;
80
+ }, undefined>, undefined>;
77
81
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
78
82
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
79
83
  readonly status: import("valibot").LiteralSchema<400, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
@@ -34,6 +34,7 @@ export declare const sync: {
34
34
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
36
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
37
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../../..").LabelSpecialUse, undefined>, undefined>;
37
38
  }, undefined>, undefined>;
38
39
  }, undefined>;
39
40
  }, undefined>], undefined>, undefined>;
@@ -72,7 +73,10 @@ export declare const sync: {
72
73
  }, undefined>], undefined>>;
73
74
  thread: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
74
75
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
75
- readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
76
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
77
+ readonly id: import("valibot").StringSchema<undefined>;
78
+ readonly version: import("valibot").NumberSchema<undefined>;
79
+ }, undefined>, undefined>;
76
80
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
77
81
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
78
82
  readonly status: import("valibot").LiteralSchema<400, undefined>;
@@ -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"}
@@ -33,6 +33,7 @@ export declare const syncPullAccount: import("../../../../../types").EndpointCon
33
33
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
34
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ readonly specialUse: v.NullableSchema<v.EnumSchema<typeof import("../../../../../types").LabelSpecialUse, undefined>, undefined>;
36
37
  }, undefined>, undefined>;
37
38
  }, undefined>;
38
39
  }, undefined>], undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -33,6 +33,7 @@ export declare const pull: {
33
33
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
34
34
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../../../..").LabelSpecialUse, undefined>, undefined>;
36
37
  }, undefined>, undefined>;
37
38
  }, undefined>;
38
39
  }, undefined>], undefined>, undefined>;
@@ -71,7 +72,10 @@ export declare const pull: {
71
72
  }, undefined>], undefined>>;
72
73
  thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
73
74
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
74
- readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
75
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
76
+ readonly id: import("valibot").StringSchema<undefined>;
77
+ readonly version: import("valibot").NumberSchema<undefined>;
78
+ }, undefined>, undefined>;
75
79
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
76
80
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
77
81
  readonly status: import("valibot").LiteralSchema<400, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
@@ -1,7 +1,10 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullThread: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
- readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
4
+ readonly cookie: v.NullableSchema<v.ObjectSchema<{
5
+ readonly id: v.StringSchema<undefined>;
6
+ readonly version: v.NumberSchema<undefined>;
7
+ }, undefined>, undefined>;
5
8
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
9
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
10
  readonly status: v.LiteralSchema<400, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4BzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
@@ -6,7 +6,10 @@ import { HTTPMethod } from '../../../../../types';
6
6
  export const syncPullThread = createEndpoint({
7
7
  body: v.object({
8
8
  clientGroupID: v.string(),
9
- cookie: v.nullable(v.number()),
9
+ cookie: v.nullable(v.object({
10
+ id: v.string(),
11
+ version: v.number(),
12
+ })),
10
13
  }),
11
14
  method: HTTPMethod.POST,
12
15
  path: thread.pullURL,
@@ -37,6 +37,7 @@ export declare const marcoSDK: {
37
37
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
38
38
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
39
39
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("..").LabelSpecialUse, undefined>, undefined>;
40
41
  }, undefined>, undefined>;
41
42
  }, undefined>;
42
43
  }, undefined>], undefined>, undefined>;
@@ -75,7 +76,10 @@ export declare const marcoSDK: {
75
76
  }, undefined>], undefined>>;
76
77
  thread: import("..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
77
78
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
78
- readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
79
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
80
+ readonly id: import("valibot").StringSchema<undefined>;
81
+ readonly version: import("valibot").NumberSchema<undefined>;
82
+ }, undefined>, undefined>;
79
83
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
80
84
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
81
85
  readonly status: import("valibot").LiteralSchema<400, 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"}
@@ -0,0 +1,8 @@
1
+ export declare enum LabelSpecialUse {
2
+ ARCHIVE = "ARCHIVE",
3
+ INBOX = "INBOX",
4
+ SENT = "SENT",
5
+ SPAM = "SPAM",
6
+ TRASH = "TRASH"
7
+ }
8
+ //# sourceMappingURL=LabelSpecialUse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelSpecialUse.d.ts","sourceRoot":"","sources":["../../src/types/LabelSpecialUse.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,8 @@
1
+ export var LabelSpecialUse;
2
+ (function (LabelSpecialUse) {
3
+ LabelSpecialUse["ARCHIVE"] = "ARCHIVE";
4
+ LabelSpecialUse["INBOX"] = "INBOX";
5
+ LabelSpecialUse["SENT"] = "SENT";
6
+ LabelSpecialUse["SPAM"] = "SPAM";
7
+ LabelSpecialUse["TRASH"] = "TRASH";
8
+ })(LabelSpecialUse || (LabelSpecialUse = {}));
@@ -1,6 +1,7 @@
1
1
  export * from './ContactAssociationType';
2
2
  export * from './Endpoint';
3
3
  export * from './IMAPPasswordConfigStatus';
4
+ export * from './LabelSpecialUse';
4
5
  export * from './MarcoClient';
5
6
  export * from './WS';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './ContactAssociationType';
2
2
  export * from './Endpoint';
3
3
  export * from './IMAPPasswordConfigStatus';
4
+ export * from './LabelSpecialUse';
4
5
  export * from './MarcoClient';
5
6
  export * from './WS';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.123",
3
+ "version": "2.0.125",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",