@veruna/api-contracts 1.0.61 → 1.0.63

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 (145) hide show
  1. package/build/controllers/index.d.ts +1 -0
  2. package/build/controllers/index.js +3 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/telegram-profile.controllers.d.ts +1 -0
  5. package/build/controllers/telegram-profile.controllers.js +5 -0
  6. package/build/controllers/telegram-profile.controllers.js.map +1 -0
  7. package/build/locales/validation.d.ts +26 -0
  8. package/build/locales/validation.js +26 -0
  9. package/build/locales/validation.js.map +1 -1
  10. package/build/rest-api.d.ts +6 -0
  11. package/build/rest-api.js +6 -0
  12. package/build/rest-api.js.map +1 -1
  13. package/build/routes/index.d.ts +1 -0
  14. package/build/routes/index.js +3 -1
  15. package/build/routes/index.js.map +1 -1
  16. package/build/routes/telegram-profile.routes.d.ts +6 -0
  17. package/build/routes/telegram-profile.routes.js +10 -0
  18. package/build/routes/telegram-profile.routes.js.map +1 -0
  19. package/build/tsconfig.tsbuildinfo +1 -1
  20. package/build/v1/ai/index.d.ts +2 -0
  21. package/build/v1/ai/index.js +2 -0
  22. package/build/v1/ai/index.js.map +1 -1
  23. package/build/v1/ai/plugins.types.d.ts +78 -7
  24. package/build/v1/ai/plugins.types.js +61 -5
  25. package/build/v1/ai/plugins.types.js.map +1 -1
  26. package/build/v1/ai/tool-id.enum.d.ts +4 -0
  27. package/build/v1/ai/tool-id.enum.js +9 -0
  28. package/build/v1/ai/tool-id.enum.js.map +1 -0
  29. package/build/v1/ai/tool.types.d.ts +21 -0
  30. package/build/v1/ai/tool.types.js +17 -0
  31. package/build/v1/ai/tool.types.js.map +1 -0
  32. package/build/v1/ai-model/admin/commands/create-model.command.d.ts +46 -24
  33. package/build/v1/ai-model/admin/commands/update-model.command.d.ts +46 -24
  34. package/build/v1/ai-model/admin/queries/get-model.query.d.ts +33 -12
  35. package/build/v1/ai-model/admin/queries/get-models.query.d.ts +33 -12
  36. package/build/v1/ai-model/ai-model.errors.d.ts +9 -1
  37. package/build/v1/ai-model/ai-model.errors.js +40 -0
  38. package/build/v1/ai-model/ai-model.errors.js.map +1 -1
  39. package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +32 -4
  40. package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +87 -3
  41. package/build/v1/ai-model/schemas/api-provider.enum.d.ts +2 -1
  42. package/build/v1/ai-model/schemas/api-provider.enum.js +1 -0
  43. package/build/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
  44. package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +15 -12
  45. package/build/v1/ai-model/schemas/create-model-request.schema.js +5 -3
  46. package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
  47. package/build/v1/ai-model/schemas/index.d.ts +2 -0
  48. package/build/v1/ai-model/schemas/index.js +2 -0
  49. package/build/v1/ai-model/schemas/index.js.map +1 -1
  50. package/build/v1/ai-model/schemas/model-response.schema.d.ts +99 -20
  51. package/build/v1/ai-model/schemas/model-response.schema.js +10 -4
  52. package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
  53. package/build/v1/ai-model/schemas/model-role.enum.d.ts +4 -0
  54. package/build/v1/ai-model/schemas/model-role.enum.js +9 -0
  55. package/build/v1/ai-model/schemas/model-role.enum.js.map +1 -0
  56. package/build/v1/ai-model/schemas/model-settings.schema.d.ts +141 -0
  57. package/build/v1/ai-model/schemas/model-settings.schema.js +56 -0
  58. package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -0
  59. package/build/v1/ai-model/schemas/model-type.enum.d.ts +2 -1
  60. package/build/v1/ai-model/schemas/model-type.enum.js +1 -0
  61. package/build/v1/ai-model/schemas/model-type.enum.js.map +1 -1
  62. package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +260 -10
  63. package/build/v1/ai-model/schemas/models-list-response.schema.js +14 -1
  64. package/build/v1/ai-model/schemas/models-list-response.schema.js.map +1 -1
  65. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +265 -12
  66. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +14 -1
  67. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js.map +1 -1
  68. package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +15 -12
  69. package/build/v1/ai-model/schemas/update-model-request.schema.js +5 -3
  70. package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
  71. package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +89 -4
  72. package/build/v1/message/commands/create-message.command.d.ts +19 -1
  73. package/build/v1/message/message.errors.d.ts +5 -1
  74. package/build/v1/message/message.errors.js +20 -0
  75. package/build/v1/message/message.errors.js.map +1 -1
  76. package/build/v1/message/schemas/create-message-request.schema.d.ts +15 -1
  77. package/build/v1/message/schemas/create-message-request.schema.js +3 -1
  78. package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
  79. package/build/v1/message/schemas/generation-step.schema.d.ts +2 -1
  80. package/build/v1/message/schemas/generation-step.schema.js +1 -0
  81. package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
  82. package/build/v1/message/schemas/message-role.enum.d.ts +2 -1
  83. package/build/v1/message/schemas/message-role.enum.js +1 -0
  84. package/build/v1/message/schemas/message-role.enum.js.map +1 -1
  85. package/build/v1/message/schemas/stream-events.schema.d.ts +4 -0
  86. package/build/v1/message/schemas/stream-events.schema.js +2 -0
  87. package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
  88. package/build/v1/telegram-auth/constants/index.d.ts +1 -0
  89. package/build/v1/telegram-auth/constants/index.js +18 -0
  90. package/build/v1/telegram-auth/constants/index.js.map +1 -0
  91. package/build/v1/telegram-auth/constants/telegram-auth.constants.d.ts +1 -0
  92. package/build/v1/telegram-auth/constants/telegram-auth.constants.js +5 -0
  93. package/build/v1/telegram-auth/constants/telegram-auth.constants.js.map +1 -0
  94. package/build/v1/telegram-auth/index.d.ts +1 -0
  95. package/build/v1/telegram-auth/index.js +1 -0
  96. package/build/v1/telegram-auth/index.js.map +1 -1
  97. package/build/v1/telegram-auth/schemas/index.d.ts +1 -0
  98. package/build/v1/telegram-auth/schemas/index.js +1 -0
  99. package/build/v1/telegram-auth/schemas/index.js.map +1 -1
  100. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +4 -0
  101. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +9 -0
  102. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -0
  103. package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.d.ts +2 -1
  104. package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.js +1 -0
  105. package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.js.map +1 -1
  106. package/build/v1/telegram-profile/commands/index.d.ts +2 -0
  107. package/build/v1/telegram-profile/commands/index.js +19 -0
  108. package/build/v1/telegram-profile/commands/index.js.map +1 -0
  109. package/build/v1/telegram-profile/commands/link-telegram.command.d.ts +14 -0
  110. package/build/v1/telegram-profile/commands/link-telegram.command.js +15 -0
  111. package/build/v1/telegram-profile/commands/link-telegram.command.js.map +1 -0
  112. package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +10 -0
  113. package/build/v1/telegram-profile/commands/unlink-telegram.command.js +13 -0
  114. package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -0
  115. package/build/v1/telegram-profile/index.d.ts +5 -0
  116. package/build/v1/telegram-profile/index.js +8 -0
  117. package/build/v1/telegram-profile/index.js.map +1 -1
  118. package/build/v1/telegram-profile/queries/get-telegram-link-status.query.d.ts +12 -0
  119. package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js +13 -0
  120. package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js.map +1 -0
  121. package/build/v1/telegram-profile/queries/get-telegram-profile.query.d.ts +15 -0
  122. package/build/v1/telegram-profile/queries/get-telegram-profile.query.js +13 -0
  123. package/build/v1/telegram-profile/queries/get-telegram-profile.query.js.map +1 -0
  124. package/build/v1/telegram-profile/queries/index.d.ts +2 -0
  125. package/build/v1/telegram-profile/queries/index.js +19 -0
  126. package/build/v1/telegram-profile/queries/index.js.map +1 -0
  127. package/build/v1/telegram-profile/schemas/index.d.ts +4 -0
  128. package/build/v1/telegram-profile/schemas/index.js +21 -0
  129. package/build/v1/telegram-profile/schemas/index.js.map +1 -0
  130. package/build/v1/telegram-profile/schemas/telegram-link-response.schema.d.ts +7 -0
  131. package/build/v1/telegram-profile/schemas/telegram-link-response.schema.js +10 -0
  132. package/build/v1/telegram-profile/schemas/telegram-link-response.schema.js.map +1 -0
  133. package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.d.ts +8 -0
  134. package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.js +11 -0
  135. package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.js.map +1 -0
  136. package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.d.ts +10 -0
  137. package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.js +13 -0
  138. package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.js.map +1 -0
  139. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +5 -0
  140. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +8 -0
  141. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +1 -0
  142. package/build/v1/telegram-profile/telegram-profile.errors.d.ts +6 -1
  143. package/build/v1/telegram-profile/telegram-profile.errors.js +25 -0
  144. package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
  145. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { ToolId } from '../../ai/tool.types';
2
3
  export declare const UnregModelInListSchema: z.ZodObject<{
4
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
3
5
  uuid: z.ZodString;
4
6
  title: z.ZodString;
5
7
  order: z.ZodNumber;
@@ -12,11 +14,38 @@ export declare const UnregModelInListSchema: z.ZodObject<{
12
14
  usageExamples: z.ZodArray<z.ZodString>;
13
15
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
14
16
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
15
- modelType: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
16
- plugins: z.ZodArray<z.ZodObject<{
17
- id: z.ZodEnum<typeof import("../..").PluginId>;
17
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
18
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
19
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
18
21
  price: z.ZodNumber;
19
- }, z.core.$strip>>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
24
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
25
+ supportedValues: z.ZodArray<z.ZodObject<{
26
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
27
+ price: z.ZodNumber;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>], "id">>;
30
+ settings: z.ZodObject<{
31
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ toolId: z.ZodEnum<typeof ToolId>;
33
+ settings: z.ZodArray<z.ZodObject<{
34
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
35
+ title: z.ZodString;
36
+ icon: z.ZodOptional<z.ZodString>;
37
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
38
+ defaultOptionId: z.ZodString;
39
+ maxSelections: z.ZodOptional<z.ZodNumber>;
40
+ options: z.ZodArray<z.ZodObject<{
41
+ title: z.ZodString;
42
+ icon: z.ZodOptional<z.ZodString>;
43
+ id: z.ZodString;
44
+ priceModifier: z.ZodDefault<z.ZodNumber>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>>>;
48
+ }, z.core.$strip>;
20
49
  access: z.ZodBoolean;
21
50
  }, z.core.$strip>;
22
51
  export declare const UnregProviderWithModelsSchema: z.ZodObject<{
@@ -25,6 +54,7 @@ export declare const UnregProviderWithModelsSchema: z.ZodObject<{
25
54
  order: z.ZodNumber;
26
55
  icon: z.ZodString;
27
56
  models: z.ZodArray<z.ZodObject<{
57
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
28
58
  uuid: z.ZodString;
29
59
  title: z.ZodString;
30
60
  order: z.ZodNumber;
@@ -37,14 +67,152 @@ export declare const UnregProviderWithModelsSchema: z.ZodObject<{
37
67
  usageExamples: z.ZodArray<z.ZodString>;
38
68
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
39
69
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
40
- modelType: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
41
- plugins: z.ZodArray<z.ZodObject<{
42
- id: z.ZodEnum<typeof import("../..").PluginId>;
70
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
71
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
72
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
73
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
43
74
  price: z.ZodNumber;
44
- }, z.core.$strip>>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
77
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
78
+ supportedValues: z.ZodArray<z.ZodObject<{
79
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
80
+ price: z.ZodNumber;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>], "id">>;
83
+ settings: z.ZodObject<{
84
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ toolId: z.ZodEnum<typeof ToolId>;
86
+ settings: z.ZodArray<z.ZodObject<{
87
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
88
+ title: z.ZodString;
89
+ icon: z.ZodOptional<z.ZodString>;
90
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
91
+ defaultOptionId: z.ZodString;
92
+ maxSelections: z.ZodOptional<z.ZodNumber>;
93
+ options: z.ZodArray<z.ZodObject<{
94
+ title: z.ZodString;
95
+ icon: z.ZodOptional<z.ZodString>;
96
+ id: z.ZodString;
97
+ priceModifier: z.ZodDefault<z.ZodNumber>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>>>;
101
+ }, z.core.$strip>;
45
102
  access: z.ZodBoolean;
46
103
  }, z.core.$strip>>;
47
104
  }, z.core.$strip>;
105
+ export declare const UnregToolProviderWithModelsSchema: z.ZodObject<{
106
+ uuid: z.ZodString;
107
+ title: z.ZodString;
108
+ icon: z.ZodString;
109
+ order: z.ZodNumber;
110
+ models: z.ZodArray<z.ZodObject<{
111
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
112
+ uuid: z.ZodString;
113
+ title: z.ZodString;
114
+ order: z.ZodNumber;
115
+ description: z.ZodString;
116
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
117
+ icon: z.ZodString;
118
+ price: z.ZodNumber;
119
+ speed: z.ZodNumber;
120
+ bestFor: z.ZodArray<z.ZodString>;
121
+ usageExamples: z.ZodArray<z.ZodString>;
122
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
123
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
124
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
125
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
126
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
127
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
128
+ price: z.ZodNumber;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
131
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
132
+ supportedValues: z.ZodArray<z.ZodObject<{
133
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
134
+ price: z.ZodNumber;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>], "id">>;
137
+ settings: z.ZodObject<{
138
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ toolId: z.ZodEnum<typeof ToolId>;
140
+ settings: z.ZodArray<z.ZodObject<{
141
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
142
+ title: z.ZodString;
143
+ icon: z.ZodOptional<z.ZodString>;
144
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
145
+ defaultOptionId: z.ZodString;
146
+ maxSelections: z.ZodOptional<z.ZodNumber>;
147
+ options: z.ZodArray<z.ZodObject<{
148
+ title: z.ZodString;
149
+ icon: z.ZodOptional<z.ZodString>;
150
+ id: z.ZodString;
151
+ priceModifier: z.ZodDefault<z.ZodNumber>;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>>>;
155
+ }, z.core.$strip>;
156
+ access: z.ZodBoolean;
157
+ }, z.core.$strip>>;
158
+ }, z.core.$strip>;
159
+ export declare const UnregAvailableToolSchema: z.ZodObject<{
160
+ toolId: z.ZodEnum<typeof ToolId>;
161
+ providers: z.ZodArray<z.ZodObject<{
162
+ uuid: z.ZodString;
163
+ title: z.ZodString;
164
+ icon: z.ZodString;
165
+ order: z.ZodNumber;
166
+ models: z.ZodArray<z.ZodObject<{
167
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
168
+ uuid: z.ZodString;
169
+ title: z.ZodString;
170
+ order: z.ZodNumber;
171
+ description: z.ZodString;
172
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
173
+ icon: z.ZodString;
174
+ price: z.ZodNumber;
175
+ speed: z.ZodNumber;
176
+ bestFor: z.ZodArray<z.ZodString>;
177
+ usageExamples: z.ZodArray<z.ZodString>;
178
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
179
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
180
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
181
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
182
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
184
+ price: z.ZodNumber;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
187
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
188
+ supportedValues: z.ZodArray<z.ZodObject<{
189
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
190
+ price: z.ZodNumber;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>], "id">>;
193
+ settings: z.ZodObject<{
194
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
195
+ toolId: z.ZodEnum<typeof ToolId>;
196
+ settings: z.ZodArray<z.ZodObject<{
197
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
198
+ title: z.ZodString;
199
+ icon: z.ZodOptional<z.ZodString>;
200
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
201
+ defaultOptionId: z.ZodString;
202
+ maxSelections: z.ZodOptional<z.ZodNumber>;
203
+ options: z.ZodArray<z.ZodObject<{
204
+ title: z.ZodString;
205
+ icon: z.ZodOptional<z.ZodString>;
206
+ id: z.ZodString;
207
+ priceModifier: z.ZodDefault<z.ZodNumber>;
208
+ }, z.core.$strip>>;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>>>;
211
+ }, z.core.$strip>;
212
+ access: z.ZodBoolean;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>;
48
216
  export declare const UnregModelsListResponseSchema: z.ZodObject<{
49
217
  providers: z.ZodArray<z.ZodObject<{
50
218
  uuid: z.ZodString;
@@ -52,6 +220,7 @@ export declare const UnregModelsListResponseSchema: z.ZodObject<{
52
220
  order: z.ZodNumber;
53
221
  icon: z.ZodString;
54
222
  models: z.ZodArray<z.ZodObject<{
223
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
55
224
  uuid: z.ZodString;
56
225
  title: z.ZodString;
57
226
  order: z.ZodNumber;
@@ -64,12 +233,96 @@ export declare const UnregModelsListResponseSchema: z.ZodObject<{
64
233
  usageExamples: z.ZodArray<z.ZodString>;
65
234
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
66
235
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
67
- modelType: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
68
- plugins: z.ZodArray<z.ZodObject<{
69
- id: z.ZodEnum<typeof import("../..").PluginId>;
236
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
237
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
238
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
239
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
70
240
  price: z.ZodNumber;
71
- }, z.core.$strip>>;
241
+ }, z.core.$strip>, z.ZodObject<{
242
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
243
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
244
+ supportedValues: z.ZodArray<z.ZodObject<{
245
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
246
+ price: z.ZodNumber;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>], "id">>;
249
+ settings: z.ZodObject<{
250
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
251
+ toolId: z.ZodEnum<typeof ToolId>;
252
+ settings: z.ZodArray<z.ZodObject<{
253
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
254
+ title: z.ZodString;
255
+ icon: z.ZodOptional<z.ZodString>;
256
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
257
+ defaultOptionId: z.ZodString;
258
+ maxSelections: z.ZodOptional<z.ZodNumber>;
259
+ options: z.ZodArray<z.ZodObject<{
260
+ title: z.ZodString;
261
+ icon: z.ZodOptional<z.ZodString>;
262
+ id: z.ZodString;
263
+ priceModifier: z.ZodDefault<z.ZodNumber>;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>>;
266
+ }, z.core.$strip>>>;
267
+ }, z.core.$strip>;
72
268
  access: z.ZodBoolean;
73
269
  }, z.core.$strip>>;
74
270
  }, z.core.$strip>>;
271
+ availableTools: z.ZodArray<z.ZodObject<{
272
+ toolId: z.ZodEnum<typeof ToolId>;
273
+ providers: z.ZodArray<z.ZodObject<{
274
+ uuid: z.ZodString;
275
+ title: z.ZodString;
276
+ icon: z.ZodString;
277
+ order: z.ZodNumber;
278
+ models: z.ZodArray<z.ZodObject<{
279
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
280
+ uuid: z.ZodString;
281
+ title: z.ZodString;
282
+ order: z.ZodNumber;
283
+ description: z.ZodString;
284
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
285
+ icon: z.ZodString;
286
+ price: z.ZodNumber;
287
+ speed: z.ZodNumber;
288
+ bestFor: z.ZodArray<z.ZodString>;
289
+ usageExamples: z.ZodArray<z.ZodString>;
290
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
291
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
292
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
293
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
294
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
295
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
296
+ price: z.ZodNumber;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
299
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
300
+ supportedValues: z.ZodArray<z.ZodObject<{
301
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
302
+ price: z.ZodNumber;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strip>], "id">>;
305
+ settings: z.ZodObject<{
306
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
+ toolId: z.ZodEnum<typeof ToolId>;
308
+ settings: z.ZodArray<z.ZodObject<{
309
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
310
+ title: z.ZodString;
311
+ icon: z.ZodOptional<z.ZodString>;
312
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
313
+ defaultOptionId: z.ZodString;
314
+ maxSelections: z.ZodOptional<z.ZodNumber>;
315
+ options: z.ZodArray<z.ZodObject<{
316
+ title: z.ZodString;
317
+ icon: z.ZodOptional<z.ZodString>;
318
+ id: z.ZodString;
319
+ priceModifier: z.ZodDefault<z.ZodNumber>;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>>;
322
+ }, z.core.$strip>>>;
323
+ }, z.core.$strip>;
324
+ access: z.ZodBoolean;
325
+ }, z.core.$strip>>;
326
+ }, z.core.$strip>>;
327
+ }, z.core.$strip>>;
75
328
  }, z.core.$strip>;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnregModelsListResponseSchema = exports.UnregProviderWithModelsSchema = exports.UnregModelInListSchema = void 0;
3
+ exports.UnregModelsListResponseSchema = exports.UnregAvailableToolSchema = exports.UnregToolProviderWithModelsSchema = exports.UnregProviderWithModelsSchema = exports.UnregModelInListSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const model_response_schema_1 = require("./model-response.schema");
6
6
  const ai_provider_1 = require("../../ai-provider");
7
+ const tool_types_1 = require("../../ai/tool.types");
7
8
  exports.UnregModelInListSchema = model_response_schema_1.UnregModelResponseSchema;
8
9
  exports.UnregProviderWithModelsSchema = ai_provider_1.ProviderResponseSchema.pick({
9
10
  uuid: true,
@@ -13,7 +14,19 @@ exports.UnregProviderWithModelsSchema = ai_provider_1.ProviderResponseSchema.pic
13
14
  }).extend({
14
15
  models: zod_1.z.array(exports.UnregModelInListSchema),
15
16
  });
17
+ exports.UnregToolProviderWithModelsSchema = zod_1.z.object({
18
+ uuid: zod_1.z.string().uuid(),
19
+ title: zod_1.z.string(),
20
+ icon: zod_1.z.string(),
21
+ order: zod_1.z.number().int(),
22
+ models: zod_1.z.array(exports.UnregModelInListSchema),
23
+ });
24
+ exports.UnregAvailableToolSchema = zod_1.z.object({
25
+ toolId: zod_1.z.nativeEnum(tool_types_1.ToolId),
26
+ providers: zod_1.z.array(exports.UnregToolProviderWithModelsSchema),
27
+ });
16
28
  exports.UnregModelsListResponseSchema = zod_1.z.object({
17
29
  providers: zod_1.z.array(exports.UnregProviderWithModelsSchema),
30
+ availableTools: zod_1.z.array(exports.UnregAvailableToolSchema),
18
31
  });
19
32
  //# sourceMappingURL=unreg-models-list-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unreg-models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/unreg-models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAmE;AACnE,mDAA2D;AAM9C,QAAA,sBAAsB,GAAG,gDAAwB,CAAC;AAKlD,QAAA,6BAA6B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACrE,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;CACd,CAAC,CAAC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC;CAC1C,CAAC,CAAC;AAKU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,qCAA6B,CAAC;CACpD,CAAC,CAAC"}
1
+ {"version":3,"file":"unreg-models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/unreg-models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAmE;AACnE,mDAA2D;AAC3D,oDAA6C;AAMhC,QAAA,sBAAsB,GAAG,gDAAwB,CAAC;AAKlD,QAAA,6BAA6B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACrE,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;CACd,CAAC,CAAC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC;CAC1C,CAAC,CAAC;AAKU,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC;CAC1C,CAAC,CAAC;AAKU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAM,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,yCAAiC,CAAC;CACxD,CAAC,CAAC;AAKU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,qCAA6B,CAAC;IACjD,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;CACpD,CAAC,CAAC"}
@@ -2,8 +2,10 @@ import { z } from 'zod';
2
2
  import { AiModelStatus } from './ai-model-status.enum';
3
3
  import { ModelMark } from './model-mark.enum';
4
4
  import { ModelType } from './model-type.enum';
5
+ import { ModelRole } from './model-role.enum';
5
6
  import { ApiProvider } from './api-provider.enum';
6
7
  import { Modality } from './modality.enum';
8
+ import { ToolId } from '../../ai/tool.types';
7
9
  export declare const UpdateModelRequestSchema: z.ZodObject<{
8
10
  title: z.ZodOptional<z.ZodString>;
9
11
  description: z.ZodOptional<z.ZodString>;
@@ -21,19 +23,20 @@ export declare const UpdateModelRequestSchema: z.ZodObject<{
21
23
  apiProvider: z.ZodOptional<z.ZodEnum<typeof ApiProvider>>;
22
24
  inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof Modality>>>;
23
25
  outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof Modality>>>;
24
- modelType: z.ZodOptional<z.ZodEnum<typeof ModelType>>;
26
+ type: z.ZodOptional<z.ZodEnum<typeof ModelType>>;
27
+ modelRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ModelRole>>>;
28
+ toolCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ToolId>>>;
25
29
  systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
30
  isAvailableForUnreg: z.ZodOptional<z.ZodBoolean>;
27
- plugins: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
- id: z.ZodEnum<typeof import("../../ai/plugins.types").PluginId>;
31
+ plugins: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
32
+ id: z.ZodLiteral<import("../../ai/plugins.types").PluginId.WEB>;
29
33
  price: z.ZodNumber;
30
- }, z.core.$strip>>>;
31
- stepsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32
- steps: z.ZodArray<z.ZodEnum<typeof import("../..").GenerationStepType>>;
33
- overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../..").GenerationStepType>, z.ZodObject<{
34
- model: z.ZodOptional<z.ZodString>;
35
- temperature: z.ZodOptional<z.ZodNumber>;
36
- systemPromptKey: z.ZodOptional<z.ZodString>;
37
- }, z.core.$strict>>>;
38
- }, z.core.$strict>>>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ id: z.ZodLiteral<import("../../ai/plugins.types").PluginId.REASONING>;
36
+ default: z.ZodEnum<typeof import("../../ai/plugins.types").ReasoningEffort>;
37
+ supportedValues: z.ZodArray<z.ZodObject<{
38
+ value: z.ZodEnum<typeof import("../../ai/plugins.types").ReasoningEffort>;
39
+ price: z.ZodNumber;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>], "id">>>;
39
42
  }, z.core.$strip>;
@@ -5,10 +5,11 @@ const zod_1 = require("zod");
5
5
  const ai_model_status_enum_1 = require("./ai-model-status.enum");
6
6
  const model_mark_enum_1 = require("./model-mark.enum");
7
7
  const model_type_enum_1 = require("./model-type.enum");
8
+ const model_role_enum_1 = require("./model-role.enum");
8
9
  const api_provider_enum_1 = require("./api-provider.enum");
9
10
  const modality_enum_1 = require("./modality.enum");
10
11
  const plugins_types_1 = require("../../ai/plugins.types");
11
- const steps_settings_schema_1 = require("./steps-settings.schema");
12
+ const tool_types_1 = require("../../ai/tool.types");
12
13
  exports.UpdateModelRequestSchema = zod_1.z.object({
13
14
  title: zod_1.z
14
15
  .string()
@@ -61,10 +62,11 @@ exports.UpdateModelRequestSchema = zod_1.z.object({
61
62
  apiProvider: zod_1.z.nativeEnum(api_provider_enum_1.ApiProvider).optional(),
62
63
  inputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).optional(),
63
64
  outputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).optional(),
64
- modelType: zod_1.z.nativeEnum(model_type_enum_1.ModelType).optional(),
65
+ type: zod_1.z.nativeEnum(model_type_enum_1.ModelType).optional(),
66
+ modelRoles: zod_1.z.array(zod_1.z.nativeEnum(model_role_enum_1.ModelRole)).optional(),
67
+ toolCapabilities: zod_1.z.array(zod_1.z.nativeEnum(tool_types_1.ToolId)).optional(),
65
68
  systemPrompt: zod_1.z.string().nullable().optional(),
66
69
  isAvailableForUnreg: zod_1.z.boolean().optional(),
67
70
  plugins: plugins_types_1.PluginsConfigArraySchema.optional(),
68
- stepsSettings: steps_settings_schema_1.NullableStepsSettingsSchema.optional(),
69
71
  });
70
72
  //# sourceMappingURL=update-model-request.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/update-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;AAClE,mEAAsE;AAMzD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACnD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACrD,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACnD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACrD,QAAQ,EAAE;IACf,IAAI,E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,CAAC,QAAQ,EAAE;IAC9C,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,wCAAwB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
@@ -9,6 +9,7 @@ export declare namespace UnregAiModelGetModelsListQuery {
9
9
  order: z.ZodNumber;
10
10
  icon: z.ZodString;
11
11
  models: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodEnum<typeof import("../../schemas").ModelType>;
12
13
  uuid: z.ZodString;
13
14
  title: z.ZodString;
14
15
  order: z.ZodNumber;
@@ -21,14 +22,98 @@ export declare namespace UnregAiModelGetModelsListQuery {
21
22
  usageExamples: z.ZodArray<z.ZodString>;
22
23
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
23
24
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
24
- modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
25
- plugins: z.ZodArray<z.ZodObject<{
26
- id: z.ZodEnum<typeof import("../../..").PluginId>;
25
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
26
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof import("../../..").ToolId>>;
27
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
28
+ id: z.ZodLiteral<import("../../..").PluginId.WEB>;
27
29
  price: z.ZodNumber;
28
- }, z.core.$strip>>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
32
+ default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
33
+ supportedValues: z.ZodArray<z.ZodObject<{
34
+ value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
35
+ price: z.ZodNumber;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>], "id">>;
38
+ settings: z.ZodObject<{
39
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
+ toolId: z.ZodEnum<typeof import("../../..").ToolId>;
41
+ settings: z.ZodArray<z.ZodObject<{
42
+ key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
43
+ title: z.ZodString;
44
+ icon: z.ZodOptional<z.ZodString>;
45
+ inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
46
+ defaultOptionId: z.ZodString;
47
+ maxSelections: z.ZodOptional<z.ZodNumber>;
48
+ options: z.ZodArray<z.ZodObject<{
49
+ title: z.ZodString;
50
+ icon: z.ZodOptional<z.ZodString>;
51
+ id: z.ZodString;
52
+ priceModifier: z.ZodDefault<z.ZodNumber>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>>>;
56
+ }, z.core.$strip>;
29
57
  access: z.ZodBoolean;
30
58
  }, z.core.$strip>>;
31
59
  }, z.core.$strip>>;
60
+ availableTools: z.ZodArray<z.ZodObject<{
61
+ toolId: z.ZodEnum<typeof import("../../..").ToolId>;
62
+ providers: z.ZodArray<z.ZodObject<{
63
+ uuid: z.ZodString;
64
+ title: z.ZodString;
65
+ icon: z.ZodString;
66
+ order: z.ZodNumber;
67
+ models: z.ZodArray<z.ZodObject<{
68
+ type: z.ZodEnum<typeof import("../../schemas").ModelType>;
69
+ uuid: z.ZodString;
70
+ title: z.ZodString;
71
+ order: z.ZodNumber;
72
+ description: z.ZodString;
73
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
74
+ icon: z.ZodString;
75
+ price: z.ZodNumber;
76
+ speed: z.ZodNumber;
77
+ bestFor: z.ZodArray<z.ZodString>;
78
+ usageExamples: z.ZodArray<z.ZodString>;
79
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
80
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
81
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
82
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof import("../../..").ToolId>>;
83
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ id: z.ZodLiteral<import("../../..").PluginId.WEB>;
85
+ price: z.ZodNumber;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
88
+ default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
89
+ supportedValues: z.ZodArray<z.ZodObject<{
90
+ value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
91
+ price: z.ZodNumber;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>], "id">>;
94
+ settings: z.ZodObject<{
95
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
+ toolId: z.ZodEnum<typeof import("../../..").ToolId>;
97
+ settings: z.ZodArray<z.ZodObject<{
98
+ key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
99
+ title: z.ZodString;
100
+ icon: z.ZodOptional<z.ZodString>;
101
+ inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
102
+ defaultOptionId: z.ZodString;
103
+ maxSelections: z.ZodOptional<z.ZodNumber>;
104
+ options: z.ZodArray<z.ZodObject<{
105
+ title: z.ZodString;
106
+ icon: z.ZodOptional<z.ZodString>;
107
+ id: z.ZodString;
108
+ priceModifier: z.ZodDefault<z.ZodNumber>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>>>;
112
+ }, z.core.$strip>;
113
+ access: z.ZodBoolean;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>>;
116
+ }, z.core.$strip>>;
32
117
  }, z.core.$strip>;
33
118
  const URL: "/api/v1/unreg/ai-models/list";
34
119
  const METHOD = HttpMethod.GET;
@@ -4,7 +4,21 @@ export declare namespace CreateMessageCommand {
4
4
  const Request: z.ZodObject<{
5
5
  aiModelId: z.ZodString;
6
6
  text: z.ZodString;
7
- plugins: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../..").PluginId>>>;
7
+ plugins: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
9
+ maxResults: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
12
+ effort: z.ZodEnum<typeof import("../..").ReasoningEffort>;
13
+ }, z.core.$strip>], "id">>>;
14
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ toolId: z.ZodEnum<typeof import("../..").ToolId>;
16
+ modelId: z.ZodString;
17
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ key: z.ZodEnum<typeof import("../..").SettingKey>;
19
+ optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
20
+ }, z.core.$strip>>>;
21
+ }, z.core.$strip>>>;
8
22
  }, z.core.$strip>;
9
23
  const Response: z.ZodObject<{
10
24
  messageId: z.ZodString;
@@ -17,6 +31,7 @@ export declare namespace CreateMessageCommand {
17
31
  stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
18
32
  stepId: z.ZodString;
19
33
  stepIndex: z.ZodNumber;
34
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
35
  }, z.core.$strip>, z.ZodObject<{
21
36
  id: z.ZodNumber;
22
37
  chatId: z.ZodString;
@@ -34,6 +49,7 @@ export declare namespace CreateMessageCommand {
34
49
  stepId: z.ZodString;
35
50
  stepIndex: z.ZodNumber;
36
51
  fullContent: z.ZodOptional<z.ZodString>;
52
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
53
  }, z.core.$strip>, z.ZodObject<{
38
54
  id: z.ZodNumber;
39
55
  chatId: z.ZodString;
@@ -86,6 +102,7 @@ export declare namespace CreateMessageCommand {
86
102
  stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
87
103
  stepId: z.ZodString;
88
104
  stepIndex: z.ZodNumber;
105
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
106
  }, z.core.$strip>;
90
107
  const StepChunkEvent: z.ZodObject<{
91
108
  id: z.ZodNumber;
@@ -105,6 +122,7 @@ export declare namespace CreateMessageCommand {
105
122
  stepId: z.ZodString;
106
123
  stepIndex: z.ZodNumber;
107
124
  fullContent: z.ZodOptional<z.ZodString>;
125
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
126
  }, z.core.$strip>;
109
127
  const DoneEvent: z.ZodObject<{
110
128
  id: z.ZodNumber;
@@ -22,6 +22,10 @@ export declare enum MessageErrorCode {
22
22
  UNKNOWN_STEP_TYPE = "UNKNOWN_STEP_TYPE",
23
23
  STEP_FAILED = "STEP_FAILED",
24
24
  STEP_UNEXPECTED_ERROR = "STEP_UNEXPECTED_ERROR",
25
- ORCHESTRATION_ERROR = "ORCHESTRATION_ERROR"
25
+ ORCHESTRATION_ERROR = "ORCHESTRATION_ERROR",
26
+ INVALID_TOOL_ARGUMENTS = "INVALID_TOOL_ARGUMENTS",
27
+ UPLOAD_FAILED = "UPLOAD_FAILED",
28
+ IMAGE_SIZE_EXCEEDED = "IMAGE_SIZE_EXCEEDED",
29
+ INVALID_PATH_SEGMENT = "INVALID_PATH_SEGMENT"
26
30
  }
27
31
  export declare const MESSAGE_ERRORS: Record<MessageErrorCode, ErrorMetadata>;