@encatch/schema 1.2.0-beta.5 → 1.2.0-beta.6
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/dist/esm/index.js +9 -8
- package/dist/esm/index.js.map +2 -2
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +4 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +3 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +2 -0
- package/dist/types/schemas/fields/field-schema.d.ts +6 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1065,21 +1065,22 @@ var addressQuestionSchema = questionSchema.extend({
|
|
|
1065
1065
|
country: addressSubFieldConfigSchema.optional().describe("Configuration for the country sub-field"),
|
|
1066
1066
|
defaultCountry: z2.string().max(2).optional().describe("ISO 3166-1 alpha-2 country code to pre-select in the country dropdown (e.g. 'US', 'GB')")
|
|
1067
1067
|
}).describe("Schema for an address question that collects a full structured address on a single screen");
|
|
1068
|
-
var videoAudioModeSchema = z2.enum(["video", "audio", "text"]);
|
|
1068
|
+
var videoAudioModeSchema = z2.enum(["video", "audio", "photo", "text"]);
|
|
1069
1069
|
var VideoAudioModes = {
|
|
1070
1070
|
VIDEO: "video",
|
|
1071
1071
|
AUDIO: "audio",
|
|
1072
|
+
PHOTO: "photo",
|
|
1072
1073
|
TEXT: "text"
|
|
1073
1074
|
};
|
|
1074
1075
|
var videoAudioQuestionSchema = questionSchema.extend({
|
|
1075
1076
|
type: z2.literal("video_audio").describe("Must be exactly 'video_audio'"),
|
|
1076
|
-
allowedModes: z2.array(videoAudioModeSchema).min(1).optional().describe("Which answer types the respondent can choose from (video, audio, text); when absent all
|
|
1077
|
+
allowedModes: z2.array(videoAudioModeSchema).min(1).optional().describe("Which answer types the respondent can choose from (video, audio, photo, text); when absent all four are enabled"),
|
|
1077
1078
|
defaultMode: videoAudioModeSchema.optional().describe("Which mode tab is pre-selected when the question opens; when absent the platform chooses"),
|
|
1078
1079
|
maxDurationSeconds: z2.number().int().min(5).max(600).optional().describe("Maximum recording length in seconds (5\u2013600); Typeform hardcodes 120s with no config, making this a differentiator; when absent the platform default applies"),
|
|
1079
1080
|
maxFileSizeMb: z2.number().int().min(1).max(500).optional().describe("Maximum size in megabytes for uploaded pre-recorded files (1\u2013500); when absent the platform ceiling applies"),
|
|
1080
|
-
allowUpload: z2.boolean().optional().default(true).describe("Whether the respondent can upload a
|
|
1081
|
-
placeholder: z2.string().max(200).optional().describe("Instructional text shown to the respondent before they begin recording")
|
|
1082
|
-
}).describe("Schema for a video and
|
|
1081
|
+
allowUpload: z2.boolean().optional().default(true).describe("Whether the respondent can upload a file in addition to recording or capturing live (video, audio, or photo)"),
|
|
1082
|
+
placeholder: z2.string().max(200).optional().describe("Instructional text shown to the respondent before they begin recording or capturing")
|
|
1083
|
+
}).describe("Schema for a video, audio, and photo question where respondents can record or upload media or enter a text answer");
|
|
1083
1084
|
var schedulerProviderSchema = z2.enum(["google_calendar", "calendly"]);
|
|
1084
1085
|
var SchedulerProviders = {
|
|
1085
1086
|
GOOGLE_CALENDAR: "google_calendar",
|
|
@@ -1175,10 +1176,10 @@ var AddressAnswerSchema = z3.object({
|
|
|
1175
1176
|
country: z3.string().optional().describe("Country name or ISO 3166-1 alpha-2 code")
|
|
1176
1177
|
}).describe("Answer for an address question");
|
|
1177
1178
|
var VideoAudioAnswerSchema = z3.object({
|
|
1178
|
-
mode: z3.enum(["video", "audio", "text"]).describe("The answer mode the respondent chose"),
|
|
1179
|
-
fileUrl: z3.string().optional().describe("Secure URL to the recorded or uploaded video
|
|
1179
|
+
mode: z3.enum(["video", "audio", "photo", "text"]).describe("The answer mode the respondent chose"),
|
|
1180
|
+
fileUrl: z3.string().optional().describe("Secure URL or temporary data URL to the recorded, captured, or uploaded video, audio, or image file"),
|
|
1180
1181
|
text: z3.string().optional().describe("Written answer for text mode"),
|
|
1181
|
-
durationSeconds: z3.number().optional().describe("Actual recording length in seconds for video and audio modes"),
|
|
1182
|
+
durationSeconds: z3.number().optional().describe("Actual recording length in seconds for video and audio modes (not used for photo)"),
|
|
1182
1183
|
transcriptText: z3.string().optional().describe("Auto-generated transcript for video and audio recordings")
|
|
1183
1184
|
}).describe("Answer for a video and audio question");
|
|
1184
1185
|
var QnaWithAiPairSchema = z3.object({
|