@veruna/api-contracts 20.5.0 → 20.5.2

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 (53) hide show
  1. package/build/tsconfig.tsbuildinfo +1 -1
  2. package/build/v1/message/commands/create-message.command.d.ts +217 -0
  3. package/build/v1/message/commands/create-message.command.js +2 -0
  4. package/build/v1/message/commands/create-message.command.js.map +1 -1
  5. package/build/v1/message/message.errors.d.ts +2 -0
  6. package/build/v1/message/message.errors.js +6 -0
  7. package/build/v1/message/message.errors.js.map +1 -1
  8. package/build/v1/message/queries/get-message-stream-reg.query.d.ts +216 -0
  9. package/build/v1/message/queries/get-message-stream-reg.query.js +1 -0
  10. package/build/v1/message/queries/get-message-stream-reg.query.js.map +1 -1
  11. package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +216 -0
  12. package/build/v1/message/queries/get-message-stream-unreg.query.js +1 -0
  13. package/build/v1/message/queries/get-message-stream-unreg.query.js.map +1 -1
  14. package/build/v1/message/schemas/index.d.ts +4 -1
  15. package/build/v1/message/schemas/index.js +11 -2
  16. package/build/v1/message/schemas/index.js.map +1 -1
  17. package/build/v1/message/schemas/message-stream-frame.schema.d.ts +212 -0
  18. package/build/v1/message/schemas/message-stream-frame.schema.js +9 -0
  19. package/build/v1/message/schemas/message-stream-frame.schema.js.map +1 -0
  20. package/build/v1/message/schemas/preparation-status.enum.d.ts +4 -0
  21. package/build/v1/message/schemas/preparation-status.enum.js +9 -0
  22. package/build/v1/message/schemas/preparation-status.enum.js.map +1 -0
  23. package/build/v1/message/schemas/stream-event-type.enum.d.ts +2 -0
  24. package/build/v1/message/schemas/stream-event-type.enum.js +2 -0
  25. package/build/v1/message/schemas/stream-event-type.enum.js.map +1 -1
  26. package/build/v1/message/schemas/stream-events.schema.d.ts +15 -0
  27. package/build/v1/message/schemas/stream-events.schema.js +8 -1
  28. package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
  29. package/build/v1/message/schemas/transport-heartbeat.schema.d.ts +16 -0
  30. package/build/v1/message/schemas/transport-heartbeat.schema.js +16 -0
  31. package/build/v1/message/schemas/transport-heartbeat.schema.js.map +1 -0
  32. package/build-esm/.tsbuildinfo +1 -1
  33. package/build-esm/v1/message/commands/create-message.command.js +3 -1
  34. package/build-esm/v1/message/commands/create-message.command.js.map +1 -1
  35. package/build-esm/v1/message/message.errors.js +6 -0
  36. package/build-esm/v1/message/message.errors.js.map +1 -1
  37. package/build-esm/v1/message/queries/get-message-stream-reg.query.js +2 -1
  38. package/build-esm/v1/message/queries/get-message-stream-reg.query.js.map +1 -1
  39. package/build-esm/v1/message/queries/get-message-stream-unreg.query.js +2 -1
  40. package/build-esm/v1/message/queries/get-message-stream-unreg.query.js.map +1 -1
  41. package/build-esm/v1/message/schemas/index.js +4 -1
  42. package/build-esm/v1/message/schemas/index.js.map +1 -1
  43. package/build-esm/v1/message/schemas/message-stream-frame.schema.js +6 -0
  44. package/build-esm/v1/message/schemas/message-stream-frame.schema.js.map +1 -0
  45. package/build-esm/v1/message/schemas/preparation-status.enum.js +6 -0
  46. package/build-esm/v1/message/schemas/preparation-status.enum.js.map +1 -0
  47. package/build-esm/v1/message/schemas/stream-event-type.enum.js +2 -0
  48. package/build-esm/v1/message/schemas/stream-event-type.enum.js.map +1 -1
  49. package/build-esm/v1/message/schemas/stream-events.schema.js +7 -0
  50. package/build-esm/v1/message/schemas/stream-events.schema.js.map +1 -1
  51. package/build-esm/v1/message/schemas/transport-heartbeat.schema.js +13 -0
  52. package/build-esm/v1/message/schemas/transport-heartbeat.schema.js.map +1 -0
  53. package/package.json +1 -1
@@ -7,6 +7,12 @@ import { HttpMethod } from '../../../shared/http-method.enum';
7
7
  export declare namespace GetMessageStreamUnregQuery {
8
8
  const Request: z.ZodObject<{}, z.core.$strip>;
9
9
  const Response: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ id: z.ZodNumber;
11
+ chatId: z.ZodString;
12
+ messageId: z.ZodString;
13
+ type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
14
+ status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
15
+ }, z.core.$strip>, z.ZodObject<{
10
16
  id: z.ZodNumber;
11
17
  chatId: z.ZodString;
12
18
  messageId: z.ZodString;
@@ -206,10 +212,220 @@ export declare namespace GetMessageStreamUnregQuery {
206
212
  type: z.ZodLiteral<import("../schemas").StreamEventType.ERROR>;
207
213
  chargedTokens: z.ZodOptional<z.ZodNumber>;
208
214
  }, z.core.$strip>], "type">;
215
+ const Frame: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
216
+ id: z.ZodNumber;
217
+ chatId: z.ZodString;
218
+ messageId: z.ZodString;
219
+ type: z.ZodLiteral<import("../schemas").StreamEventType.PREPARATION_STATUS>;
220
+ status: z.ZodEnum<typeof import("../schemas").PreparationStatus>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ id: z.ZodNumber;
223
+ chatId: z.ZodString;
224
+ messageId: z.ZodString;
225
+ type: z.ZodLiteral<import("../schemas").StreamEventType.GENERATION_STATUS>;
226
+ status: z.ZodEnum<typeof import("../schemas").GenerationStatus>;
227
+ modelId: z.ZodString;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ id: z.ZodNumber;
230
+ chatId: z.ZodString;
231
+ messageId: z.ZodString;
232
+ type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_START>;
233
+ stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
234
+ stepId: z.ZodString;
235
+ stepIndex: z.ZodNumber;
236
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
237
+ metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
238
+ path: z.ZodString;
239
+ filename: z.ZodString;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ queries: z.ZodArray<z.ZodString>;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ query: z.ZodString;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ sourceResolution: z.ZodString;
246
+ sourceImageCount: z.ZodNumber;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ videoUrl: z.ZodString;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ toolName: z.ZodString;
253
+ connectionUuid: z.ZodString;
254
+ providerKey: z.ZodNullable<z.ZodString>;
255
+ argsPreview: z.ZodOptional<z.ZodString>;
256
+ }, z.core.$strip>]>>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ id: z.ZodNumber;
259
+ chatId: z.ZodString;
260
+ messageId: z.ZodString;
261
+ type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_CHUNK>;
262
+ stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
263
+ stepId: z.ZodString;
264
+ chunk: z.ZodString;
265
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
266
+ metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
267
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.ARGS>;
268
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.DESCRIBE>;
271
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.BASH>;
274
+ stream: z.ZodEnum<typeof import("../schemas").BashChunkStream>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.CREATE_FILE>;
277
+ path: z.ZodString;
278
+ totalLines: z.ZodNumber;
279
+ bytesWritten: z.ZodNumber;
280
+ overwrite: z.ZodBoolean;
281
+ preview: z.ZodObject<{
282
+ lines: z.ZodArray<z.ZodString>;
283
+ truncated: z.ZodBoolean;
284
+ }, z.core.$strip>;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.STR_REPLACE>;
287
+ path: z.ZodString;
288
+ linesAdded: z.ZodNumber;
289
+ linesRemoved: z.ZodNumber;
290
+ linesBefore: z.ZodNumber;
291
+ linesAfter: z.ZodNumber;
292
+ hunk: z.ZodObject<{
293
+ startLine: z.ZodNumber;
294
+ contextBefore: z.ZodArray<z.ZodString>;
295
+ oldLines: z.ZodArray<z.ZodString>;
296
+ newLines: z.ZodArray<z.ZodString>;
297
+ contextAfter: z.ZodArray<z.ZodString>;
298
+ truncated: z.ZodBoolean;
299
+ }, z.core.$strip>;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.VIEW>;
302
+ path: z.ZodString;
303
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
304
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
305
+ entryCount: z.ZodNumber;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
308
+ startLine: z.ZodNumber;
309
+ endLine: z.ZodNumber;
310
+ totalLines: z.ZodNumber;
311
+ truncated: z.ZodBoolean;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
316
+ pagesShown: z.ZodNumber;
317
+ }, z.core.$strip>], "type">;
318
+ }, z.core.$strip>], "kind">>;
319
+ }, z.core.$strip>, z.ZodObject<{
320
+ id: z.ZodNumber;
321
+ chatId: z.ZodString;
322
+ messageId: z.ZodString;
323
+ type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_ERROR>;
324
+ stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
325
+ stepId: z.ZodString;
326
+ stepIndex: z.ZodNumber;
327
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
328
+ errorCode: z.ZodString;
329
+ errorMessage: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ id: z.ZodNumber;
332
+ chatId: z.ZodString;
333
+ messageId: z.ZodString;
334
+ type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_DONE>;
335
+ stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
336
+ stepId: z.ZodString;
337
+ stepIndex: z.ZodNumber;
338
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
339
+ fullContent: z.ZodOptional<z.ZodString>;
340
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
341
+ metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
342
+ imageUrl: z.ZodString;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ imageUrls: z.ZodArray<z.ZodString>;
345
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ id: z.ZodNumber;
348
+ chatId: z.ZodString;
349
+ messageId: z.ZodString;
350
+ type: z.ZodLiteral<import("../schemas").StreamEventType.IMAGE>;
351
+ imageBase64: z.ZodString;
352
+ imageMimeType: z.ZodString;
353
+ imageIndex: z.ZodNumber;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ id: z.ZodNumber;
356
+ chatId: z.ZodString;
357
+ messageId: z.ZodString;
358
+ type: z.ZodLiteral<import("../schemas").StreamEventType.IMAGE_GENERATION_ERROR>;
359
+ }, z.core.$strip>, z.ZodObject<{
360
+ id: z.ZodNumber;
361
+ chatId: z.ZodString;
362
+ messageId: z.ZodString;
363
+ type: z.ZodLiteral<import("../schemas").StreamEventType.CITATIONS>;
364
+ citations: z.ZodArray<z.ZodObject<{
365
+ url: z.ZodString;
366
+ title: z.ZodString;
367
+ content: z.ZodOptional<z.ZodString>;
368
+ startIndex: z.ZodNumber;
369
+ endIndex: z.ZodNumber;
370
+ }, z.core.$strip>>;
371
+ }, z.core.$strip>, z.ZodObject<{
372
+ type: z.ZodLiteral<import("../schemas").StreamEventType.HEARTBEAT>;
373
+ timestamp: z.ZodString;
374
+ }, z.core.$strip>, z.ZodObject<{
375
+ id: z.ZodNumber;
376
+ chatId: z.ZodString;
377
+ messageId: z.ZodString;
378
+ type: z.ZodLiteral<import("../schemas").StreamEventType.BILLING_ESTIMATE>;
379
+ holdId: z.ZodString;
380
+ estimatedTokens: z.ZodNumber;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ id: z.ZodNumber;
383
+ chatId: z.ZodString;
384
+ messageId: z.ZodString;
385
+ type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_BILLED>;
386
+ holdId: z.ZodString;
387
+ stepId: z.ZodString;
388
+ stepTokens: z.ZodNumber;
389
+ heldTokens: z.ZodNumber;
390
+ requestedTokens: z.ZodOptional<z.ZodNumber>;
391
+ discountTokens: z.ZodOptional<z.ZodNumber>;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ id: z.ZodNumber;
394
+ chatId: z.ZodString;
395
+ messageId: z.ZodString;
396
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../schemas").MessageErrorCategory>>>;
397
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").MessageErrorAction>>>;
398
+ type: z.ZodLiteral<import("../schemas").StreamEventType.DONE>;
399
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ id: z.ZodNumber;
402
+ chatId: z.ZodString;
403
+ messageId: z.ZodString;
404
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../schemas").MessageErrorCategory>>>;
405
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").MessageErrorAction>>>;
406
+ type: z.ZodLiteral<import("../schemas").StreamEventType.CANCELLED>;
407
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
408
+ reason: z.ZodOptional<z.ZodEnum<typeof import("../schemas").StreamCancellationReason>>;
409
+ failedStepType: z.ZodOptional<z.ZodEnum<typeof import("../schemas").GenerationStepType>>;
410
+ requiredTokens: z.ZodOptional<z.ZodNumber>;
411
+ shortfallTokens: z.ZodOptional<z.ZodNumber>;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ id: z.ZodNumber;
414
+ chatId: z.ZodString;
415
+ messageId: z.ZodString;
416
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../schemas").MessageErrorCategory>>>;
417
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").MessageErrorAction>>>;
418
+ type: z.ZodLiteral<import("../schemas").StreamEventType.ERROR>;
419
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
420
+ }, z.core.$strip>], "type">, z.ZodObject<{
421
+ type: z.ZodLiteral<"heartbeat">;
422
+ timestamp: z.ZodString;
423
+ }, z.core.$strip>]>;
209
424
  const URL: (chatId: string, messageId: string) => string;
210
425
  const METHOD = HttpMethod.GET;
211
426
  const CONTENT_TYPE: "application/x-ndjson";
212
427
  const IS_STREAM: true;
213
428
  type RequestType = z.infer<typeof Request>;
214
429
  type ResponseType = z.infer<typeof Response>;
430
+ type FrameType = z.infer<typeof Frame>;
215
431
  }
@@ -13,6 +13,7 @@ var GetMessageStreamUnregQuery;
13
13
  (function (GetMessageStreamUnregQuery) {
14
14
  GetMessageStreamUnregQuery.Request = zod_1.z.object({});
15
15
  GetMessageStreamUnregQuery.Response = schemas_1.StreamEventSchema;
16
+ GetMessageStreamUnregQuery.Frame = schemas_1.MessageStreamFrameSchema;
16
17
  GetMessageStreamUnregQuery.URL = (chatId, messageId) => rest_api_1.REST_API.V1.MESSAGE.UNREG.STREAM(chatId, messageId);
17
18
  GetMessageStreamUnregQuery.METHOD = http_method_enum_1.HttpMethod.GET;
18
19
  GetMessageStreamUnregQuery.CONTENT_TYPE = 'application/x-ndjson';
@@ -1 +1 @@
1
- {"version":3,"file":"get-message-stream-unreg.query.js","sourceRoot":"","sources":["../../../../v1/message/queries/get-message-stream-unreg.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA+C;AAC/C,gDAA6C;AAC7C,uEAA8D;AAE9D;;;GAGG;AACH,IAAiB,0BAA0B,CAY1C;AAZD,WAAiB,0BAA0B;IAC1B,kCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,mCAAQ,GAAG,2BAAiB,CAAC;IAE7B,8BAAG,GAAG,CAAC,MAAc,EAAE,SAAiB,EAAE,EAAE,CACrD,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3C,iCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;IACxB,uCAAY,GAAG,sBAA+B,CAAC;IAC/C,oCAAS,GAAG,IAAa,CAAC;AAI3C,CAAC,EAZgB,0BAA0B,0CAA1B,0BAA0B,QAY1C"}
1
+ {"version":3,"file":"get-message-stream-unreg.query.js","sourceRoot":"","sources":["../../../../v1/message/queries/get-message-stream-unreg.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAyE;AACzE,gDAA6C;AAC7C,uEAA8D;AAE9D;;;GAGG;AACH,IAAiB,0BAA0B,CAc1C;AAdD,WAAiB,0BAA0B;IAC1B,kCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,mCAAQ,GAAG,2BAAiB,CAAC;IAC7B,gCAAK,GAAG,kCAAwB,CAAC;IAEjC,8BAAG,GAAG,CAAC,MAAc,EAAE,SAAiB,EAAE,EAAE,CACrD,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3C,iCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;IACxB,uCAAY,GAAG,sBAA+B,CAAC;IAC/C,oCAAS,GAAG,IAAa,CAAC;AAK3C,CAAC,EAdgB,0BAA0B,0CAA1B,0BAA0B,QAc1C"}
@@ -13,7 +13,10 @@ export type { MessageAttachmentResponse, MessageAttachmentsResponse, AttachmentM
13
13
  export { MessageCitationResponseSchema, MessageCitationsResponseSchema, } from './message-citation-response.schema';
14
14
  export type { MessageCitationResponse, MessageCitationsResponse, } from './message-citation-response.schema';
15
15
  export { StreamEventType } from './stream-event-type.enum';
16
- export { StreamEventSchema, StreamGenerationStatusEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepErrorEventSchema, StreamStepDoneEventSchema, StreamStepBilledEventSchema, StreamBillingEstimateEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, StreamCancellationReason, } from './stream-events.schema';
16
+ export { PreparationStatus } from './preparation-status.enum';
17
+ export { MessageStreamFrameSchema, type MessageStreamFrame } from './message-stream-frame.schema';
18
+ export { TransportHeartbeatSchema, CompatibleTransportHeartbeatSchema, type TransportHeartbeat, } from './transport-heartbeat.schema';
19
+ export { StreamEventSchema, StreamGenerationStatusEventSchema, StreamPreparationStatusEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepErrorEventSchema, StreamStepDoneEventSchema, StreamStepBilledEventSchema, StreamBillingEstimateEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, StreamCancellationReason, } from './stream-events.schema';
17
20
  export { CitationStatus } from './citation-status.enum';
18
21
  export { CitationSchema, type Citation } from './citation.schema';
19
22
  export { SendFileStepStartMetadataSchema, StepStartMetadataSchema, StepDoneMetadataSchema, WebSearchStepStartMetadataSchema, ConversationSearchStepStartMetadataSchema, ImageEditStepStartMetadataSchema, VideoAnalysisStepStartMetadataSchema, CodeExecutionStepStartMetadataSchema, ConnectorToolStepStartMetadataSchema, UploadStepDoneMetadataSchema, StepStartMetadataByType, StepDoneMetadataByType, } from './step-metadata.schema';
@@ -14,8 +14,9 @@ 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
- exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.SendFileStepStartMetadataSchema = exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamGenerationStatusEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.ConnectorToolStepContentSchema = exports.VideoAnalysisStepContentSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = 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;
18
- exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.FollowupSuggestionsStepContentSchema = exports.FOLLOWUP_SUGGESTION_MAX_CHARS = exports.FOLLOWUP_SUGGESTIONS_MAX_COUNT = exports.FileTruncatedStepContentSchema = exports.TruncationUnit = exports.CapabilityLockedStepContentSchema = exports.LockedCapability = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoKind = exports.CardMessageKey = exports.CardCta = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = void 0;
17
+ exports.SendFileStepStartMetadataSchema = exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamPreparationStatusEventSchema = exports.StreamGenerationStatusEventSchema = exports.StreamEventSchema = exports.CompatibleTransportHeartbeatSchema = exports.TransportHeartbeatSchema = exports.MessageStreamFrameSchema = exports.PreparationStatus = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.ConnectorToolStepContentSchema = exports.VideoAnalysisStepContentSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = 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;
18
+ exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.FollowupSuggestionsStepContentSchema = exports.FOLLOWUP_SUGGESTION_MAX_CHARS = exports.FOLLOWUP_SUGGESTIONS_MAX_COUNT = exports.FileTruncatedStepContentSchema = exports.TruncationUnit = exports.CapabilityLockedStepContentSchema = exports.LockedCapability = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoKind = exports.CardMessageKey = exports.CardCta = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = void 0;
19
+ exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = void 0;
19
20
  __exportStar(require("./send-file-step-content.schema"), exports);
20
21
  __exportStar(require("./search-file-step-content.schema"), exports);
21
22
  var message_role_enum_1 = require("./message-role.enum");
@@ -54,9 +55,17 @@ Object.defineProperty(exports, "MessageCitationResponseSchema", { enumerable: tr
54
55
  Object.defineProperty(exports, "MessageCitationsResponseSchema", { enumerable: true, get: function () { return message_citation_response_schema_1.MessageCitationsResponseSchema; } });
55
56
  var stream_event_type_enum_1 = require("./stream-event-type.enum");
56
57
  Object.defineProperty(exports, "StreamEventType", { enumerable: true, get: function () { return stream_event_type_enum_1.StreamEventType; } });
58
+ var preparation_status_enum_1 = require("./preparation-status.enum");
59
+ Object.defineProperty(exports, "PreparationStatus", { enumerable: true, get: function () { return preparation_status_enum_1.PreparationStatus; } });
60
+ var message_stream_frame_schema_1 = require("./message-stream-frame.schema");
61
+ Object.defineProperty(exports, "MessageStreamFrameSchema", { enumerable: true, get: function () { return message_stream_frame_schema_1.MessageStreamFrameSchema; } });
62
+ var transport_heartbeat_schema_1 = require("./transport-heartbeat.schema");
63
+ Object.defineProperty(exports, "TransportHeartbeatSchema", { enumerable: true, get: function () { return transport_heartbeat_schema_1.TransportHeartbeatSchema; } });
64
+ Object.defineProperty(exports, "CompatibleTransportHeartbeatSchema", { enumerable: true, get: function () { return transport_heartbeat_schema_1.CompatibleTransportHeartbeatSchema; } });
57
65
  var stream_events_schema_1 = require("./stream-events.schema");
58
66
  Object.defineProperty(exports, "StreamEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamEventSchema; } });
59
67
  Object.defineProperty(exports, "StreamGenerationStatusEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamGenerationStatusEventSchema; } });
68
+ Object.defineProperty(exports, "StreamPreparationStatusEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamPreparationStatusEventSchema; } });
60
69
  Object.defineProperty(exports, "StreamStepStartEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepStartEventSchema; } });
61
70
  Object.defineProperty(exports, "StreamStepChunkEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepChunkEventSchema; } });
62
71
  Object.defineProperty(exports, "StreamStepErrorEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepErrorEventSchema; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,oEAAkD;AAClD,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;AA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AA,gBAAgB,OAAA;AAChB,0JAAA,iCAAiC,OAAA;AAGrC,2FAG8C;AAF1C,oIAAA,cAAc,OAAA;AACd,oJAAA,8BAA8B,OAAA;AAGlC,uGAIoD;AAHhD,0JAAA,8BAA8B,OAAA;AAC9B,yJAAA,6BAA6B,OAAA;AAC7B,gKAAA,oCAAoC,OAAA;AAGxC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAE7B,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;AAGnC,6EAAqE;AAA5D,mIAAA,oBAAoB,OAAA;AAE7B,yEAAiE;AAAxD,+HAAA,kBAAkB,OAAA;AAE3B,mEAA4D;AAAnD,0HAAA,gBAAgB,OAAA;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
@@ -0,0 +1,212 @@
1
+ import { z } from 'zod';
2
+ /** Public NDJSON frames include transport liveness, which is never journaled. */
3
+ export declare const MessageStreamFrameSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ id: z.ZodNumber;
5
+ chatId: z.ZodString;
6
+ messageId: z.ZodString;
7
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.PREPARATION_STATUS>;
8
+ status: z.ZodEnum<typeof import("./preparation-status.enum").PreparationStatus>;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ id: z.ZodNumber;
11
+ chatId: z.ZodString;
12
+ messageId: z.ZodString;
13
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.GENERATION_STATUS>;
14
+ status: z.ZodEnum<typeof import("./generation-status.enum").GenerationStatus>;
15
+ modelId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ id: z.ZodNumber;
18
+ chatId: z.ZodString;
19
+ messageId: z.ZodString;
20
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.STEP_START>;
21
+ stepType: z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>;
22
+ stepId: z.ZodString;
23
+ stepIndex: z.ZodNumber;
24
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25
+ metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
26
+ path: z.ZodString;
27
+ filename: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ queries: z.ZodArray<z.ZodString>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ query: z.ZodString;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ sourceResolution: z.ZodString;
34
+ sourceImageCount: z.ZodNumber;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ videoUrl: z.ZodString;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ toolName: z.ZodString;
41
+ connectionUuid: z.ZodString;
42
+ providerKey: z.ZodNullable<z.ZodString>;
43
+ argsPreview: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>]>>;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ id: z.ZodNumber;
47
+ chatId: z.ZodString;
48
+ messageId: z.ZodString;
49
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.STEP_CHUNK>;
50
+ stepType: z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>;
51
+ stepId: z.ZodString;
52
+ chunk: z.ZodString;
53
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
54
+ metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.ARGS>;
56
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.DESCRIBE>;
59
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.BASH>;
62
+ stream: z.ZodEnum<typeof import("./bash-chunk-stream.enum").BashChunkStream>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.CREATE_FILE>;
65
+ path: z.ZodString;
66
+ totalLines: z.ZodNumber;
67
+ bytesWritten: z.ZodNumber;
68
+ overwrite: z.ZodBoolean;
69
+ preview: z.ZodObject<{
70
+ lines: z.ZodArray<z.ZodString>;
71
+ truncated: z.ZodBoolean;
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.STR_REPLACE>;
75
+ path: z.ZodString;
76
+ linesAdded: z.ZodNumber;
77
+ linesRemoved: z.ZodNumber;
78
+ linesBefore: z.ZodNumber;
79
+ linesAfter: z.ZodNumber;
80
+ hunk: z.ZodObject<{
81
+ startLine: z.ZodNumber;
82
+ contextBefore: z.ZodArray<z.ZodString>;
83
+ oldLines: z.ZodArray<z.ZodString>;
84
+ newLines: z.ZodArray<z.ZodString>;
85
+ contextAfter: z.ZodArray<z.ZodString>;
86
+ truncated: z.ZodBoolean;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ kind: z.ZodLiteral<import("./step-chunk-kind.enum").StepChunkKind.VIEW>;
90
+ path: z.ZodString;
91
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
93
+ entryCount: z.ZodNumber;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
96
+ startLine: z.ZodNumber;
97
+ endLine: z.ZodNumber;
98
+ totalLines: z.ZodNumber;
99
+ truncated: z.ZodBoolean;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
104
+ pagesShown: z.ZodNumber;
105
+ }, z.core.$strip>], "type">;
106
+ }, z.core.$strip>], "kind">>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ id: z.ZodNumber;
109
+ chatId: z.ZodString;
110
+ messageId: z.ZodString;
111
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.STEP_ERROR>;
112
+ stepType: z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>;
113
+ stepId: z.ZodString;
114
+ stepIndex: z.ZodNumber;
115
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
116
+ errorCode: z.ZodString;
117
+ errorMessage: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ id: z.ZodNumber;
120
+ chatId: z.ZodString;
121
+ messageId: z.ZodString;
122
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.STEP_DONE>;
123
+ stepType: z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>;
124
+ stepId: z.ZodString;
125
+ stepIndex: z.ZodNumber;
126
+ modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
127
+ fullContent: z.ZodOptional<z.ZodString>;
128
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
+ metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
130
+ imageUrl: z.ZodString;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ imageUrls: z.ZodArray<z.ZodString>;
133
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ id: z.ZodNumber;
136
+ chatId: z.ZodString;
137
+ messageId: z.ZodString;
138
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.IMAGE>;
139
+ imageBase64: z.ZodString;
140
+ imageMimeType: z.ZodString;
141
+ imageIndex: z.ZodNumber;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ id: z.ZodNumber;
144
+ chatId: z.ZodString;
145
+ messageId: z.ZodString;
146
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.IMAGE_GENERATION_ERROR>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ id: z.ZodNumber;
149
+ chatId: z.ZodString;
150
+ messageId: z.ZodString;
151
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.CITATIONS>;
152
+ citations: z.ZodArray<z.ZodObject<{
153
+ url: z.ZodString;
154
+ title: z.ZodString;
155
+ content: z.ZodOptional<z.ZodString>;
156
+ startIndex: z.ZodNumber;
157
+ endIndex: z.ZodNumber;
158
+ }, z.core.$strip>>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.HEARTBEAT>;
161
+ timestamp: z.ZodString;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ id: z.ZodNumber;
164
+ chatId: z.ZodString;
165
+ messageId: z.ZodString;
166
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.BILLING_ESTIMATE>;
167
+ holdId: z.ZodString;
168
+ estimatedTokens: z.ZodNumber;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ id: z.ZodNumber;
171
+ chatId: z.ZodString;
172
+ messageId: z.ZodString;
173
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.STEP_BILLED>;
174
+ holdId: z.ZodString;
175
+ stepId: z.ZodString;
176
+ stepTokens: z.ZodNumber;
177
+ heldTokens: z.ZodNumber;
178
+ requestedTokens: z.ZodOptional<z.ZodNumber>;
179
+ discountTokens: z.ZodOptional<z.ZodNumber>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ id: z.ZodNumber;
182
+ chatId: z.ZodString;
183
+ messageId: z.ZodString;
184
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./message-error-category.enum").MessageErrorCategory>>>;
185
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("./message-error-action.enum").MessageErrorAction>>>;
186
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.DONE>;
187
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ id: z.ZodNumber;
190
+ chatId: z.ZodString;
191
+ messageId: z.ZodString;
192
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./message-error-category.enum").MessageErrorCategory>>>;
193
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("./message-error-action.enum").MessageErrorAction>>>;
194
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.CANCELLED>;
195
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
196
+ reason: z.ZodOptional<z.ZodEnum<typeof import("./stream-events.schema").StreamCancellationReason>>;
197
+ failedStepType: z.ZodOptional<z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>>;
198
+ requiredTokens: z.ZodOptional<z.ZodNumber>;
199
+ shortfallTokens: z.ZodOptional<z.ZodNumber>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ id: z.ZodNumber;
202
+ chatId: z.ZodString;
203
+ messageId: z.ZodString;
204
+ errorCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./message-error-category.enum").MessageErrorCategory>>>;
205
+ errorActions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("./message-error-action.enum").MessageErrorAction>>>;
206
+ type: z.ZodLiteral<import("./stream-event-type.enum").StreamEventType.ERROR>;
207
+ chargedTokens: z.ZodOptional<z.ZodNumber>;
208
+ }, z.core.$strip>], "type">, z.ZodObject<{
209
+ type: z.ZodLiteral<"heartbeat">;
210
+ timestamp: z.ZodString;
211
+ }, z.core.$strip>]>;
212
+ export type MessageStreamFrame = z.infer<typeof MessageStreamFrameSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageStreamFrameSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const stream_events_schema_1 = require("./stream-events.schema");
6
+ const transport_heartbeat_schema_1 = require("./transport-heartbeat.schema");
7
+ /** Public NDJSON frames include transport liveness, which is never journaled. */
8
+ exports.MessageStreamFrameSchema = zod_1.z.union([stream_events_schema_1.StreamEventSchema, transport_heartbeat_schema_1.TransportHeartbeatSchema]);
9
+ //# sourceMappingURL=message-stream-frame.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-stream-frame.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-stream-frame.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAA2D;AAC3D,6EAAwE;AAExE,iFAAiF;AACpE,QAAA,wBAAwB,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,wCAAiB,EAAE,qDAAwB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum PreparationStatus {
2
+ STARTED = "STARTED",
3
+ COMPLETED = "COMPLETED"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparationStatus = void 0;
4
+ var PreparationStatus;
5
+ (function (PreparationStatus) {
6
+ PreparationStatus["STARTED"] = "STARTED";
7
+ PreparationStatus["COMPLETED"] = "COMPLETED";
8
+ })(PreparationStatus || (exports.PreparationStatus = PreparationStatus = {}));
9
+ //# sourceMappingURL=preparation-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparation-status.enum.js","sourceRoot":"","sources":["../../../../v1/message/schemas/preparation-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;AAC3B,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
@@ -2,6 +2,8 @@
2
2
  * Stream Event Types for message streaming (NDJSON format)
3
3
  */
4
4
  export declare enum StreamEventType {
5
+ /** Accepted attachment content is being prepared before generation. */
6
+ PREPARATION_STATUS = "PREPARATION_STATUS",
5
7
  /** Transient routing status before visible model output. */
6
8
  GENERATION_STATUS = "GENERATION_STATUS",
7
9
  /** Generation step started */
@@ -6,6 +6,8 @@ exports.StreamEventType = void 0;
6
6
  */
7
7
  var StreamEventType;
8
8
  (function (StreamEventType) {
9
+ /** Accepted attachment content is being prepared before generation. */
10
+ StreamEventType["PREPARATION_STATUS"] = "PREPARATION_STATUS";
9
11
  /** Transient routing status before visible model output. */
10
12
  StreamEventType["GENERATION_STATUS"] = "GENERATION_STATUS";
11
13
  /** Generation step started */
@@ -1 +1 @@
1
- {"version":3,"file":"stream-event-type.enum.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-event-type.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,eAwCX;AAxCD,WAAY,eAAe;IACvB,4DAA4D;IAC5D,0DAAuC,CAAA;IACvC,8BAA8B;IAC9B,4CAAyB,CAAA;IACzB,+DAA+D;IAC/D,4CAAyB,CAAA;IACzB,2DAA2D;IAC3D,4CAAyB,CAAA;IACzB,uDAAuD;IACvD,0CAAuB,CAAA;IACvB,4BAA4B;IAC5B,kCAAe,CAAA;IACf,qDAAqD;IACrD,oEAAiD,CAAA;IACjD,mCAAmC;IACnC,0CAAuB,CAAA;IACvB,mDAAmD;IACnD,0CAAuB,CAAA;IACvB;;;;;;OAMG;IACH,wDAAqC,CAAA;IACrC;;;;;OAKG;IACH,8CAA2B,CAAA;IAC3B,oCAAoC;IACpC,gCAAa,CAAA;IACb,+BAA+B;IAC/B,0CAAuB,CAAA;IACvB,sCAAsC;IACtC,kCAAe,CAAA;AACnB,CAAC,EAxCW,eAAe,+BAAf,eAAe,QAwC1B"}
1
+ {"version":3,"file":"stream-event-type.enum.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-event-type.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,eA0CX;AA1CD,WAAY,eAAe;IACvB,uEAAuE;IACvE,4DAAyC,CAAA;IACzC,4DAA4D;IAC5D,0DAAuC,CAAA;IACvC,8BAA8B;IAC9B,4CAAyB,CAAA;IACzB,+DAA+D;IAC/D,4CAAyB,CAAA;IACzB,2DAA2D;IAC3D,4CAAyB,CAAA;IACzB,uDAAuD;IACvD,0CAAuB,CAAA;IACvB,4BAA4B;IAC5B,kCAAe,CAAA;IACf,qDAAqD;IACrD,oEAAiD,CAAA;IACjD,mCAAmC;IACnC,0CAAuB,CAAA;IACvB,mDAAmD;IACnD,0CAAuB,CAAA;IACvB;;;;;;OAMG;IACH,wDAAqC,CAAA;IACrC;;;;;OAKG;IACH,8CAA2B,CAAA;IAC3B,oCAAoC;IACpC,gCAAa,CAAA;IACb,+BAA+B;IAC/B,0CAAuB,CAAA;IACvB,sCAAsC;IACtC,kCAAe,CAAA;AACnB,CAAC,EA1CW,eAAe,+BAAf,eAAe,QA0C1B"}
@@ -1,4 +1,5 @@
1
1
  import { GenerationStatus } from './generation-status.enum';
2
+ import { PreparationStatus } from './preparation-status.enum';
2
3
  import { z } from 'zod';
3
4
  import { GenerationStepType } from './generation-step-type.enum';
4
5
  import { StreamEventType } from './stream-event-type.enum';
@@ -294,8 +295,22 @@ export declare const StreamGenerationStatusEventSchema: z.ZodObject<{
294
295
  status: z.ZodEnum<typeof GenerationStatus>;
295
296
  modelId: z.ZodString;
296
297
  }, z.core.$strip>;
298
+ /** Observed preparation boundaries only; not page, OCR or percentage progress. */
299
+ export declare const StreamPreparationStatusEventSchema: z.ZodObject<{
300
+ id: z.ZodNumber;
301
+ chatId: z.ZodString;
302
+ messageId: z.ZodString;
303
+ type: z.ZodLiteral<StreamEventType.PREPARATION_STATUS>;
304
+ status: z.ZodEnum<typeof PreparationStatus>;
305
+ }, z.core.$strip>;
297
306
  /** Discriminated union of all stream events; narrow by `type`. */
298
307
  export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ id: z.ZodNumber;
309
+ chatId: z.ZodString;
310
+ messageId: z.ZodString;
311
+ type: z.ZodLiteral<StreamEventType.PREPARATION_STATUS>;
312
+ status: z.ZodEnum<typeof PreparationStatus>;
313
+ }, z.core.$strip>, z.ZodObject<{
299
314
  id: z.ZodNumber;
300
315
  chatId: z.ZodString;
301
316
  messageId: z.ZodString;