@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
@@ -0,0 +1,141 @@
1
+ import { z } from 'zod';
2
+ import { ToolId } from '../../ai/tool-id.enum';
3
+ export declare enum SettingInputType {
4
+ SINGLE_SELECT = "single_select",
5
+ MULTI_SELECT = "multi_select"
6
+ }
7
+ export declare enum SettingKey {
8
+ STYLE = "style",
9
+ ASPECT_RATIO = "aspectRatio",
10
+ RESOLUTION = "resolution",
11
+ MAX_RESULTS = "maxResults"
12
+ }
13
+ export declare const SettingOptionSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ title: z.ZodString;
16
+ icon: z.ZodOptional<z.ZodString>;
17
+ priceModifier: z.ZodDefault<z.ZodNumber>;
18
+ promptSuffix: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ export type SettingOption = z.infer<typeof SettingOptionSchema>;
21
+ export declare const SettingOptionClientSchema: z.ZodObject<{
22
+ title: z.ZodString;
23
+ icon: z.ZodOptional<z.ZodString>;
24
+ id: z.ZodString;
25
+ priceModifier: z.ZodDefault<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ export type SettingOptionClient = z.infer<typeof SettingOptionClientSchema>;
28
+ export declare const SettingDefinitionSchema: z.ZodObject<{
29
+ key: z.ZodEnum<typeof SettingKey>;
30
+ title: z.ZodString;
31
+ icon: z.ZodOptional<z.ZodString>;
32
+ inputType: z.ZodEnum<typeof SettingInputType>;
33
+ options: z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ title: z.ZodString;
36
+ icon: z.ZodOptional<z.ZodString>;
37
+ priceModifier: z.ZodDefault<z.ZodNumber>;
38
+ promptSuffix: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ defaultOptionId: z.ZodString;
41
+ maxSelections: z.ZodOptional<z.ZodNumber>;
42
+ }, z.core.$strip>;
43
+ export type SettingDefinition = z.infer<typeof SettingDefinitionSchema>;
44
+ export declare const SettingDefinitionClientSchema: z.ZodObject<{
45
+ key: z.ZodEnum<typeof SettingKey>;
46
+ title: z.ZodString;
47
+ icon: z.ZodOptional<z.ZodString>;
48
+ inputType: z.ZodEnum<typeof SettingInputType>;
49
+ defaultOptionId: z.ZodString;
50
+ maxSelections: z.ZodOptional<z.ZodNumber>;
51
+ options: z.ZodArray<z.ZodObject<{
52
+ title: z.ZodString;
53
+ icon: z.ZodOptional<z.ZodString>;
54
+ id: z.ZodString;
55
+ priceModifier: z.ZodDefault<z.ZodNumber>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ export type SettingDefinitionClient = z.infer<typeof SettingDefinitionClientSchema>;
59
+ export declare const ToolSettingsConfigSchema: z.ZodObject<{
60
+ toolId: z.ZodEnum<typeof ToolId>;
61
+ settings: z.ZodArray<z.ZodObject<{
62
+ key: z.ZodEnum<typeof SettingKey>;
63
+ title: z.ZodString;
64
+ icon: z.ZodOptional<z.ZodString>;
65
+ inputType: z.ZodEnum<typeof SettingInputType>;
66
+ options: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ title: z.ZodString;
69
+ icon: z.ZodOptional<z.ZodString>;
70
+ priceModifier: z.ZodDefault<z.ZodNumber>;
71
+ promptSuffix: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>>;
73
+ defaultOptionId: z.ZodString;
74
+ maxSelections: z.ZodOptional<z.ZodNumber>;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ export type ToolSettingsConfig = z.infer<typeof ToolSettingsConfigSchema>;
78
+ export declare const ToolSettingsConfigClientSchema: z.ZodObject<{
79
+ toolId: z.ZodEnum<typeof ToolId>;
80
+ settings: z.ZodArray<z.ZodObject<{
81
+ key: z.ZodEnum<typeof SettingKey>;
82
+ title: z.ZodString;
83
+ icon: z.ZodOptional<z.ZodString>;
84
+ inputType: z.ZodEnum<typeof SettingInputType>;
85
+ defaultOptionId: z.ZodString;
86
+ maxSelections: z.ZodOptional<z.ZodNumber>;
87
+ options: z.ZodArray<z.ZodObject<{
88
+ title: z.ZodString;
89
+ icon: z.ZodOptional<z.ZodString>;
90
+ id: z.ZodString;
91
+ priceModifier: z.ZodDefault<z.ZodNumber>;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>>;
94
+ }, z.core.$strip>;
95
+ export type ToolSettingsConfigClient = z.infer<typeof ToolSettingsConfigClientSchema>;
96
+ export declare const ModelSettingsSchema: z.ZodObject<{
97
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ toolId: z.ZodEnum<typeof ToolId>;
99
+ settings: z.ZodArray<z.ZodObject<{
100
+ key: z.ZodEnum<typeof SettingKey>;
101
+ title: z.ZodString;
102
+ icon: z.ZodOptional<z.ZodString>;
103
+ inputType: z.ZodEnum<typeof SettingInputType>;
104
+ options: z.ZodArray<z.ZodObject<{
105
+ id: z.ZodString;
106
+ title: z.ZodString;
107
+ icon: z.ZodOptional<z.ZodString>;
108
+ priceModifier: z.ZodDefault<z.ZodNumber>;
109
+ promptSuffix: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strip>>;
111
+ defaultOptionId: z.ZodString;
112
+ maxSelections: z.ZodOptional<z.ZodNumber>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>>>;
115
+ }, z.core.$strip>;
116
+ export type ModelSettings = z.infer<typeof ModelSettingsSchema>;
117
+ export declare const ModelSettingsClientSchema: z.ZodObject<{
118
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ toolId: z.ZodEnum<typeof ToolId>;
120
+ settings: z.ZodArray<z.ZodObject<{
121
+ key: z.ZodEnum<typeof SettingKey>;
122
+ title: z.ZodString;
123
+ icon: z.ZodOptional<z.ZodString>;
124
+ inputType: z.ZodEnum<typeof SettingInputType>;
125
+ defaultOptionId: z.ZodString;
126
+ maxSelections: z.ZodOptional<z.ZodNumber>;
127
+ options: z.ZodArray<z.ZodObject<{
128
+ title: z.ZodString;
129
+ icon: z.ZodOptional<z.ZodString>;
130
+ id: z.ZodString;
131
+ priceModifier: z.ZodDefault<z.ZodNumber>;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>>>;
135
+ }, z.core.$strip>;
136
+ export type ModelSettingsClient = z.infer<typeof ModelSettingsClientSchema>;
137
+ export declare const SettingSelectionSchema: z.ZodObject<{
138
+ key: z.ZodEnum<typeof SettingKey>;
139
+ optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
140
+ }, z.core.$strip>;
141
+ export type SettingSelection = z.infer<typeof SettingSelectionSchema>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingSelectionSchema = exports.ModelSettingsClientSchema = exports.ModelSettingsSchema = exports.ToolSettingsConfigClientSchema = exports.ToolSettingsConfigSchema = exports.SettingDefinitionClientSchema = exports.SettingDefinitionSchema = exports.SettingOptionClientSchema = exports.SettingOptionSchema = exports.SettingKey = exports.SettingInputType = void 0;
4
+ const zod_1 = require("zod");
5
+ const tool_id_enum_1 = require("../../ai/tool-id.enum");
6
+ var SettingInputType;
7
+ (function (SettingInputType) {
8
+ SettingInputType["SINGLE_SELECT"] = "single_select";
9
+ SettingInputType["MULTI_SELECT"] = "multi_select";
10
+ })(SettingInputType || (exports.SettingInputType = SettingInputType = {}));
11
+ var SettingKey;
12
+ (function (SettingKey) {
13
+ SettingKey["STYLE"] = "style";
14
+ SettingKey["ASPECT_RATIO"] = "aspectRatio";
15
+ SettingKey["RESOLUTION"] = "resolution";
16
+ SettingKey["MAX_RESULTS"] = "maxResults";
17
+ })(SettingKey || (exports.SettingKey = SettingKey = {}));
18
+ exports.SettingOptionSchema = zod_1.z.object({
19
+ id: zod_1.z.string().min(1),
20
+ title: zod_1.z.string().min(1),
21
+ icon: zod_1.z.string().optional(),
22
+ priceModifier: zod_1.z.number().int().min(0).default(0),
23
+ promptSuffix: zod_1.z.string().optional(),
24
+ });
25
+ exports.SettingOptionClientSchema = exports.SettingOptionSchema.omit({ promptSuffix: true });
26
+ exports.SettingDefinitionSchema = zod_1.z.object({
27
+ key: zod_1.z.nativeEnum(SettingKey),
28
+ title: zod_1.z.string().min(1),
29
+ icon: zod_1.z.string().optional(),
30
+ inputType: zod_1.z.nativeEnum(SettingInputType),
31
+ options: zod_1.z.array(exports.SettingOptionSchema).min(1),
32
+ defaultOptionId: zod_1.z.string().min(1),
33
+ maxSelections: zod_1.z.number().int().min(1).optional(),
34
+ });
35
+ exports.SettingDefinitionClientSchema = exports.SettingDefinitionSchema.extend({
36
+ options: zod_1.z.array(exports.SettingOptionClientSchema).min(1),
37
+ });
38
+ exports.ToolSettingsConfigSchema = zod_1.z.object({
39
+ toolId: zod_1.z.nativeEnum(tool_id_enum_1.ToolId),
40
+ settings: zod_1.z.array(exports.SettingDefinitionSchema),
41
+ });
42
+ exports.ToolSettingsConfigClientSchema = zod_1.z.object({
43
+ toolId: zod_1.z.nativeEnum(tool_id_enum_1.ToolId),
44
+ settings: zod_1.z.array(exports.SettingDefinitionClientSchema),
45
+ });
46
+ exports.ModelSettingsSchema = zod_1.z.object({
47
+ tools: zod_1.z.array(exports.ToolSettingsConfigSchema).optional(),
48
+ });
49
+ exports.ModelSettingsClientSchema = zod_1.z.object({
50
+ tools: zod_1.z.array(exports.ToolSettingsConfigClientSchema).optional(),
51
+ });
52
+ exports.SettingSelectionSchema = zod_1.z.object({
53
+ key: zod_1.z.nativeEnum(SettingKey),
54
+ optionIds: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
55
+ });
56
+ //# sourceMappingURL=model-settings.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-settings.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-settings.schema.ts"],"names":[],"mappings":"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"}
@@ -1,5 +1,6 @@
1
1
  export declare enum ModelType {
2
2
  AUTO = "auto",
3
3
  TEXT = "text",
4
- IMAGE = "image"
4
+ IMAGE = "image",
5
+ SEARCH = "search"
5
6
  }
@@ -6,5 +6,6 @@ var ModelType;
6
6
  ModelType["AUTO"] = "auto";
7
7
  ModelType["TEXT"] = "text";
8
8
  ModelType["IMAGE"] = "image";
9
+ ModelType["SEARCH"] = "search";
9
10
  })(ModelType || (exports.ModelType = ModelType = {}));
10
11
  //# sourceMappingURL=model-type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-type.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-type.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
1
+ {"version":3,"file":"model-type.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-type.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,8BAAiB,CAAA;AACrB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB"}
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { ToolId } from '../../ai/tool.types';
2
3
  export declare const PublicModelInListSchema: 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 PublicModelInListSchema: 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
  }, z.core.$strip>;
21
50
  export declare const PublicProviderWithModelsSchema: z.ZodObject<{
22
51
  uuid: z.ZodString;
@@ -24,6 +53,60 @@ export declare const PublicProviderWithModelsSchema: z.ZodObject<{
24
53
  order: z.ZodNumber;
25
54
  icon: z.ZodString;
26
55
  models: z.ZodArray<z.ZodObject<{
56
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
57
+ uuid: z.ZodString;
58
+ title: z.ZodString;
59
+ order: z.ZodNumber;
60
+ description: z.ZodString;
61
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
62
+ icon: z.ZodString;
63
+ price: z.ZodNumber;
64
+ speed: z.ZodNumber;
65
+ bestFor: z.ZodArray<z.ZodString>;
66
+ usageExamples: z.ZodArray<z.ZodString>;
67
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
68
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
69
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
70
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
71
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
72
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
73
+ price: z.ZodNumber;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
76
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
77
+ supportedValues: z.ZodArray<z.ZodObject<{
78
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
79
+ price: z.ZodNumber;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>], "id">>;
82
+ settings: z.ZodObject<{
83
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ toolId: z.ZodEnum<typeof ToolId>;
85
+ settings: z.ZodArray<z.ZodObject<{
86
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
87
+ title: z.ZodString;
88
+ icon: z.ZodOptional<z.ZodString>;
89
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
90
+ defaultOptionId: z.ZodString;
91
+ maxSelections: z.ZodOptional<z.ZodNumber>;
92
+ options: z.ZodArray<z.ZodObject<{
93
+ title: z.ZodString;
94
+ icon: z.ZodOptional<z.ZodString>;
95
+ id: z.ZodString;
96
+ priceModifier: z.ZodDefault<z.ZodNumber>;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>>>;
100
+ }, z.core.$strip>;
101
+ }, z.core.$strip>>;
102
+ }, z.core.$strip>;
103
+ export declare const ToolProviderWithModelsSchema: z.ZodObject<{
104
+ uuid: z.ZodString;
105
+ title: z.ZodString;
106
+ icon: z.ZodString;
107
+ order: z.ZodNumber;
108
+ models: z.ZodArray<z.ZodObject<{
109
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
27
110
  uuid: z.ZodString;
28
111
  title: z.ZodString;
29
112
  order: z.ZodNumber;
@@ -36,10 +119,93 @@ export declare const PublicProviderWithModelsSchema: z.ZodObject<{
36
119
  usageExamples: z.ZodArray<z.ZodString>;
37
120
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
38
121
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
39
- modelType: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
40
- plugins: z.ZodArray<z.ZodObject<{
41
- id: z.ZodEnum<typeof import("../..").PluginId>;
122
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
123
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
124
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
125
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
126
+ price: z.ZodNumber;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
129
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
130
+ supportedValues: z.ZodArray<z.ZodObject<{
131
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
132
+ price: z.ZodNumber;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>], "id">>;
135
+ settings: z.ZodObject<{
136
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ toolId: z.ZodEnum<typeof ToolId>;
138
+ settings: z.ZodArray<z.ZodObject<{
139
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
140
+ title: z.ZodString;
141
+ icon: z.ZodOptional<z.ZodString>;
142
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
143
+ defaultOptionId: z.ZodString;
144
+ maxSelections: z.ZodOptional<z.ZodNumber>;
145
+ options: z.ZodArray<z.ZodObject<{
146
+ title: z.ZodString;
147
+ icon: z.ZodOptional<z.ZodString>;
148
+ id: z.ZodString;
149
+ priceModifier: z.ZodDefault<z.ZodNumber>;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strip>>>;
153
+ }, z.core.$strip>;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>;
156
+ export declare const AvailableToolSchema: z.ZodObject<{
157
+ toolId: z.ZodEnum<typeof ToolId>;
158
+ providers: z.ZodArray<z.ZodObject<{
159
+ uuid: z.ZodString;
160
+ title: z.ZodString;
161
+ icon: z.ZodString;
162
+ order: z.ZodNumber;
163
+ models: z.ZodArray<z.ZodObject<{
164
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
165
+ uuid: z.ZodString;
166
+ title: z.ZodString;
167
+ order: z.ZodNumber;
168
+ description: z.ZodString;
169
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
170
+ icon: z.ZodString;
42
171
  price: z.ZodNumber;
172
+ speed: z.ZodNumber;
173
+ bestFor: z.ZodArray<z.ZodString>;
174
+ usageExamples: z.ZodArray<z.ZodString>;
175
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
176
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
177
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
178
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
179
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
181
+ price: z.ZodNumber;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
184
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
185
+ supportedValues: z.ZodArray<z.ZodObject<{
186
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
187
+ price: z.ZodNumber;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>], "id">>;
190
+ settings: z.ZodObject<{
191
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ toolId: z.ZodEnum<typeof ToolId>;
193
+ settings: z.ZodArray<z.ZodObject<{
194
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
195
+ title: z.ZodString;
196
+ icon: z.ZodOptional<z.ZodString>;
197
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
198
+ defaultOptionId: z.ZodString;
199
+ maxSelections: z.ZodOptional<z.ZodNumber>;
200
+ options: z.ZodArray<z.ZodObject<{
201
+ title: z.ZodString;
202
+ icon: z.ZodOptional<z.ZodString>;
203
+ id: z.ZodString;
204
+ priceModifier: z.ZodDefault<z.ZodNumber>;
205
+ }, z.core.$strip>>;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>>>;
208
+ }, z.core.$strip>;
43
209
  }, z.core.$strip>>;
44
210
  }, z.core.$strip>>;
45
211
  }, z.core.$strip>;
@@ -50,6 +216,7 @@ export declare const ModelsListResponseSchema: z.ZodObject<{
50
216
  order: z.ZodNumber;
51
217
  icon: z.ZodString;
52
218
  models: z.ZodArray<z.ZodObject<{
219
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
53
220
  uuid: z.ZodString;
54
221
  title: z.ZodString;
55
222
  order: z.ZodNumber;
@@ -62,10 +229,93 @@ export declare const ModelsListResponseSchema: z.ZodObject<{
62
229
  usageExamples: z.ZodArray<z.ZodString>;
63
230
  inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
64
231
  outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
65
- modelType: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
66
- plugins: z.ZodArray<z.ZodObject<{
67
- id: z.ZodEnum<typeof import("../..").PluginId>;
232
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
233
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
234
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
235
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
236
+ price: z.ZodNumber;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
239
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
240
+ supportedValues: z.ZodArray<z.ZodObject<{
241
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
242
+ price: z.ZodNumber;
243
+ }, z.core.$strip>>;
244
+ }, z.core.$strip>], "id">>;
245
+ settings: z.ZodObject<{
246
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ toolId: z.ZodEnum<typeof ToolId>;
248
+ settings: z.ZodArray<z.ZodObject<{
249
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
250
+ title: z.ZodString;
251
+ icon: z.ZodOptional<z.ZodString>;
252
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
253
+ defaultOptionId: z.ZodString;
254
+ maxSelections: z.ZodOptional<z.ZodNumber>;
255
+ options: z.ZodArray<z.ZodObject<{
256
+ title: z.ZodString;
257
+ icon: z.ZodOptional<z.ZodString>;
258
+ id: z.ZodString;
259
+ priceModifier: z.ZodDefault<z.ZodNumber>;
260
+ }, z.core.$strip>>;
261
+ }, z.core.$strip>>;
262
+ }, z.core.$strip>>>;
263
+ }, z.core.$strip>;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>>;
266
+ availableTools: z.ZodArray<z.ZodObject<{
267
+ toolId: z.ZodEnum<typeof ToolId>;
268
+ providers: z.ZodArray<z.ZodObject<{
269
+ uuid: z.ZodString;
270
+ title: z.ZodString;
271
+ icon: z.ZodString;
272
+ order: z.ZodNumber;
273
+ models: z.ZodArray<z.ZodObject<{
274
+ type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
275
+ uuid: z.ZodString;
276
+ title: z.ZodString;
277
+ order: z.ZodNumber;
278
+ description: z.ZodString;
279
+ marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
280
+ icon: z.ZodString;
68
281
  price: z.ZodNumber;
282
+ speed: z.ZodNumber;
283
+ bestFor: z.ZodArray<z.ZodString>;
284
+ usageExamples: z.ZodArray<z.ZodString>;
285
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
286
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
287
+ modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
288
+ toolCapabilities: z.ZodArray<z.ZodEnum<typeof ToolId>>;
289
+ plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
290
+ id: z.ZodLiteral<import("../..").PluginId.WEB>;
291
+ price: z.ZodNumber;
292
+ }, z.core.$strip>, z.ZodObject<{
293
+ id: z.ZodLiteral<import("../..").PluginId.REASONING>;
294
+ default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
295
+ supportedValues: z.ZodArray<z.ZodObject<{
296
+ value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
297
+ price: z.ZodNumber;
298
+ }, z.core.$strip>>;
299
+ }, z.core.$strip>], "id">>;
300
+ settings: z.ZodObject<{
301
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
302
+ toolId: z.ZodEnum<typeof ToolId>;
303
+ settings: z.ZodArray<z.ZodObject<{
304
+ key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
305
+ title: z.ZodString;
306
+ icon: z.ZodOptional<z.ZodString>;
307
+ inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
308
+ defaultOptionId: z.ZodString;
309
+ maxSelections: z.ZodOptional<z.ZodNumber>;
310
+ options: z.ZodArray<z.ZodObject<{
311
+ title: z.ZodString;
312
+ icon: z.ZodOptional<z.ZodString>;
313
+ id: z.ZodString;
314
+ priceModifier: z.ZodDefault<z.ZodNumber>;
315
+ }, z.core.$strip>>;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>>>;
318
+ }, z.core.$strip>;
69
319
  }, z.core.$strip>>;
70
320
  }, z.core.$strip>>;
71
321
  }, z.core.$strip>>;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelsListResponseSchema = exports.PublicProviderWithModelsSchema = exports.PublicModelInListSchema = void 0;
3
+ exports.ModelsListResponseSchema = exports.AvailableToolSchema = exports.ToolProviderWithModelsSchema = exports.PublicProviderWithModelsSchema = exports.PublicModelInListSchema = 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.PublicModelInListSchema = model_response_schema_1.PublicModelResponseSchema;
8
9
  exports.PublicProviderWithModelsSchema = ai_provider_1.ProviderResponseSchema.pick({
9
10
  uuid: true,
@@ -13,7 +14,19 @@ exports.PublicProviderWithModelsSchema = ai_provider_1.ProviderResponseSchema.pi
13
14
  }).extend({
14
15
  models: zod_1.z.array(exports.PublicModelInListSchema),
15
16
  });
17
+ exports.ToolProviderWithModelsSchema = 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.PublicModelInListSchema),
23
+ });
24
+ exports.AvailableToolSchema = zod_1.z.object({
25
+ toolId: zod_1.z.nativeEnum(tool_types_1.ToolId),
26
+ providers: zod_1.z.array(exports.ToolProviderWithModelsSchema),
27
+ });
16
28
  exports.ModelsListResponseSchema = zod_1.z.object({
17
29
  providers: zod_1.z.array(exports.PublicProviderWithModelsSchema),
30
+ availableTools: zod_1.z.array(exports.AvailableToolSchema),
18
31
  });
19
32
  //# sourceMappingURL=models-list-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAoE;AACpE,mDAA2D;AAM9C,QAAA,uBAAuB,GAAG,iDAAyB,CAAC;AAMpD,QAAA,8BAA8B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACtE,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,+BAAuB,CAAC;CAC3C,CAAC,CAAC;AAKU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;CACrD,CAAC,CAAC"}
1
+ {"version":3,"file":"models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAoE;AACpE,mDAA2D;AAC3D,oDAA6C;AAMhC,QAAA,uBAAuB,GAAG,iDAAyB,CAAC;AAMpD,QAAA,8BAA8B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACtE,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,+BAAuB,CAAC;CAC3C,CAAC,CAAC;AAMU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,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,+BAAuB,CAAC;CAC3C,CAAC,CAAC;AAKU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAM,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC;CACnD,CAAC,CAAC;AAKU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;IAClD,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,2BAAmB,CAAC;CAC/C,CAAC,CAAC"}