@unchainedshop/api 4.3.4 → 4.3.6

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 (192) hide show
  1. package/lib/chat/generateImageHandler.js +1 -1
  2. package/lib/chat/generateImageHandler.js.map +1 -1
  3. package/lib/chat/utils.js +1 -1
  4. package/lib/chat/utils.js.map +1 -1
  5. package/lib/express/chatHandler.d.ts.map +1 -1
  6. package/lib/express/chatHandler.js +7 -3
  7. package/lib/express/chatHandler.js.map +1 -1
  8. package/lib/express/createMCPMiddleware.d.ts +1 -1
  9. package/lib/express/createMCPMiddleware.d.ts.map +1 -1
  10. package/lib/express/createMCPMiddleware.js +21 -4
  11. package/lib/express/createMCPMiddleware.js.map +1 -1
  12. package/lib/fastify/chatHandler.d.ts.map +1 -1
  13. package/lib/fastify/chatHandler.js +7 -3
  14. package/lib/fastify/chatHandler.js.map +1 -1
  15. package/lib/fastify/index.d.ts.map +1 -1
  16. package/lib/fastify/index.js +1 -4
  17. package/lib/fastify/index.js.map +1 -1
  18. package/lib/fastify/mcpHandler.d.ts +1 -1
  19. package/lib/fastify/mcpHandler.d.ts.map +1 -1
  20. package/lib/fastify/mcpHandler.js +20 -5
  21. package/lib/fastify/mcpHandler.js.map +1 -1
  22. package/lib/mcp/index.d.ts +2 -2
  23. package/lib/mcp/index.d.ts.map +1 -1
  24. package/lib/mcp/index.js +1 -6
  25. package/lib/mcp/index.js.map +1 -1
  26. package/lib/mcp/resources/localization.d.ts +2 -2
  27. package/lib/mcp/resources/localization.d.ts.map +1 -1
  28. package/lib/mcp/tools/assortment/index.d.ts +2 -2
  29. package/lib/mcp/tools/assortment/index.d.ts.map +1 -1
  30. package/lib/mcp/tools/assortment/schemas.d.ts +167 -724
  31. package/lib/mcp/tools/assortment/schemas.d.ts.map +1 -1
  32. package/lib/mcp/tools/assortment/schemas.js +1 -1
  33. package/lib/mcp/tools/assortment/schemas.js.map +1 -1
  34. package/lib/mcp/tools/filter/index.d.ts +2 -2
  35. package/lib/mcp/tools/filter/index.d.ts.map +1 -1
  36. package/lib/mcp/tools/filter/schemas.d.ts +100 -413
  37. package/lib/mcp/tools/filter/schemas.d.ts.map +1 -1
  38. package/lib/mcp/tools/localization/index.d.ts +2 -2
  39. package/lib/mcp/tools/localization/index.d.ts.map +1 -1
  40. package/lib/mcp/tools/localization/schemas.d.ts +85 -224
  41. package/lib/mcp/tools/localization/schemas.d.ts.map +1 -1
  42. package/lib/mcp/tools/localization/schemas.js +3 -3
  43. package/lib/mcp/tools/localization/schemas.js.map +1 -1
  44. package/lib/mcp/tools/order/index.d.ts +1 -1
  45. package/lib/mcp/tools/order/index.d.ts.map +1 -1
  46. package/lib/mcp/tools/order/schemas.d.ts +160 -290
  47. package/lib/mcp/tools/order/schemas.d.ts.map +1 -1
  48. package/lib/mcp/tools/order/schemas.js +16 -10
  49. package/lib/mcp/tools/order/schemas.js.map +1 -1
  50. package/lib/mcp/tools/product/index.d.ts +1 -1
  51. package/lib/mcp/tools/product/index.d.ts.map +1 -1
  52. package/lib/mcp/tools/product/schemas.d.ts +373 -2153
  53. package/lib/mcp/tools/product/schemas.d.ts.map +1 -1
  54. package/lib/mcp/tools/product/schemas.js +5 -2
  55. package/lib/mcp/tools/product/schemas.js.map +1 -1
  56. package/lib/mcp/tools/provider/index.d.ts +1 -1
  57. package/lib/mcp/tools/provider/index.d.ts.map +1 -1
  58. package/lib/mcp/tools/provider/schemas.d.ts +193 -194
  59. package/lib/mcp/tools/provider/schemas.d.ts.map +1 -1
  60. package/lib/mcp/tools/provider/schemas.js +4 -4
  61. package/lib/mcp/tools/provider/schemas.js.map +1 -1
  62. package/lib/mcp/tools/quotation/index.d.ts +1 -1
  63. package/lib/mcp/tools/quotation/index.d.ts.map +1 -1
  64. package/lib/mcp/tools/quotation/schemas.d.ts +78 -172
  65. package/lib/mcp/tools/quotation/schemas.d.ts.map +1 -1
  66. package/lib/mcp/tools/quotation/schemas.js +4 -4
  67. package/lib/mcp/tools/quotation/schemas.js.map +1 -1
  68. package/lib/mcp/tools/system/index.d.ts +1 -1
  69. package/lib/mcp/tools/system/index.d.ts.map +1 -1
  70. package/lib/mcp/tools/system/schemas.d.ts +96 -346
  71. package/lib/mcp/tools/system/schemas.d.ts.map +1 -1
  72. package/lib/mcp/tools/users/index.d.ts +1 -1
  73. package/lib/mcp/tools/users/index.d.ts.map +1 -1
  74. package/lib/mcp/tools/users/schemas.d.ts +125 -789
  75. package/lib/mcp/tools/users/schemas.d.ts.map +1 -1
  76. package/lib/mcp/utils/sharedSchemas.d.ts +21 -29
  77. package/lib/mcp/utils/sharedSchemas.d.ts.map +1 -1
  78. package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.map +1 -1
  79. package/package.json +6 -6
  80. package/src/chat/generateImageHandler.ts +1 -1
  81. package/src/chat/utils.ts +1 -1
  82. package/src/express/chatHandler.ts +12 -3
  83. package/src/express/createMCPMiddleware.ts +36 -8
  84. package/src/fastify/chatHandler.ts +10 -3
  85. package/src/fastify/index.ts +2 -4
  86. package/src/fastify/mcpHandler.ts +33 -9
  87. package/src/mcp/index.ts +3 -9
  88. package/src/mcp/resources/localization.ts +2 -2
  89. package/src/mcp/tools/assortment/index.ts +2 -2
  90. package/src/mcp/tools/assortment/schemas.ts +1 -1
  91. package/src/mcp/tools/filter/index.ts +2 -2
  92. package/src/mcp/tools/localization/index.ts +2 -2
  93. package/src/mcp/tools/localization/schemas.ts +4 -3
  94. package/src/mcp/tools/order/index.ts +1 -1
  95. package/src/mcp/tools/order/schemas.ts +18 -10
  96. package/src/mcp/tools/product/index.ts +1 -1
  97. package/src/mcp/tools/product/schemas.ts +5 -2
  98. package/src/mcp/tools/provider/index.ts +1 -1
  99. package/src/mcp/tools/provider/schemas.ts +5 -4
  100. package/src/mcp/tools/quotation/index.ts +1 -1
  101. package/src/mcp/tools/quotation/schemas.ts +4 -4
  102. package/src/mcp/tools/system/index.ts +1 -1
  103. package/src/mcp/tools/users/index.ts +1 -1
  104. package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +3 -3
  105. package/lib/express/createApolloMiddleware.d.ts +0 -4
  106. package/lib/express/createApolloMiddleware.d.ts.map +0 -1
  107. package/lib/express/createApolloMiddleware.js +0 -36
  108. package/lib/express/createApolloMiddleware.js.map +0 -1
  109. package/lib/express/createSingleSignOnMiddleware.d.ts +0 -5
  110. package/lib/express/createSingleSignOnMiddleware.d.ts.map +0 -1
  111. package/lib/express/createSingleSignOnMiddleware.js +0 -71
  112. package/lib/express/createSingleSignOnMiddleware.js.map +0 -1
  113. package/lib/hashPassword.d.ts +0 -2
  114. package/lib/hashPassword.d.ts.map +0 -1
  115. package/lib/hashPassword.js +0 -5
  116. package/lib/hashPassword.js.map +0 -1
  117. package/lib/loaders/productLoaderBySKU.d.ts +0 -10
  118. package/lib/loaders/productLoaderBySKU.d.ts.map +0 -1
  119. package/lib/loaders/productLoaderBySKU.js +0 -16
  120. package/lib/loaders/productLoaderBySKU.js.map +0 -1
  121. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts +0 -3
  122. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts.map +0 -1
  123. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js +0 -6
  124. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js.map +0 -1
  125. package/lib/resolvers/mutations/accounts/disableTOTP.d.ts +0 -6
  126. package/lib/resolvers/mutations/accounts/disableTOTP.d.ts.map +0 -1
  127. package/lib/resolvers/mutations/accounts/disableTOTP.js +0 -27
  128. package/lib/resolvers/mutations/accounts/disableTOTP.js.map +0 -1
  129. package/lib/resolvers/mutations/accounts/enableTOTP.d.ts +0 -6
  130. package/lib/resolvers/mutations/accounts/enableTOTP.d.ts.map +0 -1
  131. package/lib/resolvers/mutations/accounts/enableTOTP.js +0 -20
  132. package/lib/resolvers/mutations/accounts/enableTOTP.js.map +0 -1
  133. package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts +0 -7
  134. package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts.map +0 -1
  135. package/lib/resolvers/mutations/accounts/linkOAuthAccount.js +0 -30
  136. package/lib/resolvers/mutations/accounts/linkOAuthAccount.js.map +0 -1
  137. package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts +0 -8
  138. package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts.map +0 -1
  139. package/lib/resolvers/mutations/accounts/loginWithOAuth.js +0 -25
  140. package/lib/resolvers/mutations/accounts/loginWithOAuth.js.map +0 -1
  141. package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts +0 -5
  142. package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts.map +0 -1
  143. package/lib/resolvers/mutations/accounts/logoutAllSessions.js +0 -20
  144. package/lib/resolvers/mutations/accounts/logoutAllSessions.js.map +0 -1
  145. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts +0 -6
  146. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts.map +0 -1
  147. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js +0 -13
  148. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js.map +0 -1
  149. package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts +0 -6
  150. package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts.map +0 -1
  151. package/lib/resolvers/mutations/assortments/addAssortmentMedia.js +0 -18
  152. package/lib/resolvers/mutations/assortments/addAssortmentMedia.js.map +0 -1
  153. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +0 -6
  154. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +0 -1
  155. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +0 -26
  156. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +0 -1
  157. package/lib/resolvers/mutations/products/addProductMedia.d.ts +0 -6
  158. package/lib/resolvers/mutations/products/addProductMedia.d.ts.map +0 -1
  159. package/lib/resolvers/mutations/products/addProductMedia.js +0 -18
  160. package/lib/resolvers/mutations/products/addProductMedia.js.map +0 -1
  161. package/lib/resolvers/mutations/users/updateUserAvatar.d.ts +0 -6
  162. package/lib/resolvers/mutations/users/updateUserAvatar.d.ts.map +0 -1
  163. package/lib/resolvers/mutations/users/updateUserAvatar.js +0 -22
  164. package/lib/resolvers/mutations/users/updateUserAvatar.js.map +0 -1
  165. package/lib/resolvers/mutations/utils/getOrderCart.d.ts +0 -7
  166. package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +0 -1
  167. package/lib/resolvers/mutations/utils/getOrderCart.js +0 -13
  168. package/lib/resolvers/mutations/utils/getOrderCart.js.map +0 -1
  169. package/lib/resolvers/type/color-types.d.ts +0 -18
  170. package/lib/resolvers/type/color-types.d.ts.map +0 -1
  171. package/lib/resolvers/type/color-types.js +0 -31
  172. package/lib/resolvers/type/color-types.js.map +0 -1
  173. package/lib/resolvers/type/dispatch-types.d.ts +0 -15
  174. package/lib/resolvers/type/dispatch-types.d.ts.map +0 -1
  175. package/lib/resolvers/type/dispatch-types.js +0 -16
  176. package/lib/resolvers/type/dispatch-types.js.map +0 -1
  177. package/lib/resolvers/type/oauth-account.d.ts +0 -6
  178. package/lib/resolvers/type/oauth-account.d.ts.map +0 -1
  179. package/lib/resolvers/type/oauth-account.js +0 -7
  180. package/lib/resolvers/type/oauth-account.js.map +0 -1
  181. package/lib/resolvers/type/oauth-provider.d.ts +0 -6
  182. package/lib/resolvers/type/oauth-provider.d.ts.map +0 -1
  183. package/lib/resolvers/type/oauth-provider.js +0 -6
  184. package/lib/resolvers/type/oauth-provider.js.map +0 -1
  185. package/lib/resolvers/type/stock-types.d.ts +0 -14
  186. package/lib/resolvers/type/stock-types.d.ts.map +0 -1
  187. package/lib/resolvers/type/stock-types.js +0 -15
  188. package/lib/resolvers/type/stock-types.js.map +0 -1
  189. package/lib/user-context.d.ts +0 -7
  190. package/lib/user-context.d.ts.map +0 -1
  191. package/lib/user-context.js +0 -76
  192. package/lib/user-context.js.map +0 -1
@@ -3,537 +3,224 @@ export declare const FilterTextInputSchema: z.ZodObject<{
3
3
  locale: z.ZodString;
4
4
  title: z.ZodString;
5
5
  subtitle: z.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
7
- locale: string;
8
- title: string;
9
- subtitle?: string | undefined;
10
- }, {
11
- locale: string;
12
- title: string;
13
- subtitle?: string | undefined;
14
- }>;
6
+ }, z.core.$strip>;
15
7
  export declare const FilterOptionTextInputSchema: z.ZodObject<{
16
8
  locale: z.ZodString;
17
9
  subtitle: z.ZodOptional<z.ZodString>;
18
- } & {
19
10
  title: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- locale: string;
22
- title?: string | undefined;
23
- subtitle?: string | undefined;
24
- }, {
25
- locale: string;
26
- title?: string | undefined;
27
- subtitle?: string | undefined;
28
- }>;
11
+ }, z.core.$strip>;
29
12
  export declare const SortOptionInputSchema: z.ZodObject<{
30
13
  key: z.ZodString;
31
- value: z.ZodEnum<["ASC", "DESC"]>;
32
- }, "strict", z.ZodTypeAny, {
33
- key: string;
34
- value: "ASC" | "DESC";
35
- }, {
36
- key: string;
37
- value: "ASC" | "DESC";
38
- }>;
14
+ value: z.ZodEnum<{
15
+ ASC: "ASC";
16
+ DESC: "DESC";
17
+ }>;
18
+ }, z.core.$strict>;
39
19
  export declare const CreateFilterInputSchema: z.ZodObject<{
40
20
  key: z.ZodString;
41
- type: z.ZodEnum<["SWITCH", "SINGLE_CHOICE", "MULTI_CHOICE", "RANGE"]>;
42
- options: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
43
- }, "strip", z.ZodTypeAny, {
44
- key: string;
45
- options: string[];
46
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
47
- }, {
48
- key: string;
49
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
50
- options?: string[] | undefined;
51
- }>;
21
+ type: z.ZodEnum<{
22
+ SWITCH: "SWITCH";
23
+ SINGLE_CHOICE: "SINGLE_CHOICE";
24
+ MULTI_CHOICE: "MULTI_CHOICE";
25
+ RANGE: "RANGE";
26
+ }>;
27
+ options: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
+ }, z.core.$strip>;
52
29
  export declare const UpdateFilterInputSchema: z.ZodObject<{
53
30
  isActive: z.ZodOptional<z.ZodBoolean>;
54
31
  key: z.ZodOptional<z.ZodString>;
55
- }, "strip", z.ZodTypeAny, {
56
- key?: string | undefined;
57
- isActive?: boolean | undefined;
58
- }, {
59
- key?: string | undefined;
60
- isActive?: boolean | undefined;
61
- }>;
32
+ }, z.core.$strip>;
62
33
  export declare const FilterUpdateTextInputSchema: z.ZodObject<{
63
34
  locale: z.ZodString;
64
35
  title: z.ZodOptional<z.ZodString>;
65
36
  subtitle: z.ZodOptional<z.ZodString>;
66
- }, "strip", z.ZodTypeAny, {
67
- locale: string;
68
- title?: string | undefined;
69
- subtitle?: string | undefined;
70
- }, {
71
- locale: string;
72
- title?: string | undefined;
73
- subtitle?: string | undefined;
74
- }>;
37
+ }, z.core.$strip>;
75
38
  export declare const actionValidators: {
76
39
  readonly CREATE: z.ZodObject<{
77
40
  filter: z.ZodObject<{
78
41
  key: z.ZodString;
79
- type: z.ZodEnum<["SWITCH", "SINGLE_CHOICE", "MULTI_CHOICE", "RANGE"]>;
80
- options: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
81
- }, "strip", z.ZodTypeAny, {
82
- key: string;
83
- options: string[];
84
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
85
- }, {
86
- key: string;
87
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
88
- options?: string[] | undefined;
89
- }>;
42
+ type: z.ZodEnum<{
43
+ SWITCH: "SWITCH";
44
+ SINGLE_CHOICE: "SINGLE_CHOICE";
45
+ MULTI_CHOICE: "MULTI_CHOICE";
46
+ RANGE: "RANGE";
47
+ }>;
48
+ options: z.ZodDefault<z.ZodArray<z.ZodString>>;
49
+ }, z.core.$strip>;
90
50
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
51
  locale: z.ZodString;
92
52
  title: z.ZodString;
93
53
  subtitle: z.ZodOptional<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- locale: string;
96
- title: string;
97
- subtitle?: string | undefined;
98
- }, {
99
- locale: string;
100
- title: string;
101
- subtitle?: string | undefined;
102
- }>, "many">>;
103
- }, "strip", z.ZodTypeAny, {
104
- filter: {
105
- key: string;
106
- options: string[];
107
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
108
- };
109
- texts?: {
110
- locale: string;
111
- title: string;
112
- subtitle?: string | undefined;
113
- }[] | undefined;
114
- }, {
115
- filter: {
116
- key: string;
117
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
118
- options?: string[] | undefined;
119
- };
120
- texts?: {
121
- locale: string;
122
- title: string;
123
- subtitle?: string | undefined;
124
- }[] | undefined;
125
- }>;
54
+ }, z.core.$strip>>>;
55
+ }, z.core.$strip>;
126
56
  readonly UPDATE: z.ZodObject<{
127
57
  filterId: z.ZodString;
128
58
  updateData: z.ZodObject<{
129
59
  isActive: z.ZodOptional<z.ZodBoolean>;
130
60
  key: z.ZodOptional<z.ZodString>;
131
- }, "strip", z.ZodTypeAny, {
132
- key?: string | undefined;
133
- isActive?: boolean | undefined;
134
- }, {
135
- key?: string | undefined;
136
- isActive?: boolean | undefined;
137
- }>;
138
- }, "strip", z.ZodTypeAny, {
139
- filterId: string;
140
- updateData: {
141
- key?: string | undefined;
142
- isActive?: boolean | undefined;
143
- };
144
- }, {
145
- filterId: string;
146
- updateData: {
147
- key?: string | undefined;
148
- isActive?: boolean | undefined;
149
- };
150
- }>;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>;
151
63
  readonly REMOVE: z.ZodObject<{
152
64
  filterId: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- filterId: string;
155
- }, {
156
- filterId: string;
157
- }>;
65
+ }, z.core.$strip>;
158
66
  readonly GET: z.ZodObject<{
159
67
  filterId: z.ZodString;
160
- }, "strip", z.ZodTypeAny, {
161
- filterId: string;
162
- }, {
163
- filterId: string;
164
- }>;
68
+ }, z.core.$strip>;
165
69
  readonly LIST: z.ZodObject<{
166
70
  queryString: z.ZodOptional<z.ZodString>;
167
71
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
168
72
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
73
  key: z.ZodString;
170
- value: z.ZodEnum<[string, ...string[]]>;
171
- }, "strip", z.ZodTypeAny, {
172
- key: string;
173
- value: string;
174
- }, {
175
- key: string;
176
- value: string;
177
- }>, "many">>;
74
+ value: z.ZodEnum<{
75
+ [x: string]: string;
76
+ }>;
77
+ }, z.core.$strip>>>;
178
78
  limit: z.ZodOptional<z.ZodNumber>;
179
79
  offset: z.ZodOptional<z.ZodNumber>;
180
- }, "strip", z.ZodTypeAny, {
181
- includeInactive: boolean;
182
- sort?: {
183
- key: string;
184
- value: string;
185
- }[] | undefined;
186
- queryString?: string | undefined;
187
- limit?: number | undefined;
188
- offset?: number | undefined;
189
- }, {
190
- sort?: {
191
- key: string;
192
- value: string;
193
- }[] | undefined;
194
- includeInactive?: boolean | undefined;
195
- queryString?: string | undefined;
196
- limit?: number | undefined;
197
- offset?: number | undefined;
198
- }>;
80
+ }, z.core.$strip>;
199
81
  readonly COUNT: z.ZodObject<{
200
82
  queryString: z.ZodOptional<z.ZodString>;
201
83
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
202
- }, "strip", z.ZodTypeAny, {
203
- includeInactive: boolean;
204
- queryString?: string | undefined;
205
- }, {
206
- includeInactive?: boolean | undefined;
207
- queryString?: string | undefined;
208
- }>;
84
+ }, z.core.$strip>;
209
85
  readonly CREATE_OPTION: z.ZodObject<{
210
86
  filterId: z.ZodString;
211
87
  option: z.ZodString;
212
88
  optionTexts: z.ZodArray<z.ZodObject<{
213
89
  locale: z.ZodString;
214
90
  subtitle: z.ZodOptional<z.ZodString>;
215
- } & {
216
91
  title: z.ZodOptional<z.ZodString>;
217
- }, "strip", z.ZodTypeAny, {
218
- locale: string;
219
- title?: string | undefined;
220
- subtitle?: string | undefined;
221
- }, {
222
- locale: string;
223
- title?: string | undefined;
224
- subtitle?: string | undefined;
225
- }>, "many">;
226
- }, "strip", z.ZodTypeAny, {
227
- filterId: string;
228
- option: string;
229
- optionTexts: {
230
- locale: string;
231
- title?: string | undefined;
232
- subtitle?: string | undefined;
233
- }[];
234
- }, {
235
- filterId: string;
236
- option: string;
237
- optionTexts: {
238
- locale: string;
239
- title?: string | undefined;
240
- subtitle?: string | undefined;
241
- }[];
242
- }>;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>;
243
94
  readonly REMOVE_OPTION: z.ZodObject<{
244
95
  filterId: z.ZodString;
245
96
  option: z.ZodString;
246
- }, "strip", z.ZodTypeAny, {
247
- filterId: string;
248
- option: string;
249
- }, {
250
- filterId: string;
251
- option: string;
252
- }>;
97
+ }, z.core.$strip>;
253
98
  readonly UPDATE_TEXTS: z.ZodObject<{
254
99
  filterId: z.ZodString;
255
100
  textUpdates: z.ZodArray<z.ZodObject<{
256
101
  locale: z.ZodString;
257
102
  title: z.ZodOptional<z.ZodString>;
258
103
  subtitle: z.ZodOptional<z.ZodString>;
259
- }, "strip", z.ZodTypeAny, {
260
- locale: string;
261
- title?: string | undefined;
262
- subtitle?: string | undefined;
263
- }, {
264
- locale: string;
265
- title?: string | undefined;
266
- subtitle?: string | undefined;
267
- }>, "many">;
104
+ }, z.core.$strip>>;
268
105
  filterOptionValue: z.ZodOptional<z.ZodString>;
269
- }, "strip", z.ZodTypeAny, {
270
- filterId: string;
271
- textUpdates: {
272
- locale: string;
273
- title?: string | undefined;
274
- subtitle?: string | undefined;
275
- }[];
276
- filterOptionValue?: string | undefined;
277
- }, {
278
- filterId: string;
279
- textUpdates: {
280
- locale: string;
281
- title?: string | undefined;
282
- subtitle?: string | undefined;
283
- }[];
284
- filterOptionValue?: string | undefined;
285
- }>;
106
+ }, z.core.$strip>;
286
107
  readonly GET_TEXTS: z.ZodObject<{
287
108
  filterId: z.ZodString;
288
109
  filterOptionValue: z.ZodOptional<z.ZodString>;
289
- }, "strip", z.ZodTypeAny, {
290
- filterId: string;
291
- filterOptionValue?: string | undefined;
292
- }, {
293
- filterId: string;
294
- filterOptionValue?: string | undefined;
295
- }>;
110
+ }, z.core.$strip>;
296
111
  };
297
112
  export declare const FilterManagementSchema: {
298
113
  option: z.ZodOptional<z.ZodString>;
299
114
  optionTexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
115
  locale: z.ZodString;
301
116
  subtitle: z.ZodOptional<z.ZodString>;
302
- } & {
303
117
  title: z.ZodOptional<z.ZodString>;
304
- }, "strip", z.ZodTypeAny, {
305
- locale: string;
306
- title?: string | undefined;
307
- subtitle?: string | undefined;
308
- }, {
309
- locale: string;
310
- title?: string | undefined;
311
- subtitle?: string | undefined;
312
- }>, "many">>;
118
+ }, z.core.$strip>>>;
313
119
  filterOptionValue: z.ZodOptional<z.ZodString>;
314
120
  textUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
121
  locale: z.ZodString;
316
122
  title: z.ZodOptional<z.ZodString>;
317
123
  subtitle: z.ZodOptional<z.ZodString>;
318
- }, "strip", z.ZodTypeAny, {
319
- locale: string;
320
- title?: string | undefined;
321
- subtitle?: string | undefined;
322
- }, {
323
- locale: string;
324
- title?: string | undefined;
325
- subtitle?: string | undefined;
326
- }>, "many">>;
124
+ }, z.core.$strip>>>;
327
125
  queryString: z.ZodOptional<z.ZodString>;
328
126
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
329
127
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
128
  key: z.ZodString;
331
- value: z.ZodEnum<[string, ...string[]]>;
332
- }, "strip", z.ZodTypeAny, {
333
- key: string;
334
- value: string;
335
- }, {
336
- key: string;
337
- value: string;
338
- }>, "many">>;
129
+ value: z.ZodEnum<{
130
+ [x: string]: string;
131
+ }>;
132
+ }, z.core.$strip>>>;
339
133
  limit: z.ZodOptional<z.ZodNumber>;
340
134
  offset: z.ZodOptional<z.ZodNumber>;
341
- action: z.ZodEnum<["CREATE", "UPDATE", "REMOVE", "GET", "LIST", "COUNT", "CREATE_OPTION", "REMOVE_OPTION", "UPDATE_TEXTS", "GET_TEXTS"]>;
135
+ action: z.ZodEnum<{
136
+ GET: "GET";
137
+ CREATE: "CREATE";
138
+ UPDATE: "UPDATE";
139
+ REMOVE: "REMOVE";
140
+ LIST: "LIST";
141
+ COUNT: "COUNT";
142
+ CREATE_OPTION: "CREATE_OPTION";
143
+ REMOVE_OPTION: "REMOVE_OPTION";
144
+ UPDATE_TEXTS: "UPDATE_TEXTS";
145
+ GET_TEXTS: "GET_TEXTS";
146
+ }>;
342
147
  filterId: z.ZodOptional<z.ZodString>;
343
148
  filter: z.ZodOptional<z.ZodObject<{
344
149
  key: z.ZodString;
345
- type: z.ZodEnum<["SWITCH", "SINGLE_CHOICE", "MULTI_CHOICE", "RANGE"]>;
346
- options: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
347
- }, "strip", z.ZodTypeAny, {
348
- key: string;
349
- options: string[];
350
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
351
- }, {
352
- key: string;
353
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
354
- options?: string[] | undefined;
355
- }>>;
150
+ type: z.ZodEnum<{
151
+ SWITCH: "SWITCH";
152
+ SINGLE_CHOICE: "SINGLE_CHOICE";
153
+ MULTI_CHOICE: "MULTI_CHOICE";
154
+ RANGE: "RANGE";
155
+ }>;
156
+ options: z.ZodDefault<z.ZodArray<z.ZodString>>;
157
+ }, z.core.$strip>>;
356
158
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
159
  locale: z.ZodString;
358
160
  title: z.ZodString;
359
161
  subtitle: z.ZodOptional<z.ZodString>;
360
- }, "strip", z.ZodTypeAny, {
361
- locale: string;
362
- title: string;
363
- subtitle?: string | undefined;
364
- }, {
365
- locale: string;
366
- title: string;
367
- subtitle?: string | undefined;
368
- }>, "many">>;
162
+ }, z.core.$strip>>>;
369
163
  updateData: z.ZodOptional<z.ZodObject<{
370
164
  isActive: z.ZodOptional<z.ZodBoolean>;
371
165
  key: z.ZodOptional<z.ZodString>;
372
- }, "strip", z.ZodTypeAny, {
373
- key?: string | undefined;
374
- isActive?: boolean | undefined;
375
- }, {
376
- key?: string | undefined;
377
- isActive?: boolean | undefined;
378
- }>>;
166
+ }, z.core.$strip>>;
379
167
  };
380
168
  export declare const FilterManagementZodSchema: z.ZodObject<{
381
169
  option: z.ZodOptional<z.ZodString>;
382
170
  optionTexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
383
171
  locale: z.ZodString;
384
172
  subtitle: z.ZodOptional<z.ZodString>;
385
- } & {
386
173
  title: z.ZodOptional<z.ZodString>;
387
- }, "strip", z.ZodTypeAny, {
388
- locale: string;
389
- title?: string | undefined;
390
- subtitle?: string | undefined;
391
- }, {
392
- locale: string;
393
- title?: string | undefined;
394
- subtitle?: string | undefined;
395
- }>, "many">>;
174
+ }, z.core.$strip>>>;
396
175
  filterOptionValue: z.ZodOptional<z.ZodString>;
397
176
  textUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
398
177
  locale: z.ZodString;
399
178
  title: z.ZodOptional<z.ZodString>;
400
179
  subtitle: z.ZodOptional<z.ZodString>;
401
- }, "strip", z.ZodTypeAny, {
402
- locale: string;
403
- title?: string | undefined;
404
- subtitle?: string | undefined;
405
- }, {
406
- locale: string;
407
- title?: string | undefined;
408
- subtitle?: string | undefined;
409
- }>, "many">>;
180
+ }, z.core.$strip>>>;
410
181
  queryString: z.ZodOptional<z.ZodString>;
411
182
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
412
183
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
413
184
  key: z.ZodString;
414
- value: z.ZodEnum<[string, ...string[]]>;
415
- }, "strip", z.ZodTypeAny, {
416
- key: string;
417
- value: string;
418
- }, {
419
- key: string;
420
- value: string;
421
- }>, "many">>;
185
+ value: z.ZodEnum<{
186
+ [x: string]: string;
187
+ }>;
188
+ }, z.core.$strip>>>;
422
189
  limit: z.ZodOptional<z.ZodNumber>;
423
190
  offset: z.ZodOptional<z.ZodNumber>;
424
- action: z.ZodEnum<["CREATE", "UPDATE", "REMOVE", "GET", "LIST", "COUNT", "CREATE_OPTION", "REMOVE_OPTION", "UPDATE_TEXTS", "GET_TEXTS"]>;
191
+ action: z.ZodEnum<{
192
+ GET: "GET";
193
+ CREATE: "CREATE";
194
+ UPDATE: "UPDATE";
195
+ REMOVE: "REMOVE";
196
+ LIST: "LIST";
197
+ COUNT: "COUNT";
198
+ CREATE_OPTION: "CREATE_OPTION";
199
+ REMOVE_OPTION: "REMOVE_OPTION";
200
+ UPDATE_TEXTS: "UPDATE_TEXTS";
201
+ GET_TEXTS: "GET_TEXTS";
202
+ }>;
425
203
  filterId: z.ZodOptional<z.ZodString>;
426
204
  filter: z.ZodOptional<z.ZodObject<{
427
205
  key: z.ZodString;
428
- type: z.ZodEnum<["SWITCH", "SINGLE_CHOICE", "MULTI_CHOICE", "RANGE"]>;
429
- options: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
430
- }, "strip", z.ZodTypeAny, {
431
- key: string;
432
- options: string[];
433
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
434
- }, {
435
- key: string;
436
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
437
- options?: string[] | undefined;
438
- }>>;
206
+ type: z.ZodEnum<{
207
+ SWITCH: "SWITCH";
208
+ SINGLE_CHOICE: "SINGLE_CHOICE";
209
+ MULTI_CHOICE: "MULTI_CHOICE";
210
+ RANGE: "RANGE";
211
+ }>;
212
+ options: z.ZodDefault<z.ZodArray<z.ZodString>>;
213
+ }, z.core.$strip>>;
439
214
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
215
  locale: z.ZodString;
441
216
  title: z.ZodString;
442
217
  subtitle: z.ZodOptional<z.ZodString>;
443
- }, "strip", z.ZodTypeAny, {
444
- locale: string;
445
- title: string;
446
- subtitle?: string | undefined;
447
- }, {
448
- locale: string;
449
- title: string;
450
- subtitle?: string | undefined;
451
- }>, "many">>;
218
+ }, z.core.$strip>>>;
452
219
  updateData: z.ZodOptional<z.ZodObject<{
453
220
  isActive: z.ZodOptional<z.ZodBoolean>;
454
221
  key: z.ZodOptional<z.ZodString>;
455
- }, "strip", z.ZodTypeAny, {
456
- key?: string | undefined;
457
- isActive?: boolean | undefined;
458
- }, {
459
- key?: string | undefined;
460
- isActive?: boolean | undefined;
461
- }>>;
462
- }, "strip", z.ZodTypeAny, {
463
- includeInactive: boolean;
464
- action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT" | "CREATE_OPTION" | "REMOVE_OPTION" | "UPDATE_TEXTS" | "GET_TEXTS";
465
- sort?: {
466
- key: string;
467
- value: string;
468
- }[] | undefined;
469
- filter?: {
470
- key: string;
471
- options: string[];
472
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
473
- } | undefined;
474
- filterId?: string | undefined;
475
- filterOptionValue?: string | undefined;
476
- queryString?: string | undefined;
477
- limit?: number | undefined;
478
- offset?: number | undefined;
479
- texts?: {
480
- locale: string;
481
- title: string;
482
- subtitle?: string | undefined;
483
- }[] | undefined;
484
- option?: string | undefined;
485
- updateData?: {
486
- key?: string | undefined;
487
- isActive?: boolean | undefined;
488
- } | undefined;
489
- optionTexts?: {
490
- locale: string;
491
- title?: string | undefined;
492
- subtitle?: string | undefined;
493
- }[] | undefined;
494
- textUpdates?: {
495
- locale: string;
496
- title?: string | undefined;
497
- subtitle?: string | undefined;
498
- }[] | undefined;
499
- }, {
500
- action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT" | "CREATE_OPTION" | "REMOVE_OPTION" | "UPDATE_TEXTS" | "GET_TEXTS";
501
- sort?: {
502
- key: string;
503
- value: string;
504
- }[] | undefined;
505
- filter?: {
506
- key: string;
507
- type: "SWITCH" | "SINGLE_CHOICE" | "MULTI_CHOICE" | "RANGE";
508
- options?: string[] | undefined;
509
- } | undefined;
510
- filterId?: string | undefined;
511
- filterOptionValue?: string | undefined;
512
- includeInactive?: boolean | undefined;
513
- queryString?: string | undefined;
514
- limit?: number | undefined;
515
- offset?: number | undefined;
516
- texts?: {
517
- locale: string;
518
- title: string;
519
- subtitle?: string | undefined;
520
- }[] | undefined;
521
- option?: string | undefined;
522
- updateData?: {
523
- key?: string | undefined;
524
- isActive?: boolean | undefined;
525
- } | undefined;
526
- optionTexts?: {
527
- locale: string;
528
- title?: string | undefined;
529
- subtitle?: string | undefined;
530
- }[] | undefined;
531
- textUpdates?: {
532
- locale: string;
533
- title?: string | undefined;
534
- subtitle?: string | undefined;
535
- }[] | undefined;
536
- }>;
222
+ }, z.core.$strip>>;
223
+ }, z.core.$strip>;
537
224
  export type FilterManagementParams = z.infer<typeof FilterManagementZodSchema>;
538
225
  export type ActionName = keyof typeof actionValidators;
539
226
  export type Params<T extends ActionName> = z.infer<(typeof actionValidators)[T]>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/filter/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAAgE,CAAC;AAEnG,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;EAEQ,CAAC;AAEjD,eAAO,MAAM,qBAAqB;;;;;;;;;EAKvB,CAAC;AAEZ,eAAO,MAAM,uBAA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ontextprotocol/sdk/server/mcp.js';
2
- import { Context } from '../../../context.js';
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Context } from '../../../context.js';
3
3
  export declare const registerLocalizationTools: (server: McpServer, context: Context) => void;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,yBAAyB,GAAI,QAAQ,SAAS,EAAE,SAAS,OAAO,SAO5E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,eAAO,MAAM,yBAAyB,GAAI,QAAQ,SAAS,EAAE,SAAS,OAAO,SAO5E,CAAC"}