@marcoappio/marco-config 2.0.188 → 2.0.190

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 (81) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
  4. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  5. package/dist/sdk/endpoints/index.d.ts +159 -33
  6. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  7. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +6 -2
  8. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -2
  10. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -2
  11. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  12. package/dist/sdk/endpoints/private/index.d.ts +111 -22
  13. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/sync/index.d.ts +102 -19
  15. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +11 -2
  17. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -3
  19. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +11 -2
  20. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -3
  22. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +11 -2
  23. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -3
  25. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +55 -10
  26. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +11 -2
  28. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/sync/pull/thread.js +3 -3
  30. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +11 -2
  31. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  32. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -3
  33. package/dist/sdk/endpoints/private/sync/push/account.d.ts +11 -2
  34. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  35. package/dist/sdk/endpoints/private/sync/push/account.js +3 -3
  36. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +11 -2
  37. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  38. package/dist/sdk/endpoints/private/sync/push/draft.js +3 -3
  39. package/dist/sdk/endpoints/private/sync/push/index.d.ts +47 -9
  40. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +14 -3
  42. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  43. package/dist/sdk/endpoints/private/sync/push/thread.js +4 -4
  44. package/dist/sdk/endpoints/private/sync/push/user.d.ts +11 -2
  45. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
  46. package/dist/sdk/endpoints/private/sync/push/user.js +3 -3
  47. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +3 -1
  48. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/private/user/deleteUser.js +2 -2
  50. package/dist/sdk/endpoints/private/user/index.d.ts +3 -1
  51. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
  52. package/dist/sdk/endpoints/public/auth/index.d.ts +48 -11
  53. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  54. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +14 -3
  55. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  56. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  57. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +11 -2
  58. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +3 -3
  60. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +23 -6
  61. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  62. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +7 -7
  63. package/dist/sdk/endpoints/public/index.d.ts +48 -11
  64. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  65. package/dist/sdk/index.d.ts +220 -33
  66. package/dist/sdk/index.d.ts.map +1 -1
  67. package/dist/sdk/validation/errors.d.ts +77 -31
  68. package/dist/sdk/validation/errors.d.ts.map +1 -1
  69. package/dist/sdk/validation/errors.js +19 -12
  70. package/dist/sdk/validation/index.d.ts +61 -0
  71. package/dist/sdk/validation/index.d.ts.map +1 -1
  72. package/dist/sdk/validation/index.js +2 -3
  73. package/dist/types/Endpoint.d.ts +4 -9
  74. package/dist/types/Endpoint.d.ts.map +1 -1
  75. package/dist/types/SDKError.d.ts +4 -0
  76. package/dist/types/SDKError.d.ts.map +1 -0
  77. package/dist/types/SDKError.js +1 -0
  78. package/dist/types/index.d.ts +1 -0
  79. package/dist/types/index.d.ts.map +1 -1
  80. package/dist/types/index.js +1 -0
  81. package/package.json +1 -1
@@ -3,10 +3,14 @@ export declare const marcoSDK: {
3
3
  private: {
4
4
  emailMessage: {
5
5
  getHTML: import("..").EndpointConfig<"/v1/pv/message/:messageId/html", 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<{
6
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
7
9
  readonly status: import("valibot").LiteralSchema<401, undefined>;
8
10
  }, undefined>, import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
11
+ readonly data: import("valibot").ObjectSchema<{
12
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
13
+ }, undefined>;
10
14
  readonly status: import("valibot").LiteralSchema<404, undefined>;
11
15
  }, undefined>, import("valibot").ObjectSchema<{
12
16
  readonly data: import("valibot").ObjectSchema<{
@@ -21,10 +25,19 @@ export declare const marcoSDK: {
21
25
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
22
26
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
23
27
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
24
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
28
+ readonly data: import("valibot").ObjectSchema<{
29
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
30
+ readonly issues: import("valibot").ObjectSchema<{
31
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
32
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
33
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
34
+ }, undefined>;
35
+ }, undefined>;
25
36
  readonly status: import("valibot").LiteralSchema<400, undefined>;
26
37
  }, undefined>, import("valibot").ObjectSchema<{
27
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
38
+ readonly data: import("valibot").ObjectSchema<{
39
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
40
+ }, undefined>;
28
41
  readonly status: import("valibot").LiteralSchema<401, undefined>;
29
42
  }, undefined>, import("valibot").ObjectSchema<{
30
43
  readonly data: import("valibot").ObjectSchema<{
@@ -74,10 +87,19 @@ export declare const marcoSDK: {
74
87
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
75
88
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
76
89
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
77
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
90
+ readonly data: import("valibot").ObjectSchema<{
91
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
92
+ readonly issues: import("valibot").ObjectSchema<{
93
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
94
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
95
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
96
+ }, undefined>;
97
+ }, undefined>;
78
98
  readonly status: import("valibot").LiteralSchema<400, undefined>;
79
99
  }, undefined>, import("valibot").ObjectSchema<{
80
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
100
+ readonly data: import("valibot").ObjectSchema<{
101
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
102
+ }, undefined>;
81
103
  readonly status: import("valibot").LiteralSchema<401, undefined>;
82
104
  }, undefined>, import("valibot").ObjectSchema<{
83
105
  readonly data: import("valibot").ObjectSchema<{
@@ -103,10 +125,19 @@ export declare const marcoSDK: {
103
125
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
104
126
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
105
127
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
106
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
128
+ readonly data: import("valibot").ObjectSchema<{
129
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
130
+ readonly issues: import("valibot").ObjectSchema<{
131
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
132
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
133
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
134
+ }, undefined>;
135
+ }, undefined>;
107
136
  readonly status: import("valibot").LiteralSchema<400, undefined>;
108
137
  }, undefined>, import("valibot").ObjectSchema<{
109
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
138
+ readonly data: import("valibot").ObjectSchema<{
139
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
140
+ }, undefined>;
110
141
  readonly status: import("valibot").LiteralSchema<401, undefined>;
111
142
  }, undefined>, import("valibot").ObjectSchema<{
112
143
  readonly data: import("valibot").ObjectSchema<{
@@ -145,10 +176,19 @@ export declare const marcoSDK: {
145
176
  readonly version: import("valibot").NumberSchema<undefined>;
146
177
  }, undefined>, undefined>;
147
178
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
148
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
179
+ readonly data: import("valibot").ObjectSchema<{
180
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
181
+ readonly issues: import("valibot").ObjectSchema<{
182
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
183
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
184
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
185
+ }, undefined>;
186
+ }, undefined>;
149
187
  readonly status: import("valibot").LiteralSchema<400, undefined>;
150
188
  }, undefined>, import("valibot").ObjectSchema<{
151
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
189
+ readonly data: import("valibot").ObjectSchema<{
190
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
191
+ }, undefined>;
152
192
  readonly status: import("valibot").LiteralSchema<401, undefined>;
153
193
  }, undefined>, import("valibot").ObjectSchema<{
154
194
  readonly data: import("valibot").ObjectSchema<{
@@ -208,10 +248,19 @@ export declare const marcoSDK: {
208
248
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
209
249
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
210
250
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
211
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
251
+ readonly data: import("valibot").ObjectSchema<{
252
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
253
+ readonly issues: import("valibot").ObjectSchema<{
254
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
255
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
256
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
257
+ }, undefined>;
258
+ }, undefined>;
212
259
  readonly status: import("valibot").LiteralSchema<400, undefined>;
213
260
  }, undefined>, import("valibot").ObjectSchema<{
214
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
261
+ readonly data: import("valibot").ObjectSchema<{
262
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
263
+ }, undefined>;
215
264
  readonly status: import("valibot").LiteralSchema<401, undefined>;
216
265
  }, undefined>, import("valibot").ObjectSchema<{
217
266
  readonly data: import("valibot").ObjectSchema<{
@@ -319,10 +368,19 @@ export declare const marcoSDK: {
319
368
  readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
320
369
  }, undefined>], undefined>, undefined>;
321
370
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
322
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
371
+ readonly data: import("valibot").ObjectSchema<{
372
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
373
+ readonly issues: import("valibot").ObjectSchema<{
374
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
375
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
376
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
377
+ }, undefined>;
378
+ }, undefined>;
323
379
  readonly status: import("valibot").LiteralSchema<400, undefined>;
324
380
  }, undefined>, import("valibot").ObjectSchema<{
325
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
381
+ readonly data: import("valibot").ObjectSchema<{
382
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
383
+ }, undefined>;
326
384
  readonly status: import("valibot").LiteralSchema<401, undefined>;
327
385
  }, undefined>, import("valibot").ObjectSchema<{
328
386
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -437,10 +495,19 @@ export declare const marcoSDK: {
437
495
  readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
438
496
  }, undefined>)[], undefined>, undefined>;
439
497
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
440
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
498
+ readonly data: import("valibot").ObjectSchema<{
499
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
500
+ readonly issues: import("valibot").ObjectSchema<{
501
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
502
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
503
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
504
+ }, undefined>;
505
+ }, undefined>;
441
506
  readonly status: import("valibot").LiteralSchema<400, undefined>;
442
507
  }, undefined>, import("valibot").ObjectSchema<{
443
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
508
+ readonly data: import("valibot").ObjectSchema<{
509
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
510
+ }, undefined>;
444
511
  readonly status: import("valibot").LiteralSchema<401, undefined>;
445
512
  }, undefined>, import("valibot").ObjectSchema<{
446
513
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -458,13 +525,24 @@ export declare const marcoSDK: {
458
525
  readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
459
526
  }, undefined>], undefined>, undefined>;
460
527
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
461
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
528
+ readonly data: import("valibot").ObjectSchema<{
529
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
530
+ readonly issues: import("valibot").ObjectSchema<{
531
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
532
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
533
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
534
+ }, undefined>;
535
+ }, undefined>;
462
536
  readonly status: import("valibot").LiteralSchema<400, undefined>;
463
537
  }, undefined>, import("valibot").ObjectSchema<{
464
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
538
+ readonly data: import("valibot").ObjectSchema<{
539
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
540
+ }, undefined>;
465
541
  readonly status: import("valibot").LiteralSchema<401, undefined>;
466
542
  }, undefined>, import("valibot").ObjectSchema<{
467
- readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
543
+ readonly data: import("valibot").ObjectSchema<{
544
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
545
+ }, undefined>;
468
546
  readonly status: import("valibot").LiteralSchema<404, undefined>;
469
547
  }, undefined>, import("valibot").ObjectSchema<{
470
548
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -511,10 +589,19 @@ export declare const marcoSDK: {
511
589
  readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
512
590
  }, undefined>], undefined>, undefined>;
513
591
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
514
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
592
+ readonly data: import("valibot").ObjectSchema<{
593
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
594
+ readonly issues: import("valibot").ObjectSchema<{
595
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
596
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
597
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
598
+ }, undefined>;
599
+ }, undefined>;
515
600
  readonly status: import("valibot").LiteralSchema<400, undefined>;
516
601
  }, undefined>, import("valibot").ObjectSchema<{
517
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
602
+ readonly data: import("valibot").ObjectSchema<{
603
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
604
+ }, undefined>;
518
605
  readonly status: import("valibot").LiteralSchema<401, undefined>;
519
606
  }, undefined>, import("valibot").ObjectSchema<{
520
607
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -523,7 +610,9 @@ export declare const marcoSDK: {
523
610
  };
524
611
  user: {
525
612
  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<{
526
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
613
+ readonly data: import("valibot").ObjectSchema<{
614
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
615
+ }, undefined>;
527
616
  readonly status: import("valibot").LiteralSchema<401, undefined>;
528
617
  }, undefined>, import("valibot").ObjectSchema<{
529
618
  readonly status: import("valibot").LiteralSchema<204, undefined>;
@@ -535,13 +624,24 @@ export declare const marcoSDK: {
535
624
  refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
536
625
  readonly refreshToken: import("valibot").StringSchema<undefined>;
537
626
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
538
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
627
+ readonly data: import("valibot").ObjectSchema<{
628
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
629
+ readonly issues: import("valibot").ObjectSchema<{
630
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
631
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
632
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
633
+ }, undefined>;
634
+ }, undefined>;
539
635
  readonly status: import("valibot").LiteralSchema<400, undefined>;
540
636
  }, undefined>, import("valibot").ObjectSchema<{
541
- readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
637
+ readonly data: import("valibot").ObjectSchema<{
638
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
639
+ }, undefined>;
542
640
  readonly status: import("valibot").LiteralSchema<401, undefined>;
543
641
  }, undefined>, import("valibot").ObjectSchema<{
544
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
642
+ readonly data: import("valibot").ObjectSchema<{
643
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
644
+ }, undefined>;
545
645
  readonly status: import("valibot").LiteralSchema<502, undefined>;
546
646
  }, undefined>, import("valibot").ObjectSchema<{
547
647
  readonly data: import("valibot").ObjectSchema<{
@@ -563,10 +663,19 @@ export declare const marcoSDK: {
563
663
  sendAuthCode: import("..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
564
664
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
565
665
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
566
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
666
+ readonly data: import("valibot").ObjectSchema<{
667
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
668
+ readonly issues: import("valibot").ObjectSchema<{
669
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
670
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
671
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
672
+ }, undefined>;
673
+ }, undefined>;
567
674
  readonly status: import("valibot").LiteralSchema<400, undefined>;
568
675
  }, undefined>, import("valibot").ObjectSchema<{
569
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
676
+ readonly data: import("valibot").ObjectSchema<{
677
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
678
+ }, undefined>;
570
679
  readonly status: import("valibot").LiteralSchema<502, undefined>;
571
680
  }, undefined>, import("valibot").ObjectSchema<{
572
681
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -575,22 +684,39 @@ export declare const marcoSDK: {
575
684
  readonly code: import("valibot").StringSchema<undefined>;
576
685
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
577
686
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
578
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
687
+ readonly data: import("valibot").ObjectSchema<{
688
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
689
+ readonly issues: import("valibot").ObjectSchema<{
690
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
691
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
692
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
693
+ }, undefined>;
694
+ }, undefined>;
579
695
  readonly status: import("valibot").LiteralSchema<400, undefined>;
580
696
  }, undefined>, import("valibot").ObjectSchema<{
581
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
697
+ readonly data: import("valibot").ObjectSchema<{
698
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
699
+ }, undefined>;
582
700
  readonly status: import("valibot").LiteralSchema<401, undefined>;
583
701
  }, undefined>, import("valibot").ObjectSchema<{
584
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
702
+ readonly data: import("valibot").ObjectSchema<{
703
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
704
+ }, undefined>;
585
705
  readonly status: import("valibot").LiteralSchema<401, undefined>;
586
706
  }, undefined>, import("valibot").ObjectSchema<{
587
- readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
707
+ readonly data: import("valibot").ObjectSchema<{
708
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
709
+ }, undefined>;
588
710
  readonly status: import("valibot").LiteralSchema<401, undefined>;
589
711
  }, undefined>, import("valibot").ObjectSchema<{
590
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
712
+ readonly data: import("valibot").ObjectSchema<{
713
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
714
+ }, undefined>;
591
715
  readonly status: import("valibot").LiteralSchema<502, undefined>;
592
716
  }, undefined>, import("valibot").ObjectSchema<{
593
- readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
717
+ readonly data: import("valibot").ObjectSchema<{
718
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
719
+ }, undefined>;
594
720
  readonly status: import("valibot").LiteralSchema<404, undefined>;
595
721
  }, undefined>, import("valibot").ObjectSchema<{
596
722
  readonly data: import("valibot").ObjectSchema<{
@@ -619,6 +745,67 @@ export declare const marcoSDK: {
619
745
  };
620
746
  };
621
747
  validation: {
748
+ errors: {
749
+ readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
750
+ readonly data: import("valibot").ObjectSchema<{
751
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
752
+ }, undefined>;
753
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
754
+ }, undefined>;
755
+ readonly authCodePreviouslyUsedErrorSchema: import("valibot").ObjectSchema<{
756
+ readonly data: import("valibot").ObjectSchema<{
757
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
758
+ }, undefined>;
759
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
760
+ }, undefined>;
761
+ readonly authFailedErrorSchema: import("valibot").ObjectSchema<{
762
+ readonly data: import("valibot").ObjectSchema<{
763
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
764
+ }, undefined>;
765
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
766
+ }, undefined>;
767
+ readonly authRefreshTokenInvalid: import("valibot").ObjectSchema<{
768
+ readonly data: import("valibot").ObjectSchema<{
769
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
770
+ }, undefined>;
771
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
772
+ }, undefined>;
773
+ readonly authServerResponseUnexpectedErrorSchema: import("valibot").ObjectSchema<{
774
+ readonly data: import("valibot").ObjectSchema<{
775
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
776
+ }, undefined>;
777
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
778
+ }, undefined>;
779
+ readonly authTooManyAttemptsErrorSchema: import("valibot").ObjectSchema<{
780
+ readonly data: import("valibot").ObjectSchema<{
781
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
782
+ }, undefined>;
783
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
784
+ }, undefined>;
785
+ readonly messageNotFoundErrorSchema: import("valibot").ObjectSchema<{
786
+ readonly data: import("valibot").ObjectSchema<{
787
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
788
+ }, undefined>;
789
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
790
+ }, undefined>;
791
+ readonly userNotFoundErrorSchema: import("valibot").ObjectSchema<{
792
+ readonly data: import("valibot").ObjectSchema<{
793
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
794
+ }, undefined>;
795
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
796
+ }, undefined>;
797
+ readonly validationFailedErrorSchema: import("valibot").ObjectSchema<{
798
+ readonly data: import("valibot").ObjectSchema<{
799
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
800
+ readonly issues: import("valibot").ObjectSchema<{
801
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
802
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
803
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
804
+ }, undefined>;
805
+ }, undefined>;
806
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
807
+ }, undefined>;
808
+ };
622
809
  utils: {
623
810
  flattenRequirements: <T extends Record<string, any>>(schema: import("valibot").ObjectSchema<T, any>) => { [K in keyof T]: {
624
811
  maxLength?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -1,75 +1,121 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const authCodeExpiredErrorSchema: v.ObjectSchema<{
3
- readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
5
+ }, undefined>;
4
6
  readonly status: v.LiteralSchema<401, undefined>;
5
7
  }, undefined>;
6
8
  export declare const authTooManyAttemptsErrorSchema: v.ObjectSchema<{
7
- readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
9
+ readonly data: v.ObjectSchema<{
10
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
11
+ }, undefined>;
8
12
  readonly status: v.LiteralSchema<401, undefined>;
9
13
  }, undefined>;
10
14
  export declare const authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
17
+ }, undefined>;
12
18
  readonly status: v.LiteralSchema<401, undefined>;
13
19
  }, undefined>;
14
20
  export declare const authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
15
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
23
+ }, undefined>;
16
24
  readonly status: v.LiteralSchema<502, undefined>;
17
25
  }, undefined>;
18
- export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
19
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
26
+ export declare const authFailedErrorSchema: v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
29
+ }, undefined>;
20
30
  readonly status: v.LiteralSchema<401, undefined>;
21
31
  }, undefined>;
22
32
  export declare const authRefreshTokenInvalid: v.ObjectSchema<{
23
- readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
33
+ readonly data: v.ObjectSchema<{
34
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
35
+ }, undefined>;
24
36
  readonly status: v.LiteralSchema<401, undefined>;
25
37
  }, undefined>;
26
38
  export declare const userNotFoundErrorSchema: v.ObjectSchema<{
27
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
39
+ readonly data: v.ObjectSchema<{
40
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
41
+ }, undefined>;
28
42
  readonly status: v.LiteralSchema<404, undefined>;
29
43
  }, undefined>;
30
44
  export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
31
- readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
45
+ readonly data: v.ObjectSchema<{
46
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
47
+ }, undefined>;
32
48
  readonly status: v.LiteralSchema<404, undefined>;
33
49
  }, undefined>;
34
50
  export declare const validationFailedErrorSchema: v.ObjectSchema<{
35
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
51
+ readonly data: v.ObjectSchema<{
52
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
53
+ readonly issues: v.ObjectSchema<{
54
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
55
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
56
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
57
+ }, undefined>;
58
+ }, undefined>;
36
59
  readonly status: v.LiteralSchema<400, undefined>;
37
60
  }, undefined>;
38
- export declare const errorManifest: {
39
- authCodeExpiredErrorSchema: v.ObjectSchema<{
40
- readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
61
+ export declare const errors: {
62
+ readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
63
+ readonly data: v.ObjectSchema<{
64
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
65
+ }, undefined>;
41
66
  readonly status: v.LiteralSchema<401, undefined>;
42
67
  }, undefined>;
43
- authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
44
- readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
68
+ readonly authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
69
+ readonly data: v.ObjectSchema<{
70
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
71
+ }, undefined>;
45
72
  readonly status: v.LiteralSchema<401, undefined>;
46
73
  }, undefined>;
47
- authRefreshTokenInvalid: v.ObjectSchema<{
48
- readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
74
+ readonly authFailedErrorSchema: v.ObjectSchema<{
75
+ readonly data: v.ObjectSchema<{
76
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
77
+ }, undefined>;
49
78
  readonly status: v.LiteralSchema<401, undefined>;
50
79
  }, undefined>;
51
- authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
52
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
53
- readonly status: v.LiteralSchema<502, undefined>;
54
- }, undefined>;
55
- authTooManyAttemptsErrorSchema: v.ObjectSchema<{
56
- readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
80
+ readonly authRefreshTokenInvalid: v.ObjectSchema<{
81
+ readonly data: v.ObjectSchema<{
82
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
83
+ }, undefined>;
57
84
  readonly status: v.LiteralSchema<401, undefined>;
58
85
  }, undefined>;
59
- authenticationFailedErrorSchema: v.ObjectSchema<{
60
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
86
+ readonly authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
87
+ readonly data: v.ObjectSchema<{
88
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
89
+ }, undefined>;
90
+ readonly status: v.LiteralSchema<502, undefined>;
91
+ }, undefined>;
92
+ readonly authTooManyAttemptsErrorSchema: v.ObjectSchema<{
93
+ readonly data: v.ObjectSchema<{
94
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
95
+ }, undefined>;
61
96
  readonly status: v.LiteralSchema<401, undefined>;
62
97
  }, undefined>;
63
- messageNotFoundErrorSchema: v.ObjectSchema<{
64
- readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
98
+ readonly messageNotFoundErrorSchema: v.ObjectSchema<{
99
+ readonly data: v.ObjectSchema<{
100
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
101
+ }, undefined>;
65
102
  readonly status: v.LiteralSchema<404, undefined>;
66
103
  }, undefined>;
67
- userNotFoundErrorSchema: v.ObjectSchema<{
68
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
104
+ readonly userNotFoundErrorSchema: v.ObjectSchema<{
105
+ readonly data: v.ObjectSchema<{
106
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
107
+ }, undefined>;
69
108
  readonly status: v.LiteralSchema<404, undefined>;
70
109
  }, undefined>;
71
- validationFailedErrorSchema: v.ObjectSchema<{
72
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
110
+ readonly validationFailedErrorSchema: v.ObjectSchema<{
111
+ readonly data: v.ObjectSchema<{
112
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
113
+ readonly issues: v.ObjectSchema<{
114
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
115
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
116
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
117
+ }, undefined>;
118
+ }, undefined>;
73
119
  readonly status: v.LiteralSchema<400, undefined>;
74
120
  }, undefined>;
75
121
  };
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;aAGlD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUD,CAAA"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUT,CAAA"}