@marcoappio/marco-config 2.0.187 → 2.0.189

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 (87) hide show
  1. package/dist/constants/api.d.ts +4 -0
  2. package/dist/constants/api.d.ts.map +1 -0
  3. package/dist/constants/api.js +3 -0
  4. package/dist/constants/index.d.ts +3 -0
  5. package/dist/constants/index.d.ts.map +1 -1
  6. package/dist/constants/index.js +2 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
  10. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/index.d.ts +159 -33
  12. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +6 -2
  14. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -2
  16. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -2
  17. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/index.d.ts +111 -22
  19. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/index.d.ts +102 -19
  21. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +11 -2
  23. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -3
  25. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +11 -2
  26. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -3
  28. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +11 -2
  29. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  30. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -3
  31. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +55 -10
  32. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +11 -2
  34. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  35. package/dist/sdk/endpoints/private/sync/pull/thread.js +3 -3
  36. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +11 -2
  37. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  38. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -3
  39. package/dist/sdk/endpoints/private/sync/push/account.d.ts +11 -2
  40. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/push/account.js +3 -3
  42. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +11 -2
  43. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  44. package/dist/sdk/endpoints/private/sync/push/draft.js +3 -3
  45. package/dist/sdk/endpoints/private/sync/push/index.d.ts +47 -9
  46. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  47. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +14 -3
  48. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/private/sync/push/thread.js +4 -4
  50. package/dist/sdk/endpoints/private/sync/push/user.d.ts +11 -2
  51. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
  52. package/dist/sdk/endpoints/private/sync/push/user.js +3 -3
  53. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +3 -1
  54. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
  55. package/dist/sdk/endpoints/private/user/deleteUser.js +2 -2
  56. package/dist/sdk/endpoints/private/user/index.d.ts +3 -1
  57. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
  58. package/dist/sdk/endpoints/public/auth/index.d.ts +48 -11
  59. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  60. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +14 -3
  61. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  62. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  63. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +11 -2
  64. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  65. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +3 -3
  66. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +23 -6
  67. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  68. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +7 -7
  69. package/dist/sdk/endpoints/public/index.d.ts +48 -11
  70. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  71. package/dist/sdk/index.d.ts +220 -33
  72. package/dist/sdk/index.d.ts.map +1 -1
  73. package/dist/sdk/validation/errors.d.ts +77 -31
  74. package/dist/sdk/validation/errors.d.ts.map +1 -1
  75. package/dist/sdk/validation/errors.js +19 -12
  76. package/dist/sdk/validation/index.d.ts +61 -0
  77. package/dist/sdk/validation/index.d.ts.map +1 -1
  78. package/dist/sdk/validation/index.js +2 -3
  79. package/dist/types/Endpoint.d.ts +4 -9
  80. package/dist/types/Endpoint.d.ts.map +1 -1
  81. package/dist/types/SDKError.d.ts +4 -0
  82. package/dist/types/SDKError.d.ts.map +1 -0
  83. package/dist/types/SDKError.js +1 -0
  84. package/dist/types/index.d.ts +1 -0
  85. package/dist/types/index.d.ts.map +1 -1
  86. package/dist/types/index.js +1 -0
  87. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { draft } from '../../../../../clients/draft';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPullDraft = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -10,8 +10,8 @@ export const syncPullDraft = createEndpoint({
10
10
  method: 'POST',
11
11
  path: draft.pullURL,
12
12
  response: v.union([
13
- errorManifest.validationFailedErrorSchema,
14
- errorManifest.authenticationFailedErrorSchema,
13
+ errors.validationFailedErrorSchema,
14
+ errors.authFailedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
17
17
  cookie: v.number(),
@@ -3,10 +3,19 @@ export declare const pull: {
3
3
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
4
4
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly issues: import("valibot").ObjectSchema<{
9
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
11
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
13
+ }, undefined>;
7
14
  readonly status: import("valibot").LiteralSchema<400, undefined>;
8
15
  }, undefined>, import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
18
+ }, undefined>;
10
19
  readonly status: import("valibot").LiteralSchema<401, undefined>;
11
20
  }, undefined>, import("valibot").ObjectSchema<{
12
21
  readonly data: import("valibot").ObjectSchema<{
@@ -56,10 +65,19 @@ export declare const pull: {
56
65
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
57
66
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
58
67
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
59
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
68
+ readonly data: import("valibot").ObjectSchema<{
69
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
70
+ readonly issues: import("valibot").ObjectSchema<{
71
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
72
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
73
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
74
+ }, undefined>;
75
+ }, undefined>;
60
76
  readonly status: import("valibot").LiteralSchema<400, undefined>;
61
77
  }, undefined>, import("valibot").ObjectSchema<{
62
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
78
+ readonly data: import("valibot").ObjectSchema<{
79
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
80
+ }, undefined>;
63
81
  readonly status: import("valibot").LiteralSchema<401, undefined>;
64
82
  }, undefined>, import("valibot").ObjectSchema<{
65
83
  readonly data: import("valibot").ObjectSchema<{
@@ -85,10 +103,19 @@ export declare const pull: {
85
103
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
86
104
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
87
105
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
88
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
106
+ readonly data: import("valibot").ObjectSchema<{
107
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
108
+ readonly issues: import("valibot").ObjectSchema<{
109
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
110
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
111
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
112
+ }, undefined>;
113
+ }, undefined>;
89
114
  readonly status: import("valibot").LiteralSchema<400, undefined>;
90
115
  }, undefined>, import("valibot").ObjectSchema<{
91
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
116
+ readonly data: import("valibot").ObjectSchema<{
117
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
118
+ }, undefined>;
92
119
  readonly status: import("valibot").LiteralSchema<401, undefined>;
93
120
  }, undefined>, import("valibot").ObjectSchema<{
94
121
  readonly data: import("valibot").ObjectSchema<{
@@ -127,10 +154,19 @@ export declare const pull: {
127
154
  readonly version: import("valibot").NumberSchema<undefined>;
128
155
  }, undefined>, undefined>;
129
156
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
130
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
157
+ readonly data: import("valibot").ObjectSchema<{
158
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
159
+ readonly issues: import("valibot").ObjectSchema<{
160
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
161
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
162
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
163
+ }, undefined>;
164
+ }, undefined>;
131
165
  readonly status: import("valibot").LiteralSchema<400, undefined>;
132
166
  }, undefined>, import("valibot").ObjectSchema<{
133
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
167
+ readonly data: import("valibot").ObjectSchema<{
168
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
169
+ }, undefined>;
134
170
  readonly status: import("valibot").LiteralSchema<401, undefined>;
135
171
  }, undefined>, import("valibot").ObjectSchema<{
136
172
  readonly data: import("valibot").ObjectSchema<{
@@ -190,10 +226,19 @@ export declare const pull: {
190
226
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
191
227
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
192
228
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
193
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
229
+ readonly data: import("valibot").ObjectSchema<{
230
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
231
+ readonly issues: import("valibot").ObjectSchema<{
232
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
233
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
234
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
235
+ }, undefined>;
236
+ }, undefined>;
194
237
  readonly status: import("valibot").LiteralSchema<400, undefined>;
195
238
  }, undefined>, import("valibot").ObjectSchema<{
196
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
239
+ readonly data: import("valibot").ObjectSchema<{
240
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
241
+ }, undefined>;
197
242
  readonly status: import("valibot").LiteralSchema<401, undefined>;
198
243
  }, undefined>, import("valibot").ObjectSchema<{
199
244
  readonly data: import("valibot").ObjectSchema<{
@@ -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"}
@@ -7,10 +7,19 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
7
7
  readonly version: v.NumberSchema<undefined>;
8
8
  }, undefined>, undefined>;
9
9
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
10
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
12
+ readonly issues: v.ObjectSchema<{
13
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
14
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
15
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
16
+ }, undefined>;
17
+ }, undefined>;
11
18
  readonly status: v.LiteralSchema<400, undefined>;
12
19
  }, undefined>, v.ObjectSchema<{
13
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
22
+ }, undefined>;
14
23
  readonly status: v.LiteralSchema<401, undefined>;
15
24
  }, undefined>, v.ObjectSchema<{
16
25
  readonly data: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCzB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { thread } from '../../../../../clients/thread';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPullThread = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -14,8 +14,8 @@ export const syncPullThread = createEndpoint({
14
14
  method: 'POST',
15
15
  path: thread.pullURL,
16
16
  response: v.union([
17
- errorManifest.validationFailedErrorSchema,
18
- errorManifest.authenticationFailedErrorSchema,
17
+ errors.validationFailedErrorSchema,
18
+ errors.authFailedErrorSchema,
19
19
  v.object({
20
20
  data: v.object({
21
21
  cookie: v.object({
@@ -3,10 +3,19 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly issues: v.ObjectSchema<{
9
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
11
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
13
+ }, undefined>;
7
14
  readonly status: v.LiteralSchema<400, undefined>;
8
15
  }, undefined>, v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
18
+ }, undefined>;
10
19
  readonly status: v.LiteralSchema<401, undefined>;
11
20
  }, undefined>, v.ObjectSchema<{
12
21
  readonly data: v.ObjectSchema<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBvB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { user } from '../../../../../clients/user';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPullUser = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -10,8 +10,8 @@ export const syncPullUser = createEndpoint({
10
10
  method: 'POST',
11
11
  path: user.pullURL,
12
12
  response: v.union([
13
- errorManifest.validationFailedErrorSchema,
14
- errorManifest.authenticationFailedErrorSchema,
13
+ errors.validationFailedErrorSchema,
14
+ errors.authFailedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
17
17
  cookie: v.number(),
@@ -80,10 +80,19 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
80
80
  readonly name: v.LiteralSchema<"setSettings", undefined>;
81
81
  }, undefined>], undefined>, undefined>;
82
82
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
83
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
83
+ readonly data: v.ObjectSchema<{
84
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
85
+ readonly issues: v.ObjectSchema<{
86
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
87
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
88
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
89
+ }, undefined>;
90
+ }, undefined>;
84
91
  readonly status: v.LiteralSchema<400, undefined>;
85
92
  }, undefined>, v.ObjectSchema<{
86
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
93
+ readonly data: v.ObjectSchema<{
94
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
95
+ }, undefined>;
87
96
  readonly status: v.LiteralSchema<401, undefined>;
88
97
  }, undefined>, v.ObjectSchema<{
89
98
  readonly status: v.LiteralSchema<200, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqC1B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuC1B,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { account } from '../../../../../clients/account';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPushAccount = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -35,8 +35,8 @@ export const syncPushAccount = createEndpoint({
35
35
  method: 'POST',
36
36
  path: account.pushURL,
37
37
  response: v.union([
38
- errorManifest.validationFailedErrorSchema,
39
- errorManifest.authenticationFailedErrorSchema,
38
+ errors.validationFailedErrorSchema,
39
+ errors.authFailedErrorSchema,
40
40
  v.object({ status: v.literal(200) }),
41
41
  ]),
42
42
  });
@@ -109,10 +109,19 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
109
109
  readonly name: v.LiteralSchema<"setStatus", undefined>;
110
110
  }, undefined>)[], undefined>, undefined>;
111
111
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
112
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
112
+ readonly data: v.ObjectSchema<{
113
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
114
+ readonly issues: v.ObjectSchema<{
115
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
116
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
117
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
118
+ }, undefined>;
119
+ }, undefined>;
113
120
  readonly status: v.LiteralSchema<400, undefined>;
114
121
  }, undefined>, v.ObjectSchema<{
115
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
122
+ readonly data: v.ObjectSchema<{
123
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
124
+ }, undefined>;
116
125
  readonly status: v.LiteralSchema<401, undefined>;
117
126
  }, undefined>, v.ObjectSchema<{
118
127
  readonly status: v.LiteralSchema<200, undefined>;
@@ -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;AA6C5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcxB,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;AA6C5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcxB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { draft } from '../../../../../clients/draft';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  const mutationHandlers = {
6
6
  create: v.object({
7
7
  args: draft.mutators.create.delta,
@@ -48,8 +48,8 @@ export const syncPushDraft = createEndpoint({
48
48
  method: 'POST',
49
49
  path: draft.pushURL,
50
50
  response: v.union([
51
- errorManifest.validationFailedErrorSchema,
52
- errorManifest.authenticationFailedErrorSchema,
51
+ errors.validationFailedErrorSchema,
52
+ errors.authFailedErrorSchema,
53
53
  v.object({ status: v.literal(200) }),
54
54
  ]),
55
55
  });
@@ -80,10 +80,19 @@ export declare const push: {
80
80
  readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
81
81
  }, undefined>], undefined>, undefined>;
82
82
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
83
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
83
+ readonly data: import("valibot").ObjectSchema<{
84
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
85
+ readonly issues: import("valibot").ObjectSchema<{
86
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
87
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
88
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
89
+ }, undefined>;
90
+ }, undefined>;
84
91
  readonly status: import("valibot").LiteralSchema<400, undefined>;
85
92
  }, undefined>, import("valibot").ObjectSchema<{
86
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
93
+ readonly data: import("valibot").ObjectSchema<{
94
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
95
+ }, undefined>;
87
96
  readonly status: import("valibot").LiteralSchema<401, undefined>;
88
97
  }, undefined>, import("valibot").ObjectSchema<{
89
98
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -198,10 +207,19 @@ export declare const push: {
198
207
  readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
199
208
  }, undefined>)[], undefined>, undefined>;
200
209
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
201
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
210
+ readonly data: import("valibot").ObjectSchema<{
211
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
212
+ readonly issues: import("valibot").ObjectSchema<{
213
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
214
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
215
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
216
+ }, undefined>;
217
+ }, undefined>;
202
218
  readonly status: import("valibot").LiteralSchema<400, undefined>;
203
219
  }, undefined>, import("valibot").ObjectSchema<{
204
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
220
+ readonly data: import("valibot").ObjectSchema<{
221
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
222
+ }, undefined>;
205
223
  readonly status: import("valibot").LiteralSchema<401, undefined>;
206
224
  }, undefined>, import("valibot").ObjectSchema<{
207
225
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -219,13 +237,24 @@ export declare const push: {
219
237
  readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
220
238
  }, undefined>], undefined>, undefined>;
221
239
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
222
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
240
+ readonly data: import("valibot").ObjectSchema<{
241
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
242
+ readonly issues: import("valibot").ObjectSchema<{
243
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
244
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
245
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
246
+ }, undefined>;
247
+ }, undefined>;
223
248
  readonly status: import("valibot").LiteralSchema<400, undefined>;
224
249
  }, undefined>, import("valibot").ObjectSchema<{
225
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
250
+ readonly data: import("valibot").ObjectSchema<{
251
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
252
+ }, undefined>;
226
253
  readonly status: import("valibot").LiteralSchema<401, undefined>;
227
254
  }, undefined>, import("valibot").ObjectSchema<{
228
- readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
255
+ readonly data: import("valibot").ObjectSchema<{
256
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
257
+ }, undefined>;
229
258
  readonly status: import("valibot").LiteralSchema<404, undefined>;
230
259
  }, undefined>, import("valibot").ObjectSchema<{
231
260
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -272,10 +301,19 @@ export declare const push: {
272
301
  readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
273
302
  }, undefined>], undefined>, undefined>;
274
303
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
275
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
304
+ readonly data: import("valibot").ObjectSchema<{
305
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
306
+ readonly issues: import("valibot").ObjectSchema<{
307
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
308
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
309
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
310
+ }, undefined>;
311
+ }, undefined>;
276
312
  readonly status: import("valibot").LiteralSchema<400, undefined>;
277
313
  }, undefined>, import("valibot").ObjectSchema<{
278
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
314
+ readonly data: import("valibot").ObjectSchema<{
315
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
316
+ }, undefined>;
279
317
  readonly status: import("valibot").LiteralSchema<401, undefined>;
280
318
  }, undefined>, import("valibot").ObjectSchema<{
281
319
  readonly status: import("valibot").LiteralSchema<200, 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"}
@@ -12,13 +12,24 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
12
12
  readonly name: v.LiteralSchema<"setMessageSeen", undefined>;
13
13
  }, undefined>], undefined>, undefined>;
14
14
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
15
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
17
+ readonly issues: v.ObjectSchema<{
18
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
19
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
20
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
21
+ }, undefined>;
22
+ }, undefined>;
16
23
  readonly status: v.LiteralSchema<400, undefined>;
17
24
  }, undefined>, v.ObjectSchema<{
18
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
25
+ readonly data: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
27
+ }, undefined>;
19
28
  readonly status: v.LiteralSchema<401, undefined>;
20
29
  }, undefined>, v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
30
+ readonly data: v.ObjectSchema<{
31
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
32
+ }, undefined>;
22
33
  readonly status: v.LiteralSchema<404, undefined>;
23
34
  }, undefined>, v.ObjectSchema<{
24
35
  readonly status: v.LiteralSchema<200, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;2BAoBzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBzB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { thread } from '../../../../../clients/thread';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPushThread = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -17,9 +17,9 @@ export const syncPushThread = createEndpoint({
17
17
  method: 'POST',
18
18
  path: thread.pushURL,
19
19
  response: v.union([
20
- errorManifest.validationFailedErrorSchema,
21
- errorManifest.authenticationFailedErrorSchema,
22
- errorManifest.messageNotFoundErrorSchema,
20
+ errors.validationFailedErrorSchema,
21
+ errors.authFailedErrorSchema,
22
+ errors.messageNotFoundErrorSchema,
23
23
  v.object({ status: v.literal(200) }),
24
24
  ]),
25
25
  });
@@ -41,10 +41,19 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
41
41
  readonly name: v.LiteralSchema<"setSettings", undefined>;
42
42
  }, undefined>], undefined>, undefined>;
43
43
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
44
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
44
+ readonly data: v.ObjectSchema<{
45
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
46
+ readonly issues: v.ObjectSchema<{
47
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
48
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
49
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
50
+ }, undefined>;
51
+ }, undefined>;
45
52
  readonly status: v.LiteralSchema<400, undefined>;
46
53
  }, undefined>, v.ObjectSchema<{
47
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
54
+ readonly data: v.ObjectSchema<{
55
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
56
+ }, undefined>;
48
57
  readonly status: v.LiteralSchema<401, undefined>;
49
58
  }, undefined>, v.ObjectSchema<{
50
59
  readonly status: v.LiteralSchema<200, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmBvB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmBvB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { user } from '../../../../../clients/user';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../../sdk/validation/errors';
5
5
  export const syncPushUser = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
@@ -17,8 +17,8 @@ export const syncPushUser = createEndpoint({
17
17
  method: 'POST',
18
18
  path: user.pushURL,
19
19
  response: v.union([
20
- errorManifest.validationFailedErrorSchema,
21
- errorManifest.authenticationFailedErrorSchema,
20
+ errors.validationFailedErrorSchema,
21
+ errors.authFailedErrorSchema,
22
22
  v.object({ status: v.literal(200) }),
23
23
  ]),
24
24
  });
@@ -1,6 +1,8 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
4
6
  readonly status: v.LiteralSchema<401, undefined>;
5
7
  }, undefined>, v.ObjectSchema<{
6
8
  readonly status: v.LiteralSchema<204, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,UAAU;;;;;2BASrB,CAAA"}
1
+ {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,UAAU;;;;;;;2BASrB,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
2
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { authenticationFailedErrorSchema } from '../../../../sdk/validation/errors';
3
+ import { authFailedErrorSchema } from '../../../../sdk/validation/errors';
4
4
  export const deleteUser = createEndpoint({
5
5
  method: 'DELETE',
6
6
  path: '/v1/pv/user',
7
7
  response: v.union([
8
- authenticationFailedErrorSchema,
8
+ authFailedErrorSchema,
9
9
  v.object({
10
10
  status: v.literal(204),
11
11
  }),
@@ -1,6 +1,8 @@
1
1
  export declare const user: {
2
2
  deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
3
+ readonly data: import("valibot").ObjectSchema<{
4
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
4
6
  readonly status: import("valibot").LiteralSchema<401, undefined>;
5
7
  }, undefined>, import("valibot").ObjectSchema<{
6
8
  readonly status: import("valibot").LiteralSchema<204, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;CAEhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAEhB,CAAA"}