@veruna/api-contracts 1.0.60 → 1.0.61

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 (86) hide show
  1. package/build/rest-api.d.ts +2 -0
  2. package/build/rest-api.js +2 -0
  3. package/build/rest-api.js.map +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/build/v1/ai-model/admin/commands/create-model.command.d.ts +16 -0
  6. package/build/v1/ai-model/admin/commands/update-model.command.d.ts +16 -0
  7. package/build/v1/ai-model/admin/queries/get-model.query.d.ts +8 -0
  8. package/build/v1/ai-model/admin/queries/get-models.query.d.ts +8 -0
  9. package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +8 -0
  10. package/build/v1/ai-model/schemas/create-model-request.schema.js +2 -0
  11. package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
  12. package/build/v1/ai-model/schemas/index.d.ts +1 -0
  13. package/build/v1/ai-model/schemas/index.js +1 -0
  14. package/build/v1/ai-model/schemas/index.js.map +1 -1
  15. package/build/v1/ai-model/schemas/model-response.schema.d.ts +8 -0
  16. package/build/v1/ai-model/schemas/model-response.schema.js +3 -0
  17. package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
  18. package/build/v1/ai-model/schemas/steps-settings.schema.d.ts +26 -0
  19. package/build/v1/ai-model/schemas/steps-settings.schema.js +24 -0
  20. package/build/v1/ai-model/schemas/steps-settings.schema.js.map +1 -0
  21. package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +8 -0
  22. package/build/v1/ai-model/schemas/update-model-request.schema.js +2 -0
  23. package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
  24. package/build/v1/chat/commands/create-reg-chat.command.d.ts +30 -28
  25. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +30 -28
  26. package/build/v1/chat/commands/update-chat-title.command.d.ts +30 -28
  27. package/build/v1/chat/commands/update-chat.command.d.ts +30 -28
  28. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +30 -28
  29. package/build/v1/chat/queries/get-reg-chat.query.d.ts +30 -28
  30. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +30 -28
  31. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +30 -28
  32. package/build/v1/message/commands/cancel-stream-reg.command.d.ts +12 -0
  33. package/build/v1/message/commands/cancel-stream-reg.command.js +15 -0
  34. package/build/v1/message/commands/cancel-stream-reg.command.js.map +1 -0
  35. package/build/v1/message/commands/cancel-stream-unreg.command.d.ts +12 -0
  36. package/build/v1/message/commands/cancel-stream-unreg.command.js +15 -0
  37. package/build/v1/message/commands/cancel-stream-unreg.command.js.map +1 -0
  38. package/build/v1/message/commands/create-message.command.d.ts +47 -48
  39. package/build/v1/message/commands/create-message.command.js +4 -1
  40. package/build/v1/message/commands/create-message.command.js.map +1 -1
  41. package/build/v1/message/commands/delete-message-reg.command.d.ts +12 -0
  42. package/build/v1/message/commands/delete-message-reg.command.js +15 -0
  43. package/build/v1/message/commands/delete-message-reg.command.js.map +1 -0
  44. package/build/v1/message/commands/delete-message-unreg.command.d.ts +12 -0
  45. package/build/v1/message/commands/delete-message-unreg.command.js +15 -0
  46. package/build/v1/message/commands/delete-message-unreg.command.js.map +1 -0
  47. package/build/v1/message/commands/index.d.ts +4 -0
  48. package/build/v1/message/commands/index.js +9 -1
  49. package/build/v1/message/commands/index.js.map +1 -1
  50. package/build/v1/message/message.errors.d.ts +6 -1
  51. package/build/v1/message/message.errors.js +25 -0
  52. package/build/v1/message/message.errors.js.map +1 -1
  53. package/build/v1/message/schemas/citation.schema.d.ts +4 -0
  54. package/build/v1/message/schemas/citation.schema.js +6 -1
  55. package/build/v1/message/schemas/citation.schema.js.map +1 -1
  56. package/build/v1/message/schemas/generation-step.schema.d.ts +11 -1
  57. package/build/v1/message/schemas/generation-step.schema.js +12 -1
  58. package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
  59. package/build/v1/message/schemas/index.d.ts +10 -6
  60. package/build/v1/message/schemas/index.js +21 -10
  61. package/build/v1/message/schemas/index.js.map +1 -1
  62. package/build/v1/message/schemas/message-attachment-response.schema.d.ts +35 -0
  63. package/build/v1/message/schemas/message-attachment-response.schema.js +21 -0
  64. package/build/v1/message/schemas/message-attachment-response.schema.js.map +1 -0
  65. package/build/v1/message/schemas/message-attachment.schema.d.ts +12 -1
  66. package/build/v1/message/schemas/message-attachment.schema.js +14 -1
  67. package/build/v1/message/schemas/message-attachment.schema.js.map +1 -1
  68. package/build/v1/message/schemas/message-citation-response.schema.d.ts +19 -0
  69. package/build/v1/message/schemas/message-citation-response.schema.js +14 -0
  70. package/build/v1/message/schemas/message-citation-response.schema.js.map +1 -0
  71. package/build/v1/message/schemas/message-response.schema.d.ts +30 -28
  72. package/build/v1/message/schemas/message-response.schema.js +6 -2
  73. package/build/v1/message/schemas/message-response.schema.js.map +1 -1
  74. package/build/v1/message/schemas/message-status.enum.d.ts +1 -0
  75. package/build/v1/message/schemas/message-status.enum.js +1 -0
  76. package/build/v1/message/schemas/message-status.enum.js.map +1 -1
  77. package/build/v1/message/schemas/message-step-response.schema.d.ts +29 -0
  78. package/build/v1/message/schemas/message-step-response.schema.js +19 -0
  79. package/build/v1/message/schemas/message-step-response.schema.js.map +1 -0
  80. package/build/v1/message/schemas/stream-events.schema.d.ts +48 -100
  81. package/build/v1/message/schemas/stream-events.schema.js +30 -44
  82. package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
  83. package/package.json +1 -1
  84. package/build/v1/message/schemas/message-meta.schema.d.ts +0 -53
  85. package/build/v1/message/schemas/message-meta.schema.js +0 -25
  86. package/build/v1/message/schemas/message-meta.schema.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const generation_step_schema_1 = require("./generation-step.schema");
6
+ exports.StepContentResponseSchema = zod_1.z.object({
7
+ text: zod_1.z.string().optional(),
8
+ });
9
+ exports.MessageStepResponseSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ type: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
12
+ status: zod_1.z.nativeEnum(generation_step_schema_1.MessageStepStatus),
13
+ content: exports.StepContentResponseSchema.nullable(),
14
+ showInUi: zod_1.z.boolean(),
15
+ startedAt: zod_1.z.string().nullable(),
16
+ completedAt: zod_1.z.string().nullable(),
17
+ });
18
+ exports.MessageStepsResponseSchema = zod_1.z.array(exports.MessageStepResponseSchema);
19
+ //# sourceMappingURL=message-step-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAOpE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAOU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
@@ -1,110 +1,78 @@
1
1
  import { z } from 'zod';
2
2
  import { GenerationStepType } from './generation-step.schema';
3
3
  export declare enum StreamEventType {
4
- CHUNK = "chunk",
5
- REASONING = "reasoning",
6
- IMAGE = "image",
7
- PROMPT_GENERATION = "prompt_generation",
4
+ STEP_START = "step_start",
5
+ STEP_CHUNK = "step_chunk",
8
6
  STEP_DONE = "step_done",
9
- IMAGE_GENERATION_START = "image_generation_start",
7
+ IMAGE = "image",
10
8
  IMAGE_GENERATION_ERROR = "image_generation_error",
11
- IMAGE_UPLOADED = "image_uploaded",
12
9
  CITATIONS = "citations",
10
+ HEARTBEAT = "heartbeat",
13
11
  DONE = "done",
14
12
  CANCELLED = "cancelled",
15
13
  ERROR = "error"
16
14
  }
17
- export declare const StreamChunkEventSchema: z.ZodObject<{
15
+ export declare const StreamStepStartEventSchema: z.ZodObject<{
16
+ id: z.ZodNumber;
17
+ chatId: z.ZodString;
18
+ messageId: z.ZodString;
19
+ type: z.ZodLiteral<StreamEventType.STEP_START>;
20
+ stepType: z.ZodEnum<typeof GenerationStepType>;
21
+ stepId: z.ZodString;
22
+ stepIndex: z.ZodNumber;
23
+ }, z.core.$strip>;
24
+ export declare const StreamStepChunkEventSchema: z.ZodObject<{
18
25
  id: z.ZodNumber;
19
26
  chatId: z.ZodString;
20
27
  messageId: z.ZodString;
21
- type: z.ZodLiteral<StreamEventType.CHUNK>;
22
- content: z.ZodString;
28
+ type: z.ZodLiteral<StreamEventType.STEP_CHUNK>;
29
+ stepType: z.ZodEnum<typeof GenerationStepType>;
30
+ stepId: z.ZodString;
31
+ chunk: z.ZodString;
23
32
  }, z.core.$strip>;
24
- export declare const StreamReasoningEventSchema: z.ZodObject<{
25
- id: z.ZodNumber;
26
- chatId: z.ZodString;
27
- messageId: z.ZodString;
28
- type: z.ZodLiteral<StreamEventType.REASONING>;
29
- content: z.ZodLiteral<"">;
30
- reasoning: z.ZodString;
31
- reasoningDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
- type: z.ZodString;
33
- text: z.ZodOptional<z.ZodString>;
34
- format: z.ZodOptional<z.ZodString>;
35
- index: z.ZodOptional<z.ZodNumber>;
36
- id: z.ZodOptional<z.ZodString>;
37
- data: z.ZodOptional<z.ZodString>;
38
- summary: z.ZodOptional<z.ZodString>;
39
- }, z.core.$strip>>>;
33
+ export declare const StreamStepDoneEventSchema: z.ZodObject<{
34
+ id: z.ZodNumber;
35
+ chatId: z.ZodString;
36
+ messageId: z.ZodString;
37
+ type: z.ZodLiteral<StreamEventType.STEP_DONE>;
38
+ stepType: z.ZodEnum<typeof GenerationStepType>;
39
+ stepId: z.ZodString;
40
+ stepIndex: z.ZodNumber;
41
+ fullContent: z.ZodOptional<z.ZodString>;
40
42
  }, z.core.$strip>;
41
43
  export declare const StreamDoneEventSchema: z.ZodObject<{
42
44
  id: z.ZodNumber;
43
45
  chatId: z.ZodString;
44
46
  messageId: z.ZodString;
45
47
  type: z.ZodLiteral<StreamEventType.DONE>;
46
- content: z.ZodLiteral<"">;
47
48
  }, z.core.$strip>;
48
49
  export declare const StreamCancelledEventSchema: z.ZodObject<{
49
50
  id: z.ZodNumber;
50
51
  chatId: z.ZodString;
51
52
  messageId: z.ZodString;
52
53
  type: z.ZodLiteral<StreamEventType.CANCELLED>;
53
- content: z.ZodLiteral<"">;
54
54
  }, z.core.$strip>;
55
55
  export declare const StreamErrorEventSchema: z.ZodObject<{
56
56
  id: z.ZodNumber;
57
57
  chatId: z.ZodString;
58
58
  messageId: z.ZodString;
59
59
  type: z.ZodLiteral<StreamEventType.ERROR>;
60
- errorCode: z.ZodOptional<z.ZodString>;
61
- errorMessage: z.ZodOptional<z.ZodString>;
62
60
  }, z.core.$strip>;
63
61
  export declare const StreamImageEventSchema: z.ZodObject<{
64
62
  id: z.ZodNumber;
65
63
  chatId: z.ZodString;
66
64
  messageId: z.ZodString;
67
65
  type: z.ZodLiteral<StreamEventType.IMAGE>;
68
- content: z.ZodLiteral<"">;
69
66
  imageBase64: z.ZodString;
70
67
  imageMimeType: z.ZodString;
71
68
  imageIndex: z.ZodNumber;
72
69
  }, z.core.$strip>;
73
- export declare const StreamPromptGenerationEventSchema: z.ZodObject<{
74
- id: z.ZodNumber;
75
- chatId: z.ZodString;
76
- messageId: z.ZodString;
77
- type: z.ZodLiteral<StreamEventType.PROMPT_GENERATION>;
78
- promptChunk: z.ZodString;
79
- }, z.core.$strip>;
80
- export declare const StreamStepDoneEventSchema: z.ZodObject<{
81
- id: z.ZodNumber;
82
- chatId: z.ZodString;
83
- messageId: z.ZodString;
84
- type: z.ZodLiteral<StreamEventType.STEP_DONE>;
85
- stepType: z.ZodEnum<typeof GenerationStepType>;
86
- fullContent: z.ZodOptional<z.ZodString>;
87
- }, z.core.$strip>;
88
- export declare const StreamImageGenerationStartEventSchema: z.ZodObject<{
89
- id: z.ZodNumber;
90
- chatId: z.ZodString;
91
- messageId: z.ZodString;
92
- type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_START>;
93
- }, z.core.$strip>;
94
70
  export declare const StreamImageGenerationErrorEventSchema: z.ZodObject<{
95
71
  id: z.ZodNumber;
96
72
  chatId: z.ZodString;
97
73
  messageId: z.ZodString;
98
74
  type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
99
75
  }, z.core.$strip>;
100
- export declare const StreamImageUploadedEventSchema: z.ZodObject<{
101
- id: z.ZodNumber;
102
- chatId: z.ZodString;
103
- messageId: z.ZodString;
104
- type: z.ZodLiteral<StreamEventType.IMAGE_UPLOADED>;
105
- imageUrl: z.ZodString;
106
- imageIndex: z.ZodNumber;
107
- }, z.core.$strip>;
108
76
  export declare const StreamCitationsEventSchema: z.ZodObject<{
109
77
  id: z.ZodNumber;
110
78
  chatId: z.ZodString;
@@ -118,67 +86,48 @@ export declare const StreamCitationsEventSchema: z.ZodObject<{
118
86
  endIndex: z.ZodNumber;
119
87
  }, z.core.$strip>>;
120
88
  }, z.core.$strip>;
89
+ export declare const StreamHeartbeatEventSchema: z.ZodObject<{
90
+ type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
91
+ timestamp: z.ZodString;
92
+ }, z.core.$strip>;
121
93
  export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
122
94
  id: z.ZodNumber;
123
95
  chatId: z.ZodString;
124
96
  messageId: z.ZodString;
125
- type: z.ZodLiteral<StreamEventType.CHUNK>;
126
- content: z.ZodString;
127
- }, z.core.$strip>, z.ZodObject<{
128
- id: z.ZodNumber;
129
- chatId: z.ZodString;
130
- messageId: z.ZodString;
131
- type: z.ZodLiteral<StreamEventType.REASONING>;
132
- content: z.ZodLiteral<"">;
133
- reasoning: z.ZodString;
134
- reasoningDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
- type: z.ZodString;
136
- text: z.ZodOptional<z.ZodString>;
137
- format: z.ZodOptional<z.ZodString>;
138
- index: z.ZodOptional<z.ZodNumber>;
139
- id: z.ZodOptional<z.ZodString>;
140
- data: z.ZodOptional<z.ZodString>;
141
- summary: z.ZodOptional<z.ZodString>;
142
- }, z.core.$strip>>>;
143
- }, z.core.$strip>, z.ZodObject<{
144
- id: z.ZodNumber;
145
- chatId: z.ZodString;
146
- messageId: z.ZodString;
147
- type: z.ZodLiteral<StreamEventType.IMAGE>;
148
- content: z.ZodLiteral<"">;
149
- imageBase64: z.ZodString;
150
- imageMimeType: z.ZodString;
151
- imageIndex: z.ZodNumber;
97
+ type: z.ZodLiteral<StreamEventType.STEP_START>;
98
+ stepType: z.ZodEnum<typeof GenerationStepType>;
99
+ stepId: z.ZodString;
100
+ stepIndex: z.ZodNumber;
152
101
  }, z.core.$strip>, z.ZodObject<{
153
102
  id: z.ZodNumber;
154
103
  chatId: z.ZodString;
155
104
  messageId: z.ZodString;
156
- type: z.ZodLiteral<StreamEventType.PROMPT_GENERATION>;
157
- promptChunk: z.ZodString;
105
+ type: z.ZodLiteral<StreamEventType.STEP_CHUNK>;
106
+ stepType: z.ZodEnum<typeof GenerationStepType>;
107
+ stepId: z.ZodString;
108
+ chunk: z.ZodString;
158
109
  }, z.core.$strip>, z.ZodObject<{
159
110
  id: z.ZodNumber;
160
111
  chatId: z.ZodString;
161
112
  messageId: z.ZodString;
162
113
  type: z.ZodLiteral<StreamEventType.STEP_DONE>;
163
114
  stepType: z.ZodEnum<typeof GenerationStepType>;
115
+ stepId: z.ZodString;
116
+ stepIndex: z.ZodNumber;
164
117
  fullContent: z.ZodOptional<z.ZodString>;
165
118
  }, z.core.$strip>, z.ZodObject<{
166
119
  id: z.ZodNumber;
167
120
  chatId: z.ZodString;
168
121
  messageId: z.ZodString;
169
- type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_START>;
122
+ type: z.ZodLiteral<StreamEventType.IMAGE>;
123
+ imageBase64: z.ZodString;
124
+ imageMimeType: z.ZodString;
125
+ imageIndex: z.ZodNumber;
170
126
  }, z.core.$strip>, z.ZodObject<{
171
127
  id: z.ZodNumber;
172
128
  chatId: z.ZodString;
173
129
  messageId: z.ZodString;
174
130
  type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
175
- }, z.core.$strip>, z.ZodObject<{
176
- id: z.ZodNumber;
177
- chatId: z.ZodString;
178
- messageId: z.ZodString;
179
- type: z.ZodLiteral<StreamEventType.IMAGE_UPLOADED>;
180
- imageUrl: z.ZodString;
181
- imageIndex: z.ZodNumber;
182
131
  }, z.core.$strip>, z.ZodObject<{
183
132
  id: z.ZodNumber;
184
133
  chatId: z.ZodString;
@@ -191,23 +140,22 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
191
140
  startIndex: z.ZodNumber;
192
141
  endIndex: z.ZodNumber;
193
142
  }, z.core.$strip>>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
145
+ timestamp: z.ZodString;
194
146
  }, z.core.$strip>, z.ZodObject<{
195
147
  id: z.ZodNumber;
196
148
  chatId: z.ZodString;
197
149
  messageId: z.ZodString;
198
150
  type: z.ZodLiteral<StreamEventType.DONE>;
199
- content: z.ZodLiteral<"">;
200
151
  }, z.core.$strip>, z.ZodObject<{
201
152
  id: z.ZodNumber;
202
153
  chatId: z.ZodString;
203
154
  messageId: z.ZodString;
204
155
  type: z.ZodLiteral<StreamEventType.CANCELLED>;
205
- content: z.ZodLiteral<"">;
206
156
  }, z.core.$strip>, z.ZodObject<{
207
157
  id: z.ZodNumber;
208
158
  chatId: z.ZodString;
209
159
  messageId: z.ZodString;
210
160
  type: z.ZodLiteral<StreamEventType.ERROR>;
211
- errorCode: z.ZodOptional<z.ZodString>;
212
- errorMessage: z.ZodOptional<z.ZodString>;
213
161
  }, z.core.$strip>], "type">;
@@ -1,21 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageUploadedEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageGenerationStartEventSchema = exports.StreamStepDoneEventSchema = exports.StreamPromptGenerationEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamReasoningEventSchema = exports.StreamChunkEventSchema = exports.StreamEventType = void 0;
3
+ exports.StreamEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventType = void 0;
4
4
  const zod_1 = require("zod");
5
- const message_meta_schema_1 = require("./message-meta.schema");
6
5
  const generation_step_schema_1 = require("./generation-step.schema");
7
6
  const citation_schema_1 = require("./citation.schema");
8
7
  var StreamEventType;
9
8
  (function (StreamEventType) {
10
- StreamEventType["CHUNK"] = "chunk";
11
- StreamEventType["REASONING"] = "reasoning";
12
- StreamEventType["IMAGE"] = "image";
13
- StreamEventType["PROMPT_GENERATION"] = "prompt_generation";
9
+ StreamEventType["STEP_START"] = "step_start";
10
+ StreamEventType["STEP_CHUNK"] = "step_chunk";
14
11
  StreamEventType["STEP_DONE"] = "step_done";
15
- StreamEventType["IMAGE_GENERATION_START"] = "image_generation_start";
12
+ StreamEventType["IMAGE"] = "image";
16
13
  StreamEventType["IMAGE_GENERATION_ERROR"] = "image_generation_error";
17
- StreamEventType["IMAGE_UPLOADED"] = "image_uploaded";
18
14
  StreamEventType["CITATIONS"] = "citations";
15
+ StreamEventType["HEARTBEAT"] = "heartbeat";
19
16
  StreamEventType["DONE"] = "done";
20
17
  StreamEventType["CANCELLED"] = "cancelled";
21
18
  StreamEventType["ERROR"] = "error";
@@ -25,70 +22,59 @@ const BaseStreamEventSchema = zod_1.z.object({
25
22
  chatId: zod_1.z.string().uuid(),
26
23
  messageId: zod_1.z.string().uuid(),
27
24
  });
28
- exports.StreamChunkEventSchema = BaseStreamEventSchema.extend({
29
- type: zod_1.z.literal(StreamEventType.CHUNK),
30
- content: zod_1.z.string().min(1),
25
+ exports.StreamStepStartEventSchema = BaseStreamEventSchema.extend({
26
+ type: zod_1.z.literal(StreamEventType.STEP_START),
27
+ stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
28
+ stepId: zod_1.z.string().uuid(),
29
+ stepIndex: zod_1.z.number().int().nonnegative(),
31
30
  });
32
- exports.StreamReasoningEventSchema = BaseStreamEventSchema.extend({
33
- type: zod_1.z.literal(StreamEventType.REASONING),
34
- content: zod_1.z.literal(''),
35
- reasoning: zod_1.z.string(),
36
- reasoningDetails: zod_1.z.array(message_meta_schema_1.ReasoningDetailSchema).optional(),
31
+ exports.StreamStepChunkEventSchema = BaseStreamEventSchema.extend({
32
+ type: zod_1.z.literal(StreamEventType.STEP_CHUNK),
33
+ stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
34
+ stepId: zod_1.z.string().uuid(),
35
+ chunk: zod_1.z.string(),
36
+ });
37
+ exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
38
+ type: zod_1.z.literal(StreamEventType.STEP_DONE),
39
+ stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
40
+ stepId: zod_1.z.string().uuid(),
41
+ stepIndex: zod_1.z.number().int().nonnegative(),
42
+ fullContent: zod_1.z.string().optional(),
37
43
  });
38
44
  exports.StreamDoneEventSchema = BaseStreamEventSchema.extend({
39
45
  type: zod_1.z.literal(StreamEventType.DONE),
40
- content: zod_1.z.literal(''),
41
46
  });
42
47
  exports.StreamCancelledEventSchema = BaseStreamEventSchema.extend({
43
48
  type: zod_1.z.literal(StreamEventType.CANCELLED),
44
- content: zod_1.z.literal(''),
45
49
  });
46
50
  exports.StreamErrorEventSchema = BaseStreamEventSchema.extend({
47
51
  type: zod_1.z.literal(StreamEventType.ERROR),
48
- errorCode: zod_1.z.string().optional(),
49
- errorMessage: zod_1.z.string().optional(),
50
52
  });
51
53
  exports.StreamImageEventSchema = BaseStreamEventSchema.extend({
52
54
  type: zod_1.z.literal(StreamEventType.IMAGE),
53
- content: zod_1.z.literal(''),
54
55
  imageBase64: zod_1.z.string().min(1),
55
56
  imageMimeType: zod_1.z.string().min(1),
56
57
  imageIndex: zod_1.z.number().int().nonnegative(),
57
58
  });
58
- exports.StreamPromptGenerationEventSchema = BaseStreamEventSchema.extend({
59
- type: zod_1.z.literal(StreamEventType.PROMPT_GENERATION),
60
- promptChunk: zod_1.z.string(),
61
- });
62
- exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
63
- type: zod_1.z.literal(StreamEventType.STEP_DONE),
64
- stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
65
- fullContent: zod_1.z.string().optional(),
66
- });
67
- exports.StreamImageGenerationStartEventSchema = BaseStreamEventSchema.extend({
68
- type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_START),
69
- });
70
59
  exports.StreamImageGenerationErrorEventSchema = BaseStreamEventSchema.extend({
71
60
  type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_ERROR),
72
61
  });
73
- exports.StreamImageUploadedEventSchema = BaseStreamEventSchema.extend({
74
- type: zod_1.z.literal(StreamEventType.IMAGE_UPLOADED),
75
- imageUrl: zod_1.z.string().url(),
76
- imageIndex: zod_1.z.number().int().nonnegative(),
77
- });
78
62
  exports.StreamCitationsEventSchema = BaseStreamEventSchema.extend({
79
63
  type: zod_1.z.literal(StreamEventType.CITATIONS),
80
64
  citations: zod_1.z.array(citation_schema_1.CitationSchema),
81
65
  });
66
+ exports.StreamHeartbeatEventSchema = zod_1.z.object({
67
+ type: zod_1.z.literal(StreamEventType.HEARTBEAT),
68
+ timestamp: zod_1.z.string().datetime(),
69
+ });
82
70
  exports.StreamEventSchema = zod_1.z.discriminatedUnion('type', [
83
- exports.StreamChunkEventSchema,
84
- exports.StreamReasoningEventSchema,
85
- exports.StreamImageEventSchema,
86
- exports.StreamPromptGenerationEventSchema,
71
+ exports.StreamStepStartEventSchema,
72
+ exports.StreamStepChunkEventSchema,
87
73
  exports.StreamStepDoneEventSchema,
88
- exports.StreamImageGenerationStartEventSchema,
74
+ exports.StreamImageEventSchema,
89
75
  exports.StreamImageGenerationErrorEventSchema,
90
- exports.StreamImageUploadedEventSchema,
91
76
  exports.StreamCitationsEventSchema,
77
+ exports.StreamHeartbeatEventSchema,
92
78
  exports.StreamDoneEventSchema,
93
79
  exports.StreamCancelledEventSchema,
94
80
  exports.StreamErrorEventSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+DAA8D;AAC9D,qEAA8D;AAC9D,uDAAmD;AAKnD,IAAY,eAyBX;AAzBD,WAAY,eAAe;IAEvB,kCAAe,CAAA;IAEf,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;IAEf,0DAAuC,CAAA;IAEvC,0CAAuB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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,iCAAyB;IACzB,8BAAsB;IACtB,6CAAqC;IACrC,kCAA0B;IAC1B,kCAA0B;IAC1B,6BAAqB;IACrB,kCAA0B;IAC1B,8BAAsB;CACzB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,53 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ReasoningDetailSchema: z.ZodObject<{
3
- type: z.ZodString;
4
- text: z.ZodOptional<z.ZodString>;
5
- format: z.ZodOptional<z.ZodString>;
6
- index: z.ZodOptional<z.ZodNumber>;
7
- id: z.ZodOptional<z.ZodString>;
8
- data: z.ZodOptional<z.ZodString>;
9
- summary: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>;
11
- export declare const ReasoningMetaSchema: z.ZodObject<{
12
- content: z.ZodString;
13
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- type: z.ZodString;
15
- text: z.ZodOptional<z.ZodString>;
16
- format: z.ZodOptional<z.ZodString>;
17
- index: z.ZodOptional<z.ZodNumber>;
18
- id: z.ZodOptional<z.ZodString>;
19
- data: z.ZodOptional<z.ZodString>;
20
- summary: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>>;
22
- }, z.core.$strip>;
23
- export declare const MessageMetaSchema: z.ZodObject<{
24
- reasoning: z.ZodOptional<z.ZodObject<{
25
- content: z.ZodString;
26
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
- type: z.ZodString;
28
- text: z.ZodOptional<z.ZodString>;
29
- format: z.ZodOptional<z.ZodString>;
30
- index: z.ZodOptional<z.ZodNumber>;
31
- id: z.ZodOptional<z.ZodString>;
32
- data: z.ZodOptional<z.ZodString>;
33
- summary: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>>;
35
- }, z.core.$strip>>;
36
- steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
- type: z.ZodEnum<typeof import("./generation-step.schema").GenerationStepType>;
38
- content: z.ZodString;
39
- modelId: z.ZodOptional<z.ZodString>;
40
- modelTitle: z.ZodOptional<z.ZodString>;
41
- includeInContext: z.ZodDefault<z.ZodBoolean>;
42
- startedAt: z.ZodOptional<z.ZodString>;
43
- completedAt: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>>>;
45
- citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
- url: z.ZodString;
47
- title: z.ZodString;
48
- content: z.ZodOptional<z.ZodString>;
49
- startIndex: z.ZodNumber;
50
- endIndex: z.ZodNumber;
51
- }, z.core.$strip>>>;
52
- }, z.core.$strip>;
53
- export type MessageMetaData = z.infer<typeof MessageMetaSchema>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageMetaSchema = exports.ReasoningMetaSchema = exports.ReasoningDetailSchema = void 0;
4
- const zod_1 = require("zod");
5
- const generation_step_schema_1 = require("./generation-step.schema");
6
- const citation_schema_1 = require("./citation.schema");
7
- exports.ReasoningDetailSchema = zod_1.z.object({
8
- type: zod_1.z.string(),
9
- text: zod_1.z.string().optional(),
10
- format: zod_1.z.string().optional(),
11
- index: zod_1.z.number().int().nonnegative().optional(),
12
- id: zod_1.z.string().optional(),
13
- data: zod_1.z.string().optional(),
14
- summary: zod_1.z.string().optional(),
15
- });
16
- exports.ReasoningMetaSchema = zod_1.z.object({
17
- content: zod_1.z.string(),
18
- details: zod_1.z.array(exports.ReasoningDetailSchema).optional(),
19
- });
20
- exports.MessageMetaSchema = zod_1.z.object({
21
- reasoning: exports.ReasoningMetaSchema.optional(),
22
- steps: zod_1.z.array(generation_step_schema_1.GenerationStepSchema).optional(),
23
- citations: zod_1.z.array(citation_schema_1.CitationSchema).optional(),
24
- });
25
- //# sourceMappingURL=message-meta.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-meta.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-meta.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAgE;AAChE,uDAAmD;AAMtC,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAEhB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAEhD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAKU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAExC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IAEnB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAKU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEtC,SAAS,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IAEzC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,6CAAoB,CAAC,CAAC,QAAQ,EAAE;IAE/C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAc,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC"}