@case-framework/survey-assistant 0.7.0 → 0.9.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.
- package/README.md +58 -3
- package/dist/{attachments-B0hg3vpT.mjs → attachments-BuNni5vB.mjs} +1 -1
- package/dist/{attachments-B0hg3vpT.mjs.map → attachments-BuNni5vB.mjs.map} +1 -1
- package/dist/{authoring-references-BJQ_1nMX.mjs → authoring-references-CmwLc_C8.mjs} +49 -32
- package/dist/authoring-references-CmwLc_C8.mjs.map +1 -0
- package/dist/capabilities-D55dq-fO.mjs +582 -0
- package/dist/capabilities-D55dq-fO.mjs.map +1 -0
- package/dist/capabilities-default.d.mts +5 -12
- package/dist/capabilities-default.d.mts.map +1 -1
- package/dist/capabilities-default.mjs +2 -411
- package/dist/capabilities-z95e1mti.d.mts +117 -0
- package/dist/capabilities-z95e1mti.d.mts.map +1 -0
- package/dist/{constants-0UHGFcRJ.mjs → constants-Ct-vv9cu.mjs} +1 -1
- package/dist/{constants-0UHGFcRJ.mjs.map → constants-Ct-vv9cu.mjs.map} +1 -1
- package/dist/{constants-Be91Gay9.d.mts → constants-HL_klgJl.d.mts} +7 -28
- package/dist/constants-HL_klgJl.d.mts.map +1 -0
- package/dist/{controller-proxy-BH05e-C2.mjs → controller-proxy-BQ1YsVxJ.mjs} +12 -21
- package/dist/controller-proxy-BQ1YsVxJ.mjs.map +1 -0
- package/dist/controller-proxy-Cmzdr9tV.d.mts +65 -0
- package/dist/controller-proxy-Cmzdr9tV.d.mts.map +1 -0
- package/dist/default-D22AKTqE.mjs +233 -0
- package/dist/default-D22AKTqE.mjs.map +1 -0
- package/dist/{digest-SJmoYVaK.d.mts → digest-FnTTDBq2.d.mts} +2 -3
- package/dist/digest-FnTTDBq2.d.mts.map +1 -0
- package/dist/digest.d.mts +1 -1
- package/dist/digest.mjs.map +1 -1
- package/dist/engine-D950TfvC.mjs +3098 -0
- package/dist/engine-D950TfvC.mjs.map +1 -0
- package/dist/engine.d.mts +4 -3
- package/dist/engine.mjs +3 -3
- package/dist/{fair-guidance-CRYCRxQm.mjs → fair-guidance-BmO4PswW.mjs} +1 -1
- package/dist/{fair-guidance-CRYCRxQm.mjs.map → fair-guidance-BmO4PswW.mjs.map} +1 -1
- package/dist/{index-l_EK4yK7.d.mts → index-B8TLBd1G.d.mts} +18 -72
- package/dist/index-B8TLBd1G.d.mts.map +1 -0
- package/dist/index-CaX3hZmr.d.mts +23813 -0
- package/dist/index-CaX3hZmr.d.mts.map +1 -0
- package/dist/{index-x0qprHgK.d.mts → index-CeUlGkoU.d.mts} +58 -28
- package/dist/index-CeUlGkoU.d.mts.map +1 -0
- package/dist/{index-nhrgbgO5.d.mts → index-DYHdvSE8.d.mts} +347 -88
- package/dist/index-DYHdvSE8.d.mts.map +1 -0
- package/dist/lifecycle-DFzxVxpq.d.mts +54346 -0
- package/dist/lifecycle-DFzxVxpq.d.mts.map +1 -0
- package/dist/{memory-thread-repository-KWHQWFEW.mjs → memory-thread-repository-DmLadygY.mjs} +60 -30
- package/dist/memory-thread-repository-DmLadygY.mjs.map +1 -0
- package/dist/protocol-BQ7uIDYT.mjs +569 -0
- package/dist/protocol-BQ7uIDYT.mjs.map +1 -0
- package/dist/protocol.d.mts +4 -4
- package/dist/protocol.mjs +4 -3
- package/dist/{react-B3ybjJ-X.mjs → react-DybJ5pWw.mjs} +159 -46
- package/dist/react-DybJ5pWw.mjs.map +1 -0
- package/dist/react-integration.d.mts +2 -2
- package/dist/react-integration.mjs +2 -2
- package/dist/react.d.mts +3 -3
- package/dist/react.mjs +3 -3
- package/dist/references/assistant-operations.md +224 -180
- package/dist/references/core-rules.md +6 -3
- package/dist/references/element-types.md +189 -0
- package/dist/references/expressions.md +307 -168
- package/dist/references/fair-by-design.md +9 -9
- package/dist/references/follow-ups.md +151 -0
- package/dist/references/localization.md +26 -12
- package/dist/references/response-variables.md +38 -0
- package/dist/references/rich-text-content.md +22 -43
- package/dist/references/source-material-surveys.md +20 -24
- package/dist/references/survey-data-model.md +36 -102
- package/dist/{request-context-CG4SWijt.mjs → request-context-KVh8VjgH.mjs} +4 -10
- package/dist/request-context-KVh8VjgH.mjs.map +1 -0
- package/dist/{request-guardrails-TmgQtqp4.mjs → request-guardrails-C0ugBOp0.mjs} +6 -5
- package/dist/request-guardrails-C0ugBOp0.mjs.map +1 -0
- package/dist/server-agent.d.mts +62 -43
- package/dist/server-agent.d.mts.map +1 -1
- package/dist/server-agent.mjs +73 -40
- package/dist/server-agent.mjs.map +1 -1
- package/dist/server-runtime.d.mts +24 -42
- package/dist/server-runtime.d.mts.map +1 -1
- package/dist/server-runtime.mjs +12 -12
- package/dist/server-runtime.mjs.map +1 -1
- package/dist/server-tasks.d.mts +2 -2
- package/dist/server-tasks.mjs +2 -313
- package/dist/server-tools.d.mts +1 -1
- package/dist/server-tools.mjs +1 -1
- package/dist/server.d.mts +14 -36
- package/dist/server.d.mts.map +1 -1
- package/dist/server.mjs +5 -5
- package/dist/server.mjs.map +1 -1
- package/dist/storage-postgres.d.mts +9 -25
- package/dist/storage-postgres.d.mts.map +1 -1
- package/dist/storage-postgres.mjs +5 -4
- package/dist/storage-postgres.mjs.map +1 -1
- package/dist/tasks-Coh5N027.mjs +397 -0
- package/dist/tasks-Coh5N027.mjs.map +1 -0
- package/dist/{tasks-CYqrcaRO.d.mts → tasks-wb9M-bak.d.mts} +25 -41
- package/dist/tasks-wb9M-bak.d.mts.map +1 -0
- package/dist/thread-documents-DrHbaXqP.d.mts +119 -0
- package/dist/thread-documents-DrHbaXqP.d.mts.map +1 -0
- package/dist/{thread-handlers-DBAaU7BA.d.mts → thread-handlers-C3Iya92v.d.mts} +9 -40
- package/dist/thread-handlers-C3Iya92v.d.mts.map +1 -0
- package/dist/{tools-BvSovehT.mjs → tools-D0KBDolR.mjs} +677 -459
- package/dist/tools-D0KBDolR.mjs.map +1 -0
- package/dist/turn-survey-draft-B34lggSG.d.mts +185 -0
- package/dist/turn-survey-draft-B34lggSG.d.mts.map +1 -0
- package/dist/ui.css +1 -1
- package/dist/ui.d.mts +15 -54
- package/dist/ui.d.mts.map +1 -1
- package/dist/ui.mjs +203 -156
- package/dist/ui.mjs.map +1 -1
- package/docs/integration.md +11 -1
- package/package.json +41 -36
- package/dist/authoring-references-BJQ_1nMX.mjs.map +0 -1
- package/dist/capabilities-1KNnNO1_.mjs +0 -73
- package/dist/capabilities-1KNnNO1_.mjs.map +0 -1
- package/dist/capabilities-DVTfogjv.d.mts +0 -193
- package/dist/capabilities-DVTfogjv.d.mts.map +0 -1
- package/dist/capabilities-default.mjs.map +0 -1
- package/dist/constants-Be91Gay9.d.mts.map +0 -1
- package/dist/controller-proxy-BH05e-C2.mjs.map +0 -1
- package/dist/controller-proxy-Bd0ZHBPF.d.mts +0 -85
- package/dist/controller-proxy-Bd0ZHBPF.d.mts.map +0 -1
- package/dist/digest-SJmoYVaK.d.mts.map +0 -1
- package/dist/engine-Bo85Oyj0.mjs +0 -6723
- package/dist/engine-Bo85Oyj0.mjs.map +0 -1
- package/dist/index-Tnqv-yKW.d.mts +0 -777
- package/dist/index-Tnqv-yKW.d.mts.map +0 -1
- package/dist/index-l_EK4yK7.d.mts.map +0 -1
- package/dist/index-nhrgbgO5.d.mts.map +0 -1
- package/dist/index-x0qprHgK.d.mts.map +0 -1
- package/dist/lifecycle-Bx0aq_4S.d.mts +0 -529
- package/dist/lifecycle-Bx0aq_4S.d.mts.map +0 -1
- package/dist/memory-thread-repository-KWHQWFEW.mjs.map +0 -1
- package/dist/protocol-BhzQbx81.mjs +0 -1173
- package/dist/protocol-BhzQbx81.mjs.map +0 -1
- package/dist/react-B3ybjJ-X.mjs.map +0 -1
- package/dist/references/embedded-forms.md +0 -126
- package/dist/references/item-types.md +0 -407
- package/dist/request-context-CG4SWijt.mjs.map +0 -1
- package/dist/request-guardrails-TmgQtqp4.mjs.map +0 -1
- package/dist/server-tasks.mjs.map +0 -1
- package/dist/tasks-CYqrcaRO.d.mts.map +0 -1
- package/dist/thread-documents-rmd6nyX9.d.mts +0 -107
- package/dist/thread-documents-rmd6nyX9.d.mts.map +0 -1
- package/dist/thread-handlers-DBAaU7BA.d.mts.map +0 -1
- package/dist/tools-BvSovehT.mjs.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import "./capabilities-z95e1mti.mjs";
|
|
2
|
+
import { Et as SurveyEditorUITaskShape } from "./lifecycle-DFzxVxpq.mjs";
|
|
1
3
|
import { z } from "zod";
|
|
2
|
-
|
|
4
|
+
import { jsonValueSchema } from "@case-framework/survey-core/schema";
|
|
5
|
+
import { Content } from "@case-framework/survey-core";
|
|
6
|
+
import { ResponseNamingEdit, ResponseSettingsEdit } from "@case-framework/survey-core/editor";
|
|
3
7
|
//#region src/protocol/errors.d.ts
|
|
4
8
|
declare const surveyAssistantErrorCodeSchema: z.ZodEnum<{
|
|
5
9
|
authorization_failed: "authorization_failed";
|
|
@@ -43,6 +47,11 @@ declare const SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES: readonly ["application/pd
|
|
|
43
47
|
type SurveyAssistantAttachmentMediaType = (typeof SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES)[number];
|
|
44
48
|
declare const isSurveyAssistantAttachmentMediaType: (mediaType: string) => mediaType is SurveyAssistantAttachmentMediaType;
|
|
45
49
|
//#endregion
|
|
50
|
+
//#region src/protocol/content.d.ts
|
|
51
|
+
declare const surveyContentSchema: z.ZodType<Content>;
|
|
52
|
+
type SurveyContent = z.infer<typeof surveyContentSchema>;
|
|
53
|
+
type JsonValue$1 = z.infer<typeof jsonValueSchema>;
|
|
54
|
+
//#endregion
|
|
46
55
|
//#region src/protocol/threads.d.ts
|
|
47
56
|
declare const SURVEY_ASSISTANT_ATTACHMENT_PART_TYPE: "data-survey-assistant-attachment";
|
|
48
57
|
interface SurveyAssistantAttachmentReference {
|
|
@@ -60,6 +69,7 @@ declare const surveyAssistantThreadSchema: z.ZodObject<{
|
|
|
60
69
|
}>;
|
|
61
70
|
createdAt: z.ZodString;
|
|
62
71
|
updatedAt: z.ZodString;
|
|
72
|
+
task: z.ZodOptional<z.ZodType<SurveyEditorUITaskShape, unknown, z.core.$ZodTypeInternals<SurveyEditorUITaskShape, unknown>>>;
|
|
63
73
|
}, z.core.$strip>;
|
|
64
74
|
declare const surveyAssistantThreadListSchema: z.ZodObject<{
|
|
65
75
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
@@ -72,6 +82,7 @@ declare const surveyAssistantThreadListSchema: z.ZodObject<{
|
|
|
72
82
|
}>;
|
|
73
83
|
createdAt: z.ZodString;
|
|
74
84
|
updatedAt: z.ZodString;
|
|
85
|
+
task: z.ZodOptional<z.ZodType<SurveyEditorUITaskShape, unknown, z.core.$ZodTypeInternals<SurveyEditorUITaskShape, unknown>>>;
|
|
75
86
|
}, z.core.$strip>>;
|
|
76
87
|
}, z.core.$strip>;
|
|
77
88
|
declare const surveyAssistantThreadTranscriptSchema: z.ZodObject<{
|
|
@@ -85,11 +96,13 @@ declare const surveyAssistantThreadTranscriptSchema: z.ZodObject<{
|
|
|
85
96
|
}>;
|
|
86
97
|
createdAt: z.ZodString;
|
|
87
98
|
updatedAt: z.ZodString;
|
|
99
|
+
task: z.ZodOptional<z.ZodType<SurveyEditorUITaskShape, unknown, z.core.$ZodTypeInternals<SurveyEditorUITaskShape, unknown>>>;
|
|
88
100
|
}, z.core.$strip>;
|
|
89
101
|
messages: z.ZodArray<z.ZodUnknown>;
|
|
90
102
|
}, z.core.$strip>;
|
|
91
103
|
declare const createSurveyAssistantThreadInputSchema: z.ZodObject<{
|
|
92
104
|
title: z.ZodOptional<z.ZodString>;
|
|
105
|
+
task: z.ZodOptional<z.ZodType<SurveyEditorUITaskShape, unknown, z.core.$ZodTypeInternals<SurveyEditorUITaskShape, unknown>>>;
|
|
93
106
|
}, z.core.$strip>;
|
|
94
107
|
declare const updateSurveyAssistantThreadInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
95
108
|
mode: z.ZodLiteral<"automatic">;
|
|
@@ -105,6 +118,50 @@ type SurveyAssistantThreadTranscript = z.infer<typeof surveyAssistantThreadTrans
|
|
|
105
118
|
type CreateSurveyAssistantThreadInput = z.infer<typeof createSurveyAssistantThreadInputSchema>;
|
|
106
119
|
type UpdateSurveyAssistantThreadInput = z.infer<typeof updateSurveyAssistantThreadInputSchema>;
|
|
107
120
|
//#endregion
|
|
121
|
+
//#region src/protocol/response-settings.d.ts
|
|
122
|
+
declare const responseNamingEditSchema: z.ZodType<ResponseNamingEdit>;
|
|
123
|
+
declare const responseExportSettingsSchema: z.ZodObject<{
|
|
124
|
+
mode: z.ZodString;
|
|
125
|
+
include: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
categorical: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
codes: "codes";
|
|
128
|
+
labels: "labels";
|
|
129
|
+
ids: "ids";
|
|
130
|
+
}>>;
|
|
131
|
+
multiple: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
json: "json";
|
|
133
|
+
delimited: "delimited";
|
|
134
|
+
indicators: "indicators";
|
|
135
|
+
}>>;
|
|
136
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
137
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
138
|
+
optionCodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
139
|
+
optionLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
140
|
+
booleanValues: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
true: z.ZodString;
|
|
142
|
+
false: z.ZodString;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
durationUnit: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
seconds: "seconds";
|
|
147
|
+
minutes: "minutes";
|
|
148
|
+
hours: "hours";
|
|
149
|
+
days: "days";
|
|
150
|
+
weeks: "weeks";
|
|
151
|
+
months: "months";
|
|
152
|
+
years: "years";
|
|
153
|
+
}>>;
|
|
154
|
+
dateFormat: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
pattern: z.ZodString;
|
|
156
|
+
}, z.core.$strip>>;
|
|
157
|
+
maskText: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
declare const responseSettingsEditSchema: z.ZodType<ResponseSettingsEdit>;
|
|
160
|
+
declare const responseSettingsChangesSchema: z.ZodObject<{
|
|
161
|
+
naming: z.ZodArray<z.ZodType<ResponseNamingEdit, unknown, z.core.$ZodTypeInternals<ResponseNamingEdit, unknown>>>;
|
|
162
|
+
settings: z.ZodArray<z.ZodType<ResponseSettingsEdit, unknown, z.core.$ZodTypeInternals<ResponseSettingsEdit, unknown>>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
//#endregion
|
|
108
165
|
//#region src/protocol/tasks.d.ts
|
|
109
166
|
declare const surveyAssistantTaskInvocationModeSchema: z.ZodEnum<{
|
|
110
167
|
background: "background";
|
|
@@ -116,8 +173,8 @@ declare const surveyAssistantSuggestedTextSchema: z.ZodObject<{
|
|
|
116
173
|
}, z.core.$strip>;
|
|
117
174
|
type SurveyAssistantSuggestedText = z.infer<typeof surveyAssistantSuggestedTextSchema>;
|
|
118
175
|
declare const surveyAssistantKeySuggestionCategorySchema: z.ZodEnum<{
|
|
119
|
-
compact: "compact";
|
|
120
176
|
"survey-pattern": "survey-pattern";
|
|
177
|
+
compact: "compact";
|
|
121
178
|
preferred: "preferred";
|
|
122
179
|
fair: "fair";
|
|
123
180
|
}>;
|
|
@@ -125,35 +182,36 @@ type SurveyAssistantKeySuggestionCategory = z.infer<typeof surveyAssistantKeySug
|
|
|
125
182
|
declare const surveyAssistantKeySuggestionSchema: z.ZodObject<{
|
|
126
183
|
text: z.ZodString;
|
|
127
184
|
category: z.ZodEnum<{
|
|
128
|
-
compact: "compact";
|
|
129
185
|
"survey-pattern": "survey-pattern";
|
|
186
|
+
compact: "compact";
|
|
130
187
|
preferred: "preferred";
|
|
131
188
|
fair: "fair";
|
|
132
189
|
}>;
|
|
133
190
|
rationale: z.ZodOptional<z.ZodString>;
|
|
134
191
|
}, z.core.$strip>;
|
|
135
192
|
type SurveyAssistantKeySuggestion = z.infer<typeof surveyAssistantKeySuggestionSchema>;
|
|
136
|
-
declare const
|
|
193
|
+
declare const surveyAssistantSuggestResponseNameInputSchema: z.ZodObject<{
|
|
137
194
|
itemId: z.ZodString;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
195
|
+
slotId: z.ZodString;
|
|
196
|
+
draftName: z.ZodString;
|
|
197
|
+
currentName: z.ZodString;
|
|
198
|
+
existingNames: z.ZodArray<z.ZodString>;
|
|
141
199
|
maxSuggestions: z.ZodOptional<z.ZodNumber>;
|
|
142
200
|
}, z.core.$strip>;
|
|
143
|
-
type
|
|
144
|
-
declare const
|
|
201
|
+
type SurveyAssistantSuggestResponseNameInput = z.infer<typeof surveyAssistantSuggestResponseNameInputSchema>;
|
|
202
|
+
declare const surveyAssistantSuggestResponseNameResultSchema: z.ZodObject<{
|
|
145
203
|
suggestions: z.ZodArray<z.ZodObject<{
|
|
146
204
|
text: z.ZodString;
|
|
147
205
|
category: z.ZodEnum<{
|
|
148
|
-
compact: "compact";
|
|
149
206
|
"survey-pattern": "survey-pattern";
|
|
207
|
+
compact: "compact";
|
|
150
208
|
preferred: "preferred";
|
|
151
209
|
fair: "fair";
|
|
152
210
|
}>;
|
|
153
211
|
rationale: z.ZodOptional<z.ZodString>;
|
|
154
212
|
}, z.core.$strip>>;
|
|
155
213
|
}, z.core.$strip>;
|
|
156
|
-
type
|
|
214
|
+
type SurveyAssistantSuggestResponseNameResult = z.infer<typeof surveyAssistantSuggestResponseNameResultSchema>;
|
|
157
215
|
type SurveyAssistantLabelSuggestion = SurveyAssistantSuggestedText;
|
|
158
216
|
declare const surveyAssistantSuggestItemLabelInputSchema: z.ZodObject<{
|
|
159
217
|
itemId: z.ZodString;
|
|
@@ -191,18 +249,34 @@ declare const surveyAssistantTranslateContentResultSchema: z.ZodObject<{
|
|
|
191
249
|
type SurveyAssistantTranslateContentResult = z.infer<typeof surveyAssistantTranslateContentResultSchema>;
|
|
192
250
|
declare const surveyAssistantTaskItemSummarySchema: z.ZodObject<{
|
|
193
251
|
id: z.ZodString;
|
|
194
|
-
|
|
195
|
-
|
|
252
|
+
editorName: z.ZodString;
|
|
253
|
+
breadcrumb: z.ZodString;
|
|
196
254
|
itemType: z.ZodString;
|
|
197
255
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
198
256
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
199
257
|
locale: z.ZodString;
|
|
200
|
-
|
|
258
|
+
ownerId: z.ZodString;
|
|
259
|
+
role: z.ZodString;
|
|
201
260
|
text: z.ZodString;
|
|
202
261
|
}, z.core.$strip>>;
|
|
203
262
|
visibleTextTruncated: z.ZodBoolean;
|
|
204
263
|
}, z.core.$strip>;
|
|
205
264
|
type SurveyAssistantTaskItemSummary = z.infer<typeof surveyAssistantTaskItemSummarySchema>;
|
|
265
|
+
declare const surveyAssistantSuggestResponseSettingsInputSchema: z.ZodObject<{
|
|
266
|
+
slotIds: z.ZodArray<z.ZodString>;
|
|
267
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
268
|
+
"survey-pattern": "survey-pattern";
|
|
269
|
+
compact: "compact";
|
|
270
|
+
preferred: "preferred";
|
|
271
|
+
fair: "fair";
|
|
272
|
+
}>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
type SurveyAssistantSuggestResponseSettingsInput = z.infer<typeof surveyAssistantSuggestResponseSettingsInputSchema>;
|
|
275
|
+
declare const surveyAssistantSuggestResponseSettingsResultSchema: z.ZodObject<{
|
|
276
|
+
naming: z.ZodArray<z.ZodType<import("@case-framework/survey-core/editor").ResponseNamingEdit, unknown, z.core.$ZodTypeInternals<import("@case-framework/survey-core/editor").ResponseNamingEdit, unknown>>>;
|
|
277
|
+
settings: z.ZodArray<z.ZodType<import("@case-framework/survey-core/editor").ResponseSettingsEdit, unknown, z.core.$ZodTypeInternals<import("@case-framework/survey-core/editor").ResponseSettingsEdit, unknown>>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
type SurveyAssistantSuggestResponseSettingsResult = z.infer<typeof responseSettingsChangesSchema>;
|
|
206
280
|
declare const surveyAssistantTaskContextSchema: z.ZodObject<{
|
|
207
281
|
document: z.ZodObject<{
|
|
208
282
|
revision: z.ZodNumber;
|
|
@@ -215,56 +289,63 @@ declare const surveyAssistantTaskContextSchema: z.ZodObject<{
|
|
|
215
289
|
itemCount: z.ZodNumber;
|
|
216
290
|
selectedLocale: z.ZodString;
|
|
217
291
|
}, z.core.$strip>;
|
|
292
|
+
responseVariables: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
293
|
+
existingVariableNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
294
|
+
responseOwners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
218
295
|
focus: z.ZodOptional<z.ZodObject<{
|
|
219
296
|
item: z.ZodObject<{
|
|
220
297
|
id: z.ZodString;
|
|
221
|
-
|
|
222
|
-
|
|
298
|
+
editorName: z.ZodString;
|
|
299
|
+
breadcrumb: z.ZodString;
|
|
223
300
|
itemType: z.ZodString;
|
|
224
301
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
225
302
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
226
303
|
locale: z.ZodString;
|
|
227
|
-
|
|
304
|
+
ownerId: z.ZodString;
|
|
305
|
+
role: z.ZodString;
|
|
228
306
|
text: z.ZodString;
|
|
229
307
|
}, z.core.$strip>>;
|
|
230
308
|
visibleTextTruncated: z.ZodBoolean;
|
|
231
309
|
}, z.core.$strip>;
|
|
232
310
|
parent: z.ZodOptional<z.ZodObject<{
|
|
233
311
|
id: z.ZodString;
|
|
234
|
-
|
|
235
|
-
|
|
312
|
+
editorName: z.ZodString;
|
|
313
|
+
breadcrumb: z.ZodString;
|
|
236
314
|
itemType: z.ZodString;
|
|
237
315
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
238
316
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
239
317
|
locale: z.ZodString;
|
|
240
|
-
|
|
318
|
+
ownerId: z.ZodString;
|
|
319
|
+
role: z.ZodString;
|
|
241
320
|
text: z.ZodString;
|
|
242
321
|
}, z.core.$strip>>;
|
|
243
322
|
visibleTextTruncated: z.ZodBoolean;
|
|
244
323
|
}, z.core.$strip>>;
|
|
245
324
|
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
246
325
|
id: z.ZodString;
|
|
247
|
-
|
|
248
|
-
|
|
326
|
+
editorName: z.ZodString;
|
|
327
|
+
breadcrumb: z.ZodString;
|
|
249
328
|
itemType: z.ZodString;
|
|
250
329
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
251
330
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
252
331
|
locale: z.ZodString;
|
|
253
|
-
|
|
332
|
+
ownerId: z.ZodString;
|
|
333
|
+
role: z.ZodString;
|
|
254
334
|
text: z.ZodString;
|
|
255
335
|
}, z.core.$strip>>;
|
|
256
336
|
visibleTextTruncated: z.ZodBoolean;
|
|
257
337
|
}, z.core.$strip>>;
|
|
258
|
-
|
|
338
|
+
siblingNames: z.ZodArray<z.ZodString>;
|
|
259
339
|
siblingItems: z.ZodArray<z.ZodObject<{
|
|
260
340
|
id: z.ZodString;
|
|
261
|
-
|
|
262
|
-
|
|
341
|
+
editorName: z.ZodString;
|
|
342
|
+
breadcrumb: z.ZodString;
|
|
263
343
|
itemType: z.ZodString;
|
|
264
344
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
265
345
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
266
346
|
locale: z.ZodString;
|
|
267
|
-
|
|
347
|
+
ownerId: z.ZodString;
|
|
348
|
+
role: z.ZodString;
|
|
268
349
|
text: z.ZodString;
|
|
269
350
|
}, z.core.$strip>>;
|
|
270
351
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -273,13 +354,14 @@ declare const surveyAssistantTaskContextSchema: z.ZodObject<{
|
|
|
273
354
|
siblingItemsTruncated: z.ZodBoolean;
|
|
274
355
|
relatedItems: z.ZodArray<z.ZodObject<{
|
|
275
356
|
id: z.ZodString;
|
|
276
|
-
|
|
277
|
-
|
|
357
|
+
editorName: z.ZodString;
|
|
358
|
+
breadcrumb: z.ZodString;
|
|
278
359
|
itemType: z.ZodString;
|
|
279
360
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
280
361
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
281
362
|
locale: z.ZodString;
|
|
282
|
-
|
|
363
|
+
ownerId: z.ZodString;
|
|
364
|
+
role: z.ZodString;
|
|
283
365
|
text: z.ZodString;
|
|
284
366
|
}, z.core.$strip>>;
|
|
285
367
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -317,7 +399,8 @@ declare const surveyAssistantTaskContextSchema: z.ZodObject<{
|
|
|
317
399
|
translation: z.ZodOptional<z.ZodObject<{
|
|
318
400
|
examples: z.ZodArray<z.ZodObject<{
|
|
319
401
|
itemId: z.ZodString;
|
|
320
|
-
|
|
402
|
+
ownerId: z.ZodString;
|
|
403
|
+
role: z.ZodString;
|
|
321
404
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
322
405
|
}, z.core.$strip>>;
|
|
323
406
|
exampleCount: z.ZodNumber;
|
|
@@ -326,12 +409,161 @@ declare const surveyAssistantTaskContextSchema: z.ZodObject<{
|
|
|
326
409
|
}, z.core.$strip>;
|
|
327
410
|
type SurveyAssistantTaskContext = z.infer<typeof surveyAssistantTaskContextSchema>;
|
|
328
411
|
declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
329
|
-
taskId: z.ZodLiteral<"suggest-
|
|
412
|
+
taskId: z.ZodLiteral<"suggest-response-settings">;
|
|
413
|
+
input: z.ZodObject<{
|
|
414
|
+
slotIds: z.ZodArray<z.ZodString>;
|
|
415
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
416
|
+
"survey-pattern": "survey-pattern";
|
|
417
|
+
compact: "compact";
|
|
418
|
+
preferred: "preferred";
|
|
419
|
+
fair: "fair";
|
|
420
|
+
}>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
context: z.ZodObject<{
|
|
423
|
+
document: z.ZodObject<{
|
|
424
|
+
revision: z.ZodNumber;
|
|
425
|
+
contentHash: z.ZodString;
|
|
426
|
+
capabilityDigest: z.ZodString;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
survey: z.ZodObject<{
|
|
429
|
+
key: z.ZodOptional<z.ZodString>;
|
|
430
|
+
locales: z.ZodArray<z.ZodString>;
|
|
431
|
+
itemCount: z.ZodNumber;
|
|
432
|
+
selectedLocale: z.ZodString;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
responseVariables: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
435
|
+
existingVariableNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
436
|
+
responseOwners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
437
|
+
focus: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
item: z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
editorName: z.ZodString;
|
|
441
|
+
breadcrumb: z.ZodString;
|
|
442
|
+
itemType: z.ZodString;
|
|
443
|
+
itemLabel: z.ZodOptional<z.ZodString>;
|
|
444
|
+
visibleText: z.ZodArray<z.ZodObject<{
|
|
445
|
+
locale: z.ZodString;
|
|
446
|
+
ownerId: z.ZodString;
|
|
447
|
+
role: z.ZodString;
|
|
448
|
+
text: z.ZodString;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
visibleTextTruncated: z.ZodBoolean;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
parent: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
id: z.ZodString;
|
|
454
|
+
editorName: z.ZodString;
|
|
455
|
+
breadcrumb: z.ZodString;
|
|
456
|
+
itemType: z.ZodString;
|
|
457
|
+
itemLabel: z.ZodOptional<z.ZodString>;
|
|
458
|
+
visibleText: z.ZodArray<z.ZodObject<{
|
|
459
|
+
locale: z.ZodString;
|
|
460
|
+
ownerId: z.ZodString;
|
|
461
|
+
role: z.ZodString;
|
|
462
|
+
text: z.ZodString;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
visibleTextTruncated: z.ZodBoolean;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
467
|
+
id: z.ZodString;
|
|
468
|
+
editorName: z.ZodString;
|
|
469
|
+
breadcrumb: z.ZodString;
|
|
470
|
+
itemType: z.ZodString;
|
|
471
|
+
itemLabel: z.ZodOptional<z.ZodString>;
|
|
472
|
+
visibleText: z.ZodArray<z.ZodObject<{
|
|
473
|
+
locale: z.ZodString;
|
|
474
|
+
ownerId: z.ZodString;
|
|
475
|
+
role: z.ZodString;
|
|
476
|
+
text: z.ZodString;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
visibleTextTruncated: z.ZodBoolean;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
siblingNames: z.ZodArray<z.ZodString>;
|
|
481
|
+
siblingItems: z.ZodArray<z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
editorName: z.ZodString;
|
|
484
|
+
breadcrumb: z.ZodString;
|
|
485
|
+
itemType: z.ZodString;
|
|
486
|
+
itemLabel: z.ZodOptional<z.ZodString>;
|
|
487
|
+
visibleText: z.ZodArray<z.ZodObject<{
|
|
488
|
+
locale: z.ZodString;
|
|
489
|
+
ownerId: z.ZodString;
|
|
490
|
+
role: z.ZodString;
|
|
491
|
+
text: z.ZodString;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
visibleTextTruncated: z.ZodBoolean;
|
|
494
|
+
}, z.core.$strip>>;
|
|
495
|
+
siblingItemCount: z.ZodNumber;
|
|
496
|
+
siblingItemsTruncated: z.ZodBoolean;
|
|
497
|
+
relatedItems: z.ZodArray<z.ZodObject<{
|
|
498
|
+
id: z.ZodString;
|
|
499
|
+
editorName: z.ZodString;
|
|
500
|
+
breadcrumb: z.ZodString;
|
|
501
|
+
itemType: z.ZodString;
|
|
502
|
+
itemLabel: z.ZodOptional<z.ZodString>;
|
|
503
|
+
visibleText: z.ZodArray<z.ZodObject<{
|
|
504
|
+
locale: z.ZodString;
|
|
505
|
+
ownerId: z.ZodString;
|
|
506
|
+
role: z.ZodString;
|
|
507
|
+
text: z.ZodString;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
visibleTextTruncated: z.ZodBoolean;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
relatedItemCount: z.ZodNumber;
|
|
512
|
+
relatedItemsTruncated: z.ZodBoolean;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
naming: z.ZodOptional<z.ZodObject<{
|
|
515
|
+
keyExamples: z.ZodArray<z.ZodObject<{
|
|
516
|
+
itemId: z.ZodString;
|
|
517
|
+
itemType: z.ZodString;
|
|
518
|
+
key: z.ZodString;
|
|
519
|
+
relationship: z.ZodEnum<{
|
|
520
|
+
survey: "survey";
|
|
521
|
+
sibling: "sibling";
|
|
522
|
+
"same-type": "same-type";
|
|
523
|
+
}>;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
keyExampleCount: z.ZodNumber;
|
|
526
|
+
keyExamplesTruncated: z.ZodBoolean;
|
|
527
|
+
labelExamples: z.ZodArray<z.ZodObject<{
|
|
528
|
+
itemId: z.ZodString;
|
|
529
|
+
itemType: z.ZodString;
|
|
530
|
+
key: z.ZodString;
|
|
531
|
+
label: z.ZodString;
|
|
532
|
+
relationship: z.ZodEnum<{
|
|
533
|
+
survey: "survey";
|
|
534
|
+
sibling: "sibling";
|
|
535
|
+
"same-type": "same-type";
|
|
536
|
+
}>;
|
|
537
|
+
}, z.core.$strip>>;
|
|
538
|
+
labelExampleCount: z.ZodNumber;
|
|
539
|
+
labelExamplesTruncated: z.ZodBoolean;
|
|
540
|
+
}, z.core.$strip>>;
|
|
541
|
+
translation: z.ZodOptional<z.ZodObject<{
|
|
542
|
+
examples: z.ZodArray<z.ZodObject<{
|
|
543
|
+
itemId: z.ZodString;
|
|
544
|
+
ownerId: z.ZodString;
|
|
545
|
+
role: z.ZodString;
|
|
546
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
547
|
+
}, z.core.$strip>>;
|
|
548
|
+
exampleCount: z.ZodNumber;
|
|
549
|
+
examplesTruncated: z.ZodBoolean;
|
|
550
|
+
}, z.core.$strip>>;
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
553
|
+
background: "background";
|
|
554
|
+
user: "user";
|
|
555
|
+
}>>;
|
|
556
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
557
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
558
|
+
surveyId: z.ZodOptional<z.ZodString>;
|
|
559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
560
|
+
taskId: z.ZodLiteral<"suggest-response-name">;
|
|
330
561
|
input: z.ZodObject<{
|
|
331
562
|
itemId: z.ZodString;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
563
|
+
slotId: z.ZodString;
|
|
564
|
+
draftName: z.ZodString;
|
|
565
|
+
currentName: z.ZodString;
|
|
566
|
+
existingNames: z.ZodArray<z.ZodString>;
|
|
335
567
|
maxSuggestions: z.ZodOptional<z.ZodNumber>;
|
|
336
568
|
}, z.core.$strip>;
|
|
337
569
|
context: z.ZodObject<{
|
|
@@ -346,56 +578,63 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
346
578
|
itemCount: z.ZodNumber;
|
|
347
579
|
selectedLocale: z.ZodString;
|
|
348
580
|
}, z.core.$strip>;
|
|
581
|
+
responseVariables: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
582
|
+
existingVariableNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
583
|
+
responseOwners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
349
584
|
focus: z.ZodOptional<z.ZodObject<{
|
|
350
585
|
item: z.ZodObject<{
|
|
351
586
|
id: z.ZodString;
|
|
352
|
-
|
|
353
|
-
|
|
587
|
+
editorName: z.ZodString;
|
|
588
|
+
breadcrumb: z.ZodString;
|
|
354
589
|
itemType: z.ZodString;
|
|
355
590
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
356
591
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
357
592
|
locale: z.ZodString;
|
|
358
|
-
|
|
593
|
+
ownerId: z.ZodString;
|
|
594
|
+
role: z.ZodString;
|
|
359
595
|
text: z.ZodString;
|
|
360
596
|
}, z.core.$strip>>;
|
|
361
597
|
visibleTextTruncated: z.ZodBoolean;
|
|
362
598
|
}, z.core.$strip>;
|
|
363
599
|
parent: z.ZodOptional<z.ZodObject<{
|
|
364
600
|
id: z.ZodString;
|
|
365
|
-
|
|
366
|
-
|
|
601
|
+
editorName: z.ZodString;
|
|
602
|
+
breadcrumb: z.ZodString;
|
|
367
603
|
itemType: z.ZodString;
|
|
368
604
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
369
605
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
370
606
|
locale: z.ZodString;
|
|
371
|
-
|
|
607
|
+
ownerId: z.ZodString;
|
|
608
|
+
role: z.ZodString;
|
|
372
609
|
text: z.ZodString;
|
|
373
610
|
}, z.core.$strip>>;
|
|
374
611
|
visibleTextTruncated: z.ZodBoolean;
|
|
375
612
|
}, z.core.$strip>>;
|
|
376
613
|
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
377
614
|
id: z.ZodString;
|
|
378
|
-
|
|
379
|
-
|
|
615
|
+
editorName: z.ZodString;
|
|
616
|
+
breadcrumb: z.ZodString;
|
|
380
617
|
itemType: z.ZodString;
|
|
381
618
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
382
619
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
383
620
|
locale: z.ZodString;
|
|
384
|
-
|
|
621
|
+
ownerId: z.ZodString;
|
|
622
|
+
role: z.ZodString;
|
|
385
623
|
text: z.ZodString;
|
|
386
624
|
}, z.core.$strip>>;
|
|
387
625
|
visibleTextTruncated: z.ZodBoolean;
|
|
388
626
|
}, z.core.$strip>>;
|
|
389
|
-
|
|
627
|
+
siblingNames: z.ZodArray<z.ZodString>;
|
|
390
628
|
siblingItems: z.ZodArray<z.ZodObject<{
|
|
391
629
|
id: z.ZodString;
|
|
392
|
-
|
|
393
|
-
|
|
630
|
+
editorName: z.ZodString;
|
|
631
|
+
breadcrumb: z.ZodString;
|
|
394
632
|
itemType: z.ZodString;
|
|
395
633
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
396
634
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
397
635
|
locale: z.ZodString;
|
|
398
|
-
|
|
636
|
+
ownerId: z.ZodString;
|
|
637
|
+
role: z.ZodString;
|
|
399
638
|
text: z.ZodString;
|
|
400
639
|
}, z.core.$strip>>;
|
|
401
640
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -404,13 +643,14 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
404
643
|
siblingItemsTruncated: z.ZodBoolean;
|
|
405
644
|
relatedItems: z.ZodArray<z.ZodObject<{
|
|
406
645
|
id: z.ZodString;
|
|
407
|
-
|
|
408
|
-
|
|
646
|
+
editorName: z.ZodString;
|
|
647
|
+
breadcrumb: z.ZodString;
|
|
409
648
|
itemType: z.ZodString;
|
|
410
649
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
411
650
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
412
651
|
locale: z.ZodString;
|
|
413
|
-
|
|
652
|
+
ownerId: z.ZodString;
|
|
653
|
+
role: z.ZodString;
|
|
414
654
|
text: z.ZodString;
|
|
415
655
|
}, z.core.$strip>>;
|
|
416
656
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -448,7 +688,8 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
448
688
|
translation: z.ZodOptional<z.ZodObject<{
|
|
449
689
|
examples: z.ZodArray<z.ZodObject<{
|
|
450
690
|
itemId: z.ZodString;
|
|
451
|
-
|
|
691
|
+
ownerId: z.ZodString;
|
|
692
|
+
role: z.ZodString;
|
|
452
693
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
453
694
|
}, z.core.$strip>>;
|
|
454
695
|
exampleCount: z.ZodNumber;
|
|
@@ -483,56 +724,63 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
483
724
|
itemCount: z.ZodNumber;
|
|
484
725
|
selectedLocale: z.ZodString;
|
|
485
726
|
}, z.core.$strip>;
|
|
727
|
+
responseVariables: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
728
|
+
existingVariableNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
729
|
+
responseOwners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
486
730
|
focus: z.ZodOptional<z.ZodObject<{
|
|
487
731
|
item: z.ZodObject<{
|
|
488
732
|
id: z.ZodString;
|
|
489
|
-
|
|
490
|
-
|
|
733
|
+
editorName: z.ZodString;
|
|
734
|
+
breadcrumb: z.ZodString;
|
|
491
735
|
itemType: z.ZodString;
|
|
492
736
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
493
737
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
494
738
|
locale: z.ZodString;
|
|
495
|
-
|
|
739
|
+
ownerId: z.ZodString;
|
|
740
|
+
role: z.ZodString;
|
|
496
741
|
text: z.ZodString;
|
|
497
742
|
}, z.core.$strip>>;
|
|
498
743
|
visibleTextTruncated: z.ZodBoolean;
|
|
499
744
|
}, z.core.$strip>;
|
|
500
745
|
parent: z.ZodOptional<z.ZodObject<{
|
|
501
746
|
id: z.ZodString;
|
|
502
|
-
|
|
503
|
-
|
|
747
|
+
editorName: z.ZodString;
|
|
748
|
+
breadcrumb: z.ZodString;
|
|
504
749
|
itemType: z.ZodString;
|
|
505
750
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
506
751
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
507
752
|
locale: z.ZodString;
|
|
508
|
-
|
|
753
|
+
ownerId: z.ZodString;
|
|
754
|
+
role: z.ZodString;
|
|
509
755
|
text: z.ZodString;
|
|
510
756
|
}, z.core.$strip>>;
|
|
511
757
|
visibleTextTruncated: z.ZodBoolean;
|
|
512
758
|
}, z.core.$strip>>;
|
|
513
759
|
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
514
760
|
id: z.ZodString;
|
|
515
|
-
|
|
516
|
-
|
|
761
|
+
editorName: z.ZodString;
|
|
762
|
+
breadcrumb: z.ZodString;
|
|
517
763
|
itemType: z.ZodString;
|
|
518
764
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
519
765
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
520
766
|
locale: z.ZodString;
|
|
521
|
-
|
|
767
|
+
ownerId: z.ZodString;
|
|
768
|
+
role: z.ZodString;
|
|
522
769
|
text: z.ZodString;
|
|
523
770
|
}, z.core.$strip>>;
|
|
524
771
|
visibleTextTruncated: z.ZodBoolean;
|
|
525
772
|
}, z.core.$strip>>;
|
|
526
|
-
|
|
773
|
+
siblingNames: z.ZodArray<z.ZodString>;
|
|
527
774
|
siblingItems: z.ZodArray<z.ZodObject<{
|
|
528
775
|
id: z.ZodString;
|
|
529
|
-
|
|
530
|
-
|
|
776
|
+
editorName: z.ZodString;
|
|
777
|
+
breadcrumb: z.ZodString;
|
|
531
778
|
itemType: z.ZodString;
|
|
532
779
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
533
780
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
534
781
|
locale: z.ZodString;
|
|
535
|
-
|
|
782
|
+
ownerId: z.ZodString;
|
|
783
|
+
role: z.ZodString;
|
|
536
784
|
text: z.ZodString;
|
|
537
785
|
}, z.core.$strip>>;
|
|
538
786
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -541,13 +789,14 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
541
789
|
siblingItemsTruncated: z.ZodBoolean;
|
|
542
790
|
relatedItems: z.ZodArray<z.ZodObject<{
|
|
543
791
|
id: z.ZodString;
|
|
544
|
-
|
|
545
|
-
|
|
792
|
+
editorName: z.ZodString;
|
|
793
|
+
breadcrumb: z.ZodString;
|
|
546
794
|
itemType: z.ZodString;
|
|
547
795
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
548
796
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
549
797
|
locale: z.ZodString;
|
|
550
|
-
|
|
798
|
+
ownerId: z.ZodString;
|
|
799
|
+
role: z.ZodString;
|
|
551
800
|
text: z.ZodString;
|
|
552
801
|
}, z.core.$strip>>;
|
|
553
802
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -585,7 +834,8 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
585
834
|
translation: z.ZodOptional<z.ZodObject<{
|
|
586
835
|
examples: z.ZodArray<z.ZodObject<{
|
|
587
836
|
itemId: z.ZodString;
|
|
588
|
-
|
|
837
|
+
ownerId: z.ZodString;
|
|
838
|
+
role: z.ZodString;
|
|
589
839
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
590
840
|
}, z.core.$strip>>;
|
|
591
841
|
exampleCount: z.ZodNumber;
|
|
@@ -622,56 +872,63 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
622
872
|
itemCount: z.ZodNumber;
|
|
623
873
|
selectedLocale: z.ZodString;
|
|
624
874
|
}, z.core.$strip>;
|
|
875
|
+
responseVariables: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
876
|
+
existingVariableNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
877
|
+
responseOwners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
625
878
|
focus: z.ZodOptional<z.ZodObject<{
|
|
626
879
|
item: z.ZodObject<{
|
|
627
880
|
id: z.ZodString;
|
|
628
|
-
|
|
629
|
-
|
|
881
|
+
editorName: z.ZodString;
|
|
882
|
+
breadcrumb: z.ZodString;
|
|
630
883
|
itemType: z.ZodString;
|
|
631
884
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
632
885
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
633
886
|
locale: z.ZodString;
|
|
634
|
-
|
|
887
|
+
ownerId: z.ZodString;
|
|
888
|
+
role: z.ZodString;
|
|
635
889
|
text: z.ZodString;
|
|
636
890
|
}, z.core.$strip>>;
|
|
637
891
|
visibleTextTruncated: z.ZodBoolean;
|
|
638
892
|
}, z.core.$strip>;
|
|
639
893
|
parent: z.ZodOptional<z.ZodObject<{
|
|
640
894
|
id: z.ZodString;
|
|
641
|
-
|
|
642
|
-
|
|
895
|
+
editorName: z.ZodString;
|
|
896
|
+
breadcrumb: z.ZodString;
|
|
643
897
|
itemType: z.ZodString;
|
|
644
898
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
645
899
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
646
900
|
locale: z.ZodString;
|
|
647
|
-
|
|
901
|
+
ownerId: z.ZodString;
|
|
902
|
+
role: z.ZodString;
|
|
648
903
|
text: z.ZodString;
|
|
649
904
|
}, z.core.$strip>>;
|
|
650
905
|
visibleTextTruncated: z.ZodBoolean;
|
|
651
906
|
}, z.core.$strip>>;
|
|
652
907
|
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
653
908
|
id: z.ZodString;
|
|
654
|
-
|
|
655
|
-
|
|
909
|
+
editorName: z.ZodString;
|
|
910
|
+
breadcrumb: z.ZodString;
|
|
656
911
|
itemType: z.ZodString;
|
|
657
912
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
658
913
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
659
914
|
locale: z.ZodString;
|
|
660
|
-
|
|
915
|
+
ownerId: z.ZodString;
|
|
916
|
+
role: z.ZodString;
|
|
661
917
|
text: z.ZodString;
|
|
662
918
|
}, z.core.$strip>>;
|
|
663
919
|
visibleTextTruncated: z.ZodBoolean;
|
|
664
920
|
}, z.core.$strip>>;
|
|
665
|
-
|
|
921
|
+
siblingNames: z.ZodArray<z.ZodString>;
|
|
666
922
|
siblingItems: z.ZodArray<z.ZodObject<{
|
|
667
923
|
id: z.ZodString;
|
|
668
|
-
|
|
669
|
-
|
|
924
|
+
editorName: z.ZodString;
|
|
925
|
+
breadcrumb: z.ZodString;
|
|
670
926
|
itemType: z.ZodString;
|
|
671
927
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
672
928
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
673
929
|
locale: z.ZodString;
|
|
674
|
-
|
|
930
|
+
ownerId: z.ZodString;
|
|
931
|
+
role: z.ZodString;
|
|
675
932
|
text: z.ZodString;
|
|
676
933
|
}, z.core.$strip>>;
|
|
677
934
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -680,13 +937,14 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
680
937
|
siblingItemsTruncated: z.ZodBoolean;
|
|
681
938
|
relatedItems: z.ZodArray<z.ZodObject<{
|
|
682
939
|
id: z.ZodString;
|
|
683
|
-
|
|
684
|
-
|
|
940
|
+
editorName: z.ZodString;
|
|
941
|
+
breadcrumb: z.ZodString;
|
|
685
942
|
itemType: z.ZodString;
|
|
686
943
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
687
944
|
visibleText: z.ZodArray<z.ZodObject<{
|
|
688
945
|
locale: z.ZodString;
|
|
689
|
-
|
|
946
|
+
ownerId: z.ZodString;
|
|
947
|
+
role: z.ZodString;
|
|
690
948
|
text: z.ZodString;
|
|
691
949
|
}, z.core.$strip>>;
|
|
692
950
|
visibleTextTruncated: z.ZodBoolean;
|
|
@@ -724,7 +982,8 @@ declare const surveyAssistantTaskRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
724
982
|
translation: z.ZodOptional<z.ZodObject<{
|
|
725
983
|
examples: z.ZodArray<z.ZodObject<{
|
|
726
984
|
itemId: z.ZodString;
|
|
727
|
-
|
|
985
|
+
ownerId: z.ZodString;
|
|
986
|
+
role: z.ZodString;
|
|
728
987
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
729
988
|
}, z.core.$strip>>;
|
|
730
989
|
exampleCount: z.ZodNumber;
|
|
@@ -756,5 +1015,5 @@ declare const surveyAssistantModelCatalogSchema: z.ZodObject<{
|
|
|
756
1015
|
type SurveyAssistantModelOption = z.infer<typeof surveyAssistantModelOptionSchema>;
|
|
757
1016
|
type SurveyAssistantModelCatalog = z.infer<typeof surveyAssistantModelCatalogSchema>;
|
|
758
1017
|
//#endregion
|
|
759
|
-
export {
|
|
760
|
-
//# sourceMappingURL=index-
|
|
1018
|
+
export { surveyAssistantThreadTranscriptSchema as $, surveyAssistantSuggestedTextSchema as A, responseSettingsChangesSchema as B, surveyAssistantKeySuggestionSchema as C, surveyAssistantSuggestResponseNameResultSchema as D, surveyAssistantSuggestResponseNameInputSchema as E, surveyAssistantTranslateContentEntrySchema as F, SurveyAssistantThread as G, CreateSurveyAssistantThreadInput as H, surveyAssistantTranslateContentInputSchema as I, SurveyAssistantThreadTranscript as J, SurveyAssistantThreadList as K, surveyAssistantTranslateContentResultSchema as L, surveyAssistantTaskInvocationModeSchema as M, surveyAssistantTaskItemSummarySchema as N, surveyAssistantSuggestResponseSettingsInputSchema as O, surveyAssistantTaskRequestSchema as P, surveyAssistantThreadSchema as Q, responseExportSettingsSchema as R, surveyAssistantKeySuggestionCategorySchema as S, surveyAssistantSuggestItemLabelResultSchema as T, SURVEY_ASSISTANT_ATTACHMENT_PART_TYPE as U, responseSettingsEditSchema as V, SurveyAssistantAttachmentReference as W, createSurveyAssistantThreadInputSchema as X, UpdateSurveyAssistantThreadInput as Y, surveyAssistantThreadListSchema as Z, SurveyAssistantTaskItemSummary as _, serializeSurveyAssistantError as _t, SurveyAssistantKeySuggestion as a, SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES as at, SurveyAssistantTranslateContentInput as b, SurveyAssistantSuggestItemLabelInput as c, MAX_USER_ERROR_MESSAGE_LENGTH as ct, SurveyAssistantSuggestResponseNameResult as d, redactSurveyAssistantDiagnosticSecrets as dt, updateSurveyAssistantThreadInputSchema as et, SurveyAssistantSuggestResponseSettingsInput as f, sanitizeSurveyAssistantDiagnosticText as ft, SurveyAssistantTaskInvocationMode as g, parseSurveyAssistantError as gt, SurveyAssistantTaskContext as h, isSurveyAssistantErrorRetryable as ht, surveyAssistantModelOptionSchema as i, surveyContentSchema as it, surveyAssistantTaskContextSchema as j, surveyAssistantSuggestResponseSettingsResultSchema as k, SurveyAssistantSuggestItemLabelResult as l, getSurveyAssistantEmbeddedBinaryMarker as lt, SurveyAssistantSuggestedText as m, SurveyAssistantErrorInfo as mt, SurveyAssistantModelOption as n, SurveyContent as nt, SurveyAssistantKeySuggestionCategory as o, SurveyAssistantAttachmentMediaType as ot, SurveyAssistantSuggestResponseSettingsResult as p, SurveyAssistantErrorCode as pt, SurveyAssistantThreadTitleMode as q, surveyAssistantModelCatalogSchema as r, jsonValueSchema as rt, SurveyAssistantLabelSuggestion as s, isSurveyAssistantAttachmentMediaType as st, SurveyAssistantModelCatalog as t, JsonValue$1 as tt, SurveyAssistantSuggestResponseNameInput as u, isSurveyAssistantSensitiveMetadataKey as ut, SurveyAssistantTaskRequest as v, surveyAssistantErrorCodeSchema as vt, surveyAssistantSuggestItemLabelInputSchema as w, SurveyAssistantTranslateContentResult as x, SurveyAssistantTranslateContentEntry as y, surveyAssistantErrorInfoSchema as yt, responseNamingEditSchema as z };
|
|
1019
|
+
//# sourceMappingURL=index-DYHdvSE8.d.mts.map
|