@case-framework/survey-assistant 0.2.3 → 0.3.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 (67) hide show
  1. package/dist/{authoring-references-ChDTVnms.mjs → authoring-references-yyYC4Ydi.mjs} +2 -2
  2. package/dist/{authoring-references-ChDTVnms.mjs.map → authoring-references-yyYC4Ydi.mjs.map} +1 -1
  3. package/dist/capabilities-default.d.mts +1 -1
  4. package/dist/{constants-BK1-g6pR.d.mts → constants-DrGZXtQf.d.mts} +4 -4
  5. package/dist/{constants-BK1-g6pR.d.mts.map → constants-DrGZXtQf.d.mts.map} +1 -1
  6. package/dist/{controller-proxy-DY36XFV3.mjs → controller-proxy-CpkQRezb.mjs} +2 -1
  7. package/dist/controller-proxy-CpkQRezb.mjs.map +1 -0
  8. package/dist/{controller-proxy-CIDRd8Wu.d.mts → controller-proxy-DmBdzqKs.d.mts} +5 -2
  9. package/dist/controller-proxy-DmBdzqKs.d.mts.map +1 -0
  10. package/dist/engine.d.mts +1 -1
  11. package/dist/{index-CPOQgkTN.d.mts → index-Bo4dHAo8.d.mts} +3 -2
  12. package/dist/index-Bo4dHAo8.d.mts.map +1 -0
  13. package/dist/index-D4OitUg4.d.mts +738 -0
  14. package/dist/index-D4OitUg4.d.mts.map +1 -0
  15. package/dist/{index-Bp5W_oPa.d.mts → index-DZk20e3k.d.mts} +26 -24
  16. package/dist/index-DZk20e3k.d.mts.map +1 -0
  17. package/dist/{index-SPHf3OoJ.d.mts → index-Dxgg0-D_.d.mts} +6 -3
  18. package/dist/index-Dxgg0-D_.d.mts.map +1 -0
  19. package/dist/lifecycle-DWv5CiSu.d.mts +523 -0
  20. package/dist/lifecycle-DWv5CiSu.d.mts.map +1 -0
  21. package/dist/protocol-DATvkr1S.mjs.map +1 -1
  22. package/dist/protocol.d.mts +2 -1
  23. package/dist/{react-3kSE6WtS.mjs → react-Br5YE8H-.mjs} +7 -5
  24. package/dist/react-Br5YE8H-.mjs.map +1 -0
  25. package/dist/react-integration.d.mts +1 -1
  26. package/dist/react-integration.mjs +1 -1
  27. package/dist/react.d.mts +2 -2
  28. package/dist/react.mjs +2 -2
  29. package/dist/server-agent.d.mts +26 -24
  30. package/dist/server-agent.d.mts.map +1 -1
  31. package/dist/server-agent.mjs +4 -4
  32. package/dist/server-agent.mjs.map +1 -1
  33. package/dist/server-runtime.d.mts +6 -6
  34. package/dist/server-runtime.mjs +1 -1
  35. package/dist/server-tasks.d.mts +1 -1
  36. package/dist/server-tasks.mjs +3 -2
  37. package/dist/server-tasks.mjs.map +1 -1
  38. package/dist/server-tools.d.mts +1 -1
  39. package/dist/server-tools.mjs +1 -1
  40. package/dist/server.d.mts +6 -6
  41. package/dist/server.d.mts.map +1 -1
  42. package/dist/server.mjs +1 -1
  43. package/dist/storage-postgres.d.mts +1 -1
  44. package/dist/{tasks-DIZgr4nD.d.mts → tasks-DQgL449A.d.mts} +3 -3
  45. package/dist/{tasks-DIZgr4nD.d.mts.map → tasks-DQgL449A.d.mts.map} +1 -1
  46. package/dist/{thread-documents-C3kf0Vds.d.mts → thread-documents-Dvo6XS7o.d.mts} +1 -1
  47. package/dist/{thread-documents-C3kf0Vds.d.mts.map → thread-documents-Dvo6XS7o.d.mts.map} +1 -1
  48. package/dist/{thread-handlers-DZ1WsorO.d.mts → thread-handlers-CeYl45xG.d.mts} +5 -5
  49. package/dist/{thread-handlers-DZ1WsorO.d.mts.map → thread-handlers-CeYl45xG.d.mts.map} +1 -1
  50. package/dist/{tools-GDd5_GUh.mjs → tools-Dg9HZrYU.mjs} +4 -4
  51. package/dist/tools-Dg9HZrYU.mjs.map +1 -0
  52. package/dist/ui.css +2 -2
  53. package/dist/ui.d.mts +94 -10
  54. package/dist/ui.d.mts.map +1 -1
  55. package/dist/ui.mjs +193 -78
  56. package/dist/ui.mjs.map +1 -1
  57. package/docs/integration.md +1 -1
  58. package/package.json +23 -17
  59. package/dist/controller-proxy-CIDRd8Wu.d.mts.map +0 -1
  60. package/dist/controller-proxy-DY36XFV3.mjs.map +0 -1
  61. package/dist/index-Bp5W_oPa.d.mts.map +0 -1
  62. package/dist/index-CPOQgkTN.d.mts.map +0 -1
  63. package/dist/index-EDL1V168.d.mts +0 -1257
  64. package/dist/index-EDL1V168.d.mts.map +0 -1
  65. package/dist/index-SPHf3OoJ.d.mts.map +0 -1
  66. package/dist/react-3kSE6WtS.mjs.map +0 -1
  67. package/dist/tools-GDd5_GUh.mjs.map +0 -1
@@ -0,0 +1,738 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/protocol/errors.d.ts
4
+ declare const surveyAssistantErrorCodeSchema: z.ZodEnum<{
5
+ authorization_failed: "authorization_failed";
6
+ request_failed: "request_failed";
7
+ attachment_unavailable: "attachment_unavailable";
8
+ model_unavailable: "model_unavailable";
9
+ rate_limited: "rate_limited";
10
+ }>;
11
+ type SurveyAssistantErrorCode = z.infer<typeof surveyAssistantErrorCodeSchema>;
12
+ declare const surveyAssistantErrorInfoSchema: z.ZodObject<{
13
+ code: z.ZodEnum<{
14
+ authorization_failed: "authorization_failed";
15
+ request_failed: "request_failed";
16
+ attachment_unavailable: "attachment_unavailable";
17
+ model_unavailable: "model_unavailable";
18
+ rate_limited: "rate_limited";
19
+ }>;
20
+ detail: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ type SurveyAssistantErrorInfo = z.infer<typeof surveyAssistantErrorInfoSchema>;
23
+ declare const serializeSurveyAssistantError: (error: SurveyAssistantErrorInfo) => string;
24
+ declare const parseSurveyAssistantError: (value: unknown) => SurveyAssistantErrorInfo;
25
+ //#endregion
26
+ //#region src/protocol/threads.d.ts
27
+ declare const SURVEY_ASSISTANT_ATTACHMENT_PART_TYPE: "data-survey-assistant-attachment";
28
+ interface SurveyAssistantAttachmentReference {
29
+ documentId?: string;
30
+ filename: string;
31
+ mediaType: string;
32
+ bytes: number;
33
+ }
34
+ declare const surveyAssistantThreadSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ title: z.ZodString;
37
+ titleMode: z.ZodEnum<{
38
+ automatic: "automatic";
39
+ manual: "manual";
40
+ }>;
41
+ createdAt: z.ZodString;
42
+ updatedAt: z.ZodString;
43
+ }, z.core.$strip>;
44
+ declare const surveyAssistantThreadListSchema: z.ZodObject<{
45
+ threads: z.ZodArray<z.ZodObject<{
46
+ id: z.ZodString;
47
+ title: z.ZodString;
48
+ titleMode: z.ZodEnum<{
49
+ automatic: "automatic";
50
+ manual: "manual";
51
+ }>;
52
+ createdAt: z.ZodString;
53
+ updatedAt: z.ZodString;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ declare const surveyAssistantThreadTranscriptSchema: z.ZodObject<{
57
+ thread: z.ZodObject<{
58
+ id: z.ZodString;
59
+ title: z.ZodString;
60
+ titleMode: z.ZodEnum<{
61
+ automatic: "automatic";
62
+ manual: "manual";
63
+ }>;
64
+ createdAt: z.ZodString;
65
+ updatedAt: z.ZodString;
66
+ }, z.core.$strip>;
67
+ messages: z.ZodArray<z.ZodUnknown>;
68
+ }, z.core.$strip>;
69
+ declare const createSurveyAssistantThreadInputSchema: z.ZodObject<{
70
+ title: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ declare const updateSurveyAssistantThreadInputSchema: z.ZodUnion<readonly [z.ZodObject<{
73
+ mode: z.ZodLiteral<"automatic">;
74
+ title: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ mode: z.ZodOptional<z.ZodLiteral<"manual">>;
77
+ title: z.ZodString;
78
+ }, z.core.$strip>]>;
79
+ type SurveyAssistantThreadTitleMode = "automatic" | "manual";
80
+ type SurveyAssistantThread = z.infer<typeof surveyAssistantThreadSchema>;
81
+ type SurveyAssistantThreadList = z.infer<typeof surveyAssistantThreadListSchema>;
82
+ type SurveyAssistantThreadTranscript = z.infer<typeof surveyAssistantThreadTranscriptSchema>;
83
+ type CreateSurveyAssistantThreadInput = z.infer<typeof createSurveyAssistantThreadInputSchema>;
84
+ type UpdateSurveyAssistantThreadInput = z.infer<typeof updateSurveyAssistantThreadInputSchema>;
85
+ //#endregion
86
+ //#region src/protocol/tasks.d.ts
87
+ declare const surveyAssistantTaskInvocationModeSchema: z.ZodEnum<{
88
+ background: "background";
89
+ user: "user";
90
+ }>;
91
+ type SurveyAssistantTaskInvocationMode = z.infer<typeof surveyAssistantTaskInvocationModeSchema>;
92
+ declare const surveyAssistantSuggestedTextSchema: z.ZodObject<{
93
+ text: z.ZodString;
94
+ }, z.core.$strip>;
95
+ type SurveyAssistantSuggestedText = z.infer<typeof surveyAssistantSuggestedTextSchema>;
96
+ declare const surveyAssistantKeySuggestionCategorySchema: z.ZodEnum<{
97
+ compact: "compact";
98
+ "survey-pattern": "survey-pattern";
99
+ preferred: "preferred";
100
+ fair: "fair";
101
+ }>;
102
+ type SurveyAssistantKeySuggestionCategory = z.infer<typeof surveyAssistantKeySuggestionCategorySchema>;
103
+ declare const surveyAssistantKeySuggestionSchema: z.ZodObject<{
104
+ text: z.ZodString;
105
+ category: z.ZodEnum<{
106
+ compact: "compact";
107
+ "survey-pattern": "survey-pattern";
108
+ preferred: "preferred";
109
+ fair: "fair";
110
+ }>;
111
+ rationale: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>;
113
+ type SurveyAssistantKeySuggestion = z.infer<typeof surveyAssistantKeySuggestionSchema>;
114
+ declare const surveyAssistantSuggestItemKeyInputSchema: z.ZodObject<{
115
+ itemId: z.ZodString;
116
+ draftKey: z.ZodString;
117
+ currentKey: z.ZodString;
118
+ siblingKeys: z.ZodArray<z.ZodString>;
119
+ maxSuggestions: z.ZodOptional<z.ZodNumber>;
120
+ }, z.core.$strip>;
121
+ type SurveyAssistantSuggestItemKeyInput = z.infer<typeof surveyAssistantSuggestItemKeyInputSchema>;
122
+ declare const surveyAssistantSuggestItemKeyResultSchema: z.ZodObject<{
123
+ suggestions: z.ZodArray<z.ZodObject<{
124
+ text: z.ZodString;
125
+ category: z.ZodEnum<{
126
+ compact: "compact";
127
+ "survey-pattern": "survey-pattern";
128
+ preferred: "preferred";
129
+ fair: "fair";
130
+ }>;
131
+ rationale: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>;
134
+ type SurveyAssistantSuggestItemKeyResult = z.infer<typeof surveyAssistantSuggestItemKeyResultSchema>;
135
+ type SurveyAssistantLabelSuggestion = SurveyAssistantSuggestedText;
136
+ declare const surveyAssistantSuggestItemLabelInputSchema: z.ZodObject<{
137
+ itemId: z.ZodString;
138
+ draftLabel: z.ZodString;
139
+ itemType: z.ZodString;
140
+ locale: z.ZodOptional<z.ZodString>;
141
+ maxSuggestions: z.ZodOptional<z.ZodNumber>;
142
+ }, z.core.$strip>;
143
+ type SurveyAssistantSuggestItemLabelInput = z.infer<typeof surveyAssistantSuggestItemLabelInputSchema>;
144
+ declare const surveyAssistantSuggestItemLabelResultSchema: z.ZodObject<{
145
+ suggestions: z.ZodArray<z.ZodObject<{
146
+ text: z.ZodString;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>;
149
+ type SurveyAssistantSuggestItemLabelResult = z.infer<typeof surveyAssistantSuggestItemLabelResultSchema>;
150
+ declare const surveyAssistantTranslateContentEntrySchema: z.ZodObject<{
151
+ id: z.ZodString;
152
+ text: z.ZodString;
153
+ kind: z.ZodString;
154
+ }, z.core.$strip>;
155
+ type SurveyAssistantTranslateContentEntry = z.infer<typeof surveyAssistantTranslateContentEntrySchema>;
156
+ declare const surveyAssistantTranslateContentInputSchema: z.ZodObject<{
157
+ sourceLocale: z.ZodString;
158
+ targetLocales: z.ZodArray<z.ZodString>;
159
+ entries: z.ZodArray<z.ZodObject<{
160
+ id: z.ZodString;
161
+ text: z.ZodString;
162
+ kind: z.ZodString;
163
+ }, z.core.$strip>>;
164
+ }, z.core.$strip>;
165
+ type SurveyAssistantTranslateContentInput = z.infer<typeof surveyAssistantTranslateContentInputSchema>;
166
+ declare const surveyAssistantTranslateContentResultSchema: z.ZodObject<{
167
+ translations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
168
+ }, z.core.$strip>;
169
+ type SurveyAssistantTranslateContentResult = z.infer<typeof surveyAssistantTranslateContentResultSchema>;
170
+ declare const surveyAssistantTaskItemSummarySchema: z.ZodObject<{
171
+ id: z.ZodString;
172
+ key: z.ZodString;
173
+ fullKey: z.ZodString;
174
+ itemType: z.ZodString;
175
+ itemLabel: z.ZodOptional<z.ZodString>;
176
+ visibleText: z.ZodArray<z.ZodObject<{
177
+ locale: z.ZodString;
178
+ contentKey: z.ZodString;
179
+ text: z.ZodString;
180
+ }, z.core.$strip>>;
181
+ visibleTextTruncated: z.ZodBoolean;
182
+ }, z.core.$strip>;
183
+ type SurveyAssistantTaskItemSummary = z.infer<typeof surveyAssistantTaskItemSummarySchema>;
184
+ declare const surveyAssistantTaskContextSchema: z.ZodObject<{
185
+ document: z.ZodObject<{
186
+ revision: z.ZodNumber;
187
+ contentHash: z.ZodString;
188
+ capabilityDigest: z.ZodString;
189
+ }, z.core.$strip>;
190
+ survey: z.ZodObject<{
191
+ key: z.ZodOptional<z.ZodString>;
192
+ locales: z.ZodArray<z.ZodString>;
193
+ itemCount: z.ZodNumber;
194
+ selectedLocale: z.ZodString;
195
+ }, z.core.$strip>;
196
+ focus: z.ZodOptional<z.ZodObject<{
197
+ item: z.ZodObject<{
198
+ id: z.ZodString;
199
+ key: z.ZodString;
200
+ fullKey: z.ZodString;
201
+ itemType: z.ZodString;
202
+ itemLabel: z.ZodOptional<z.ZodString>;
203
+ visibleText: z.ZodArray<z.ZodObject<{
204
+ locale: z.ZodString;
205
+ contentKey: z.ZodString;
206
+ text: z.ZodString;
207
+ }, z.core.$strip>>;
208
+ visibleTextTruncated: z.ZodBoolean;
209
+ }, z.core.$strip>;
210
+ parent: z.ZodOptional<z.ZodObject<{
211
+ id: z.ZodString;
212
+ key: z.ZodString;
213
+ fullKey: z.ZodString;
214
+ itemType: z.ZodString;
215
+ itemLabel: z.ZodOptional<z.ZodString>;
216
+ visibleText: z.ZodArray<z.ZodObject<{
217
+ locale: z.ZodString;
218
+ contentKey: z.ZodString;
219
+ text: z.ZodString;
220
+ }, z.core.$strip>>;
221
+ visibleTextTruncated: z.ZodBoolean;
222
+ }, z.core.$strip>>;
223
+ ancestorPath: z.ZodArray<z.ZodObject<{
224
+ id: z.ZodString;
225
+ key: z.ZodString;
226
+ fullKey: z.ZodString;
227
+ itemType: z.ZodString;
228
+ itemLabel: z.ZodOptional<z.ZodString>;
229
+ visibleText: z.ZodArray<z.ZodObject<{
230
+ locale: z.ZodString;
231
+ contentKey: z.ZodString;
232
+ text: z.ZodString;
233
+ }, z.core.$strip>>;
234
+ visibleTextTruncated: z.ZodBoolean;
235
+ }, z.core.$strip>>;
236
+ siblingKeys: z.ZodArray<z.ZodString>;
237
+ siblingItems: z.ZodArray<z.ZodObject<{
238
+ id: z.ZodString;
239
+ key: z.ZodString;
240
+ fullKey: z.ZodString;
241
+ itemType: z.ZodString;
242
+ itemLabel: z.ZodOptional<z.ZodString>;
243
+ visibleText: z.ZodArray<z.ZodObject<{
244
+ locale: z.ZodString;
245
+ contentKey: z.ZodString;
246
+ text: z.ZodString;
247
+ }, z.core.$strip>>;
248
+ visibleTextTruncated: z.ZodBoolean;
249
+ }, z.core.$strip>>;
250
+ siblingItemCount: z.ZodNumber;
251
+ siblingItemsTruncated: z.ZodBoolean;
252
+ relatedItems: z.ZodArray<z.ZodObject<{
253
+ id: z.ZodString;
254
+ key: z.ZodString;
255
+ fullKey: z.ZodString;
256
+ itemType: z.ZodString;
257
+ itemLabel: z.ZodOptional<z.ZodString>;
258
+ visibleText: z.ZodArray<z.ZodObject<{
259
+ locale: z.ZodString;
260
+ contentKey: z.ZodString;
261
+ text: z.ZodString;
262
+ }, z.core.$strip>>;
263
+ visibleTextTruncated: z.ZodBoolean;
264
+ }, z.core.$strip>>;
265
+ relatedItemCount: z.ZodNumber;
266
+ relatedItemsTruncated: z.ZodBoolean;
267
+ }, z.core.$strip>>;
268
+ naming: z.ZodOptional<z.ZodObject<{
269
+ keyExamples: z.ZodArray<z.ZodObject<{
270
+ itemId: z.ZodString;
271
+ itemType: z.ZodString;
272
+ key: z.ZodString;
273
+ relationship: z.ZodEnum<{
274
+ survey: "survey";
275
+ sibling: "sibling";
276
+ "same-type": "same-type";
277
+ }>;
278
+ }, z.core.$strip>>;
279
+ keyExampleCount: z.ZodNumber;
280
+ keyExamplesTruncated: z.ZodBoolean;
281
+ labelExamples: z.ZodArray<z.ZodObject<{
282
+ itemId: z.ZodString;
283
+ itemType: z.ZodString;
284
+ key: z.ZodString;
285
+ label: z.ZodString;
286
+ relationship: z.ZodEnum<{
287
+ survey: "survey";
288
+ sibling: "sibling";
289
+ "same-type": "same-type";
290
+ }>;
291
+ }, z.core.$strip>>;
292
+ labelExampleCount: z.ZodNumber;
293
+ labelExamplesTruncated: z.ZodBoolean;
294
+ }, z.core.$strip>>;
295
+ translation: z.ZodOptional<z.ZodObject<{
296
+ examples: z.ZodArray<z.ZodObject<{
297
+ itemId: z.ZodString;
298
+ contentKey: z.ZodString;
299
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
300
+ }, z.core.$strip>>;
301
+ exampleCount: z.ZodNumber;
302
+ examplesTruncated: z.ZodBoolean;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strip>;
305
+ type SurveyAssistantTaskContext = z.infer<typeof surveyAssistantTaskContextSchema>;
306
+ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ taskId: z.ZodLiteral<"suggest-item-key">;
308
+ input: z.ZodObject<{
309
+ itemId: z.ZodString;
310
+ draftKey: z.ZodString;
311
+ currentKey: z.ZodString;
312
+ siblingKeys: z.ZodArray<z.ZodString>;
313
+ maxSuggestions: z.ZodOptional<z.ZodNumber>;
314
+ }, z.core.$strip>;
315
+ context: z.ZodObject<{
316
+ document: z.ZodObject<{
317
+ revision: z.ZodNumber;
318
+ contentHash: z.ZodString;
319
+ capabilityDigest: z.ZodString;
320
+ }, z.core.$strip>;
321
+ survey: z.ZodObject<{
322
+ key: z.ZodOptional<z.ZodString>;
323
+ locales: z.ZodArray<z.ZodString>;
324
+ itemCount: z.ZodNumber;
325
+ selectedLocale: z.ZodString;
326
+ }, z.core.$strip>;
327
+ focus: z.ZodOptional<z.ZodObject<{
328
+ item: z.ZodObject<{
329
+ id: z.ZodString;
330
+ key: z.ZodString;
331
+ fullKey: z.ZodString;
332
+ itemType: z.ZodString;
333
+ itemLabel: z.ZodOptional<z.ZodString>;
334
+ visibleText: z.ZodArray<z.ZodObject<{
335
+ locale: z.ZodString;
336
+ contentKey: z.ZodString;
337
+ text: z.ZodString;
338
+ }, z.core.$strip>>;
339
+ visibleTextTruncated: z.ZodBoolean;
340
+ }, z.core.$strip>;
341
+ parent: z.ZodOptional<z.ZodObject<{
342
+ id: z.ZodString;
343
+ key: z.ZodString;
344
+ fullKey: z.ZodString;
345
+ itemType: z.ZodString;
346
+ itemLabel: z.ZodOptional<z.ZodString>;
347
+ visibleText: z.ZodArray<z.ZodObject<{
348
+ locale: z.ZodString;
349
+ contentKey: z.ZodString;
350
+ text: z.ZodString;
351
+ }, z.core.$strip>>;
352
+ visibleTextTruncated: z.ZodBoolean;
353
+ }, z.core.$strip>>;
354
+ ancestorPath: z.ZodArray<z.ZodObject<{
355
+ id: z.ZodString;
356
+ key: z.ZodString;
357
+ fullKey: z.ZodString;
358
+ itemType: z.ZodString;
359
+ itemLabel: z.ZodOptional<z.ZodString>;
360
+ visibleText: z.ZodArray<z.ZodObject<{
361
+ locale: z.ZodString;
362
+ contentKey: z.ZodString;
363
+ text: z.ZodString;
364
+ }, z.core.$strip>>;
365
+ visibleTextTruncated: z.ZodBoolean;
366
+ }, z.core.$strip>>;
367
+ siblingKeys: z.ZodArray<z.ZodString>;
368
+ siblingItems: z.ZodArray<z.ZodObject<{
369
+ id: z.ZodString;
370
+ key: z.ZodString;
371
+ fullKey: z.ZodString;
372
+ itemType: z.ZodString;
373
+ itemLabel: z.ZodOptional<z.ZodString>;
374
+ visibleText: z.ZodArray<z.ZodObject<{
375
+ locale: z.ZodString;
376
+ contentKey: z.ZodString;
377
+ text: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ visibleTextTruncated: z.ZodBoolean;
380
+ }, z.core.$strip>>;
381
+ siblingItemCount: z.ZodNumber;
382
+ siblingItemsTruncated: z.ZodBoolean;
383
+ relatedItems: z.ZodArray<z.ZodObject<{
384
+ id: z.ZodString;
385
+ key: z.ZodString;
386
+ fullKey: z.ZodString;
387
+ itemType: z.ZodString;
388
+ itemLabel: z.ZodOptional<z.ZodString>;
389
+ visibleText: z.ZodArray<z.ZodObject<{
390
+ locale: z.ZodString;
391
+ contentKey: z.ZodString;
392
+ text: z.ZodString;
393
+ }, z.core.$strip>>;
394
+ visibleTextTruncated: z.ZodBoolean;
395
+ }, z.core.$strip>>;
396
+ relatedItemCount: z.ZodNumber;
397
+ relatedItemsTruncated: z.ZodBoolean;
398
+ }, z.core.$strip>>;
399
+ naming: z.ZodOptional<z.ZodObject<{
400
+ keyExamples: z.ZodArray<z.ZodObject<{
401
+ itemId: z.ZodString;
402
+ itemType: z.ZodString;
403
+ key: z.ZodString;
404
+ relationship: z.ZodEnum<{
405
+ survey: "survey";
406
+ sibling: "sibling";
407
+ "same-type": "same-type";
408
+ }>;
409
+ }, z.core.$strip>>;
410
+ keyExampleCount: z.ZodNumber;
411
+ keyExamplesTruncated: z.ZodBoolean;
412
+ labelExamples: z.ZodArray<z.ZodObject<{
413
+ itemId: z.ZodString;
414
+ itemType: z.ZodString;
415
+ key: z.ZodString;
416
+ label: z.ZodString;
417
+ relationship: z.ZodEnum<{
418
+ survey: "survey";
419
+ sibling: "sibling";
420
+ "same-type": "same-type";
421
+ }>;
422
+ }, z.core.$strip>>;
423
+ labelExampleCount: z.ZodNumber;
424
+ labelExamplesTruncated: z.ZodBoolean;
425
+ }, z.core.$strip>>;
426
+ translation: z.ZodOptional<z.ZodObject<{
427
+ examples: z.ZodArray<z.ZodObject<{
428
+ itemId: z.ZodString;
429
+ contentKey: z.ZodString;
430
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
431
+ }, z.core.$strip>>;
432
+ exampleCount: z.ZodNumber;
433
+ examplesTruncated: z.ZodBoolean;
434
+ }, z.core.$strip>>;
435
+ }, z.core.$strip>;
436
+ mode: z.ZodOptional<z.ZodEnum<{
437
+ background: "background";
438
+ user: "user";
439
+ }>>;
440
+ modelId: z.ZodOptional<z.ZodString>;
441
+ resourceId: z.ZodOptional<z.ZodString>;
442
+ surveyId: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strip>, z.ZodObject<{
444
+ taskId: z.ZodLiteral<"suggest-item-label">;
445
+ input: z.ZodObject<{
446
+ itemId: z.ZodString;
447
+ draftLabel: z.ZodString;
448
+ itemType: z.ZodString;
449
+ locale: z.ZodOptional<z.ZodString>;
450
+ maxSuggestions: z.ZodOptional<z.ZodNumber>;
451
+ }, z.core.$strip>;
452
+ context: z.ZodObject<{
453
+ document: z.ZodObject<{
454
+ revision: z.ZodNumber;
455
+ contentHash: z.ZodString;
456
+ capabilityDigest: z.ZodString;
457
+ }, z.core.$strip>;
458
+ survey: z.ZodObject<{
459
+ key: z.ZodOptional<z.ZodString>;
460
+ locales: z.ZodArray<z.ZodString>;
461
+ itemCount: z.ZodNumber;
462
+ selectedLocale: z.ZodString;
463
+ }, z.core.$strip>;
464
+ focus: z.ZodOptional<z.ZodObject<{
465
+ item: z.ZodObject<{
466
+ id: z.ZodString;
467
+ key: z.ZodString;
468
+ fullKey: z.ZodString;
469
+ itemType: z.ZodString;
470
+ itemLabel: z.ZodOptional<z.ZodString>;
471
+ visibleText: z.ZodArray<z.ZodObject<{
472
+ locale: z.ZodString;
473
+ contentKey: z.ZodString;
474
+ text: z.ZodString;
475
+ }, z.core.$strip>>;
476
+ visibleTextTruncated: z.ZodBoolean;
477
+ }, z.core.$strip>;
478
+ parent: z.ZodOptional<z.ZodObject<{
479
+ id: z.ZodString;
480
+ key: z.ZodString;
481
+ fullKey: z.ZodString;
482
+ itemType: z.ZodString;
483
+ itemLabel: z.ZodOptional<z.ZodString>;
484
+ visibleText: z.ZodArray<z.ZodObject<{
485
+ locale: z.ZodString;
486
+ contentKey: z.ZodString;
487
+ text: z.ZodString;
488
+ }, z.core.$strip>>;
489
+ visibleTextTruncated: z.ZodBoolean;
490
+ }, z.core.$strip>>;
491
+ ancestorPath: z.ZodArray<z.ZodObject<{
492
+ id: z.ZodString;
493
+ key: z.ZodString;
494
+ fullKey: z.ZodString;
495
+ itemType: z.ZodString;
496
+ itemLabel: z.ZodOptional<z.ZodString>;
497
+ visibleText: z.ZodArray<z.ZodObject<{
498
+ locale: z.ZodString;
499
+ contentKey: z.ZodString;
500
+ text: z.ZodString;
501
+ }, z.core.$strip>>;
502
+ visibleTextTruncated: z.ZodBoolean;
503
+ }, z.core.$strip>>;
504
+ siblingKeys: z.ZodArray<z.ZodString>;
505
+ siblingItems: z.ZodArray<z.ZodObject<{
506
+ id: z.ZodString;
507
+ key: z.ZodString;
508
+ fullKey: z.ZodString;
509
+ itemType: z.ZodString;
510
+ itemLabel: z.ZodOptional<z.ZodString>;
511
+ visibleText: z.ZodArray<z.ZodObject<{
512
+ locale: z.ZodString;
513
+ contentKey: z.ZodString;
514
+ text: z.ZodString;
515
+ }, z.core.$strip>>;
516
+ visibleTextTruncated: z.ZodBoolean;
517
+ }, z.core.$strip>>;
518
+ siblingItemCount: z.ZodNumber;
519
+ siblingItemsTruncated: z.ZodBoolean;
520
+ relatedItems: z.ZodArray<z.ZodObject<{
521
+ id: z.ZodString;
522
+ key: z.ZodString;
523
+ fullKey: z.ZodString;
524
+ itemType: z.ZodString;
525
+ itemLabel: z.ZodOptional<z.ZodString>;
526
+ visibleText: z.ZodArray<z.ZodObject<{
527
+ locale: z.ZodString;
528
+ contentKey: z.ZodString;
529
+ text: z.ZodString;
530
+ }, z.core.$strip>>;
531
+ visibleTextTruncated: z.ZodBoolean;
532
+ }, z.core.$strip>>;
533
+ relatedItemCount: z.ZodNumber;
534
+ relatedItemsTruncated: z.ZodBoolean;
535
+ }, z.core.$strip>>;
536
+ naming: z.ZodOptional<z.ZodObject<{
537
+ keyExamples: z.ZodArray<z.ZodObject<{
538
+ itemId: z.ZodString;
539
+ itemType: z.ZodString;
540
+ key: z.ZodString;
541
+ relationship: z.ZodEnum<{
542
+ survey: "survey";
543
+ sibling: "sibling";
544
+ "same-type": "same-type";
545
+ }>;
546
+ }, z.core.$strip>>;
547
+ keyExampleCount: z.ZodNumber;
548
+ keyExamplesTruncated: z.ZodBoolean;
549
+ labelExamples: z.ZodArray<z.ZodObject<{
550
+ itemId: z.ZodString;
551
+ itemType: z.ZodString;
552
+ key: z.ZodString;
553
+ label: z.ZodString;
554
+ relationship: z.ZodEnum<{
555
+ survey: "survey";
556
+ sibling: "sibling";
557
+ "same-type": "same-type";
558
+ }>;
559
+ }, z.core.$strip>>;
560
+ labelExampleCount: z.ZodNumber;
561
+ labelExamplesTruncated: z.ZodBoolean;
562
+ }, z.core.$strip>>;
563
+ translation: z.ZodOptional<z.ZodObject<{
564
+ examples: z.ZodArray<z.ZodObject<{
565
+ itemId: z.ZodString;
566
+ contentKey: z.ZodString;
567
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
568
+ }, z.core.$strip>>;
569
+ exampleCount: z.ZodNumber;
570
+ examplesTruncated: z.ZodBoolean;
571
+ }, z.core.$strip>>;
572
+ }, z.core.$strip>;
573
+ mode: z.ZodOptional<z.ZodEnum<{
574
+ background: "background";
575
+ user: "user";
576
+ }>>;
577
+ modelId: z.ZodOptional<z.ZodString>;
578
+ resourceId: z.ZodOptional<z.ZodString>;
579
+ surveyId: z.ZodOptional<z.ZodString>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ taskId: z.ZodLiteral<"translate-content">;
582
+ input: z.ZodObject<{
583
+ sourceLocale: z.ZodString;
584
+ targetLocales: z.ZodArray<z.ZodString>;
585
+ entries: z.ZodArray<z.ZodObject<{
586
+ id: z.ZodString;
587
+ text: z.ZodString;
588
+ kind: z.ZodString;
589
+ }, z.core.$strip>>;
590
+ }, z.core.$strip>;
591
+ context: z.ZodObject<{
592
+ document: z.ZodObject<{
593
+ revision: z.ZodNumber;
594
+ contentHash: z.ZodString;
595
+ capabilityDigest: z.ZodString;
596
+ }, z.core.$strip>;
597
+ survey: z.ZodObject<{
598
+ key: z.ZodOptional<z.ZodString>;
599
+ locales: z.ZodArray<z.ZodString>;
600
+ itemCount: z.ZodNumber;
601
+ selectedLocale: z.ZodString;
602
+ }, z.core.$strip>;
603
+ focus: z.ZodOptional<z.ZodObject<{
604
+ item: z.ZodObject<{
605
+ id: z.ZodString;
606
+ key: z.ZodString;
607
+ fullKey: z.ZodString;
608
+ itemType: z.ZodString;
609
+ itemLabel: z.ZodOptional<z.ZodString>;
610
+ visibleText: z.ZodArray<z.ZodObject<{
611
+ locale: z.ZodString;
612
+ contentKey: z.ZodString;
613
+ text: z.ZodString;
614
+ }, z.core.$strip>>;
615
+ visibleTextTruncated: z.ZodBoolean;
616
+ }, z.core.$strip>;
617
+ parent: z.ZodOptional<z.ZodObject<{
618
+ id: z.ZodString;
619
+ key: z.ZodString;
620
+ fullKey: z.ZodString;
621
+ itemType: z.ZodString;
622
+ itemLabel: z.ZodOptional<z.ZodString>;
623
+ visibleText: z.ZodArray<z.ZodObject<{
624
+ locale: z.ZodString;
625
+ contentKey: z.ZodString;
626
+ text: z.ZodString;
627
+ }, z.core.$strip>>;
628
+ visibleTextTruncated: z.ZodBoolean;
629
+ }, z.core.$strip>>;
630
+ ancestorPath: z.ZodArray<z.ZodObject<{
631
+ id: z.ZodString;
632
+ key: z.ZodString;
633
+ fullKey: z.ZodString;
634
+ itemType: z.ZodString;
635
+ itemLabel: z.ZodOptional<z.ZodString>;
636
+ visibleText: z.ZodArray<z.ZodObject<{
637
+ locale: z.ZodString;
638
+ contentKey: z.ZodString;
639
+ text: z.ZodString;
640
+ }, z.core.$strip>>;
641
+ visibleTextTruncated: z.ZodBoolean;
642
+ }, z.core.$strip>>;
643
+ siblingKeys: z.ZodArray<z.ZodString>;
644
+ siblingItems: z.ZodArray<z.ZodObject<{
645
+ id: z.ZodString;
646
+ key: z.ZodString;
647
+ fullKey: z.ZodString;
648
+ itemType: z.ZodString;
649
+ itemLabel: z.ZodOptional<z.ZodString>;
650
+ visibleText: z.ZodArray<z.ZodObject<{
651
+ locale: z.ZodString;
652
+ contentKey: z.ZodString;
653
+ text: z.ZodString;
654
+ }, z.core.$strip>>;
655
+ visibleTextTruncated: z.ZodBoolean;
656
+ }, z.core.$strip>>;
657
+ siblingItemCount: z.ZodNumber;
658
+ siblingItemsTruncated: z.ZodBoolean;
659
+ relatedItems: z.ZodArray<z.ZodObject<{
660
+ id: z.ZodString;
661
+ key: z.ZodString;
662
+ fullKey: z.ZodString;
663
+ itemType: z.ZodString;
664
+ itemLabel: z.ZodOptional<z.ZodString>;
665
+ visibleText: z.ZodArray<z.ZodObject<{
666
+ locale: z.ZodString;
667
+ contentKey: z.ZodString;
668
+ text: z.ZodString;
669
+ }, z.core.$strip>>;
670
+ visibleTextTruncated: z.ZodBoolean;
671
+ }, z.core.$strip>>;
672
+ relatedItemCount: z.ZodNumber;
673
+ relatedItemsTruncated: z.ZodBoolean;
674
+ }, z.core.$strip>>;
675
+ naming: z.ZodOptional<z.ZodObject<{
676
+ keyExamples: z.ZodArray<z.ZodObject<{
677
+ itemId: z.ZodString;
678
+ itemType: z.ZodString;
679
+ key: z.ZodString;
680
+ relationship: z.ZodEnum<{
681
+ survey: "survey";
682
+ sibling: "sibling";
683
+ "same-type": "same-type";
684
+ }>;
685
+ }, z.core.$strip>>;
686
+ keyExampleCount: z.ZodNumber;
687
+ keyExamplesTruncated: z.ZodBoolean;
688
+ labelExamples: z.ZodArray<z.ZodObject<{
689
+ itemId: z.ZodString;
690
+ itemType: z.ZodString;
691
+ key: z.ZodString;
692
+ label: z.ZodString;
693
+ relationship: z.ZodEnum<{
694
+ survey: "survey";
695
+ sibling: "sibling";
696
+ "same-type": "same-type";
697
+ }>;
698
+ }, z.core.$strip>>;
699
+ labelExampleCount: z.ZodNumber;
700
+ labelExamplesTruncated: z.ZodBoolean;
701
+ }, z.core.$strip>>;
702
+ translation: z.ZodOptional<z.ZodObject<{
703
+ examples: z.ZodArray<z.ZodObject<{
704
+ itemId: z.ZodString;
705
+ contentKey: z.ZodString;
706
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
707
+ }, z.core.$strip>>;
708
+ exampleCount: z.ZodNumber;
709
+ examplesTruncated: z.ZodBoolean;
710
+ }, z.core.$strip>>;
711
+ }, z.core.$strip>;
712
+ mode: z.ZodOptional<z.ZodEnum<{
713
+ background: "background";
714
+ user: "user";
715
+ }>>;
716
+ modelId: z.ZodOptional<z.ZodString>;
717
+ resourceId: z.ZodOptional<z.ZodString>;
718
+ surveyId: z.ZodOptional<z.ZodString>;
719
+ }, z.core.$strip>], "taskId">;
720
+ type SurveyAssistantTaskRequest = z.infer<typeof surveyAssistantTaskRequestSchema>;
721
+ //#endregion
722
+ //#region src/protocol/models.d.ts
723
+ declare const surveyAssistantModelOptionSchema: z.ZodObject<{
724
+ id: z.ZodString;
725
+ label: z.ZodString;
726
+ }, z.core.$strip>;
727
+ declare const surveyAssistantModelCatalogSchema: z.ZodObject<{
728
+ defaultModelId: z.ZodString;
729
+ models: z.ZodArray<z.ZodObject<{
730
+ id: z.ZodString;
731
+ label: z.ZodString;
732
+ }, z.core.$strip>>;
733
+ }, z.core.$strip>;
734
+ type SurveyAssistantModelOption = z.infer<typeof surveyAssistantModelOptionSchema>;
735
+ type SurveyAssistantModelCatalog = z.infer<typeof surveyAssistantModelCatalogSchema>;
736
+ //#endregion
737
+ export { surveyAssistantTaskRequestSchema as A, SurveyAssistantThreadTranscript as B, surveyAssistantSuggestItemKeyResultSchema as C, surveyAssistantTaskContextSchema as D, surveyAssistantSuggestedTextSchema as E, SURVEY_ASSISTANT_ATTACHMENT_PART_TYPE as F, surveyAssistantThreadTranscriptSchema as G, createSurveyAssistantThreadInputSchema as H, SurveyAssistantAttachmentReference as I, SurveyAssistantErrorInfo as J, updateSurveyAssistantThreadInputSchema as K, SurveyAssistantThread as L, surveyAssistantTranslateContentInputSchema as M, surveyAssistantTranslateContentResultSchema as N, surveyAssistantTaskInvocationModeSchema as O, CreateSurveyAssistantThreadInput as P, surveyAssistantErrorInfoSchema as Q, SurveyAssistantThreadList as R, surveyAssistantSuggestItemKeyInputSchema as S, surveyAssistantSuggestItemLabelResultSchema as T, surveyAssistantThreadListSchema as U, UpdateSurveyAssistantThreadInput as V, surveyAssistantThreadSchema as W, serializeSurveyAssistantError as X, parseSurveyAssistantError as Y, surveyAssistantErrorCodeSchema as Z, SurveyAssistantTranslateContentEntry as _, SurveyAssistantKeySuggestion as a, surveyAssistantKeySuggestionCategorySchema as b, SurveyAssistantSuggestItemKeyInput as c, SurveyAssistantSuggestItemLabelResult as d, SurveyAssistantSuggestedText as f, SurveyAssistantTaskRequest as g, SurveyAssistantTaskItemSummary as h, surveyAssistantModelOptionSchema as i, surveyAssistantTranslateContentEntrySchema as j, surveyAssistantTaskItemSummarySchema as k, SurveyAssistantSuggestItemKeyResult as l, SurveyAssistantTaskInvocationMode as m, SurveyAssistantModelOption as n, SurveyAssistantKeySuggestionCategory as o, SurveyAssistantTaskContext as p, SurveyAssistantErrorCode as q, surveyAssistantModelCatalogSchema as r, SurveyAssistantLabelSuggestion as s, SurveyAssistantModelCatalog as t, SurveyAssistantSuggestItemLabelInput as u, SurveyAssistantTranslateContentInput as v, surveyAssistantSuggestItemLabelInputSchema as w, surveyAssistantKeySuggestionSchema as x, SurveyAssistantTranslateContentResult as y, SurveyAssistantThreadTitleMode as z };
738
+ //# sourceMappingURL=index-D4OitUg4.d.mts.map