@agent-phonon/protocol 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +35 -1
  2. package/dist/index.d.ts +12 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +12 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/native-version.d.ts +6 -0
  7. package/dist/native-version.d.ts.map +1 -0
  8. package/dist/native-version.js +41 -0
  9. package/dist/native-version.js.map +1 -0
  10. package/dist/schemas/capabilities.d.ts +9 -0
  11. package/dist/schemas/capabilities.d.ts.map +1 -1
  12. package/dist/schemas/capabilities.js +3 -0
  13. package/dist/schemas/capabilities.js.map +1 -1
  14. package/dist/schemas/common.d.ts +4 -4
  15. package/dist/schemas/common.d.ts.map +1 -1
  16. package/dist/schemas/common.js +9 -0
  17. package/dist/schemas/common.js.map +1 -1
  18. package/dist/schemas/compression.d.ts +191 -0
  19. package/dist/schemas/compression.d.ts.map +1 -0
  20. package/dist/schemas/compression.js +18 -0
  21. package/dist/schemas/compression.js.map +1 -0
  22. package/dist/schemas/conversation-archive.d.ts +1021 -0
  23. package/dist/schemas/conversation-archive.d.ts.map +1 -0
  24. package/dist/schemas/conversation-archive.js +148 -0
  25. package/dist/schemas/conversation-archive.js.map +1 -0
  26. package/dist/schemas/conversation-board.d.ts +428 -0
  27. package/dist/schemas/conversation-board.d.ts.map +1 -0
  28. package/dist/schemas/conversation-board.js +32 -0
  29. package/dist/schemas/conversation-board.js.map +1 -0
  30. package/dist/schemas/conversation-message.d.ts +658 -0
  31. package/dist/schemas/conversation-message.d.ts.map +1 -0
  32. package/dist/schemas/conversation-message.js +42 -0
  33. package/dist/schemas/conversation-message.js.map +1 -0
  34. package/dist/schemas/conversation-workflow.d.ts +1201 -0
  35. package/dist/schemas/conversation-workflow.d.ts.map +1 -0
  36. package/dist/schemas/conversation-workflow.js +68 -0
  37. package/dist/schemas/conversation-workflow.js.map +1 -0
  38. package/dist/schemas/device.d.ts +198 -2
  39. package/dist/schemas/device.d.ts.map +1 -1
  40. package/dist/schemas/device.js +29 -1
  41. package/dist/schemas/device.js.map +1 -1
  42. package/dist/schemas/discovery.d.ts +107 -0
  43. package/dist/schemas/discovery.d.ts.map +1 -1
  44. package/dist/schemas/discovery.js +2 -0
  45. package/dist/schemas/discovery.js.map +1 -1
  46. package/dist/schemas/document.d.ts +56 -26
  47. package/dist/schemas/document.d.ts.map +1 -1
  48. package/dist/schemas/document.js +11 -0
  49. package/dist/schemas/document.js.map +1 -1
  50. package/dist/schemas/employee.d.ts +139 -0
  51. package/dist/schemas/employee.d.ts.map +1 -0
  52. package/dist/schemas/employee.js +17 -0
  53. package/dist/schemas/employee.js.map +1 -0
  54. package/dist/schemas/env.d.ts +15 -15
  55. package/dist/schemas/env.d.ts.map +1 -1
  56. package/dist/schemas/env.js +1 -1
  57. package/dist/schemas/env.js.map +1 -1
  58. package/dist/schemas/file.d.ts +6 -6
  59. package/dist/schemas/hook.d.ts +4 -4
  60. package/dist/schemas/interaction.d.ts +363 -2
  61. package/dist/schemas/interaction.d.ts.map +1 -1
  62. package/dist/schemas/interaction.js +28 -1
  63. package/dist/schemas/interaction.js.map +1 -1
  64. package/dist/schemas/jsonrpc.d.ts +19 -19
  65. package/dist/schemas/maintenance.d.ts +822 -0
  66. package/dist/schemas/maintenance.d.ts.map +1 -0
  67. package/dist/schemas/maintenance.js +166 -0
  68. package/dist/schemas/maintenance.js.map +1 -0
  69. package/dist/schemas/managed-mcp.d.ts +116 -0
  70. package/dist/schemas/managed-mcp.d.ts.map +1 -0
  71. package/dist/schemas/managed-mcp.js +23 -0
  72. package/dist/schemas/managed-mcp.js.map +1 -0
  73. package/dist/schemas/methods.d.ts +22195 -2371
  74. package/dist/schemas/methods.d.ts.map +1 -1
  75. package/dist/schemas/methods.js +181 -6
  76. package/dist/schemas/methods.js.map +1 -1
  77. package/dist/schemas/native-stop.d.ts +162 -0
  78. package/dist/schemas/native-stop.d.ts.map +1 -0
  79. package/dist/schemas/native-stop.js +14 -0
  80. package/dist/schemas/native-stop.js.map +1 -0
  81. package/dist/schemas/policy.d.ts +61 -2
  82. package/dist/schemas/policy.d.ts.map +1 -1
  83. package/dist/schemas/policy.js +33 -0
  84. package/dist/schemas/policy.js.map +1 -1
  85. package/dist/schemas/project-coordination.d.ts +1956 -0
  86. package/dist/schemas/project-coordination.d.ts.map +1 -0
  87. package/dist/schemas/project-coordination.js +81 -0
  88. package/dist/schemas/project-coordination.js.map +1 -0
  89. package/dist/schemas/project.d.ts +771 -53
  90. package/dist/schemas/project.d.ts.map +1 -1
  91. package/dist/schemas/project.js +60 -5
  92. package/dist/schemas/project.js.map +1 -1
  93. package/dist/schemas/reasoning.d.ts +26 -0
  94. package/dist/schemas/reasoning.d.ts.map +1 -0
  95. package/dist/schemas/reasoning.js +10 -0
  96. package/dist/schemas/reasoning.js.map +1 -0
  97. package/dist/schemas/schedule.d.ts +14653 -4527
  98. package/dist/schemas/schedule.d.ts.map +1 -1
  99. package/dist/schemas/schedule.js +55 -8
  100. package/dist/schemas/schedule.js.map +1 -1
  101. package/dist/schemas/session.d.ts +1558 -49
  102. package/dist/schemas/session.d.ts.map +1 -1
  103. package/dist/schemas/session.js +27 -16
  104. package/dist/schemas/session.js.map +1 -1
  105. package/dist/schemas/skill.d.ts +1009 -8
  106. package/dist/schemas/skill.d.ts.map +1 -1
  107. package/dist/schemas/skill.js +39 -0
  108. package/dist/schemas/skill.js.map +1 -1
  109. package/dist/schemas/stream.d.ts +1060 -67
  110. package/dist/schemas/stream.d.ts.map +1 -1
  111. package/dist/schemas/stream.js +18 -3
  112. package/dist/schemas/stream.js.map +1 -1
  113. package/dist/schemas/workflow.d.ts +2764 -255
  114. package/dist/schemas/workflow.d.ts.map +1 -1
  115. package/dist/schemas/workflow.js +69 -1
  116. package/dist/schemas/workflow.js.map +1 -1
  117. package/package.json +1 -1
  118. package/src/index.ts +12 -0
  119. package/src/native-version.ts +30 -0
  120. package/src/schemas/capabilities.ts +3 -0
  121. package/src/schemas/common.ts +9 -0
  122. package/src/schemas/compression.ts +19 -0
  123. package/src/schemas/conversation-archive.ts +155 -0
  124. package/src/schemas/conversation-board.ts +36 -0
  125. package/src/schemas/conversation-message.ts +46 -0
  126. package/src/schemas/conversation-workflow.ts +62 -0
  127. package/src/schemas/device.ts +32 -1
  128. package/src/schemas/discovery.ts +2 -0
  129. package/src/schemas/document.ts +13 -0
  130. package/src/schemas/employee.ts +19 -0
  131. package/src/schemas/env.ts +1 -1
  132. package/src/schemas/interaction.ts +32 -1
  133. package/src/schemas/maintenance.ts +204 -0
  134. package/src/schemas/managed-mcp.ts +25 -0
  135. package/src/schemas/methods.ts +208 -1
  136. package/src/schemas/native-stop.ts +16 -0
  137. package/src/schemas/policy.ts +33 -0
  138. package/src/schemas/project-coordination.ts +90 -0
  139. package/src/schemas/project.ts +72 -5
  140. package/src/schemas/reasoning.ts +13 -0
  141. package/src/schemas/schedule.ts +63 -8
  142. package/src/schemas/session.ts +30 -18
  143. package/src/schemas/skill.ts +52 -0
  144. package/src/schemas/stream.ts +22 -3
  145. package/src/schemas/workflow.ts +82 -1
@@ -0,0 +1,658 @@
1
+ import { z } from "zod";
2
+ /** Agent-authored content only; current conversation and sender are controller-owned. */
3
+ export declare const AgentMessageInput: z.ZodEffects<z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
4
+ operation: z.ZodLiteral<"members">;
5
+ }, "strict", z.ZodTypeAny, {
6
+ operation: "members";
7
+ }, {
8
+ operation: "members";
9
+ }>, z.ZodObject<{
10
+ operation: z.ZodLiteral<"history">;
11
+ beforeOrder: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
12
+ throughOrder: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
+ limit: z.ZodOptional<z.ZodNumber>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ operation: "history";
16
+ limit?: number | undefined;
17
+ beforeOrder?: string | undefined;
18
+ throughOrder?: string | undefined;
19
+ }, {
20
+ operation: "history";
21
+ limit?: number | undefined;
22
+ beforeOrder?: string | undefined;
23
+ throughOrder?: string | undefined;
24
+ }>, z.ZodObject<{
25
+ operation: z.ZodLiteral<"read">;
26
+ messageID: z.ZodEffects<z.ZodString, string, string>;
27
+ offset: z.ZodOptional<z.ZodNumber>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ operation: "read";
30
+ messageID: string;
31
+ offset?: number | undefined;
32
+ }, {
33
+ operation: "read";
34
+ messageID: string;
35
+ offset?: number | undefined;
36
+ }>, z.ZodObject<{
37
+ operation: z.ZodLiteral<"send">;
38
+ requestId: z.ZodEffects<z.ZodString, string, string>;
39
+ text: z.ZodString;
40
+ mentionIDs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
41
+ mode: z.ZodEnum<["insert", "wait", "queue"]>;
42
+ attachmentIDs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ }, "strict", z.ZodTypeAny, {
44
+ mode: "queue" | "wait" | "insert";
45
+ operation: "send";
46
+ text: string;
47
+ requestId: string;
48
+ mentionIDs: string[];
49
+ attachmentIDs?: string[] | undefined;
50
+ }, {
51
+ mode: "queue" | "wait" | "insert";
52
+ operation: "send";
53
+ text: string;
54
+ requestId: string;
55
+ mentionIDs: string[];
56
+ attachmentIDs?: string[] | undefined;
57
+ }>, z.ZodObject<{
58
+ operation: z.ZodLiteral<"status">;
59
+ requestId: z.ZodEffects<z.ZodString, string, string>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ operation: "status";
62
+ requestId: string;
63
+ }, {
64
+ operation: "status";
65
+ requestId: string;
66
+ }>]>, {
67
+ operation: "members";
68
+ } | {
69
+ operation: "history";
70
+ limit?: number | undefined;
71
+ beforeOrder?: string | undefined;
72
+ throughOrder?: string | undefined;
73
+ } | {
74
+ operation: "read";
75
+ messageID: string;
76
+ offset?: number | undefined;
77
+ } | {
78
+ mode: "queue" | "wait" | "insert";
79
+ operation: "send";
80
+ text: string;
81
+ requestId: string;
82
+ mentionIDs: string[];
83
+ attachmentIDs?: string[] | undefined;
84
+ } | {
85
+ operation: "status";
86
+ requestId: string;
87
+ }, {
88
+ operation: "members";
89
+ } | {
90
+ operation: "history";
91
+ limit?: number | undefined;
92
+ beforeOrder?: string | undefined;
93
+ throughOrder?: string | undefined;
94
+ } | {
95
+ operation: "read";
96
+ messageID: string;
97
+ offset?: number | undefined;
98
+ } | {
99
+ mode: "queue" | "wait" | "insert";
100
+ operation: "send";
101
+ text: string;
102
+ requestId: string;
103
+ mentionIDs: string[];
104
+ attachmentIDs?: string[] | undefined;
105
+ } | {
106
+ operation: "status";
107
+ requestId: string;
108
+ }>;
109
+ export type AgentMessageInput = z.infer<typeof AgentMessageInput>;
110
+ export declare const ConversationMessageParams: z.ZodEffects<z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
111
+ operation: z.ZodLiteral<"members">;
112
+ } & {
113
+ nativeRunId: z.ZodEffects<z.ZodString, string, string>;
114
+ workflowId: z.ZodString;
115
+ sessionId: z.ZodBranded<z.ZodString, "SessionId">;
116
+ turnId: z.ZodString;
117
+ }, "strict", z.ZodTypeAny, {
118
+ sessionId: string & z.BRAND<"SessionId">;
119
+ operation: "members";
120
+ turnId: string;
121
+ workflowId: string;
122
+ nativeRunId: string;
123
+ }, {
124
+ sessionId: string;
125
+ operation: "members";
126
+ turnId: string;
127
+ workflowId: string;
128
+ nativeRunId: string;
129
+ }>, z.ZodObject<{
130
+ operation: z.ZodLiteral<"history">;
131
+ beforeOrder: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
132
+ throughOrder: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
133
+ limit: z.ZodOptional<z.ZodNumber>;
134
+ } & {
135
+ nativeRunId: z.ZodEffects<z.ZodString, string, string>;
136
+ workflowId: z.ZodString;
137
+ sessionId: z.ZodBranded<z.ZodString, "SessionId">;
138
+ turnId: z.ZodString;
139
+ }, "strict", z.ZodTypeAny, {
140
+ sessionId: string & z.BRAND<"SessionId">;
141
+ operation: "history";
142
+ turnId: string;
143
+ workflowId: string;
144
+ nativeRunId: string;
145
+ limit?: number | undefined;
146
+ beforeOrder?: string | undefined;
147
+ throughOrder?: string | undefined;
148
+ }, {
149
+ sessionId: string;
150
+ operation: "history";
151
+ turnId: string;
152
+ workflowId: string;
153
+ nativeRunId: string;
154
+ limit?: number | undefined;
155
+ beforeOrder?: string | undefined;
156
+ throughOrder?: string | undefined;
157
+ }>, z.ZodObject<{
158
+ operation: z.ZodLiteral<"read">;
159
+ messageID: z.ZodEffects<z.ZodString, string, string>;
160
+ offset: z.ZodOptional<z.ZodNumber>;
161
+ } & {
162
+ nativeRunId: z.ZodEffects<z.ZodString, string, string>;
163
+ workflowId: z.ZodString;
164
+ sessionId: z.ZodBranded<z.ZodString, "SessionId">;
165
+ turnId: z.ZodString;
166
+ }, "strict", z.ZodTypeAny, {
167
+ sessionId: string & z.BRAND<"SessionId">;
168
+ operation: "read";
169
+ turnId: string;
170
+ workflowId: string;
171
+ nativeRunId: string;
172
+ messageID: string;
173
+ offset?: number | undefined;
174
+ }, {
175
+ sessionId: string;
176
+ operation: "read";
177
+ turnId: string;
178
+ workflowId: string;
179
+ nativeRunId: string;
180
+ messageID: string;
181
+ offset?: number | undefined;
182
+ }>, z.ZodObject<{
183
+ operation: z.ZodLiteral<"send">;
184
+ requestId: z.ZodEffects<z.ZodString, string, string>;
185
+ text: z.ZodString;
186
+ mentionIDs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
187
+ mode: z.ZodEnum<["insert", "wait", "queue"]>;
188
+ attachmentIDs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ } & {
190
+ nativeRunId: z.ZodEffects<z.ZodString, string, string>;
191
+ workflowId: z.ZodString;
192
+ sessionId: z.ZodBranded<z.ZodString, "SessionId">;
193
+ turnId: z.ZodString;
194
+ }, "strict", z.ZodTypeAny, {
195
+ sessionId: string & z.BRAND<"SessionId">;
196
+ mode: "queue" | "wait" | "insert";
197
+ operation: "send";
198
+ turnId: string;
199
+ workflowId: string;
200
+ nativeRunId: string;
201
+ text: string;
202
+ requestId: string;
203
+ mentionIDs: string[];
204
+ attachmentIDs?: string[] | undefined;
205
+ }, {
206
+ sessionId: string;
207
+ mode: "queue" | "wait" | "insert";
208
+ operation: "send";
209
+ turnId: string;
210
+ workflowId: string;
211
+ nativeRunId: string;
212
+ text: string;
213
+ requestId: string;
214
+ mentionIDs: string[];
215
+ attachmentIDs?: string[] | undefined;
216
+ }>, z.ZodObject<{
217
+ operation: z.ZodLiteral<"status">;
218
+ requestId: z.ZodEffects<z.ZodString, string, string>;
219
+ } & {
220
+ nativeRunId: z.ZodEffects<z.ZodString, string, string>;
221
+ workflowId: z.ZodString;
222
+ sessionId: z.ZodBranded<z.ZodString, "SessionId">;
223
+ turnId: z.ZodString;
224
+ }, "strict", z.ZodTypeAny, {
225
+ sessionId: string & z.BRAND<"SessionId">;
226
+ operation: "status";
227
+ turnId: string;
228
+ workflowId: string;
229
+ nativeRunId: string;
230
+ requestId: string;
231
+ }, {
232
+ sessionId: string;
233
+ operation: "status";
234
+ turnId: string;
235
+ workflowId: string;
236
+ nativeRunId: string;
237
+ requestId: string;
238
+ }>]>, {
239
+ sessionId: string & z.BRAND<"SessionId">;
240
+ operation: "members";
241
+ turnId: string;
242
+ workflowId: string;
243
+ nativeRunId: string;
244
+ } | {
245
+ sessionId: string & z.BRAND<"SessionId">;
246
+ operation: "history";
247
+ turnId: string;
248
+ workflowId: string;
249
+ nativeRunId: string;
250
+ limit?: number | undefined;
251
+ beforeOrder?: string | undefined;
252
+ throughOrder?: string | undefined;
253
+ } | {
254
+ sessionId: string & z.BRAND<"SessionId">;
255
+ operation: "read";
256
+ turnId: string;
257
+ workflowId: string;
258
+ nativeRunId: string;
259
+ messageID: string;
260
+ offset?: number | undefined;
261
+ } | {
262
+ sessionId: string & z.BRAND<"SessionId">;
263
+ mode: "queue" | "wait" | "insert";
264
+ operation: "send";
265
+ turnId: string;
266
+ workflowId: string;
267
+ nativeRunId: string;
268
+ text: string;
269
+ requestId: string;
270
+ mentionIDs: string[];
271
+ attachmentIDs?: string[] | undefined;
272
+ } | {
273
+ sessionId: string & z.BRAND<"SessionId">;
274
+ operation: "status";
275
+ turnId: string;
276
+ workflowId: string;
277
+ nativeRunId: string;
278
+ requestId: string;
279
+ }, {
280
+ sessionId: string;
281
+ operation: "members";
282
+ turnId: string;
283
+ workflowId: string;
284
+ nativeRunId: string;
285
+ } | {
286
+ sessionId: string;
287
+ operation: "history";
288
+ turnId: string;
289
+ workflowId: string;
290
+ nativeRunId: string;
291
+ limit?: number | undefined;
292
+ beforeOrder?: string | undefined;
293
+ throughOrder?: string | undefined;
294
+ } | {
295
+ sessionId: string;
296
+ operation: "read";
297
+ turnId: string;
298
+ workflowId: string;
299
+ nativeRunId: string;
300
+ messageID: string;
301
+ offset?: number | undefined;
302
+ } | {
303
+ sessionId: string;
304
+ mode: "queue" | "wait" | "insert";
305
+ operation: "send";
306
+ turnId: string;
307
+ workflowId: string;
308
+ nativeRunId: string;
309
+ text: string;
310
+ requestId: string;
311
+ mentionIDs: string[];
312
+ attachmentIDs?: string[] | undefined;
313
+ } | {
314
+ sessionId: string;
315
+ operation: "status";
316
+ turnId: string;
317
+ workflowId: string;
318
+ nativeRunId: string;
319
+ requestId: string;
320
+ }>;
321
+ export type ConversationMessageParams = z.infer<typeof ConversationMessageParams>;
322
+ export declare const ConversationMessageResult: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
323
+ status: z.ZodLiteral<"history">;
324
+ conversationID: z.ZodEffects<z.ZodString, string, string>;
325
+ projectID: z.ZodEffects<z.ZodString, string, string>;
326
+ throughOrder: z.ZodEffects<z.ZodString, string, string>;
327
+ messages: z.ZodArray<z.ZodObject<{
328
+ id: z.ZodEffects<z.ZodString, string, string>;
329
+ historyOrder: z.ZodEffects<z.ZodString, string, string>;
330
+ author: z.ZodEnum<["human", "assistant", "system"]>;
331
+ senderID: z.ZodString;
332
+ senderName: z.ZodString;
333
+ createdAt: z.ZodString;
334
+ text: z.ZodString;
335
+ textLength: z.ZodNumber;
336
+ isExcerpt: z.ZodBoolean;
337
+ mentionIDs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
338
+ originKind: z.ZodOptional<z.ZodString>;
339
+ attachmentIDs: z.ZodArray<z.ZodString, "many">;
340
+ runID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
341
+ workflowID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
342
+ requestID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
343
+ }, "strict", z.ZodTypeAny, {
344
+ id: string;
345
+ createdAt: string;
346
+ text: string;
347
+ attachmentIDs: string[];
348
+ mentionIDs: string[];
349
+ historyOrder: string;
350
+ author: "system" | "assistant" | "human";
351
+ senderID: string;
352
+ senderName: string;
353
+ textLength: number;
354
+ isExcerpt: boolean;
355
+ originKind?: string | undefined;
356
+ runID?: string | undefined;
357
+ workflowID?: string | undefined;
358
+ requestID?: string | undefined;
359
+ }, {
360
+ id: string;
361
+ createdAt: string;
362
+ text: string;
363
+ attachmentIDs: string[];
364
+ mentionIDs: string[];
365
+ historyOrder: string;
366
+ author: "system" | "assistant" | "human";
367
+ senderID: string;
368
+ senderName: string;
369
+ textLength: number;
370
+ isExcerpt: boolean;
371
+ originKind?: string | undefined;
372
+ runID?: string | undefined;
373
+ workflowID?: string | undefined;
374
+ requestID?: string | undefined;
375
+ }>, "many">;
376
+ nextBeforeOrder: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
377
+ }, "strict", z.ZodTypeAny, {
378
+ status: "history";
379
+ messages: {
380
+ id: string;
381
+ createdAt: string;
382
+ text: string;
383
+ attachmentIDs: string[];
384
+ mentionIDs: string[];
385
+ historyOrder: string;
386
+ author: "system" | "assistant" | "human";
387
+ senderID: string;
388
+ senderName: string;
389
+ textLength: number;
390
+ isExcerpt: boolean;
391
+ originKind?: string | undefined;
392
+ runID?: string | undefined;
393
+ workflowID?: string | undefined;
394
+ requestID?: string | undefined;
395
+ }[];
396
+ conversationID: string;
397
+ projectID: string;
398
+ throughOrder: string;
399
+ nextBeforeOrder?: string | undefined;
400
+ }, {
401
+ status: "history";
402
+ messages: {
403
+ id: string;
404
+ createdAt: string;
405
+ text: string;
406
+ attachmentIDs: string[];
407
+ mentionIDs: string[];
408
+ historyOrder: string;
409
+ author: "system" | "assistant" | "human";
410
+ senderID: string;
411
+ senderName: string;
412
+ textLength: number;
413
+ isExcerpt: boolean;
414
+ originKind?: string | undefined;
415
+ runID?: string | undefined;
416
+ workflowID?: string | undefined;
417
+ requestID?: string | undefined;
418
+ }[];
419
+ conversationID: string;
420
+ projectID: string;
421
+ throughOrder: string;
422
+ nextBeforeOrder?: string | undefined;
423
+ }>, z.ZodObject<{
424
+ status: z.ZodLiteral<"message">;
425
+ conversationID: z.ZodEffects<z.ZodString, string, string>;
426
+ projectID: z.ZodEffects<z.ZodString, string, string>;
427
+ message: z.ZodObject<{
428
+ id: z.ZodEffects<z.ZodString, string, string>;
429
+ historyOrder: z.ZodEffects<z.ZodString, string, string>;
430
+ author: z.ZodEnum<["human", "assistant", "system"]>;
431
+ senderID: z.ZodString;
432
+ senderName: z.ZodString;
433
+ createdAt: z.ZodString;
434
+ text: z.ZodString;
435
+ textLength: z.ZodNumber;
436
+ isExcerpt: z.ZodBoolean;
437
+ mentionIDs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
438
+ originKind: z.ZodOptional<z.ZodString>;
439
+ attachmentIDs: z.ZodArray<z.ZodString, "many">;
440
+ runID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
441
+ workflowID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
442
+ requestID: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
443
+ }, "strict", z.ZodTypeAny, {
444
+ id: string;
445
+ createdAt: string;
446
+ text: string;
447
+ attachmentIDs: string[];
448
+ mentionIDs: string[];
449
+ historyOrder: string;
450
+ author: "system" | "assistant" | "human";
451
+ senderID: string;
452
+ senderName: string;
453
+ textLength: number;
454
+ isExcerpt: boolean;
455
+ originKind?: string | undefined;
456
+ runID?: string | undefined;
457
+ workflowID?: string | undefined;
458
+ requestID?: string | undefined;
459
+ }, {
460
+ id: string;
461
+ createdAt: string;
462
+ text: string;
463
+ attachmentIDs: string[];
464
+ mentionIDs: string[];
465
+ historyOrder: string;
466
+ author: "system" | "assistant" | "human";
467
+ senderID: string;
468
+ senderName: string;
469
+ textLength: number;
470
+ isExcerpt: boolean;
471
+ originKind?: string | undefined;
472
+ runID?: string | undefined;
473
+ workflowID?: string | undefined;
474
+ requestID?: string | undefined;
475
+ }>;
476
+ offset: z.ZodNumber;
477
+ nextOffset: z.ZodOptional<z.ZodNumber>;
478
+ }, "strict", z.ZodTypeAny, {
479
+ message: {
480
+ id: string;
481
+ createdAt: string;
482
+ text: string;
483
+ attachmentIDs: string[];
484
+ mentionIDs: string[];
485
+ historyOrder: string;
486
+ author: "system" | "assistant" | "human";
487
+ senderID: string;
488
+ senderName: string;
489
+ textLength: number;
490
+ isExcerpt: boolean;
491
+ originKind?: string | undefined;
492
+ runID?: string | undefined;
493
+ workflowID?: string | undefined;
494
+ requestID?: string | undefined;
495
+ };
496
+ status: "message";
497
+ offset: number;
498
+ conversationID: string;
499
+ projectID: string;
500
+ nextOffset?: number | undefined;
501
+ }, {
502
+ message: {
503
+ id: string;
504
+ createdAt: string;
505
+ text: string;
506
+ attachmentIDs: string[];
507
+ mentionIDs: string[];
508
+ historyOrder: string;
509
+ author: "system" | "assistant" | "human";
510
+ senderID: string;
511
+ senderName: string;
512
+ textLength: number;
513
+ isExcerpt: boolean;
514
+ originKind?: string | undefined;
515
+ runID?: string | undefined;
516
+ workflowID?: string | undefined;
517
+ requestID?: string | undefined;
518
+ };
519
+ status: "message";
520
+ offset: number;
521
+ conversationID: string;
522
+ projectID: string;
523
+ nextOffset?: number | undefined;
524
+ }>, z.ZodObject<{
525
+ status: z.ZodLiteral<"members">;
526
+ conversationID: z.ZodEffects<z.ZodString, string, string>;
527
+ projectID: z.ZodEffects<z.ZodString, string, string>;
528
+ senderID: z.ZodEffects<z.ZodString, string, string>;
529
+ enabled: z.ZodBoolean;
530
+ members: z.ZodArray<z.ZodObject<{
531
+ id: z.ZodEffects<z.ZodString, string, string>;
532
+ name: z.ZodString;
533
+ }, "strict", z.ZodTypeAny, {
534
+ id: string;
535
+ name: string;
536
+ }, {
537
+ id: string;
538
+ name: string;
539
+ }>, "many">;
540
+ limits: z.ZodObject<{
541
+ maxHops: z.ZodNumber;
542
+ maxDeliveries: z.ZodNumber;
543
+ maxRecipients: z.ZodNumber;
544
+ maxRoots: z.ZodNumber;
545
+ }, "strict", z.ZodTypeAny, {
546
+ maxHops: number;
547
+ maxDeliveries: number;
548
+ maxRecipients: number;
549
+ maxRoots: number;
550
+ }, {
551
+ maxHops: number;
552
+ maxDeliveries: number;
553
+ maxRecipients: number;
554
+ maxRoots: number;
555
+ }>;
556
+ }, "strict", z.ZodTypeAny, {
557
+ status: "members";
558
+ limits: {
559
+ maxHops: number;
560
+ maxDeliveries: number;
561
+ maxRecipients: number;
562
+ maxRoots: number;
563
+ };
564
+ conversationID: string;
565
+ projectID: string;
566
+ members: {
567
+ id: string;
568
+ name: string;
569
+ }[];
570
+ senderID: string;
571
+ enabled: boolean;
572
+ }, {
573
+ status: "members";
574
+ limits: {
575
+ maxHops: number;
576
+ maxDeliveries: number;
577
+ maxRecipients: number;
578
+ maxRoots: number;
579
+ };
580
+ conversationID: string;
581
+ projectID: string;
582
+ members: {
583
+ id: string;
584
+ name: string;
585
+ }[];
586
+ senderID: string;
587
+ enabled: boolean;
588
+ }>, z.ZodObject<{
589
+ status: z.ZodLiteral<"recorded">;
590
+ requestId: z.ZodEffects<z.ZodString, string, string>;
591
+ messageID: z.ZodEffects<z.ZodString, string, string>;
592
+ chainID: z.ZodEffects<z.ZodString, string, string>;
593
+ rootMessageID: z.ZodEffects<z.ZodString, string, string>;
594
+ depth: z.ZodNumber;
595
+ receipts: z.ZodArray<z.ZodObject<{
596
+ personID: z.ZodEffects<z.ZodString, string, string>;
597
+ state: z.ZodEnum<["recorded", "sending", "pendingInsert", "waiting", "queued", "accepted", "running", "succeeded", "removed", "unsupported", "notAccepted", "offline", "failed", "unknown", "cancelled"]>;
598
+ errorCode: z.ZodOptional<z.ZodString>;
599
+ }, "strict", z.ZodTypeAny, {
600
+ state: "unknown" | "running" | "succeeded" | "failed" | "accepted" | "queued" | "cancelled" | "recorded" | "sending" | "pendingInsert" | "waiting" | "removed" | "unsupported" | "notAccepted" | "offline";
601
+ personID: string;
602
+ errorCode?: string | undefined;
603
+ }, {
604
+ state: "unknown" | "running" | "succeeded" | "failed" | "accepted" | "queued" | "cancelled" | "recorded" | "sending" | "pendingInsert" | "waiting" | "removed" | "unsupported" | "notAccepted" | "offline";
605
+ personID: string;
606
+ errorCode?: string | undefined;
607
+ }>, "many">;
608
+ replayed: z.ZodOptional<z.ZodBoolean>;
609
+ }, "strict", z.ZodTypeAny, {
610
+ status: "recorded";
611
+ requestId: string;
612
+ messageID: string;
613
+ chainID: string;
614
+ rootMessageID: string;
615
+ depth: number;
616
+ receipts: {
617
+ state: "unknown" | "running" | "succeeded" | "failed" | "accepted" | "queued" | "cancelled" | "recorded" | "sending" | "pendingInsert" | "waiting" | "removed" | "unsupported" | "notAccepted" | "offline";
618
+ personID: string;
619
+ errorCode?: string | undefined;
620
+ }[];
621
+ replayed?: boolean | undefined;
622
+ }, {
623
+ status: "recorded";
624
+ requestId: string;
625
+ messageID: string;
626
+ chainID: string;
627
+ rootMessageID: string;
628
+ depth: number;
629
+ receipts: {
630
+ state: "unknown" | "running" | "succeeded" | "failed" | "accepted" | "queued" | "cancelled" | "recorded" | "sending" | "pendingInsert" | "waiting" | "removed" | "unsupported" | "notAccepted" | "offline";
631
+ personID: string;
632
+ errorCode?: string | undefined;
633
+ }[];
634
+ replayed?: boolean | undefined;
635
+ }>, z.ZodObject<{
636
+ status: z.ZodLiteral<"not_found">;
637
+ requestId: z.ZodEffects<z.ZodString, string, string>;
638
+ }, "strict", z.ZodTypeAny, {
639
+ status: "not_found";
640
+ requestId: string;
641
+ }, {
642
+ status: "not_found";
643
+ requestId: string;
644
+ }>, z.ZodObject<{
645
+ status: z.ZodLiteral<"not_accepted">;
646
+ requestId: z.ZodEffects<z.ZodString, string, string>;
647
+ errorCode: z.ZodString;
648
+ }, "strict", z.ZodTypeAny, {
649
+ status: "not_accepted";
650
+ errorCode: string;
651
+ requestId: string;
652
+ }, {
653
+ status: "not_accepted";
654
+ errorCode: string;
655
+ requestId: string;
656
+ }>]>;
657
+ export type ConversationMessageResult = z.infer<typeof ConversationMessageResult>;
658
+ //# sourceMappingURL=conversation-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-message.d.ts","sourceRoot":"","sources":["../../src/schemas/conversation-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,yFAAyF;AACzF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6F,CAAC;AAC5H,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnB,CAAC;AACpB,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAMlF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}