@marcoappio/marco-config 2.0.327 → 2.0.328

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 (35) hide show
  1. package/dist/clients/draft.d.ts +0 -7
  2. package/dist/clients/draft.d.ts.map +1 -1
  3. package/dist/clients/draft.js +0 -8
  4. package/dist/clients/index.d.ts +24 -33
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/clients/user.d.ts +24 -26
  7. package/dist/clients/user.d.ts.map +1 -1
  8. package/dist/clients/user.js +16 -3
  9. package/dist/schemas/index.d.ts +3 -0
  10. package/dist/schemas/index.d.ts.map +1 -1
  11. package/dist/schemas/index.js +7 -0
  12. package/dist/sdk/endpoints/index.d.ts +28 -37
  13. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/index.d.ts +28 -37
  15. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/sync/index.d.ts +28 -37
  17. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +14 -0
  19. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +14 -0
  21. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +0 -9
  23. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/push/draft.js +0 -6
  25. package/dist/sdk/endpoints/private/sync/push/index.d.ts +14 -37
  26. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/push/user.d.ts +14 -28
  28. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/sync/push/user.js +9 -3
  30. package/dist/sdk/index.d.ts +28 -37
  31. package/dist/sdk/index.d.ts.map +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +1 -1
  35. package/package.json +1 -1
@@ -109,13 +109,6 @@ export declare const draft: {
109
109
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
110
110
  }, undefined>;
111
111
  };
112
- setEmailAccountId: {
113
- delta: v.ObjectSchema<{
114
- readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
115
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
116
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
117
- }, undefined>;
118
- };
119
112
  setEnvelope: {
120
113
  delta: v.ObjectSchema<{
121
114
  readonly envelope: Omit<v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FK,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFK,CAAA"}
@@ -86,14 +86,6 @@ export const draft = {
86
86
  updatedAt: marcoSchemas.number.positiveInteger(),
87
87
  }),
88
88
  },
89
- // Deprecated
90
- setEmailAccountId: {
91
- delta: v.object({
92
- emailAccountId: marcoSchemas.string.shortUUID(),
93
- id: marcoSchemas.string.shortUUID(),
94
- updatedAt: marcoSchemas.number.positiveInteger(),
95
- }),
96
- },
97
89
  setEnvelope: {
98
90
  delta: v.object({
99
91
  envelope: v.omit(bodySchema, ['content']),
@@ -261,13 +261,6 @@ export declare const marcoClients: {
261
261
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
262
262
  }, undefined>;
263
263
  };
264
- setEmailAccountId: {
265
- delta: import("valibot").ObjectSchema<{
266
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
267
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
268
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
269
- }, undefined>;
270
- };
271
264
  setEnvelope: {
272
265
  delta: import("valibot").ObjectSchema<{
273
266
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -447,38 +440,36 @@ export declare const marcoClients: {
447
440
  user: {
448
441
  model: import("valibot").ObjectSchema<{
449
442
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
443
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
444
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
445
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
446
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
447
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
448
+ }, undefined>, undefined>;
450
449
  readonly settings: import("valibot").ObjectSchema<{
451
450
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
451
+ readonly notifications: import("valibot").ObjectSchema<{
452
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
453
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
454
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
455
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
456
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
457
+ }, undefined>, undefined>;
458
+ }, undefined>;
452
459
  }, undefined>;
453
460
  }, undefined>;
454
461
  mutators: {
455
- setSettings: {
462
+ setSettingsName: {
456
463
  delta: import("valibot").ObjectSchema<{
457
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
458
- readonly settings: Omit<import("valibot").ObjectSchema<{
459
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
460
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
461
- readonly entries: {
462
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
463
- };
464
- readonly '~standard': import("valibot").StandardSchemaProps<{
465
- name?: string | null | undefined;
466
- }, {
467
- name?: string | null | undefined;
468
- }>;
469
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
470
- name?: string | null | undefined;
471
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
472
- readonly '~types'?: {
473
- readonly input: {
474
- name?: string | null | undefined;
475
- };
476
- readonly output: {
477
- name?: string | null | undefined;
478
- };
479
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
480
- } | undefined;
481
- };
464
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
465
+ }, undefined>;
466
+ };
467
+ setSettingsPushNotifactionToken: {
468
+ delta: 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 platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
472
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
482
473
  }, undefined>;
483
474
  };
484
475
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
@@ -2,38 +2,36 @@ import * as v from 'valibot';
2
2
  export declare const user: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
5
+ readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
6
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
7
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
9
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
10
+ }, undefined>, undefined>;
5
11
  readonly settings: v.ObjectSchema<{
6
12
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
13
+ readonly notifications: v.ObjectSchema<{
14
+ readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
15
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
16
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
18
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ }, undefined>, undefined>;
20
+ }, undefined>;
7
21
  }, undefined>;
8
22
  }, undefined>;
9
23
  mutators: {
10
- setSettings: {
24
+ setSettingsName: {
25
+ delta: v.ObjectSchema<{
26
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ }, undefined>;
28
+ };
29
+ setSettingsPushNotifactionToken: {
11
30
  delta: v.ObjectSchema<{
12
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
13
- readonly settings: Omit<v.ObjectSchema<{
14
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
16
- readonly entries: {
17
- readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
18
- };
19
- readonly '~standard': v.StandardSchemaProps<{
20
- name?: string | null | undefined;
21
- }, {
22
- name?: string | null | undefined;
23
- }>;
24
- readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
25
- name?: string | null | undefined;
26
- }, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue>;
27
- readonly '~types'?: {
28
- readonly input: {
29
- name?: string | null | undefined;
30
- };
31
- readonly output: {
32
- name?: string | null | undefined;
33
- };
34
- readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue;
35
- } | undefined;
36
- };
31
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
32
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
34
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
35
  }, undefined>;
38
36
  };
39
37
  };
@@ -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;AAwB5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBM,CAAA"}
@@ -1,20 +1,33 @@
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
+ platform: marcoSchemas.app.platform(),
7
+ token: marcoSchemas.string.required(),
8
+ });
9
+ const pushNotificationTokens = v.record(marcoSchemas.app.platform(), pushNotificationToken);
3
10
  const userSettings = v.object({
4
11
  name: marcoSchemas.string.nullable(),
12
+ notifications: v.object({
13
+ pushNotificationTokens,
14
+ }),
5
15
  });
6
16
  export const user = {
7
17
  model: v.object({
8
18
  id: marcoSchemas.string.shortUUID(),
19
+ pushNotificationTokens,
9
20
  settings: userSettings,
10
21
  }),
11
22
  mutators: {
12
- setSettings: {
23
+ setSettingsName: {
13
24
  delta: v.object({
14
- id: marcoSchemas.string.shortUUID(),
15
- settings: v.partial(userSettings),
25
+ name: marcoSchemas.string.nullable(),
16
26
  }),
17
27
  },
28
+ setSettingsPushNotifactionToken: {
29
+ delta: pushNotificationToken,
30
+ },
18
31
  },
19
32
  name: 'user',
20
33
  pullUrl: '/v1/pv/sync/pull/user',
@@ -1,5 +1,8 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const marcoSchemas: {
3
+ app: {
4
+ platform: () => v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
5
+ };
3
6
  drafts: {
4
7
  contentPatch: {
5
8
  instruction: () => v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAsCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;CAYpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA6CP,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;CAYpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
@@ -9,6 +9,13 @@ const patchInstructionSchema = v.object({
9
9
  value: v.string(),
10
10
  });
11
11
  export const marcoSchemas = {
12
+ app: {
13
+ platform: () => v.union([
14
+ v.literal('ios'),
15
+ v.literal('osx'),
16
+ v.literal('web'),
17
+ ]),
18
+ },
12
19
  drafts: {
13
20
  contentPatch: {
14
21
  instruction: () => patchInstructionSchema,
@@ -324,8 +324,22 @@ export declare const endpoints: {
324
324
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
325
325
  readonly value: import("valibot").ObjectSchema<{
326
326
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
327
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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 platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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>;
327
333
  readonly settings: import("valibot").ObjectSchema<{
328
334
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
335
+ readonly notifications: import("valibot").ObjectSchema<{
336
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
337
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
338
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
339
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
340
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
341
+ }, undefined>, undefined>;
342
+ }, undefined>;
329
343
  }, undefined>;
330
344
  }, undefined>;
331
345
  }, undefined>], undefined>, undefined>;
@@ -569,15 +583,6 @@ export declare const endpoints: {
569
583
  readonly clientID: import("valibot").StringSchema<undefined>;
570
584
  readonly id: import("valibot").NumberSchema<undefined>;
571
585
  readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
572
- }, undefined> | import("valibot").ObjectSchema<{
573
- readonly args: import("valibot").ObjectSchema<{
574
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
575
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
576
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
577
- }, undefined>;
578
- readonly clientID: import("valibot").StringSchema<undefined>;
579
- readonly id: import("valibot").NumberSchema<undefined>;
580
- readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
581
586
  }, undefined> | import("valibot").ObjectSchema<{
582
587
  readonly args: import("valibot").ObjectSchema<{
583
588
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -765,38 +770,24 @@ export declare const endpoints: {
765
770
  }, undefined>], undefined>>;
766
771
  user: EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
767
772
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
768
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
773
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
769
774
  readonly args: import("valibot").ObjectSchema<{
770
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
771
- readonly settings: Omit<import("valibot").ObjectSchema<{
772
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
773
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
774
- readonly entries: {
775
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
776
- };
777
- readonly '~standard': import("valibot").StandardSchemaProps<{
778
- name?: string | null | undefined;
779
- }, {
780
- name?: string | null | undefined;
781
- }>;
782
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
783
- name?: string | null | undefined;
784
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
785
- readonly '~types'?: {
786
- readonly input: {
787
- name?: string | null | undefined;
788
- };
789
- readonly output: {
790
- name?: string | null | undefined;
791
- };
792
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
793
- } | undefined;
794
- };
775
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
795
776
  }, undefined>;
796
777
  readonly clientID: import("valibot").StringSchema<undefined>;
797
778
  readonly id: import("valibot").NumberSchema<undefined>;
798
- readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
799
- }, undefined>[], undefined>, undefined>;
779
+ readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
780
+ }, undefined> | import("valibot").ObjectSchema<{
781
+ readonly args: import("valibot").ObjectSchema<{
782
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
783
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
784
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
785
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
786
+ }, undefined>;
787
+ readonly clientID: import("valibot").StringSchema<undefined>;
788
+ readonly id: import("valibot").NumberSchema<undefined>;
789
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
790
+ }, undefined>)[], undefined>, undefined>;
800
791
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
801
792
  readonly data: import("valibot").ObjectSchema<{
802
793
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -321,8 +321,22 @@ export declare const privateGroup: {
321
321
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
322
322
  readonly value: import("valibot").ObjectSchema<{
323
323
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
324
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
325
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
326
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
327
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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>;
324
330
  readonly settings: import("valibot").ObjectSchema<{
325
331
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
332
+ readonly notifications: import("valibot").ObjectSchema<{
333
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
334
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
335
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
336
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
337
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
338
+ }, undefined>, undefined>;
339
+ }, undefined>;
326
340
  }, undefined>;
327
341
  }, undefined>;
328
342
  }, undefined>], undefined>, undefined>;
@@ -566,15 +580,6 @@ export declare const privateGroup: {
566
580
  readonly clientID: import("valibot").StringSchema<undefined>;
567
581
  readonly id: import("valibot").NumberSchema<undefined>;
568
582
  readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
569
- }, undefined> | import("valibot").ObjectSchema<{
570
- readonly args: import("valibot").ObjectSchema<{
571
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
572
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
573
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
574
- }, undefined>;
575
- readonly clientID: import("valibot").StringSchema<undefined>;
576
- readonly id: import("valibot").NumberSchema<undefined>;
577
- readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
578
583
  }, undefined> | import("valibot").ObjectSchema<{
579
584
  readonly args: import("valibot").ObjectSchema<{
580
585
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -762,38 +767,24 @@ export declare const privateGroup: {
762
767
  }, undefined>], undefined>>;
763
768
  user: import("../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
764
769
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
765
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
770
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
766
771
  readonly args: import("valibot").ObjectSchema<{
767
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
768
- readonly settings: Omit<import("valibot").ObjectSchema<{
769
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
770
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
771
- readonly entries: {
772
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
773
- };
774
- readonly '~standard': import("valibot").StandardSchemaProps<{
775
- name?: string | null | undefined;
776
- }, {
777
- name?: string | null | undefined;
778
- }>;
779
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
780
- name?: string | null | undefined;
781
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
782
- readonly '~types'?: {
783
- readonly input: {
784
- name?: string | null | undefined;
785
- };
786
- readonly output: {
787
- name?: string | null | undefined;
788
- };
789
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
790
- } | undefined;
791
- };
772
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
792
773
  }, undefined>;
793
774
  readonly clientID: import("valibot").StringSchema<undefined>;
794
775
  readonly id: import("valibot").NumberSchema<undefined>;
795
- readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
796
- }, undefined>[], undefined>, undefined>;
776
+ readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
777
+ }, undefined> | import("valibot").ObjectSchema<{
778
+ readonly args: import("valibot").ObjectSchema<{
779
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
780
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
781
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
782
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
783
+ }, undefined>;
784
+ readonly clientID: import("valibot").StringSchema<undefined>;
785
+ readonly id: import("valibot").NumberSchema<undefined>;
786
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
787
+ }, undefined>)[], undefined>, undefined>;
797
788
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
798
789
  readonly data: import("valibot").ObjectSchema<{
799
790
  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,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -288,8 +288,22 @@ export declare const sync: {
288
288
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
289
289
  readonly value: import("valibot").ObjectSchema<{
290
290
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
291
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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 platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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>;
291
297
  readonly settings: import("valibot").ObjectSchema<{
292
298
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
299
+ readonly notifications: import("valibot").ObjectSchema<{
300
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
301
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
302
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
303
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
304
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
305
+ }, undefined>, undefined>;
306
+ }, undefined>;
293
307
  }, undefined>;
294
308
  }, undefined>;
295
309
  }, undefined>], undefined>, undefined>;
@@ -533,15 +547,6 @@ export declare const sync: {
533
547
  readonly clientID: import("valibot").StringSchema<undefined>;
534
548
  readonly id: import("valibot").NumberSchema<undefined>;
535
549
  readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
536
- }, undefined> | import("valibot").ObjectSchema<{
537
- readonly args: import("valibot").ObjectSchema<{
538
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
539
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
540
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
541
- }, undefined>;
542
- readonly clientID: import("valibot").StringSchema<undefined>;
543
- readonly id: import("valibot").NumberSchema<undefined>;
544
- readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
545
550
  }, undefined> | import("valibot").ObjectSchema<{
546
551
  readonly args: import("valibot").ObjectSchema<{
547
552
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -729,38 +734,24 @@ export declare const sync: {
729
734
  }, undefined>], undefined>>;
730
735
  user: import("../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
731
736
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
732
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
737
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
733
738
  readonly args: import("valibot").ObjectSchema<{
734
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
735
- readonly settings: Omit<import("valibot").ObjectSchema<{
736
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
737
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
738
- readonly entries: {
739
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
740
- };
741
- readonly '~standard': import("valibot").StandardSchemaProps<{
742
- name?: string | null | undefined;
743
- }, {
744
- name?: string | null | undefined;
745
- }>;
746
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
747
- name?: string | null | undefined;
748
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
749
- readonly '~types'?: {
750
- readonly input: {
751
- name?: string | null | undefined;
752
- };
753
- readonly output: {
754
- name?: string | null | undefined;
755
- };
756
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
757
- } | undefined;
758
- };
739
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
759
740
  }, undefined>;
760
741
  readonly clientID: import("valibot").StringSchema<undefined>;
761
742
  readonly id: import("valibot").NumberSchema<undefined>;
762
- readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
763
- }, undefined>[], undefined>, undefined>;
743
+ readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
744
+ }, undefined> | import("valibot").ObjectSchema<{
745
+ readonly args: import("valibot").ObjectSchema<{
746
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
747
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
748
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
749
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
750
+ }, undefined>;
751
+ readonly clientID: import("valibot").StringSchema<undefined>;
752
+ readonly id: import("valibot").NumberSchema<undefined>;
753
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
754
+ }, undefined>)[], undefined>, undefined>;
764
755
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
765
756
  readonly data: import("valibot").ObjectSchema<{
766
757
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -287,8 +287,22 @@ export declare const pull: {
287
287
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
288
288
  readonly value: import("valibot").ObjectSchema<{
289
289
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
290
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
291
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
292
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
293
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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>;
290
296
  readonly settings: import("valibot").ObjectSchema<{
291
297
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
298
+ readonly notifications: import("valibot").ObjectSchema<{
299
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
300
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
301
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
302
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
303
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
304
+ }, undefined>, undefined>;
305
+ }, undefined>;
292
306
  }, undefined>;
293
307
  }, undefined>;
294
308
  }, 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"}
@@ -31,8 +31,22 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
31
31
  readonly op: v.LiteralSchema<"put", undefined>;
32
32
  readonly value: v.ObjectSchema<{
33
33
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
34
+ readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
35
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
36
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
38
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
39
+ }, undefined>, undefined>;
34
40
  readonly settings: v.ObjectSchema<{
35
41
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ readonly notifications: v.ObjectSchema<{
43
+ readonly pushNotificationTokens: v.RecordSchema<v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>, v.ObjectSchema<{
44
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
45
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
47
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
+ }, undefined>, undefined>;
49
+ }, undefined>;
36
50
  }, undefined>;
37
51
  }, undefined>;
38
52
  }, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBvB,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"}
@@ -95,15 +95,6 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
95
95
  readonly clientID: v.StringSchema<undefined>;
96
96
  readonly id: v.NumberSchema<undefined>;
97
97
  readonly name: v.LiteralSchema<"setContent", undefined>;
98
- }, undefined> | v.ObjectSchema<{
99
- readonly args: v.ObjectSchema<{
100
- readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
101
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
102
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
103
- }, undefined>;
104
- readonly clientID: v.StringSchema<undefined>;
105
- readonly id: v.NumberSchema<undefined>;
106
- readonly name: v.LiteralSchema<"setEmailAccountId", undefined>;
107
98
  }, undefined> | v.ObjectSchema<{
108
99
  readonly args: v.ObjectSchema<{
109
100
  readonly envelope: Omit<v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyFxB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmFxB,CAAA"}
@@ -48,12 +48,6 @@ export const syncPushDraft = createEndpoint({
48
48
  id: v.number(),
49
49
  name: v.literal('setContent'),
50
50
  }),
51
- setEmailAccountId: v.object({
52
- args: draft.mutators.setEmailAccountId.delta,
53
- clientID: v.string(),
54
- id: v.number(),
55
- name: v.literal('setEmailAccountId'),
56
- }),
57
51
  setEnvelope: v.object({
58
52
  args: draft.mutators.setEnvelope.delta,
59
53
  clientID: v.string(),
@@ -234,15 +234,6 @@ export declare const push: {
234
234
  readonly clientID: import("valibot").StringSchema<undefined>;
235
235
  readonly id: import("valibot").NumberSchema<undefined>;
236
236
  readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
237
- }, undefined> | import("valibot").ObjectSchema<{
238
- readonly args: import("valibot").ObjectSchema<{
239
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
240
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
241
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
242
- }, undefined>;
243
- readonly clientID: import("valibot").StringSchema<undefined>;
244
- readonly id: import("valibot").NumberSchema<undefined>;
245
- readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
246
237
  }, undefined> | import("valibot").ObjectSchema<{
247
238
  readonly args: import("valibot").ObjectSchema<{
248
239
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -430,38 +421,24 @@ export declare const push: {
430
421
  }, undefined>], undefined>>;
431
422
  user: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
432
423
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
433
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
424
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
434
425
  readonly args: import("valibot").ObjectSchema<{
435
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
436
- readonly settings: Omit<import("valibot").ObjectSchema<{
437
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
438
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
439
- readonly entries: {
440
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
441
- };
442
- readonly '~standard': import("valibot").StandardSchemaProps<{
443
- name?: string | null | undefined;
444
- }, {
445
- name?: string | null | undefined;
446
- }>;
447
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
448
- name?: string | null | undefined;
449
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
450
- readonly '~types'?: {
451
- readonly input: {
452
- name?: string | null | undefined;
453
- };
454
- readonly output: {
455
- name?: string | null | undefined;
456
- };
457
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
458
- } | undefined;
459
- };
426
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
460
427
  }, undefined>;
461
428
  readonly clientID: import("valibot").StringSchema<undefined>;
462
429
  readonly id: import("valibot").NumberSchema<undefined>;
463
- readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
464
- }, undefined>[], undefined>, undefined>;
430
+ readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
431
+ }, undefined> | import("valibot").ObjectSchema<{
432
+ readonly args: import("valibot").ObjectSchema<{
433
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
434
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
435
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
436
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
437
+ }, undefined>;
438
+ readonly clientID: import("valibot").StringSchema<undefined>;
439
+ readonly id: import("valibot").NumberSchema<undefined>;
440
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
441
+ }, undefined>)[], undefined>, undefined>;
465
442
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
466
443
  readonly data: import("valibot").ObjectSchema<{
467
444
  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,38 +1,24 @@
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
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
7
- readonly settings: Omit<v.ObjectSchema<{
8
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
9
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
10
- readonly entries: {
11
- readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
12
- };
13
- readonly '~standard': v.StandardSchemaProps<{
14
- name?: string | null | undefined;
15
- }, {
16
- name?: string | null | undefined;
17
- }>;
18
- readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
19
- name?: string | null | undefined;
20
- }, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue>;
21
- readonly '~types'?: {
22
- readonly input: {
23
- name?: string | null | undefined;
24
- };
25
- readonly output: {
26
- name?: string | null | undefined;
27
- };
28
- readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue;
29
- } | undefined;
30
- };
6
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
7
  }, undefined>;
32
8
  readonly clientID: v.StringSchema<undefined>;
33
9
  readonly id: v.NumberSchema<undefined>;
34
- readonly name: v.LiteralSchema<"setSettings", undefined>;
35
- }, undefined>[], undefined>, undefined>;
10
+ readonly name: v.LiteralSchema<"setSettingsName", undefined>;
11
+ }, undefined> | v.ObjectSchema<{
12
+ readonly args: v.ObjectSchema<{
13
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
14
+ readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
+ readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
16
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
+ }, undefined>;
18
+ readonly clientID: v.StringSchema<undefined>;
19
+ readonly id: v.NumberSchema<undefined>;
20
+ readonly name: v.LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
21
+ }, undefined>)[], undefined>, undefined>;
36
22
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
37
23
  readonly data: v.ObjectSchema<{
38
24
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6BvB,CAAA"}
@@ -6,11 +6,17 @@ export const syncPushUser = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
8
8
  mutations: v.array(v.union(Object.values({
9
- setSettings: v.object({
10
- args: user.mutators.setSettings.delta,
9
+ setSettingsName: v.object({
10
+ args: user.mutators.setSettingsName.delta,
11
11
  clientID: v.string(),
12
12
  id: v.number(),
13
- name: v.literal('setSettings'),
13
+ name: v.literal('setSettingsName'),
14
+ }),
15
+ setSettingsPushNotifactionToken: v.object({
16
+ args: user.mutators.setSettingsPushNotifactionToken.delta,
17
+ clientID: v.string(),
18
+ id: v.number(),
19
+ name: v.literal('setSettingsPushNotifactionToken'),
14
20
  }),
15
21
  }))),
16
22
  }),
@@ -323,8 +323,22 @@ export declare const marcoSDK: {
323
323
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
324
324
  readonly value: import("valibot").ObjectSchema<{
325
325
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
326
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
327
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
328
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
329
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", 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>;
326
332
  readonly settings: import("valibot").ObjectSchema<{
327
333
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
334
+ readonly notifications: import("valibot").ObjectSchema<{
335
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>, import("valibot").ObjectSchema<{
336
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
337
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
338
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
339
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
340
+ }, undefined>, undefined>;
341
+ }, undefined>;
328
342
  }, undefined>;
329
343
  }, undefined>;
330
344
  }, undefined>], undefined>, undefined>;
@@ -568,15 +582,6 @@ export declare const marcoSDK: {
568
582
  readonly clientID: import("valibot").StringSchema<undefined>;
569
583
  readonly id: import("valibot").NumberSchema<undefined>;
570
584
  readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
571
- }, undefined> | import("valibot").ObjectSchema<{
572
- readonly args: import("valibot").ObjectSchema<{
573
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
574
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
575
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
576
- }, undefined>;
577
- readonly clientID: import("valibot").StringSchema<undefined>;
578
- readonly id: import("valibot").NumberSchema<undefined>;
579
- readonly name: import("valibot").LiteralSchema<"setEmailAccountId", undefined>;
580
585
  }, undefined> | import("valibot").ObjectSchema<{
581
586
  readonly args: import("valibot").ObjectSchema<{
582
587
  readonly envelope: Omit<import("valibot").ObjectSchema<{
@@ -764,38 +769,24 @@ export declare const marcoSDK: {
764
769
  }, undefined>], undefined>>;
765
770
  user: import("..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
766
771
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
767
- readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
772
+ readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
768
773
  readonly args: import("valibot").ObjectSchema<{
769
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
770
- readonly settings: Omit<import("valibot").ObjectSchema<{
771
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
772
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
773
- readonly entries: {
774
- readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
775
- };
776
- readonly '~standard': import("valibot").StandardSchemaProps<{
777
- name?: string | null | undefined;
778
- }, {
779
- name?: string | null | undefined;
780
- }>;
781
- readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
782
- name?: string | null | undefined;
783
- }, import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue>;
784
- readonly '~types'?: {
785
- readonly input: {
786
- name?: string | null | undefined;
787
- };
788
- readonly output: {
789
- name?: string | null | undefined;
790
- };
791
- readonly issue: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue;
792
- } | undefined;
793
- };
774
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
794
775
  }, undefined>;
795
776
  readonly clientID: import("valibot").StringSchema<undefined>;
796
777
  readonly id: import("valibot").NumberSchema<undefined>;
797
- readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
798
- }, undefined>[], undefined>, undefined>;
778
+ readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
779
+ }, undefined> | import("valibot").ObjectSchema<{
780
+ readonly args: import("valibot").ObjectSchema<{
781
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
782
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
783
+ readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
784
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
785
+ }, undefined>;
786
+ readonly clientID: import("valibot").StringSchema<undefined>;
787
+ readonly id: import("valibot").NumberSchema<undefined>;
788
+ readonly name: import("valibot").LiteralSchema<"setSettingsPushNotifactionToken", undefined>;
789
+ }, undefined>)[], undefined>, undefined>;
799
790
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
800
791
  readonly data: import("valibot").ObjectSchema<{
801
792
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export * from './EmailProvider';
2
2
  export * from './Endpoint';
3
3
  export * from './MarcoClient';
4
- export * from './WS';
5
4
  export * from './SDKError';
5
+ export * from './WS';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA;AACpB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,MAAM,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export * from './EmailProvider';
2
2
  export * from './Endpoint';
3
3
  export * from './MarcoClient';
4
- export * from './WS';
5
4
  export * from './SDKError';
5
+ export * from './WS';
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.327",
4
+ "version": "2.0.328",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",