@marcoappio/marco-config 2.0.341 → 2.0.342

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 (32) hide show
  1. package/dist/clients/account.d.ts +11 -1
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/account.js +11 -1
  4. package/dist/clients/index.d.ts +11 -1
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/index.d.ts +15 -1
  7. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  8. package/dist/sdk/endpoints/private/index.d.ts +15 -1
  9. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  10. package/dist/sdk/endpoints/private/sync/index.d.ts +15 -1
  11. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  12. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -1
  13. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -1
  15. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/sync/push/account.d.ts +15 -0
  17. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/push/account.js +12 -0
  19. package/dist/sdk/endpoints/private/sync/push/index.d.ts +15 -0
  20. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  21. package/dist/sdk/index.d.ts +15 -1
  22. package/dist/sdk/index.d.ts.map +1 -1
  23. package/dist/utils/accounts/index.d.ts +4 -0
  24. package/dist/utils/accounts/index.d.ts.map +1 -1
  25. package/dist/utils/accounts/index.js +2 -0
  26. package/dist/utils/accounts/labelIdGenerate.d.ts +5 -0
  27. package/dist/utils/accounts/labelIdGenerate.d.ts.map +1 -0
  28. package/dist/utils/accounts/labelIdGenerate.js +6 -0
  29. package/dist/utils/accounts/labelIdGenerate.test.d.ts +2 -0
  30. package/dist/utils/accounts/labelIdGenerate.test.d.ts.map +1 -0
  31. package/dist/utils/accounts/labelIdGenerate.test.js +51 -0
  32. package/package.json +2 -1
@@ -21,7 +21,6 @@ export declare const account: {
21
21
  readonly processed: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
22
22
  readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
23
23
  }, undefined>;
24
- readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
24
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
25
  readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
27
26
  }, undefined>, undefined>;
@@ -49,6 +48,12 @@ export declare const account: {
49
48
  }, undefined>;
50
49
  }, undefined>;
51
50
  };
51
+ createLabel: {
52
+ delta: v.ObjectSchema<{
53
+ readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
54
+ readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ }, undefined>;
56
+ };
52
57
  deleteAccount: {
53
58
  delta: v.ObjectSchema<{
54
59
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -60,6 +65,11 @@ export declare const account: {
60
65
  readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
61
66
  }, undefined>;
62
67
  };
68
+ deleteLabel: {
69
+ delta: v.ObjectSchema<{
70
+ readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
+ }, undefined>;
72
+ };
63
73
  setAliasName: {
64
74
  delta: v.ObjectSchema<{
65
75
  readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFG,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FG,CAAA"}
@@ -23,7 +23,6 @@ export const account = {
23
23
  processed: v.pipe(v.number(), v.minValue(0)),
24
24
  total: v.pipe(v.number(), v.minValue(0)),
25
25
  }),
26
- name: marcoSchemas.string.required(),
27
26
  path: marcoSchemas.string.required(),
28
27
  specialUse: v.nullable(marcoSchemas.labels.specialUse()),
29
28
  })),
@@ -44,6 +43,12 @@ export const account = {
44
43
  alias: aliasSchema,
45
44
  }),
46
45
  },
46
+ createLabel: {
47
+ delta: v.object({
48
+ accountId: marcoSchemas.string.shortUUID(),
49
+ path: marcoSchemas.string.required(),
50
+ }),
51
+ },
47
52
  deleteAccount: {
48
53
  delta: v.object({
49
54
  id: marcoSchemas.string.shortUUID(),
@@ -55,6 +60,11 @@ export const account = {
55
60
  aliasId: marcoSchemas.string.shortUUID(),
56
61
  }),
57
62
  },
63
+ deleteLabel: {
64
+ delta: v.object({
65
+ labelId: marcoSchemas.string.required(),
66
+ }),
67
+ },
58
68
  setAliasName: {
59
69
  delta: v.object({
60
70
  accountId: marcoSchemas.string.shortUUID(),
@@ -22,7 +22,6 @@ export declare const marcoClients: {
22
22
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
23
23
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
24
24
  }, undefined>;
25
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
26
25
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
27
26
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
28
27
  }, undefined>, undefined>;
@@ -50,6 +49,12 @@ export declare const marcoClients: {
50
49
  }, undefined>;
51
50
  }, undefined>;
52
51
  };
52
+ createLabel: {
53
+ delta: import("valibot").ObjectSchema<{
54
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
55
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ }, undefined>;
57
+ };
53
58
  deleteAccount: {
54
59
  delta: import("valibot").ObjectSchema<{
55
60
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -61,6 +66,11 @@ export declare const marcoClients: {
61
66
  readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
62
67
  }, undefined>;
63
68
  };
69
+ deleteLabel: {
70
+ delta: import("valibot").ObjectSchema<{
71
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
72
+ }, undefined>;
73
+ };
64
74
  setAliasName: {
65
75
  delta: import("valibot").ObjectSchema<{
66
76
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
@@ -87,7 +87,6 @@ export declare const endpoints: {
87
87
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
88
88
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
89
89
  }, undefined>;
90
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
91
90
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
92
91
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
93
92
  }, undefined>, undefined>;
@@ -364,6 +363,14 @@ export declare const endpoints: {
364
363
  readonly clientID: import("valibot").StringSchema<undefined>;
365
364
  readonly id: import("valibot").NumberSchema<undefined>;
366
365
  readonly name: import("valibot").LiteralSchema<"createAlias", undefined>;
366
+ }, undefined> | import("valibot").ObjectSchema<{
367
+ readonly args: import("valibot").ObjectSchema<{
368
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
369
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
370
+ }, undefined>;
371
+ readonly clientID: import("valibot").StringSchema<undefined>;
372
+ readonly id: import("valibot").NumberSchema<undefined>;
373
+ readonly name: import("valibot").LiteralSchema<"createLabel", undefined>;
367
374
  }, undefined> | import("valibot").ObjectSchema<{
368
375
  readonly args: import("valibot").ObjectSchema<{
369
376
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -379,6 +386,13 @@ export declare const endpoints: {
379
386
  readonly clientID: import("valibot").StringSchema<undefined>;
380
387
  readonly id: import("valibot").NumberSchema<undefined>;
381
388
  readonly name: import("valibot").LiteralSchema<"deleteAlias", undefined>;
389
+ }, undefined> | import("valibot").ObjectSchema<{
390
+ readonly args: import("valibot").ObjectSchema<{
391
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
392
+ }, undefined>;
393
+ readonly clientID: import("valibot").StringSchema<undefined>;
394
+ readonly id: import("valibot").NumberSchema<undefined>;
395
+ readonly name: import("valibot").LiteralSchema<"deleteLabel", undefined>;
382
396
  }, undefined> | import("valibot").ObjectSchema<{
383
397
  readonly args: import("valibot").ObjectSchema<{
384
398
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -84,7 +84,6 @@ export declare const privateGroup: {
84
84
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
85
85
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
86
86
  }, undefined>;
87
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
88
87
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
89
88
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
90
89
  }, undefined>, undefined>;
@@ -361,6 +360,14 @@ export declare const privateGroup: {
361
360
  readonly clientID: import("valibot").StringSchema<undefined>;
362
361
  readonly id: import("valibot").NumberSchema<undefined>;
363
362
  readonly name: import("valibot").LiteralSchema<"createAlias", undefined>;
363
+ }, undefined> | import("valibot").ObjectSchema<{
364
+ readonly args: import("valibot").ObjectSchema<{
365
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
366
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
367
+ }, undefined>;
368
+ readonly clientID: import("valibot").StringSchema<undefined>;
369
+ readonly id: import("valibot").NumberSchema<undefined>;
370
+ readonly name: import("valibot").LiteralSchema<"createLabel", undefined>;
364
371
  }, undefined> | import("valibot").ObjectSchema<{
365
372
  readonly args: import("valibot").ObjectSchema<{
366
373
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -376,6 +383,13 @@ export declare const privateGroup: {
376
383
  readonly clientID: import("valibot").StringSchema<undefined>;
377
384
  readonly id: import("valibot").NumberSchema<undefined>;
378
385
  readonly name: import("valibot").LiteralSchema<"deleteAlias", undefined>;
386
+ }, undefined> | import("valibot").ObjectSchema<{
387
+ readonly args: import("valibot").ObjectSchema<{
388
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
389
+ }, undefined>;
390
+ readonly clientID: import("valibot").StringSchema<undefined>;
391
+ readonly id: import("valibot").NumberSchema<undefined>;
392
+ readonly name: import("valibot").LiteralSchema<"deleteLabel", undefined>;
379
393
  }, undefined> | import("valibot").ObjectSchema<{
380
394
  readonly args: import("valibot").ObjectSchema<{
381
395
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -51,7 +51,6 @@ export declare const sync: {
51
51
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
52
52
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
53
53
  }, undefined>;
54
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
55
54
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
56
55
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
57
56
  }, undefined>, undefined>;
@@ -328,6 +327,14 @@ export declare const sync: {
328
327
  readonly clientID: import("valibot").StringSchema<undefined>;
329
328
  readonly id: import("valibot").NumberSchema<undefined>;
330
329
  readonly name: import("valibot").LiteralSchema<"createAlias", undefined>;
330
+ }, undefined> | import("valibot").ObjectSchema<{
331
+ readonly args: import("valibot").ObjectSchema<{
332
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
333
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
334
+ }, undefined>;
335
+ readonly clientID: import("valibot").StringSchema<undefined>;
336
+ readonly id: import("valibot").NumberSchema<undefined>;
337
+ readonly name: import("valibot").LiteralSchema<"createLabel", undefined>;
331
338
  }, undefined> | import("valibot").ObjectSchema<{
332
339
  readonly args: import("valibot").ObjectSchema<{
333
340
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -343,6 +350,13 @@ export declare const sync: {
343
350
  readonly clientID: import("valibot").StringSchema<undefined>;
344
351
  readonly id: import("valibot").NumberSchema<undefined>;
345
352
  readonly name: import("valibot").LiteralSchema<"deleteAlias", undefined>;
353
+ }, undefined> | import("valibot").ObjectSchema<{
354
+ readonly args: import("valibot").ObjectSchema<{
355
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
356
+ }, undefined>;
357
+ readonly clientID: import("valibot").StringSchema<undefined>;
358
+ readonly id: import("valibot").NumberSchema<undefined>;
359
+ readonly name: import("valibot").LiteralSchema<"deleteLabel", undefined>;
346
360
  }, undefined> | import("valibot").ObjectSchema<{
347
361
  readonly args: import("valibot").ObjectSchema<{
348
362
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -50,7 +50,6 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
50
50
  readonly processed: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
51
51
  readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
52
52
  }, undefined>;
53
- readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
53
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
54
  readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
56
55
  }, 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;AAM5B,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;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -50,7 +50,6 @@ export declare const pull: {
50
50
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
51
51
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
52
52
  }, undefined>;
53
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
54
53
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
55
54
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
56
55
  }, undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -23,6 +23,14 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
23
23
  readonly clientID: v.StringSchema<undefined>;
24
24
  readonly id: v.NumberSchema<undefined>;
25
25
  readonly name: v.LiteralSchema<"createAlias", undefined>;
26
+ }, undefined> | v.ObjectSchema<{
27
+ readonly args: v.ObjectSchema<{
28
+ readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
29
+ readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ }, undefined>;
31
+ readonly clientID: v.StringSchema<undefined>;
32
+ readonly id: v.NumberSchema<undefined>;
33
+ readonly name: v.LiteralSchema<"createLabel", undefined>;
26
34
  }, undefined> | v.ObjectSchema<{
27
35
  readonly args: v.ObjectSchema<{
28
36
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -38,6 +46,13 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
38
46
  readonly clientID: v.StringSchema<undefined>;
39
47
  readonly id: v.NumberSchema<undefined>;
40
48
  readonly name: v.LiteralSchema<"deleteAlias", undefined>;
49
+ }, undefined> | v.ObjectSchema<{
50
+ readonly args: v.ObjectSchema<{
51
+ readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
+ }, undefined>;
53
+ readonly clientID: v.StringSchema<undefined>;
54
+ readonly id: v.NumberSchema<undefined>;
55
+ readonly name: v.LiteralSchema<"deleteLabel", undefined>;
41
56
  }, undefined> | v.ObjectSchema<{
42
57
  readonly args: v.ObjectSchema<{
43
58
  readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwE1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoF1B,CAAA"}
@@ -18,6 +18,12 @@ export const syncPushAccount = createEndpoint({
18
18
  id: v.number(),
19
19
  name: v.literal('createAlias'),
20
20
  }),
21
+ createLabel: v.object({
22
+ args: account.mutators.createLabel.delta,
23
+ clientID: v.string(),
24
+ id: v.number(),
25
+ name: v.literal('createLabel'),
26
+ }),
21
27
  deleteAccount: v.object({
22
28
  args: account.mutators.deleteAccount.delta,
23
29
  clientID: v.string(),
@@ -30,6 +36,12 @@ export const syncPushAccount = createEndpoint({
30
36
  id: v.number(),
31
37
  name: v.literal('deleteAlias'),
32
38
  }),
39
+ deleteLabel: v.object({
40
+ args: account.mutators.deleteLabel.delta,
41
+ clientID: v.string(),
42
+ id: v.number(),
43
+ name: v.literal('deleteLabel'),
44
+ }),
33
45
  setAliasName: v.object({
34
46
  args: account.mutators.setAliasName.delta,
35
47
  clientID: v.string(),
@@ -23,6 +23,14 @@ export declare const push: {
23
23
  readonly clientID: import("valibot").StringSchema<undefined>;
24
24
  readonly id: import("valibot").NumberSchema<undefined>;
25
25
  readonly name: import("valibot").LiteralSchema<"createAlias", undefined>;
26
+ }, undefined> | import("valibot").ObjectSchema<{
27
+ readonly args: import("valibot").ObjectSchema<{
28
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
29
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ }, undefined>;
31
+ readonly clientID: import("valibot").StringSchema<undefined>;
32
+ readonly id: import("valibot").NumberSchema<undefined>;
33
+ readonly name: import("valibot").LiteralSchema<"createLabel", undefined>;
26
34
  }, undefined> | import("valibot").ObjectSchema<{
27
35
  readonly args: import("valibot").ObjectSchema<{
28
36
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -38,6 +46,13 @@ export declare const push: {
38
46
  readonly clientID: import("valibot").StringSchema<undefined>;
39
47
  readonly id: import("valibot").NumberSchema<undefined>;
40
48
  readonly name: import("valibot").LiteralSchema<"deleteAlias", undefined>;
49
+ }, undefined> | import("valibot").ObjectSchema<{
50
+ readonly args: import("valibot").ObjectSchema<{
51
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
52
+ }, undefined>;
53
+ readonly clientID: import("valibot").StringSchema<undefined>;
54
+ readonly id: import("valibot").NumberSchema<undefined>;
55
+ readonly name: import("valibot").LiteralSchema<"deleteLabel", undefined>;
41
56
  }, undefined> | import("valibot").ObjectSchema<{
42
57
  readonly args: import("valibot").ObjectSchema<{
43
58
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
@@ -86,7 +86,6 @@ export declare const marcoSDK: {
86
86
  readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
87
87
  readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
88
88
  }, undefined>;
89
- readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
90
89
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
91
90
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
92
91
  }, undefined>, undefined>;
@@ -363,6 +362,14 @@ export declare const marcoSDK: {
363
362
  readonly clientID: import("valibot").StringSchema<undefined>;
364
363
  readonly id: import("valibot").NumberSchema<undefined>;
365
364
  readonly name: import("valibot").LiteralSchema<"createAlias", undefined>;
365
+ }, undefined> | import("valibot").ObjectSchema<{
366
+ readonly args: import("valibot").ObjectSchema<{
367
+ readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
368
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
369
+ }, undefined>;
370
+ readonly clientID: import("valibot").StringSchema<undefined>;
371
+ readonly id: import("valibot").NumberSchema<undefined>;
372
+ readonly name: import("valibot").LiteralSchema<"createLabel", undefined>;
366
373
  }, undefined> | import("valibot").ObjectSchema<{
367
374
  readonly args: import("valibot").ObjectSchema<{
368
375
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -378,6 +385,13 @@ export declare const marcoSDK: {
378
385
  readonly clientID: import("valibot").StringSchema<undefined>;
379
386
  readonly id: import("valibot").NumberSchema<undefined>;
380
387
  readonly name: import("valibot").LiteralSchema<"deleteAlias", undefined>;
388
+ }, undefined> | import("valibot").ObjectSchema<{
389
+ readonly args: import("valibot").ObjectSchema<{
390
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
391
+ }, undefined>;
392
+ readonly clientID: import("valibot").StringSchema<undefined>;
393
+ readonly id: import("valibot").NumberSchema<undefined>;
394
+ readonly name: import("valibot").LiteralSchema<"deleteLabel", undefined>;
381
395
  }, undefined> | import("valibot").ObjectSchema<{
382
396
  readonly args: import("valibot").ObjectSchema<{
383
397
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -1,4 +1,8 @@
1
1
  export declare const accountUtils: {
2
2
  generateColor: (emailAddress: string) => string;
3
+ labelIdGenerate: (params: {
4
+ accountId: string;
5
+ path: string;
6
+ }) => string;
3
7
  };
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;CAIxB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  import { generateAccountColor } from './generateAccountColor';
2
+ import { labelIdGenerate } from './labelIdGenerate';
2
3
  export const accountUtils = {
3
4
  generateColor: generateAccountColor,
5
+ labelIdGenerate,
4
6
  };
@@ -0,0 +1,5 @@
1
+ export declare const labelIdGenerate: (params: {
2
+ accountId: string;
3
+ path: string;
4
+ }) => string;
5
+ //# sourceMappingURL=labelIdGenerate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelIdGenerate.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/labelIdGenerate.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,WAAY;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf,WAOA,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { v5 as uuidv5 } from 'uuid';
2
+ import { shortUUID } from '../../utils';
3
+ export const labelIdGenerate = (params) => {
4
+ const val = uuidv5(JSON.stringify([params.accountId, params.path]), uuidv5.URL);
5
+ return shortUUID.fromUUID(val);
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=labelIdGenerate.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelIdGenerate.test.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/labelIdGenerate.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ import { describe, expect, it } from 'bun:test';
2
+ import { labelIdGenerate } from './labelIdGenerate';
3
+ describe('labelIdGenerate', () => {
4
+ const accountId1 = 'account-uuid-1';
5
+ const accountId2 = 'account-uuid-2';
6
+ const path1 = '/inbox';
7
+ const path2 = '/sent';
8
+ it('should generate different IDs for different paths with same accountId', () => {
9
+ const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
10
+ const id2 = labelIdGenerate({ accountId: accountId1, path: path2 });
11
+ expect(id1).not.toBe(id2);
12
+ expect(typeof id1).toBe('string');
13
+ expect(typeof id2).toBe('string');
14
+ expect(id1.length).toBeGreaterThan(0);
15
+ expect(id2.length).toBeGreaterThan(0);
16
+ });
17
+ it('should generate different IDs for different accountIds with same path', () => {
18
+ const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
19
+ const id2 = labelIdGenerate({ accountId: accountId2, path: path1 });
20
+ expect(id1).not.toBe(id2);
21
+ expect(typeof id1).toBe('string');
22
+ expect(typeof id2).toBe('string');
23
+ expect(id1.length).toBeGreaterThan(0);
24
+ expect(id2.length).toBeGreaterThan(0);
25
+ });
26
+ it('should generate different IDs for different accountIds and different paths', () => {
27
+ const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
28
+ const id2 = labelIdGenerate({ accountId: accountId2, path: path2 });
29
+ expect(id1).not.toBe(id2);
30
+ expect(typeof id1).toBe('string');
31
+ expect(typeof id2).toBe('string');
32
+ expect(id1.length).toBeGreaterThan(0);
33
+ expect(id2.length).toBeGreaterThan(0);
34
+ });
35
+ it('should generate the same ID for identical inputs (deterministic)', () => {
36
+ const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
37
+ const id2 = labelIdGenerate({ accountId: accountId1, path: path1 });
38
+ expect(id1).toBe(id2);
39
+ });
40
+ it('should handle empty strings', () => {
41
+ const id1 = labelIdGenerate({ accountId: '', path: '' });
42
+ const id2 = labelIdGenerate({ accountId: 'test', path: '' });
43
+ const id3 = labelIdGenerate({ accountId: '', path: 'test' });
44
+ expect(id1).not.toBe(id2);
45
+ expect(id1).not.toBe(id3);
46
+ expect(id2).not.toBe(id3);
47
+ expect(typeof id1).toBe('string');
48
+ expect(typeof id2).toBe('string');
49
+ expect(typeof id3).toBe('string');
50
+ });
51
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
3
  "packageManager": "bun@1.2.0",
4
- "version": "2.0.341",
4
+ "version": "2.0.342",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -34,6 +34,7 @@
34
34
  "eslint-plugin-sort-keys-fix": "1.1.2",
35
35
  "eslint-plugin-typescript-sort-keys": "2.3.0",
36
36
  "short-uuid": "5.2.0",
37
+ "uuid": "11.1.0",
37
38
  "valibot": "1.0.0-beta.9"
38
39
  },
39
40
  "devDependencies": {