@marcoappio/marco-config 2.0.340 → 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 (40) 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 +28 -1
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/clients/user.d.ts +17 -0
  7. package/dist/clients/user.d.ts.map +1 -1
  8. package/dist/clients/user.js +15 -0
  9. package/dist/sdk/endpoints/index.d.ts +36 -3
  10. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/private/index.d.ts +36 -3
  12. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/sync/index.d.ts +36 -3
  14. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -1
  16. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +7 -1
  18. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  19. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +7 -0
  20. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/sync/push/account.d.ts +15 -0
  22. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  23. package/dist/sdk/endpoints/private/sync/push/account.js +12 -0
  24. package/dist/sdk/endpoints/private/sync/push/index.d.ts +29 -2
  25. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  26. package/dist/sdk/endpoints/private/sync/push/user.d.ts +14 -2
  27. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
  28. package/dist/sdk/endpoints/private/sync/push/user.js +6 -0
  29. package/dist/sdk/index.d.ts +36 -3
  30. package/dist/sdk/index.d.ts.map +1 -1
  31. package/dist/utils/accounts/index.d.ts +4 -0
  32. package/dist/utils/accounts/index.d.ts.map +1 -1
  33. package/dist/utils/accounts/index.js +2 -0
  34. package/dist/utils/accounts/labelIdGenerate.d.ts +5 -0
  35. package/dist/utils/accounts/labelIdGenerate.d.ts.map +1 -0
  36. package/dist/utils/accounts/labelIdGenerate.js +6 -0
  37. package/dist/utils/accounts/labelIdGenerate.test.d.ts +2 -0
  38. package/dist/utils/accounts/labelIdGenerate.test.d.ts.map +1 -0
  39. package/dist/utils/accounts/labelIdGenerate.test.js +51 -0
  40. 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>;
@@ -444,6 +454,13 @@ export declare const marcoClients: {
444
454
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
445
455
  readonly settings: import("valibot").ObjectSchema<{
446
456
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
457
+ readonly notifications: import("valibot").ObjectSchema<{
458
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
459
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
460
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
461
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
462
+ }, undefined>, undefined>;
463
+ }, undefined>;
447
464
  }, undefined>;
448
465
  }, undefined>;
449
466
  mutators: {
@@ -453,6 +470,16 @@ export declare const marcoClients: {
453
470
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
454
471
  }, undefined>;
455
472
  };
473
+ setSettingsPushNotificationToken: {
474
+ delta: import("valibot").ObjectSchema<{
475
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
476
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
477
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
478
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
479
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
480
+ }, undefined>;
481
+ }, undefined>;
482
+ };
456
483
  };
457
484
  name: "user";
458
485
  pullUrl: "/v1/pv/sync/pull/user";
@@ -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"}
@@ -4,6 +4,13 @@ export declare const user: {
4
4
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
5
5
  readonly settings: v.ObjectSchema<{
6
6
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
+ readonly notifications: v.ObjectSchema<{
8
+ readonly pushNotificationTokens: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
9
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
10
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
+ }, undefined>, undefined>;
13
+ }, undefined>;
7
14
  }, undefined>;
8
15
  }, undefined>;
9
16
  mutators: {
@@ -13,6 +20,16 @@ export declare const user: {
13
20
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
21
  }, undefined>;
15
22
  };
23
+ setSettingsPushNotificationToken: {
24
+ delta: v.ObjectSchema<{
25
+ readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
26
+ readonly pushNotificationToken: v.ObjectSchema<{
27
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
28
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ }, undefined>;
31
+ }, undefined>;
32
+ };
16
33
  };
17
34
  name: "user";
18
35
  pullUrl: "/v1/pv/sync/pull/user";
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAS5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAiBM,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBM,CAAA"}
@@ -1,7 +1,16 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../schemas';
3
+ const pushNotificationToken = v.object({
4
+ createdAt: marcoSchemas.number.positiveInteger(),
5
+ deviceId: marcoSchemas.string.required(),
6
+ token: marcoSchemas.string.required(),
7
+ });
8
+ const pushNotificationTokens = v.record(marcoSchemas.string.required(), pushNotificationToken);
3
9
  const userSettings = v.object({
4
10
  name: marcoSchemas.string.nullable(),
11
+ notifications: v.object({
12
+ pushNotificationTokens,
13
+ }),
5
14
  });
6
15
  export const user = {
7
16
  model: v.object({
@@ -15,6 +24,12 @@ export const user = {
15
24
  name: marcoSchemas.string.nullable(),
16
25
  }),
17
26
  },
27
+ setSettingsPushNotificationToken: {
28
+ delta: v.object({
29
+ id: marcoSchemas.string.shortUUID(),
30
+ pushNotificationToken,
31
+ }),
32
+ },
18
33
  },
19
34
  name: 'user',
20
35
  pullUrl: '/v1/pv/sync/pull/user',
@@ -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>;
@@ -325,6 +324,13 @@ export declare const endpoints: {
325
324
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
326
325
  readonly settings: import("valibot").ObjectSchema<{
327
326
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
327
+ readonly notifications: import("valibot").ObjectSchema<{
328
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
329
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
330
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
331
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
332
+ }, undefined>, undefined>;
333
+ }, undefined>;
328
334
  }, undefined>;
329
335
  }, undefined>;
330
336
  }, undefined>], undefined>, undefined>;
@@ -357,6 +363,14 @@ export declare const endpoints: {
357
363
  readonly clientID: import("valibot").StringSchema<undefined>;
358
364
  readonly id: import("valibot").NumberSchema<undefined>;
359
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>;
360
374
  }, undefined> | import("valibot").ObjectSchema<{
361
375
  readonly args: import("valibot").ObjectSchema<{
362
376
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -372,6 +386,13 @@ export declare const endpoints: {
372
386
  readonly clientID: import("valibot").StringSchema<undefined>;
373
387
  readonly id: import("valibot").NumberSchema<undefined>;
374
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>;
375
396
  }, undefined> | import("valibot").ObjectSchema<{
376
397
  readonly args: import("valibot").ObjectSchema<{
377
398
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -773,7 +794,7 @@ export declare const endpoints: {
773
794
  }, undefined>], undefined>>;
774
795
  user: EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
775
796
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
776
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
797
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
777
798
  readonly args: import("valibot").ObjectSchema<{
778
799
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
779
800
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -781,7 +802,19 @@ export declare const endpoints: {
781
802
  readonly clientID: import("valibot").StringSchema<undefined>;
782
803
  readonly id: import("valibot").NumberSchema<undefined>;
783
804
  readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
784
- }, undefined>[], undefined>, undefined>;
805
+ }, undefined> | import("valibot").ObjectSchema<{
806
+ readonly args: import("valibot").ObjectSchema<{
807
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
808
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
809
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
810
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
811
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
812
+ }, undefined>;
813
+ }, undefined>;
814
+ readonly clientID: import("valibot").StringSchema<undefined>;
815
+ readonly id: import("valibot").NumberSchema<undefined>;
816
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
817
+ }, undefined>)[], undefined>, undefined>;
785
818
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
786
819
  readonly data: import("valibot").ObjectSchema<{
787
820
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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>;
@@ -322,6 +321,13 @@ export declare const privateGroup: {
322
321
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
323
322
  readonly settings: import("valibot").ObjectSchema<{
324
323
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
324
+ readonly notifications: import("valibot").ObjectSchema<{
325
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
326
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
327
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
328
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
329
+ }, undefined>, undefined>;
330
+ }, undefined>;
325
331
  }, undefined>;
326
332
  }, undefined>;
327
333
  }, undefined>], undefined>, undefined>;
@@ -354,6 +360,14 @@ export declare const privateGroup: {
354
360
  readonly clientID: import("valibot").StringSchema<undefined>;
355
361
  readonly id: import("valibot").NumberSchema<undefined>;
356
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>;
357
371
  }, undefined> | import("valibot").ObjectSchema<{
358
372
  readonly args: import("valibot").ObjectSchema<{
359
373
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -369,6 +383,13 @@ export declare const privateGroup: {
369
383
  readonly clientID: import("valibot").StringSchema<undefined>;
370
384
  readonly id: import("valibot").NumberSchema<undefined>;
371
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>;
372
393
  }, undefined> | import("valibot").ObjectSchema<{
373
394
  readonly args: import("valibot").ObjectSchema<{
374
395
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -770,7 +791,7 @@ export declare const privateGroup: {
770
791
  }, undefined>], undefined>>;
771
792
  user: import("../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
772
793
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
773
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
794
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
774
795
  readonly args: import("valibot").ObjectSchema<{
775
796
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
776
797
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -778,7 +799,19 @@ export declare const privateGroup: {
778
799
  readonly clientID: import("valibot").StringSchema<undefined>;
779
800
  readonly id: import("valibot").NumberSchema<undefined>;
780
801
  readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
781
- }, undefined>[], undefined>, undefined>;
802
+ }, undefined> | import("valibot").ObjectSchema<{
803
+ readonly args: import("valibot").ObjectSchema<{
804
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
805
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
806
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
807
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
808
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
809
+ }, undefined>;
810
+ }, undefined>;
811
+ readonly clientID: import("valibot").StringSchema<undefined>;
812
+ readonly id: import("valibot").NumberSchema<undefined>;
813
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
814
+ }, undefined>)[], undefined>, undefined>;
782
815
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
783
816
  readonly data: import("valibot").ObjectSchema<{
784
817
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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>;
@@ -289,6 +288,13 @@ export declare const sync: {
289
288
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
290
289
  readonly settings: import("valibot").ObjectSchema<{
291
290
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
291
+ readonly notifications: import("valibot").ObjectSchema<{
292
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
293
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
294
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
295
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
296
+ }, undefined>, undefined>;
297
+ }, undefined>;
292
298
  }, undefined>;
293
299
  }, undefined>;
294
300
  }, undefined>], undefined>, undefined>;
@@ -321,6 +327,14 @@ export declare const sync: {
321
327
  readonly clientID: import("valibot").StringSchema<undefined>;
322
328
  readonly id: import("valibot").NumberSchema<undefined>;
323
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>;
324
338
  }, undefined> | import("valibot").ObjectSchema<{
325
339
  readonly args: import("valibot").ObjectSchema<{
326
340
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -336,6 +350,13 @@ export declare const sync: {
336
350
  readonly clientID: import("valibot").StringSchema<undefined>;
337
351
  readonly id: import("valibot").NumberSchema<undefined>;
338
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>;
339
360
  }, undefined> | import("valibot").ObjectSchema<{
340
361
  readonly args: import("valibot").ObjectSchema<{
341
362
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -737,7 +758,7 @@ export declare const sync: {
737
758
  }, undefined>], undefined>>;
738
759
  user: import("../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
739
760
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
740
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
761
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
741
762
  readonly args: import("valibot").ObjectSchema<{
742
763
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
743
764
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -745,7 +766,19 @@ export declare const sync: {
745
766
  readonly clientID: import("valibot").StringSchema<undefined>;
746
767
  readonly id: import("valibot").NumberSchema<undefined>;
747
768
  readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
748
- }, undefined>[], undefined>, undefined>;
769
+ }, undefined> | import("valibot").ObjectSchema<{
770
+ readonly args: import("valibot").ObjectSchema<{
771
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
772
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
773
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
774
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
775
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
776
+ }, undefined>;
777
+ }, undefined>;
778
+ readonly clientID: import("valibot").StringSchema<undefined>;
779
+ readonly id: import("valibot").NumberSchema<undefined>;
780
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
781
+ }, undefined>)[], undefined>, undefined>;
749
782
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
750
783
  readonly data: import("valibot").ObjectSchema<{
751
784
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", 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"}
@@ -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>;
@@ -288,6 +287,13 @@ export declare const pull: {
288
287
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
289
288
  readonly settings: import("valibot").ObjectSchema<{
290
289
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
290
+ readonly notifications: import("valibot").ObjectSchema<{
291
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
292
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
293
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
294
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
295
+ }, undefined>, undefined>;
296
+ }, undefined>;
291
297
  }, undefined>;
292
298
  }, undefined>;
293
299
  }, undefined>], 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"}
@@ -33,6 +33,13 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
33
33
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
34
34
  readonly settings: v.ObjectSchema<{
35
35
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly notifications: v.ObjectSchema<{
37
+ readonly pushNotificationTokens: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
38
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
39
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ }, undefined>, undefined>;
42
+ }, undefined>;
36
43
  }, undefined>;
37
44
  }, undefined>;
38
45
  }, undefined>], undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,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>;
@@ -439,7 +454,7 @@ export declare const push: {
439
454
  }, undefined>], undefined>>;
440
455
  user: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
441
456
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
442
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
457
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
443
458
  readonly args: import("valibot").ObjectSchema<{
444
459
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
445
460
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -447,7 +462,19 @@ export declare const push: {
447
462
  readonly clientID: import("valibot").StringSchema<undefined>;
448
463
  readonly id: import("valibot").NumberSchema<undefined>;
449
464
  readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
450
- }, undefined>[], undefined>, undefined>;
465
+ }, undefined> | import("valibot").ObjectSchema<{
466
+ readonly args: import("valibot").ObjectSchema<{
467
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
468
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
469
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
470
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
471
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
472
+ }, undefined>;
473
+ }, undefined>;
474
+ readonly clientID: import("valibot").StringSchema<undefined>;
475
+ readonly id: import("valibot").NumberSchema<undefined>;
476
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
477
+ }, undefined>)[], undefined>, undefined>;
451
478
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
452
479
  readonly data: import("valibot").ObjectSchema<{
453
480
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", 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"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
- readonly mutations: v.ArraySchema<v.UnionSchema<v.ObjectSchema<{
4
+ readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
6
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
7
7
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -9,7 +9,19 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
9
9
  readonly clientID: v.StringSchema<undefined>;
10
10
  readonly id: v.NumberSchema<undefined>;
11
11
  readonly name: v.LiteralSchema<"setSettingsName", undefined>;
12
- }, undefined>[], undefined>, undefined>;
12
+ }, undefined> | v.ObjectSchema<{
13
+ readonly args: v.ObjectSchema<{
14
+ readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
15
+ readonly pushNotificationToken: v.ObjectSchema<{
16
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
17
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ }, undefined>;
20
+ }, undefined>;
21
+ readonly clientID: v.StringSchema<undefined>;
22
+ readonly id: v.NumberSchema<undefined>;
23
+ readonly name: v.LiteralSchema<"setSettingsPushNotificationToken", undefined>;
24
+ }, undefined>)[], undefined>, undefined>;
13
25
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
14
26
  readonly data: v.ObjectSchema<{
15
27
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBvB,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8BvB,CAAA"}
@@ -12,6 +12,12 @@ export const syncPushUser = createEndpoint({
12
12
  id: v.number(),
13
13
  name: v.literal('setSettingsName'),
14
14
  }),
15
+ setSettingsPushNotificationToken: v.object({
16
+ args: user.mutators.setSettingsPushNotificationToken.delta,
17
+ clientID: v.string(),
18
+ id: v.number(),
19
+ name: v.literal('setSettingsPushNotificationToken'),
20
+ }),
15
21
  }))),
16
22
  }),
17
23
  method: 'POST',
@@ -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>;
@@ -324,6 +323,13 @@ export declare const marcoSDK: {
324
323
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
325
324
  readonly settings: import("valibot").ObjectSchema<{
326
325
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
326
+ readonly notifications: import("valibot").ObjectSchema<{
327
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
328
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
329
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
330
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
331
+ }, undefined>, undefined>;
332
+ }, undefined>;
327
333
  }, undefined>;
328
334
  }, undefined>;
329
335
  }, undefined>], undefined>, undefined>;
@@ -356,6 +362,14 @@ export declare const marcoSDK: {
356
362
  readonly clientID: import("valibot").StringSchema<undefined>;
357
363
  readonly id: import("valibot").NumberSchema<undefined>;
358
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>;
359
373
  }, undefined> | import("valibot").ObjectSchema<{
360
374
  readonly args: import("valibot").ObjectSchema<{
361
375
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -371,6 +385,13 @@ export declare const marcoSDK: {
371
385
  readonly clientID: import("valibot").StringSchema<undefined>;
372
386
  readonly id: import("valibot").NumberSchema<undefined>;
373
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>;
374
395
  }, undefined> | import("valibot").ObjectSchema<{
375
396
  readonly args: import("valibot").ObjectSchema<{
376
397
  readonly accountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -772,7 +793,7 @@ export declare const marcoSDK: {
772
793
  }, undefined>], undefined>>;
773
794
  user: import("..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
774
795
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
775
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
796
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
776
797
  readonly args: import("valibot").ObjectSchema<{
777
798
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
778
799
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -780,7 +801,19 @@ export declare const marcoSDK: {
780
801
  readonly clientID: import("valibot").StringSchema<undefined>;
781
802
  readonly id: import("valibot").NumberSchema<undefined>;
782
803
  readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
783
- }, undefined>[], undefined>, undefined>;
804
+ }, undefined> | import("valibot").ObjectSchema<{
805
+ readonly args: import("valibot").ObjectSchema<{
806
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
807
+ readonly pushNotificationToken: import("valibot").ObjectSchema<{
808
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
809
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
810
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
811
+ }, undefined>;
812
+ }, undefined>;
813
+ readonly clientID: import("valibot").StringSchema<undefined>;
814
+ readonly id: import("valibot").NumberSchema<undefined>;
815
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
816
+ }, undefined>)[], undefined>, undefined>;
784
817
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
785
818
  readonly data: import("valibot").ObjectSchema<{
786
819
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", 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"}
@@ -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.340",
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": {