@marcoappio/marco-config 2.0.124 → 2.0.126

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 (41) 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 +9 -0
  17. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/index.d.ts +9 -0
  19. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/index.js +2 -0
  21. package/dist/sdk/endpoints/private/sync/index.d.ts +1 -0
  22. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  23. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -0
  24. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  25. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +1 -0
  26. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +8 -0
  28. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  29. package/dist/sdk/endpoints/private/user/deleteUser.js +14 -0
  30. package/dist/sdk/endpoints/private/user/index.d.ts +9 -0
  31. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  32. package/dist/sdk/endpoints/private/user/index.js +4 -0
  33. package/dist/sdk/index.d.ts +9 -0
  34. package/dist/sdk/index.d.ts.map +1 -1
  35. package/dist/types/LabelSpecialUse.d.ts +8 -0
  36. package/dist/types/LabelSpecialUse.d.ts.map +1 -0
  37. package/dist/types/LabelSpecialUse.js +8 -0
  38. package/dist/types/index.d.ts +1 -0
  39. package/dist/types/index.d.ts.map +1 -1
  40. package/dist/types/index.js +1 -0
  41. 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>;
@@ -160,6 +161,14 @@ export declare const endpoints: {
160
161
  }, undefined>], undefined>>;
161
162
  };
162
163
  };
164
+ user: {
165
+ deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
166
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
167
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
168
+ }, undefined>, import("valibot").ObjectSchema<{
169
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
170
+ }, undefined>], undefined>>;
171
+ };
163
172
  };
164
173
  public: {
165
174
  auth: {
@@ -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>;
@@ -157,5 +158,13 @@ export declare const privateGroup: {
157
158
  }, undefined>], undefined>>;
158
159
  };
159
160
  };
161
+ user: {
162
+ deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
163
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
164
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
165
+ }, undefined>, import("valibot").ObjectSchema<{
166
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
167
+ }, undefined>], undefined>>;
168
+ };
160
169
  };
161
170
  //# sourceMappingURL=index.d.ts.map
@@ -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":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  import { sync } from './sync';
2
+ import { user } from './user';
2
3
  export const privateGroup = {
3
4
  sync,
5
+ user,
4
6
  };
@@ -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>;
@@ -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>;
@@ -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"}
@@ -0,0 +1,8 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteUser: import("../../../../types").EndpointConfig<"/v1/pv/user", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: v.LiteralSchema<401, undefined>;
5
+ }, undefined>, v.ObjectSchema<{
6
+ readonly status: v.LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ //# sourceMappingURL=deleteUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,UAAU;;;;;2BASrB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { notAuthenticatedErrorSchema } from '../../../../sdk/validation/errors';
4
+ import { HTTPMethod } from '../../../../types';
5
+ export const deleteUser = createEndpoint({
6
+ method: HTTPMethod.DELETE,
7
+ path: '/v1/pv/user',
8
+ response: v.union([
9
+ notAuthenticatedErrorSchema,
10
+ v.object({
11
+ status: v.literal(204),
12
+ }),
13
+ ]),
14
+ });
@@ -0,0 +1,9 @@
1
+ export declare const user: {
2
+ deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
5
+ }, undefined>, import("valibot").ObjectSchema<{
6
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ import { deleteUser } from './deleteUser';
2
+ export const user = {
3
+ deleteUser,
4
+ };
@@ -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>;
@@ -159,6 +160,14 @@ export declare const marcoSDK: {
159
160
  }, undefined>], undefined>>;
160
161
  };
161
162
  };
163
+ user: {
164
+ deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
165
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
166
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
167
+ }, undefined>, import("valibot").ObjectSchema<{
168
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
169
+ }, undefined>], undefined>>;
170
+ };
162
171
  };
163
172
  public: {
164
173
  auth: {
@@ -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.124",
3
+ "version": "2.0.126",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",