@veruna/api-contracts 1.1.15 → 1.1.16
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.
- package/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +7 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/tools.controllers.d.ts +4 -0
- package/build/controllers/tools.controllers.js +8 -0
- package/build/controllers/tools.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +138 -0
- package/build/locales/validation.js +138 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +21 -0
- package/build/rest-api.js +21 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +4 -0
- package/build/routes/index.js +10 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/model-tools-admin.routes.d.ts +6 -0
- package/build/routes/model-tools-admin.routes.js +10 -0
- package/build/routes/model-tools-admin.routes.js.map +1 -0
- package/build/routes/tools-admin.routes.d.ts +5 -0
- package/build/routes/tools-admin.routes.js +9 -0
- package/build/routes/tools-admin.routes.js.map +1 -0
- package/build/routes/tools-public.routes.d.ts +4 -0
- package/build/routes/tools-public.routes.js +8 -0
- package/build/routes/tools-public.routes.js.map +1 -0
- package/build/routes/tools-unreg.routes.d.ts +4 -0
- package/build/routes/tools-unreg.routes.js +8 -0
- package/build/routes/tools-unreg.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool.types.d.ts +6 -8
- package/build/v1/ai/tool.types.js +13 -14
- package/build/v1/ai/tool.types.js.map +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +2 -87
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +2 -87
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +1 -21
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +1 -21
- package/build/v1/ai-model/ai-model.errors.d.ts +2 -2
- package/build/v1/ai-model/ai-model.errors.js +5 -5
- package/build/v1/ai-model/ai-model.errors.js.map +1 -1
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +2 -18
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +2 -80
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +2 -67
- package/build/v1/ai-model/schemas/create-model-request.schema.js +16 -7
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +4 -93
- package/build/v1/ai-model/schemas/model-response.schema.js +6 -7
- package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +0 -204
- package/build/v1/ai-model/schemas/model-settings.schema.js +20 -36
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +6 -238
- package/build/v1/ai-model/schemas/models-list-response.schema.js +1 -14
- package/build/v1/ai-model/schemas/models-list-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +45 -364
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +3 -29
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +2 -67
- package/build/v1/ai-model/schemas/update-model-request.schema.js +16 -7
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +1 -81
- package/build/v1/index.d.ts +2 -0
- package/build/v1/index.js +2 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +27 -5
- package/build/v1/message/message.errors.d.ts +1 -0
- package/build/v1/message/message.errors.js +5 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +13 -2
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +13 -2
- package/build/v1/message/schemas/create-message-request.schema.d.ts +1 -1
- package/build/v1/message/schemas/create-message-request.schema.js +1 -1
- package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +2 -0
- package/build/v1/message/schemas/index.js +11 -1
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/step-metadata.schema.d.ts +36 -0
- package/build/v1/message/schemas/step-metadata.schema.js +38 -0
- package/build/v1/message/schemas/step-metadata.schema.js.map +1 -0
- package/build/v1/message/schemas/stream-events.schema.d.ts +26 -4
- package/build/v1/message/schemas/stream-events.schema.js +3 -2
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/shared/access-reason.enum.d.ts +4 -0
- package/build/v1/shared/access-reason.enum.js +9 -0
- package/build/v1/shared/access-reason.enum.js.map +1 -0
- package/build/v1/shared/access.schema.d.ts +6 -0
- package/build/v1/shared/access.schema.js +10 -0
- package/build/v1/shared/access.schema.js.map +1 -0
- package/build/v1/shared/index.d.ts +3 -0
- package/build/v1/shared/index.js +20 -0
- package/build/v1/shared/index.js.map +1 -0
- package/build/v1/shared/visibility.enum.d.ts +11 -0
- package/build/v1/shared/visibility.enum.js +17 -0
- package/build/v1/shared/visibility.enum.js.map +1 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.d.ts +123 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.js +14 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.d.ts +11 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.js +15 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/delete-tool.command.d.ts +11 -0
- package/build/v1/tool/admin/commands/delete-tool.command.js +15 -0
- package/build/v1/tool/admin/commands/delete-tool.command.js.map +1 -0
- package/build/v1/tool/admin/commands/index.d.ts +5 -0
- package/build/v1/tool/admin/commands/index.js +22 -0
- package/build/v1/tool/admin/commands/index.js.map +1 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.d.ts +122 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.js +14 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/update-tool.command.d.ts +40 -0
- package/build/v1/tool/admin/commands/update-tool.command.js +14 -0
- package/build/v1/tool/admin/commands/update-tool.command.js.map +1 -0
- package/build/v1/tool/admin/index.d.ts +2 -0
- package/build/v1/tool/admin/index.js +19 -0
- package/build/v1/tool/admin/index.js.map +1 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.d.ts +57 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.js +15 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.js.map +1 -0
- package/build/v1/tool/admin/queries/get-tools.query.d.ts +32 -0
- package/build/v1/tool/admin/queries/get-tools.query.js +15 -0
- package/build/v1/tool/admin/queries/get-tools.query.js.map +1 -0
- package/build/v1/tool/admin/queries/index.d.ts +2 -0
- package/build/v1/tool/admin/queries/index.js +19 -0
- package/build/v1/tool/admin/queries/index.js.map +1 -0
- package/build/v1/tool/index.d.ts +6 -0
- package/build/v1/tool/index.js +23 -0
- package/build/v1/tool/index.js.map +1 -0
- package/build/v1/tool/public/index.d.ts +1 -0
- package/build/v1/tool/public/index.js +18 -0
- package/build/v1/tool/public/index.js.map +1 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.d.ts +73 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.js +15 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.js.map +1 -0
- package/build/v1/tool/public/queries/get-tools.query.d.ts +28 -0
- package/build/v1/tool/public/queries/get-tools.query.js +15 -0
- package/build/v1/tool/public/queries/get-tools.query.js.map +1 -0
- package/build/v1/tool/public/queries/index.d.ts +2 -0
- package/build/v1/tool/public/queries/index.js +19 -0
- package/build/v1/tool/public/queries/index.js.map +1 -0
- package/build/v1/tool/schemas/index.d.ts +2 -0
- package/build/v1/tool/schemas/index.js +19 -0
- package/build/v1/tool/schemas/index.js.map +1 -0
- package/build/v1/tool/schemas/tool.enums.d.ts +31 -0
- package/build/v1/tool/schemas/tool.enums.js +41 -0
- package/build/v1/tool/schemas/tool.enums.js.map +1 -0
- package/build/v1/tool/schemas/tool.schema.d.ts +803 -0
- package/build/v1/tool/schemas/tool.schema.js +199 -0
- package/build/v1/tool/schemas/tool.schema.js.map +1 -0
- package/build/v1/tool/tool.errors.d.ts +25 -0
- package/build/v1/tool/tool.errors.js +114 -0
- package/build/v1/tool/tool.errors.js.map +1 -0
- package/build/v1/tool/unreg/index.d.ts +1 -0
- package/build/v1/tool/unreg/index.js +18 -0
- package/build/v1/tool/unreg/index.js.map +1 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.d.ts +73 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.js +15 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.js.map +1 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.d.ts +28 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.js +15 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.js.map +1 -0
- package/build/v1/tool/unreg/queries/index.d.ts +2 -0
- package/build/v1/tool/unreg/queries/index.js +19 -0
- package/build/v1/tool/unreg/queries/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -23,7 +23,6 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
23
23
|
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
24
24
|
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
25
25
|
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
26
|
-
toolCapabilities: z.ZodArray<z.ZodEnum<typeof import("../../..").ToolId>>;
|
|
27
26
|
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
27
|
id: z.ZodLiteral<import("../../..").PluginId.WEB>;
|
|
29
28
|
price: z.ZodNumber;
|
|
@@ -36,23 +35,6 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
36
35
|
}, z.core.$strip>>;
|
|
37
36
|
}, z.core.$strip>], "id">>;
|
|
38
37
|
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
38
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
57
39
|
imagePrice: z.ZodNumber;
|
|
58
40
|
filePrice: z.ZodNumber;
|
|
@@ -61,69 +43,7 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
61
43
|
}, z.core.$strip>>;
|
|
62
44
|
}, z.core.$strip>;
|
|
63
45
|
access: z.ZodBoolean;
|
|
64
|
-
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
|
-
availableTools: z.ZodArray<z.ZodObject<{
|
|
67
|
-
toolId: z.ZodEnum<typeof import("../../..").ToolId>;
|
|
68
|
-
providers: z.ZodArray<z.ZodObject<{
|
|
69
|
-
uuid: z.ZodString;
|
|
70
|
-
title: z.ZodString;
|
|
71
|
-
icon: z.ZodString;
|
|
72
|
-
order: z.ZodNumber;
|
|
73
|
-
models: z.ZodArray<z.ZodObject<{
|
|
74
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
75
|
-
uuid: z.ZodString;
|
|
76
|
-
title: z.ZodString;
|
|
77
|
-
order: z.ZodNumber;
|
|
78
|
-
description: z.ZodString;
|
|
79
|
-
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
80
|
-
icon: z.ZodString;
|
|
81
|
-
price: z.ZodNumber;
|
|
82
|
-
speed: z.ZodNumber;
|
|
83
|
-
bestFor: z.ZodArray<z.ZodString>;
|
|
84
|
-
usageExamples: z.ZodArray<z.ZodString>;
|
|
85
|
-
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
86
|
-
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
87
|
-
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
88
|
-
toolCapabilities: z.ZodArray<z.ZodEnum<typeof import("../../..").ToolId>>;
|
|
89
|
-
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
90
|
-
id: z.ZodLiteral<import("../../..").PluginId.WEB>;
|
|
91
|
-
price: z.ZodNumber;
|
|
92
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
-
id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
|
|
94
|
-
default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
95
|
-
supportedValues: z.ZodArray<z.ZodObject<{
|
|
96
|
-
value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
97
|
-
price: z.ZodNumber;
|
|
98
|
-
}, z.core.$strip>>;
|
|
99
|
-
}, z.core.$strip>], "id">>;
|
|
100
|
-
settings: z.ZodObject<{
|
|
101
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
-
toolId: z.ZodEnum<typeof import("../../..").ToolId>;
|
|
103
|
-
settings: z.ZodArray<z.ZodObject<{
|
|
104
|
-
key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
|
|
105
|
-
title: z.ZodString;
|
|
106
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
107
|
-
inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
|
|
108
|
-
defaultOptionId: z.ZodString;
|
|
109
|
-
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
options: z.ZodArray<z.ZodObject<{
|
|
111
|
-
title: z.ZodString;
|
|
112
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
113
|
-
id: z.ZodString;
|
|
114
|
-
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
}, z.core.$strip>>>;
|
|
118
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
119
|
-
imagePrice: z.ZodNumber;
|
|
120
|
-
filePrice: z.ZodNumber;
|
|
121
|
-
maxImages: z.ZodNumber;
|
|
122
|
-
maxFiles: z.ZodNumber;
|
|
123
|
-
}, z.core.$strip>>;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
access: z.ZodBoolean;
|
|
126
|
-
}, z.core.$strip>>;
|
|
46
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
127
47
|
}, z.core.$strip>>;
|
|
128
48
|
}, z.core.$strip>>;
|
|
129
49
|
}, z.core.$strip>;
|
package/build/v1/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './shared';
|
|
1
2
|
export * from './auth';
|
|
2
3
|
export * from './unregistered-users';
|
|
3
4
|
export * from './blog';
|
|
@@ -12,6 +13,7 @@ export * from './assistant-hints';
|
|
|
12
13
|
export * from './seo-pages';
|
|
13
14
|
export * from './ai-provider';
|
|
14
15
|
export * from './ai-model';
|
|
16
|
+
export * from './tool';
|
|
15
17
|
export * from './chat-project';
|
|
16
18
|
export * from './chat';
|
|
17
19
|
export * from './message';
|
package/build/v1/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared"), exports);
|
|
17
18
|
__exportStar(require("./auth"), exports);
|
|
18
19
|
__exportStar(require("./unregistered-users"), exports);
|
|
19
20
|
__exportStar(require("./blog"), exports);
|
|
@@ -28,6 +29,7 @@ __exportStar(require("./assistant-hints"), exports);
|
|
|
28
29
|
__exportStar(require("./seo-pages"), exports);
|
|
29
30
|
__exportStar(require("./ai-provider"), exports);
|
|
30
31
|
__exportStar(require("./ai-model"), exports);
|
|
32
|
+
__exportStar(require("./tool"), exports);
|
|
31
33
|
__exportStar(require("./chat-project"), exports);
|
|
32
34
|
__exportStar(require("./chat"), exports);
|
|
33
35
|
__exportStar(require("./message"), exports);
|
package/build/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC"}
|
|
@@ -12,7 +12,7 @@ export declare namespace CreateMessageCommand {
|
|
|
12
12
|
effort: z.ZodEnum<typeof import("../..").ReasoningEffort>;
|
|
13
13
|
}, z.core.$strip>], "id">>>;
|
|
14
14
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
-
|
|
15
|
+
toolUuid: z.ZodString;
|
|
16
16
|
modelId: z.ZodString;
|
|
17
17
|
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
18
|
key: z.ZodEnum<typeof import("../..").SettingKey>;
|
|
@@ -33,7 +33,14 @@ export declare namespace CreateMessageCommand {
|
|
|
33
33
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
34
34
|
stepId: z.ZodString;
|
|
35
35
|
stepIndex: z.ZodNumber;
|
|
36
|
-
metadata: z.ZodOptional<z.
|
|
36
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
queries: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
sourceResolution: z.ZodString;
|
|
40
|
+
sourceImageCount: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
videoUrl: z.ZodString;
|
|
43
|
+
}, z.core.$strip>]>>;
|
|
37
44
|
}, z.core.$strip>, z.ZodObject<{
|
|
38
45
|
id: z.ZodNumber;
|
|
39
46
|
chatId: z.ZodString;
|
|
@@ -61,7 +68,11 @@ export declare namespace CreateMessageCommand {
|
|
|
61
68
|
stepId: z.ZodString;
|
|
62
69
|
stepIndex: z.ZodNumber;
|
|
63
70
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
64
|
-
metadata: z.ZodOptional<z.
|
|
71
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
72
|
+
imageUrl: z.ZodString;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
65
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
66
77
|
id: z.ZodNumber;
|
|
67
78
|
chatId: z.ZodString;
|
|
@@ -114,7 +125,14 @@ export declare namespace CreateMessageCommand {
|
|
|
114
125
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
115
126
|
stepId: z.ZodString;
|
|
116
127
|
stepIndex: z.ZodNumber;
|
|
117
|
-
metadata: z.ZodOptional<z.
|
|
128
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
129
|
+
queries: z.ZodArray<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
sourceResolution: z.ZodString;
|
|
132
|
+
sourceImageCount: z.ZodNumber;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
videoUrl: z.ZodString;
|
|
135
|
+
}, z.core.$strip>]>>;
|
|
118
136
|
}, z.core.$strip>;
|
|
119
137
|
const StepChunkEvent: z.ZodObject<{
|
|
120
138
|
id: z.ZodNumber;
|
|
@@ -145,7 +163,11 @@ export declare namespace CreateMessageCommand {
|
|
|
145
163
|
stepId: z.ZodString;
|
|
146
164
|
stepIndex: z.ZodNumber;
|
|
147
165
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
148
|
-
metadata: z.ZodOptional<z.
|
|
166
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
167
|
+
imageUrl: z.ZodString;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
149
171
|
}, z.core.$strip>;
|
|
150
172
|
const DoneEvent: z.ZodObject<{
|
|
151
173
|
id: z.ZodNumber;
|
|
@@ -14,6 +14,7 @@ export declare enum MessageErrorCode {
|
|
|
14
14
|
AI_MODEL_NOT_FOUND = "AI_MODEL_NOT_FOUND",
|
|
15
15
|
AI_MODEL_INACTIVE = "AI_MODEL_INACTIVE",
|
|
16
16
|
AI_MODEL_NOT_AVAILABLE_FOR_UNREG = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG",
|
|
17
|
+
AI_MODEL_NOT_AVAILABLE = "AI_MODEL_NOT_AVAILABLE",
|
|
17
18
|
CANNOT_RATE_USER_MESSAGE = "CANNOT_RATE_USER_MESSAGE",
|
|
18
19
|
COMPACTION_FAILED = "COMPACTION_FAILED",
|
|
19
20
|
IMAGE_CONTENT_FILTERED = "IMAGE_CONTENT_FILTERED",
|
|
@@ -17,6 +17,7 @@ var MessageErrorCode;
|
|
|
17
17
|
MessageErrorCode["AI_MODEL_NOT_FOUND"] = "AI_MODEL_NOT_FOUND";
|
|
18
18
|
MessageErrorCode["AI_MODEL_INACTIVE"] = "AI_MODEL_INACTIVE";
|
|
19
19
|
MessageErrorCode["AI_MODEL_NOT_AVAILABLE_FOR_UNREG"] = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG";
|
|
20
|
+
MessageErrorCode["AI_MODEL_NOT_AVAILABLE"] = "AI_MODEL_NOT_AVAILABLE";
|
|
20
21
|
MessageErrorCode["CANNOT_RATE_USER_MESSAGE"] = "CANNOT_RATE_USER_MESSAGE";
|
|
21
22
|
MessageErrorCode["COMPACTION_FAILED"] = "COMPACTION_FAILED";
|
|
22
23
|
MessageErrorCode["IMAGE_CONTENT_FILTERED"] = "IMAGE_CONTENT_FILTERED";
|
|
@@ -91,6 +92,10 @@ exports.MESSAGE_ERRORS = {
|
|
|
91
92
|
code: MessageErrorCode.AI_MODEL_NOT_AVAILABLE_FOR_UNREG,
|
|
92
93
|
statusCode: 403,
|
|
93
94
|
},
|
|
95
|
+
[MessageErrorCode.AI_MODEL_NOT_AVAILABLE]: {
|
|
96
|
+
code: MessageErrorCode.AI_MODEL_NOT_AVAILABLE,
|
|
97
|
+
statusCode: 403,
|
|
98
|
+
},
|
|
94
99
|
[MessageErrorCode.CANNOT_RATE_USER_MESSAGE]: {
|
|
95
100
|
code: MessageErrorCode.CANNOT_RATE_USER_MESSAGE,
|
|
96
101
|
statusCode: 400,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.errors.js","sourceRoot":"","sources":["../../../v1/message/message.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"message.errors.js","sourceRoot":"","sources":["../../../v1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AAG;KAClB;IACD,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;QAC9B,IAAI,EAAE,gBAAgB,CAAC,aAAa;QACpC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,EAAE;QACpC,IAAI,EAAE,gBAAgB,CAAC,mBAAmB;QAC1C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE;QACrC,IAAI,EAAE,gBAAgB,CAAC,oBAAoB;QAC3C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,EAAE;QAC1C,IAAI,EAAE,gBAAgB,CAAC,yBAAyB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,EAAE;QAC3C,IAAI,EAAE,gBAAgB,CAAC,0BAA0B;QACjD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,EAAE;QACxC,IAAI,EAAE,gBAAgB,CAAC,uBAAuB;QAC9C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -10,7 +10,14 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
10
10
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
11
11
|
stepId: z.ZodString;
|
|
12
12
|
stepIndex: z.ZodNumber;
|
|
13
|
-
metadata: z.ZodOptional<z.
|
|
13
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
queries: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
sourceResolution: z.ZodString;
|
|
17
|
+
sourceImageCount: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
videoUrl: z.ZodString;
|
|
20
|
+
}, z.core.$strip>]>>;
|
|
14
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
15
22
|
id: z.ZodNumber;
|
|
16
23
|
chatId: z.ZodString;
|
|
@@ -38,7 +45,11 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
38
45
|
stepId: z.ZodString;
|
|
39
46
|
stepIndex: z.ZodNumber;
|
|
40
47
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
41
|
-
metadata: z.ZodOptional<z.
|
|
48
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
49
|
+
imageUrl: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
42
53
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
54
|
id: z.ZodNumber;
|
|
44
55
|
chatId: z.ZodString;
|
|
@@ -10,7 +10,14 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
10
10
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
11
11
|
stepId: z.ZodString;
|
|
12
12
|
stepIndex: z.ZodNumber;
|
|
13
|
-
metadata: z.ZodOptional<z.
|
|
13
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
queries: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
sourceResolution: z.ZodString;
|
|
17
|
+
sourceImageCount: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
videoUrl: z.ZodString;
|
|
20
|
+
}, z.core.$strip>]>>;
|
|
14
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
15
22
|
id: z.ZodNumber;
|
|
16
23
|
chatId: z.ZodString;
|
|
@@ -38,7 +45,11 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
38
45
|
stepId: z.ZodString;
|
|
39
46
|
stepIndex: z.ZodNumber;
|
|
40
47
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
41
|
-
metadata: z.ZodOptional<z.
|
|
48
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
49
|
+
imageUrl: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
42
53
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
54
|
id: z.ZodNumber;
|
|
44
55
|
chatId: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
10
10
|
effort: z.ZodEnum<typeof import("../../ai/plugins.types").ReasoningEffort>;
|
|
11
11
|
}, z.core.$strip>], "id">>>;
|
|
12
12
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
-
|
|
13
|
+
toolUuid: z.ZodString;
|
|
14
14
|
modelId: z.ZodString;
|
|
15
15
|
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
16
|
key: z.ZodEnum<typeof import("../..").SettingKey>;
|
|
@@ -14,7 +14,7 @@ exports.CreateMessageRequestSchema = zod_1.z.object({
|
|
|
14
14
|
.min(1, { message: 'CreateMessageRequest.text.min' })
|
|
15
15
|
.max(shared_1.MESSAGE_TEXT_MAX_LENGTH, { message: 'CreateMessageRequest.text.max' }),
|
|
16
16
|
plugins: plugins_types_1.PluginRequestArraySchema.optional(),
|
|
17
|
-
tools: tool_types_1.
|
|
17
|
+
tools: tool_types_1.ToolSelectionArraySchema.optional(),
|
|
18
18
|
attachPendingFiles: zod_1.z
|
|
19
19
|
.boolean({ error: 'CreateMessageRequest.attachPendingFiles.invalid' })
|
|
20
20
|
.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-message-request.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/create-message-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA0D;AAC1D,0DAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"create-message-request.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/create-message-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA0D;AAC1D,0DAAkE;AAClE,oDAA+D;AAMlD,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC;SAC5D,IAAI,CAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAChE,IAAI,EAAE,OAAC;SACF,MAAM,CAAC,EAAE,KAAK,EAAE,oCAAoC,EAAE,CAAC;SACvD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;SACpD,GAAG,CAAC,gCAAuB,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IAC/E,OAAO,EAAE,wCAAwB,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,qCAAwB,CAAC,QAAQ,EAAE;IAC1C,kBAAkB,EAAE,OAAC;SAChB,OAAO,CAAC,EAAE,KAAK,EAAE,iDAAiD,EAAE,CAAC;SACrE,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,IAAI,CAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;SAC7D,QAAQ,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -12,6 +12,8 @@ export { MessageCitationResponseSchema, MessageCitationsResponseSchema, } from '
|
|
|
12
12
|
export type { MessageCitationResponse, MessageCitationsResponse, } from './message-citation-response.schema';
|
|
13
13
|
export { StreamEventType, StreamEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepErrorEventSchema, StreamStepDoneEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, } from './stream-events.schema';
|
|
14
14
|
export { CitationSchema, CitationStatus, type Citation } from './citation.schema';
|
|
15
|
+
export { StepStartMetadataSchema, StepDoneMetadataSchema, WebSearchStepStartMetadataSchema, ImageEditStepStartMetadataSchema, VideoAnalysisStepStartMetadataSchema, UploadStepDoneMetadataSchema, StepStartMetadataByType, StepDoneMetadataByType, } from './step-metadata.schema';
|
|
16
|
+
export type { WebSearchStepStartMetadata, ImageEditStepStartMetadata, VideoAnalysisStepStartMetadata, UploadStepDoneMetadata, } from './step-metadata.schema';
|
|
15
17
|
export { AttachmentSource, AttachmentType, AttachmentStatus, AttachmentSchema, AttachmentsSchema, } from './message-attachment.schema';
|
|
16
18
|
export type { Attachment, Attachments } from './message-attachment.schema';
|
|
17
19
|
export { GenerationStepSchema, GenerationStepType, MessageStepStatus, } from './generation-step.schema';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MessageStepStatus = exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
4
|
+
exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = void 0;
|
|
4
5
|
var message_role_enum_1 = require("./message-role.enum");
|
|
5
6
|
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
|
|
6
7
|
var message_status_enum_1 = require("./message-status.enum");
|
|
@@ -46,6 +47,15 @@ Object.defineProperty(exports, "StreamErrorEventSchema", { enumerable: true, get
|
|
|
46
47
|
var citation_schema_1 = require("./citation.schema");
|
|
47
48
|
Object.defineProperty(exports, "CitationSchema", { enumerable: true, get: function () { return citation_schema_1.CitationSchema; } });
|
|
48
49
|
Object.defineProperty(exports, "CitationStatus", { enumerable: true, get: function () { return citation_schema_1.CitationStatus; } });
|
|
50
|
+
var step_metadata_schema_1 = require("./step-metadata.schema");
|
|
51
|
+
Object.defineProperty(exports, "StepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepStartMetadataSchema; } });
|
|
52
|
+
Object.defineProperty(exports, "StepDoneMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepDoneMetadataSchema; } });
|
|
53
|
+
Object.defineProperty(exports, "WebSearchStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.WebSearchStepStartMetadataSchema; } });
|
|
54
|
+
Object.defineProperty(exports, "ImageEditStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.ImageEditStepStartMetadataSchema; } });
|
|
55
|
+
Object.defineProperty(exports, "VideoAnalysisStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.VideoAnalysisStepStartMetadataSchema; } });
|
|
56
|
+
Object.defineProperty(exports, "UploadStepDoneMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.UploadStepDoneMetadataSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "StepStartMetadataByType", { enumerable: true, get: function () { return step_metadata_schema_1.StepStartMetadataByType; } });
|
|
58
|
+
Object.defineProperty(exports, "StepDoneMetadataByType", { enumerable: true, get: function () { return step_metadata_schema_1.StepDoneMetadataByType; } });
|
|
49
59
|
var message_attachment_schema_1 = require("./message-attachment.schema");
|
|
50
60
|
Object.defineProperty(exports, "AttachmentSource", { enumerable: true, get: function () { return message_attachment_schema_1.AttachmentSource; } });
|
|
51
61
|
Object.defineProperty(exports, "AttachmentType", { enumerable: true, get: function () { return message_attachment_schema_1.AttachmentType; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EASwC;AARpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA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OAAA;AAClB,2HAAA,iBAAiB,OAAA;AAGrB,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { GenerationStepType } from './generation-step.schema';
|
|
3
|
+
export declare const WebSearchStepStartMetadataSchema: z.ZodObject<{
|
|
4
|
+
queries: z.ZodArray<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const ImageEditStepStartMetadataSchema: z.ZodObject<{
|
|
7
|
+
sourceResolution: z.ZodString;
|
|
8
|
+
sourceImageCount: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const VideoAnalysisStepStartMetadataSchema: z.ZodObject<{
|
|
11
|
+
videoUrl: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const StepStartMetadataByType: Partial<Record<GenerationStepType, z.ZodTypeAny>>;
|
|
14
|
+
export declare const StepStartMetadataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
queries: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
sourceResolution: z.ZodString;
|
|
18
|
+
sourceImageCount: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
videoUrl: z.ZodString;
|
|
21
|
+
}, z.core.$strip>]>>;
|
|
22
|
+
export declare const UploadStepDoneMetadataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
23
|
+
imageUrl: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>;
|
|
27
|
+
export declare const StepDoneMetadataByType: Partial<Record<GenerationStepType, z.ZodTypeAny>>;
|
|
28
|
+
export declare const StepDoneMetadataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
29
|
+
imageUrl: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
33
|
+
export type WebSearchStepStartMetadata = z.infer<typeof WebSearchStepStartMetadataSchema>;
|
|
34
|
+
export type ImageEditStepStartMetadata = z.infer<typeof ImageEditStepStartMetadataSchema>;
|
|
35
|
+
export type VideoAnalysisStepStartMetadata = z.infer<typeof VideoAnalysisStepStartMetadataSchema>;
|
|
36
|
+
export type UploadStepDoneMetadata = z.infer<typeof UploadStepDoneMetadataSchema>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepDoneMetadataSchema = exports.StepDoneMetadataByType = exports.UploadStepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.StepStartMetadataByType = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
|
+
exports.WebSearchStepStartMetadataSchema = zod_1.z.object({
|
|
7
|
+
queries: zod_1.z.array(zod_1.z.string()),
|
|
8
|
+
});
|
|
9
|
+
exports.ImageEditStepStartMetadataSchema = zod_1.z.object({
|
|
10
|
+
sourceResolution: zod_1.z.string(),
|
|
11
|
+
sourceImageCount: zod_1.z.number().int().nonnegative(),
|
|
12
|
+
});
|
|
13
|
+
exports.VideoAnalysisStepStartMetadataSchema = zod_1.z.object({
|
|
14
|
+
videoUrl: zod_1.z.string().url(),
|
|
15
|
+
});
|
|
16
|
+
exports.StepStartMetadataByType = {
|
|
17
|
+
[generation_step_schema_1.GenerationStepType.WEB_SEARCH]: exports.WebSearchStepStartMetadataSchema,
|
|
18
|
+
[generation_step_schema_1.GenerationStepType.IMAGE_EDIT]: exports.ImageEditStepStartMetadataSchema,
|
|
19
|
+
[generation_step_schema_1.GenerationStepType.VIDEO_ANALYSIS]: exports.VideoAnalysisStepStartMetadataSchema,
|
|
20
|
+
};
|
|
21
|
+
exports.StepStartMetadataSchema = zod_1.z
|
|
22
|
+
.union([
|
|
23
|
+
exports.WebSearchStepStartMetadataSchema,
|
|
24
|
+
exports.ImageEditStepStartMetadataSchema,
|
|
25
|
+
exports.VideoAnalysisStepStartMetadataSchema,
|
|
26
|
+
])
|
|
27
|
+
.optional();
|
|
28
|
+
exports.UploadStepDoneMetadataSchema = zod_1.z
|
|
29
|
+
.union([
|
|
30
|
+
zod_1.z.object({ imageUrl: zod_1.z.string().url() }),
|
|
31
|
+
zod_1.z.object({ imageUrls: zod_1.z.array(zod_1.z.string().url()) }),
|
|
32
|
+
zod_1.z.object({}),
|
|
33
|
+
]);
|
|
34
|
+
exports.StepDoneMetadataByType = {
|
|
35
|
+
[generation_step_schema_1.GenerationStepType.UPLOAD]: exports.UploadStepDoneMetadataSchema,
|
|
36
|
+
};
|
|
37
|
+
exports.StepDoneMetadataSchema = exports.UploadStepDoneMetadataSchema.optional();
|
|
38
|
+
//# sourceMappingURL=step-metadata.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-metadata.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/step-metadata.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AASjD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAA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chema: z.ZodObject<{
|
|
|
21
21
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
22
22
|
stepId: z.ZodString;
|
|
23
23
|
stepIndex: z.ZodNumber;
|
|
24
|
-
metadata: z.ZodOptional<z.
|
|
24
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
25
|
+
queries: z.ZodArray<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
sourceResolution: z.ZodString;
|
|
28
|
+
sourceImageCount: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
videoUrl: z.ZodString;
|
|
31
|
+
}, z.core.$strip>]>>;
|
|
25
32
|
}, z.core.$strip>;
|
|
26
33
|
export declare const StreamStepChunkEventSchema: z.ZodObject<{
|
|
27
34
|
id: z.ZodNumber;
|
|
@@ -52,7 +59,11 @@ export declare const StreamStepDoneEventSchema: z.ZodObject<{
|
|
|
52
59
|
stepId: z.ZodString;
|
|
53
60
|
stepIndex: z.ZodNumber;
|
|
54
61
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
55
|
-
metadata: z.ZodOptional<z.
|
|
62
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
63
|
+
imageUrl: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
56
67
|
}, z.core.$strip>;
|
|
57
68
|
export declare const StreamDoneEventSchema: z.ZodObject<{
|
|
58
69
|
id: z.ZodNumber;
|
|
@@ -112,7 +123,14 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
112
123
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
113
124
|
stepId: z.ZodString;
|
|
114
125
|
stepIndex: z.ZodNumber;
|
|
115
|
-
metadata: z.ZodOptional<z.
|
|
126
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
127
|
+
queries: z.ZodArray<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
+
sourceResolution: z.ZodString;
|
|
130
|
+
sourceImageCount: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
+
videoUrl: z.ZodString;
|
|
133
|
+
}, z.core.$strip>]>>;
|
|
116
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
117
135
|
id: z.ZodNumber;
|
|
118
136
|
chatId: z.ZodString;
|
|
@@ -140,7 +158,11 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
140
158
|
stepId: z.ZodString;
|
|
141
159
|
stepIndex: z.ZodNumber;
|
|
142
160
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
143
|
-
metadata: z.ZodOptional<z.
|
|
161
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
162
|
+
imageUrl: z.ZodString;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
imageUrls: z.ZodArray<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
|
|
144
166
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
167
|
id: z.ZodNumber;
|
|
146
168
|
chatId: z.ZodString;
|
|
@@ -4,6 +4,7 @@ exports.StreamEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamC
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
6
|
const citation_schema_1 = require("./citation.schema");
|
|
7
|
+
const step_metadata_schema_1 = require("./step-metadata.schema");
|
|
7
8
|
var StreamEventType;
|
|
8
9
|
(function (StreamEventType) {
|
|
9
10
|
StreamEventType["STEP_START"] = "step_start";
|
|
@@ -28,7 +29,7 @@ exports.StreamStepStartEventSchema = BaseStreamEventSchema.extend({
|
|
|
28
29
|
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
29
30
|
stepId: zod_1.z.string().uuid(),
|
|
30
31
|
stepIndex: zod_1.z.number().int().nonnegative(),
|
|
31
|
-
metadata:
|
|
32
|
+
metadata: step_metadata_schema_1.StepStartMetadataSchema,
|
|
32
33
|
});
|
|
33
34
|
exports.StreamStepChunkEventSchema = BaseStreamEventSchema.extend({
|
|
34
35
|
type: zod_1.z.literal(StreamEventType.STEP_CHUNK),
|
|
@@ -50,7 +51,7 @@ exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
|
|
|
50
51
|
stepId: zod_1.z.string().uuid(),
|
|
51
52
|
stepIndex: zod_1.z.number().int().nonnegative(),
|
|
52
53
|
fullContent: zod_1.z.string().optional(),
|
|
53
|
-
metadata:
|
|
54
|
+
metadata: step_metadata_schema_1.StepDoneMetadataSchema,
|
|
54
55
|
});
|
|
55
56
|
exports.StreamDoneEventSchema = BaseStreamEventSchema.extend({
|
|
56
57
|
type: zod_1.z.literal(StreamEventType.DONE),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;
|
|
1
|
+
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;AACnD,iEAAyF;AAKzF,IAAY,eAuBX;AAvBD,WAAY,eAAe;IAEvB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;IAEf,oEAAiD,CAAA;IAEjD,0CAAuB,CAAA;IAEvB,0CAAuB,CAAA;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CAAC,KAAK,CAAC;IAEtC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE9B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEhC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC7C,CAAC,CAAC;AAKU,QAAA,qCAAqC,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC9E,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,sBAAsB,CAAC;CAC1D,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC;IAE1C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAc,CAAC;CACrC,CAAC,CAAC;AAMU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC;IAE1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAUU,QAAA,iBAAiB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC1D,kCAA0B;IAC1B,kCAA0B;IAC1B,kCAA0B;IAC1B,iCAAyB;IACzB,8BAAsB;IACtB,6CAAqC;IACrC,kCAA0B;IAC1B,kCAA0B;IAC1B,6BAAqB;IACrB,kCAA0B;IAC1B,8BAAsB;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccessReason = void 0;
|
|
4
|
+
var AccessReason;
|
|
5
|
+
(function (AccessReason) {
|
|
6
|
+
AccessReason["REQUIRES_REGISTRATION"] = "REQUIRES_REGISTRATION";
|
|
7
|
+
AccessReason["REQUIRES_SUBSCRIPTION"] = "REQUIRES_SUBSCRIPTION";
|
|
8
|
+
})(AccessReason || (exports.AccessReason = AccessReason = {}));
|
|
9
|
+
//# sourceMappingURL=access-reason.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-reason.enum.js","sourceRoot":"","sources":["../../../v1/shared/access-reason.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,+DAA+C,CAAA;IAC/C,+DAA+C,CAAA;AACnD,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Visibility, WritableVisibility } from './visibility.enum';
|
|
3
|
+
import { AccessReason } from './access-reason.enum';
|
|
4
|
+
export declare const VisibilitySchema: z.ZodEnum<typeof Visibility>;
|
|
5
|
+
export declare const WritableVisibilitySchema: z.ZodEnum<typeof WritableVisibility>;
|
|
6
|
+
export declare const AccessReasonSchema: z.ZodEnum<typeof AccessReason>;
|