@mondaydotcomorg/agent-toolkit 5.18.0 → 5.19.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.
@@ -1006,7 +1006,7 @@
1006
1006
  description
1007
1007
  }
1008
1008
  }
1009
- `,Wp={questionId:"Question ID. Required for update/delete."},Yp={operations:{createForm:"Create a new form with specified configuration. Returns the created form with its unique token.",updateForm:{action:"Action to execute on the form. Each action requires different fields — check field descriptions to know what to include."},activateForm:"Activate a form to make it visible to users and accept new submissions.",deactivateForm:"Deactivate a form to hide it from users and stop accepting submissions. Form data is preserved."},properties:{id:"The unique identifier for the form. Auto-generated upon creation.",token:"The unique token used to access and identify the form. Used in public URLs and API calls.",boardId:"The board ID connected to the form. Used to store form responses as items.",title:"The display title shown to users at the top of the form.",description:"Optional detailed description explaining the form purpose, displayed below the title.",active:"Boolean indicating if the form is currently accepting responses and visible to users.",ownerId:"The ID of the user who created and owns this form. Determines permissions.",createWithAI:"Boolean indicating if this form was initially created using AI assistance.",builtWithAI:"Boolean indicating if this form was built or modified using AI functionality.",questions:"Array of question objects that make up the form content, in display order.",isSuspicious:"Boolean flag indicating if the form has been flagged for review due to suspicious content or activity.",isAnonymous:"Hides submitter identity.",type:"The category or classification of the form for organizational purposes.",features:"Object containing feature toggles and settings like password protection, response limits, etc.",appearance:"Object containing visual styling settings including colors, fonts, layout, and branding.",accessibility:"Object containing accessibility settings such as language, alt text, and reading direction.",tags:{description:"Array of tracking tags for categorization and analytics (e.g., UTM parameters for marketing tracking).",id:"Required for update/delete. Auto-generated.",name:"Required for create. Cannot be updated.",value:"Required for create/update.",columnId:"Auto-generated. Cannot be updated."}},inputs:{title:"Required for updateFormHeader.",description:"Required for updateFormHeader.",input:"Complete form configuration object containing properties to create or update.",questions:"All question IDs in order. Must include every existing ID. Required for updateQuestionOrder.",questionId:"Question ID. Required for update/delete.",tag:"Tag to create/update/delete. Delete: id only. Create: name+value (id/columnId auto-generated). Update: id+new value.",form:{describe:"Form data to update (patch semantics).",appearance:"Patch. Required for updateAppearance.",accessibility:"Patch. Required for updateAccessibility.",features:"Patch. Required for updateFeatures.",questionOrder:"Patch. Required for updateQuestionOrder.",formHeader:"Patch. Required for updateFormHeader."}},args:{destinationName:"Board name (stores form responses).",boardSubscriberIds:"User IDs to notify on board activity.",boardSubscriberTeamsIds:"Team IDs to notify on board activity."}},Qp={operations:{updateFormSettings:"Update form configuration including features, appearance, and accessibility options.",setFormPassword:"Required for setFormPassword action.",shortenUrl:"Shorten a URL for a form and store it in the form settings. Returns the shortened link object."},properties:{passwordEnabled:"Can only be set to false. Use setFormPassword to enable.",closeDateValue:"ISO timestamp.",includeNameQuestion:"Adds name column as a form question.",includeUpdateQuestion:"Adds updates/comments field linked to the board item.",syncQuestionAndColumnsTitles:"Syncs question titles with board column names.",allowCreateItem:"Shows 'Create Item' button on the board to open this form.",backgroundValue:"Hex color or image URL (depends on type).",logoSize:"Logo size for the form header.",language:"Form locale, e.g. 'en', 'es', 'fr'."},inputs:{settings:"Complete form settings object containing all configuration options.",features:"Form features configuration including security, limits, and access controls.",appearance:"Visual styling configuration including colors, layout, and branding.",accessibility:"Accessibility configuration including language and reading direction.",password:"Password configuration for the form. Only setting enabled to false is supported. To enable a form to be password protected, please use the set_form_password mutation instead.",passwordValue:"The password to set for the form. Must be at least 1 character long."}},Kp={actions:{type:"Action to perform on the question of a form. create requires question. update requires questionId and question with type always included. delete requires questionId.",question:"The question to create or update. Always include type, then only the fields you want to set or change."},properties:{title:"Question text. Required when creating.",type:"Question type. Always required. Cannot be changed after creation — always send the existing type when updating.",position:"Integer specifying the display order of the question within the form (zero-based).",description:"Help text shown under the question.",placeholder:"Optional placeholder text shown in input fields to guide user input.",createdAt:"ISO timestamp when the question was created.",updatedAt:"ISO timestamp when the question was last modified.",selectOptions:"Options for select questions. Always include all options — omitting an existing option will delete it. To update safely, call get_form first to retrieve existing option values, then include all options you want to keep with their original value fields.",selectOptionsValue:"Unique identifier for the option. If this option was used in existing submissions, it must keep its original value to preserve data integrity.",blockType:"The kind of block to create. Includes all question types and content block types.",insertAfterQuestionId:"ID to insert after. Omit to append. Null for first position.",pageBlockId:"Page block ID to group this question within. Set to null to remove from page block. Omit to leave unchanged."},showIfRules:"Conditional visibility. All operators must be OR.",showIfConditionBuildingBlockId:"Question ID to evaluate.",showIfConditionValues:"Answer values that satisfy the condition.",inputs:{question:"Complete question object containing all properties for creation or update.",questionData:"Question configuration including type, title, and type-specific settings.",position:"Integer position where the question should be placed in the form sequence."}},Jp={properties:{validation:"Validation rules applied to the question response",prefill:"Auto-populates from account data or URL query params.",prefillLookup:"Field name (e.g. 'email') or URL param name.",prefixAutofilled:"Phone only. Auto-detects country prefix.",prefixPredefined:"Phone only. Sets a default country prefix.",prefixPredefinedPrefix:"Country code, e.g. 'US', 'IL'.",checkedByDefault:"Boolean question type only.",defaultCurrentDate:"Date question type only.",includeTime:"Date only. Adds time picker.",display:"SingleSelect/MultiSelect only.",optionsOrder:"SingleSelect/MultiSelect only.",locationAutofilled:"Location only. Auto-fills current location.",limit:"Rating questions only: Maximum rating value that users can select.",skipValidation:"Link only. Skips URL format validation.",labelLimitCount:"MultiSelect only. Max selections. Pair with labelLimitCountEnabled.",labelLimitCountEnabled:"MultiSelect only. Enables selection limit.",defaultAnswer:"ShortText/LongText/Name/Link only. Pre-filled default value."},inputs:{settings:"Question-specific configuration object that varies by question type.",validationRules:"Validation constraints and rules",choiceOptions:"List of available choices for selection questions",fileSettings:"File upload constraints and settings"}},Xp={destination_workspace_id:o.z.string(),destination_folder_id:o.z.string().optional(),destination_folder_name:o.z.string().optional(),board_kind:o.z.nativeEnum(Un).optional(),destination_name:o.z.string().optional().describe(Yp.args.destinationName),board_owner_ids:o.z.array(o.z.string()).optional(),board_owner_team_ids:o.z.array(o.z.string()).optional(),board_subscriber_ids:o.z.array(o.z.string()).optional().describe(Yp.args.boardSubscriberIds),board_subscriber_teams_ids:o.z.array(o.z.string()).optional().describe(Yp.args.boardSubscriberTeamsIds)};var Zp,el,tl,al,il,nl,ol,rl,dl,sl,pl,ll,ml,cl,ul,hl;!function(e){e.Internal="internal",e.InlineInternal="inline_internal",e.Preview="preview",e.Standard="standard",e.EnforcedItemCreationForm="enforced_item_creation_form"}(Zp||(Zp={})),function(e){e.Small="Small",e.Medium="Medium",e.Large="Large",e.ExtraLarge="ExtraLarge"}(el||(el={})),function(e){e.Auto="Auto",e.Left="Left",e.Center="Center",e.Right="Right"}(tl||(tl={})),function(e){e.Image="Image",e.Color="Color",e.None="None"}(al||(al={})),function(e){e.LtR="LtR",e.Rtl="Rtl"}(il||(il={})),function(e){e.OneByOne="OneByOne",e.Classic="Classic"}(nl||(nl={})),function(e){e.FullLeft="FullLeft",e.Left="Left",e.Center="Center",e.Right="Right",e.FullRight="FullRight"}(ol||(ol={})),function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"}(rl||(rl={})),function(e){e.Boolean="Boolean",e.ConnectedBoards="ConnectedBoards",e.Country="Country",e.Date="Date",e.DateRange="DateRange",e.Email="Email",e.File="File",e.Link="Link",e.Location="Location",e.LongText="LongText",e.MultiSelect="MultiSelect",e.Name="Name",e.Number="Number",e.People="People",e.Phone="Phone",e.Rating="Rating",e.ShortText="ShortText",e.Signature="Signature",e.SingleSelect="SingleSelect",e.Subitems="Subitems",e.Updates="Updates"}(dl||(dl={})),function(e){e.Account="account",e.QueryParam="queryParam"}(sl||(sl={})),function(e){e.Email="email",e.Name="name",e.Title="title",e.Phone="phone",e.FirstName="first_name",e.LastName="last_name",e.Location="location",e.Timezone="time_zone",e.ManagerName="manager_display_name"}(pl||(pl={})),function(e){e.Or="OR"}(ll||(ll={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical",e.Dropdown="dropdown"}(ml||(ml={})),function(e){e.Alphabetical="alphabetical",e.Random="random",e.Custom="custom"}(cl||(cl={})),function(e){e.MultiSelect="multi-select",e.SingleSelect="single-select",e.People="people",e.Location="location",e.CountryCode="country-code",e.Country="country",e.ConnectedBoards="connected_boards"}(ul||(ul={})),function(e){e.Delete="delete",e.Update="update",e.Create="create"}(hl||(hl={}));const fl=o.z.object({type:o.z.nativeEnum(Lo).describe(Kp.properties.type),title:o.z.string().describe(Kp.properties.title).optional(),description:o.z.string().describe(Kp.properties.description).optional(),visible:o.z.boolean().optional(),required:o.z.boolean().optional(),insert_after_question_id:o.z.string().nullish().describe(Kp.properties.insertAfterQuestionId),page_block_id:o.z.string().nullish().describe(Kp.properties.pageBlockId),show_if_rules:o.z.object({operator:o.z.nativeEnum(to),rules:o.z.array(o.z.object({operator:o.z.nativeEnum(to),conditions:o.z.array(o.z.object({building_block_id:o.z.string().describe(Kp.showIfConditionBuildingBlockId),operator:o.z.nativeEnum(to),values:o.z.array(o.z.string()).describe(Kp.showIfConditionValues)}))}))}).describe(Kp.showIfRules).optional(),options:o.z.array(o.z.object({label:o.z.string(),value:o.z.string().optional().describe(Kp.properties.selectOptionsValue),visible:o.z.boolean().optional()})).describe(Kp.properties.selectOptions).optional(),settings:o.z.object({checkedByDefault:o.z.boolean().describe(Jp.properties.checkedByDefault).optional(),defaultCurrentDate:o.z.boolean().describe(Jp.properties.defaultCurrentDate).optional(),display:o.z.nativeEnum(Ro).describe(Jp.properties.display).optional(),includeTime:o.z.boolean().describe(Jp.properties.includeTime).optional(),locationAutofilled:o.z.boolean().describe(Jp.properties.locationAutofilled).optional(),optionsOrder:o.z.nativeEnum(xo).describe(Jp.properties.optionsOrder).optional(),prefixAutofilled:o.z.boolean().describe(Jp.properties.prefixAutofilled).optional(),prefixPredefined:o.z.object({enabled:o.z.boolean(),prefix:o.z.string().describe(Jp.properties.prefixPredefinedPrefix).optional()}).describe(Jp.properties.prefixPredefined).optional(),skipValidation:o.z.boolean().describe(Jp.properties.skipValidation).optional(),labelLimitCount:o.z.number().int().describe(Jp.properties.labelLimitCount).optional(),label_limit_count_enabled:o.z.boolean().describe(Jp.properties.labelLimitCountEnabled).optional(),default_answer:o.z.string().describe(Jp.properties.defaultAnswer).optional(),prefill:o.z.object({enabled:o.z.boolean(),lookup:o.z.string().describe(Jp.properties.prefillLookup).optional(),source:o.z.nativeEnum(Co).optional()}).describe(Jp.properties.prefill).optional()}).describe("Type-specific question settings. Check each field description to see which question type it applies to.").optional()}),_l={action:o.z.nativeEnum(hl).describe(Kp.actions.type),formToken:o.z.string(),questionId:o.z.string().describe(Wp.questionId).optional(),question:fl.describe(Kp.actions.question).optional()};class vl{constructor(e){this.mondayApi=e}async deleteQuestion(e){const t=e.questionId;if(!t)return{content:"Question ID is required when deleting a question."};const a={formToken:e.formToken,questionId:t};return await this.mondayApi.request(Cp,a),{content:{message:"Question deleted",question_id:t,action_name:"delete"}}}async updateQuestion(e){const t=e.questionId;if(!t)return{content:"Question ID is required when updating a question."};const a=e.question;if(!a)return{content:"Must provide updated patch props for the question when updating."};const i={formToken:e.formToken,questionId:t,question:a};return await this.mondayApi.request(xp,i),{content:{message:"Question updated",question_id:t,action_name:"update"}}}async createQuestion(e){const t=e.question;if(!t)return{content:"Must provide a full question payload when creating a question."};if(!t.title)return{content:"Must provide a title for the question when creating a question."};const a={formToken:e.formToken,question:{...t,title:t.title}},i=await this.mondayApi.request(Rp,a);return{content:{message:"Question created",question_id:i.create_form_question?.id,action_name:"create"}}}}var bl;!function(e){e.activate="activate",e.deactivate="deactivate",e.shortenFormUrl="shortenFormUrl",e.setFormPassword="setFormPassword",e.createTag="createTag",e.deleteTag="deleteTag",e.updateTag="updateTag",e.updateAppearance="updateAppearance",e.updateAccessibility="updateAccessibility",e.updateFeatures="updateFeatures",e.updateQuestionOrder="updateQuestionOrder",e.updateFormHeader="updateFormHeader"}(bl||(bl={}));const gl=o.z.object({id:o.z.string().describe(Yp.properties.tags.id).optional(),name:o.z.string().describe(Yp.properties.tags.name).optional(),value:o.z.string().describe(Yp.properties.tags.value).optional(),columnId:o.z.string().describe(Yp.properties.tags.columnId).optional()}),yl=o.z.object({type:o.z.nativeEnum(al).optional(),value:o.z.string().describe(Qp.properties.backgroundValue).optional()}),wl=o.z.object({format:o.z.nativeEnum(nl).optional(),alignment:o.z.nativeEnum(ol).optional(),direction:o.z.nativeEnum(il).optional()}),Il=o.z.object({position:o.z.nativeEnum(tl).optional(),size:o.z.nativeEnum(el).describe(Qp.properties.logoSize).optional()}),Tl=o.z.object({text:o.z.string().optional()}),El=o.z.object({font:o.z.string().optional(),color:o.z.string().optional(),size:o.z.nativeEnum(rl).optional()}),Nl=o.z.object({enabled:o.z.boolean().optional(),redirectUrl:o.z.string().optional()}),Dl=o.z.object({allowEditSubmission:o.z.boolean().optional(),allowResubmit:o.z.boolean().optional(),allowViewSubmission:o.z.boolean().optional(),description:o.z.string().optional(),redirectAfterSubmission:Nl.optional(),showSuccessImage:o.z.boolean().optional(),title:o.z.string().optional()}),Sl=o.z.object({enabled:o.z.boolean().optional(),date:o.z.string().describe(Qp.properties.closeDateValue).optional()}),Al=o.z.object({enabled:o.z.boolean().optional()}),kl=o.z.object({itemGroupId:o.z.string().optional(),includeNameQuestion:o.z.boolean().describe(Qp.properties.includeNameQuestion).optional(),includeUpdateQuestion:o.z.boolean().describe(Qp.properties.includeUpdateQuestion).optional(),syncQuestionAndColumnsTitles:o.z.boolean().describe(Qp.properties.syncQuestionAndColumnsTitles).optional(),allow_create_item:o.z.boolean().describe(Qp.properties.allowCreateItem).optional()}),Ol=o.z.object({enabled:o.z.boolean().describe(Qp.properties.passwordEnabled).optional()}),$l=o.z.object({text:o.z.string().optional()}),Cl=o.z.object({enabled:o.z.boolean().optional(),title:o.z.string().optional(),description:o.z.string().optional(),startButton:$l.optional()}),Rl=o.z.object({enabled:o.z.boolean().optional(),redirectToLogin:o.z.boolean().optional()}),xl=o.z.object({enabled:o.z.boolean().optional(),limit:o.z.number().optional()}),Ll=o.z.object({background:yl.optional(),hideBranding:o.z.boolean().optional(),layout:wl.optional(),logo:Il.optional(),primaryColor:o.z.string().optional(),showProgressBar:o.z.boolean().optional(),submitButton:Tl.optional(),text:El.optional()}),Vl=o.z.object({language:o.z.string().describe(Qp.properties.language).optional(),logoAltText:o.z.string().optional()}),Fl=o.z.object({enabled:o.z.boolean().optional()}),Ul=o.z.object({afterSubmissionView:Dl.optional(),ai_translate:Fl.optional(),closeDate:Sl.optional(),draftSubmission:Al.optional(),monday:kl.optional(),password:Ol.optional(),preSubmissionView:Cl.optional(),reCaptchaChallenge:o.z.boolean().optional(),requireLogin:Rl.optional(),responseLimit:xl.optional(),is_anonymous:o.z.boolean().describe(Yp.properties.isAnonymous).optional()}),Pl=o.z.object({id:o.z.string().describe(Yp.inputs.questionId),page_block_id:o.z.string().describe(Kp.properties.pageBlockId).optional()}),zl=o.z.object({appearance:Ll.describe(Yp.inputs.form.appearance).optional(),accessibility:Vl.describe(Yp.inputs.form.accessibility).optional(),features:Ul.describe(Yp.inputs.form.features).optional(),title:o.z.string().describe(Yp.inputs.title).optional(),description:o.z.string().describe(Yp.inputs.description).optional(),questions:o.z.array(Pl).describe(Yp.inputs.questions).optional()}),jl={formToken:o.z.string(),action:o.z.nativeEnum(bl).describe(Yp.operations.updateForm.action),formPassword:o.z.string().describe(Qp.operations.setFormPassword).optional(),tag:gl.describe(Yp.inputs.tag).optional(),form:zl.describe(Yp.inputs.form.describe).optional()};class Bl{constructor(e){this.mondayApi=e}async setFormPassword(e){if(!e.formPassword)return{content:'formPassword is required for the action "setFormPassword" in the update form tool.'};const t={formToken:e.formToken,input:{password:e.formPassword}};return await this.mondayApi.request(Lp,t),{content:{message:"Form password successfully set",form_token:e.formToken,action_name:"setFormPassword"}}}async shortenFormUrl(e){const t={formToken:e.formToken};return await this.mondayApi.request(Vp,t),{content:{message:"Form URL successfully shortened",form_token:e.formToken,action_name:"shortenFormUrl"}}}async deactivateForm(e){const t={formToken:e.formToken};return await this.mondayApi.request(Fp,t),{content:{message:"Form successfully deactivated",form_token:e.formToken,action_name:"deactivateForm"}}}async activateForm(e){const t={formToken:e.formToken};return await this.mondayApi.request(Up,t),{content:{message:"Form successfully activated",form_token:e.formToken,action_name:"activateForm"}}}async createTag(e){if(!e.tag)return{content:'Tag is required for the action "createTag" in the update form tool.'};if(!e.tag.name)return{content:'Tag name is required for the action "createTag" in the update form tool.'};const t={formToken:e.formToken,tag:{name:e.tag.name,value:e.tag.value}},a=await this.mondayApi.request(zp,t);return{content:{message:"Tag successfully added",form_token:e.formToken,action_name:"createTag",data:a.create_form_tag}}}async deleteTag(e){if(!e.tag)return{content:'Tag is required for the action "deleteTag" in the update form tool.'};if(!e.tag.id)return{content:'Tag id is required for the action "deleteTag" in the update form tool.'};const t={formToken:e.formToken,tagId:e.tag.id};return await this.mondayApi.request(Pp,t),{content:{message:"Tag deleted",form_token:e.formToken,tag_id:e.tag.id,action_name:"deleteTag"}}}async updateTag(e){if(!e.tag)return{content:'Tag is required for the action "updateTag" in the update form tool.'};if(!e.tag.id||!e.tag.value)return{content:'Tag id and value are required for the action "updateTag" in the update form tool.'};const t={formToken:e.formToken,tagId:e.tag.id,tag:{value:e.tag.value}};return(await this.mondayApi.request(jp,t)).update_form_tag?{content:{message:"Tag updated",form_token:e.formToken,tag_id:e.tag.id,action_name:"updateTag"}}:{content:`Unable to update tag with id: ${e.tag.id}.`}}async updateAppearance(e){if(!e.form?.appearance)return{content:'Appearance is required for the action "updateAppearance" in the update form tool.'};const t={formToken:e.formToken,appearance:e.form.appearance},a=await this.mondayApi.request(Bp,t);return{content:{message:"Appearance successfully updated",form_token:e.formToken,action_name:"updateAppearance",data:a.update_form_settings?.appearance}}}async updateAccessibility(e){if(!e.form?.accessibility)return{content:'Accessibility is required for the action "updateAccessibility" in the update form tool.'};const t={formToken:e.formToken,accessibility:e.form.accessibility},a=await this.mondayApi.request(Mp,t);return{content:{message:"Accessibility successfully updated",form_token:e.formToken,action_name:"updateAccessibility",data:a.update_form_settings?.accessibility}}}async updateFeatures(e){if(!e.form?.features)return{content:'Features is required for the action "updateFeatures" in the update form tool.'};const{is_anonymous:t,...a}=e.form.features,i={formToken:e.formToken,features:a,is_anonymous:t},n=await this.mondayApi.request(qp,i);return{content:{message:"Features successfully updated",form_token:e.formToken,action_name:"updateFeatures",data:n.update_form_settings?.features}}}async updateQuestionOrder(e){if(!e.form?.questions)return{content:'List of dehydrated questions is required for the action "updateQuestionOrder" in the update form tool.'};const t={formToken:e.formToken,questions:e.form.questions},a=await this.mondayApi.request(Hp,t);return{content:{message:"Question order successfully updated",form_token:e.formToken,action_name:"updateQuestionOrder",data:a.update_form?.questions}}}async updateFormHeader(e){if(!e.form?.title&&!e.form?.description)return{content:'Title or description is required for the action "updateFormHeader" in the update form tool.'};const t={formToken:e.formToken,title:e.form.title,description:e.form.description},a=await this.mondayApi.request(Gp,t);return{content:{message:"Form header updated",form_token:e.formToken,action_name:"updateFormHeader",data:a.update_form}}}}const Ml={formToken:o.z.string()};const ql=1e3;var Hl,Gl;!function(e){e[e.YEAR=31536e3]="YEAR",e[e.MONTH31Days=2678400]="MONTH31Days",e[e.MONTH30Days=2592e3]="MONTH30Days",e[e.MONTH29Days=2505600]="MONTH29Days",e[e.MONTH28Days=2419200]="MONTH28Days",e[e.WEEK=604800]="WEEK",e[e.DAY=86400]="DAY",e[e.HOUR=3600]="HOUR",e[e.MINUTE=60]="MINUTE"}(Hl||(Hl={})),function(e){e[e.YEAR=31536e6]="YEAR",e[e.MONTH31Days=26784e5]="MONTH31Days",e[e.MONTH30Days=2592e6]="MONTH30Days",e[e.MONTH29Days=25056e5]="MONTH29Days",e[e.MONTH28Days=24192e5]="MONTH28Days",e[e.DAY=864e5]="DAY",e[e.HOUR=36e5]="HOUR",e[e.MINUTE=6e4]="MINUTE",e[e.SECOND=ql]="SECOND"}(Gl||(Gl={}));const Wl=10*Gl.SECOND;function Yl(e,t){const a=e?.response?.errors?.map((e=>e.message))?.join(", ");if(a)throw new Error(`Failed to ${t}: ${a}`);const i=e instanceof Error?e.message:"Unknown error";throw new Error(`Failed to ${t}: ${i}`)}function Ql(e){if(e instanceof Error&&"AbortError"===e.name)throw new Error("Search has timed out, try providing alternative search term")}const Kl=fs`
1009
+ `,Wp={questionId:"Question ID. Required for update/delete."},Yp={operations:{createForm:"Create a new form with specified configuration. Returns the created form with its unique token.",updateForm:{action:"Action to execute on the form. Each action requires different fields — check field descriptions to know what to include."},activateForm:"Activate a form to make it visible to users and accept new submissions.",deactivateForm:"Deactivate a form to hide it from users and stop accepting submissions. Form data is preserved."},properties:{id:"The unique identifier for the form. Auto-generated upon creation.",token:"The unique token used to access and identify the form. Used in public URLs and API calls.",boardId:"The board ID connected to the form. Used to store form responses as items.",title:"The display title shown to users at the top of the form.",description:"Optional detailed description explaining the form purpose, displayed below the title.",active:"Boolean indicating if the form is currently accepting responses and visible to users.",ownerId:"The ID of the user who created and owns this form. Determines permissions.",createWithAI:"Boolean indicating if this form was initially created using AI assistance.",builtWithAI:"Boolean indicating if this form was built or modified using AI functionality.",questions:"Array of question objects that make up the form content, in display order.",isSuspicious:"Boolean flag indicating if the form has been flagged for review due to suspicious content or activity.",isAnonymous:"Hides submitter identity.",type:"The category or classification of the form for organizational purposes.",features:"Object containing feature toggles and settings like password protection, response limits, etc.",appearance:"Object containing visual styling settings including colors, fonts, layout, and branding.",accessibility:"Object containing accessibility settings such as language, alt text, and reading direction.",tags:{description:"Array of tracking tags for categorization and analytics (e.g., UTM parameters for marketing tracking).",id:"Required for update/delete. Auto-generated.",name:"Required for create. Cannot be updated.",value:"Required for create/update.",columnId:"Auto-generated. Cannot be updated."}},inputs:{title:"Required for updateFormHeader.",description:"Required for updateFormHeader.",input:"Complete form configuration object containing properties to create or update.",questions:"All question IDs in order. Must include every existing ID. Required for updateQuestionOrder.",questionId:"Question ID. Required for update/delete.",tag:"Tag to create/update/delete. Delete: id only. Create: name+value (id/columnId auto-generated). Update: id+new value.",form:{describe:"Form data to update (patch semantics).",appearance:"Patch. Required for updateAppearance.",accessibility:"Patch. Required for updateAccessibility.",features:"Patch. Required for updateFeatures.",questionOrder:"Patch. Required for updateQuestionOrder.",formHeader:"Patch. Required for updateFormHeader."}},args:{destinationName:"Board name (stores form responses).",boardSubscriberIds:"User IDs to notify on board activity.",boardSubscriberTeamsIds:"Team IDs to notify on board activity."}},Qp={operations:{updateFormSettings:"Update form configuration including features, appearance, and accessibility options.",setFormPassword:"Required for setFormPassword action.",shortenUrl:"Shorten a URL for a form and store it in the form settings. Returns the shortened link object."},properties:{passwordEnabled:"Can only be set to false. Use setFormPassword to enable.",closeDateValue:"ISO timestamp.",includeNameQuestion:"Adds name column as a form question.",includeUpdateQuestion:"Adds updates/comments field linked to the board item.",syncQuestionAndColumnsTitles:"Syncs question titles with board column names.",allowCreateItem:"Shows 'Create Item' button on the board to open this form.",backgroundValue:"Hex color or image URL (depends on type).",logoSize:"Logo size for the form header.",language:"Form locale, e.g. 'en', 'es', 'fr'."},inputs:{settings:"Complete form settings object containing all configuration options.",features:"Form features configuration including security, limits, and access controls.",appearance:"Visual styling configuration including colors, layout, and branding.",accessibility:"Accessibility configuration including language and reading direction.",password:"Password configuration for the form. Only setting enabled to false is supported. To enable a form to be password protected, please use the set_form_password mutation instead.",passwordValue:"The password to set for the form. Must be at least 1 character long."}},Kp={actions:{type:"Action to perform on the question of a form. create requires question. update requires questionId and question with type always included. delete requires questionId.",question:"The question to create or update. Always include type, then only the fields you want to set or change."},properties:{title:"Question text. Required when creating.",type:"Question type. Always required. Cannot be changed after creation — always send the existing type when updating.",position:"Integer specifying the display order of the question within the form (zero-based).",description:"Help text shown under the question.",placeholder:"Optional placeholder text shown in input fields to guide user input.",createdAt:"ISO timestamp when the question was created.",updatedAt:"ISO timestamp when the question was last modified.",selectOptions:"Options for select questions. Always include all options — omitting an existing option will delete it. To update safely, call get_form first to retrieve existing option values, then include all options you want to keep with their original value fields.",selectOptionsValue:"Unique identifier for the option. If this option was used in existing submissions, it must keep its original value to preserve data integrity.",blockType:"The kind of block to create. Includes all question types and content block types.",insertAfterQuestionId:"ID to insert after. Omit to append. Null for first position.",pageBlockId:"Page block ID to group this question within. Set to null to remove from page block. Omit to leave unchanged."},showIfRules:"Conditional visibility. All operators must be OR.",showIfConditionBuildingBlockId:"Question ID to evaluate.",showIfConditionValues:"Answer values that satisfy the condition.",inputs:{question:"Complete question object containing all properties for creation or update.",questionData:"Question configuration including type, title, and type-specific settings.",position:"Integer position where the question should be placed in the form sequence."}},Jp={properties:{validation:"Validation rules applied to the question response",prefill:"Auto-populates from account data or URL query params.",prefillLookup:"Field name (e.g. 'email') or URL param name.",prefixAutofilled:"Phone only. Auto-detects country prefix.",prefixPredefined:"Phone only. Sets a default country prefix.",prefixPredefinedPrefix:"Country code, e.g. 'US', 'IL'.",checkedByDefault:"Boolean question type only.",defaultCurrentDate:"Date question type only.",includeTime:"Date only. Adds time picker.",display:"SingleSelect/MultiSelect only.",optionsOrder:"SingleSelect/MultiSelect only.",locationAutofilled:"Location only. Auto-fills current location.",limit:"Rating questions only: Maximum rating value that users can select.",skipValidation:"Link only. Skips URL format validation.",labelLimitCount:"MultiSelect only. Max selections. Pair with labelLimitCountEnabled.",labelLimitCountEnabled:"MultiSelect only. Enables selection limit.",defaultAnswer:"ShortText/LongText/Name/Link only. Pre-filled default value."},inputs:{settings:"Question-specific configuration object that varies by question type.",validationRules:"Validation constraints and rules",choiceOptions:"List of available choices for selection questions",fileSettings:"File upload constraints and settings"}},Xp={destination_workspace_id:o.z.string(),destination_folder_id:o.z.string().optional(),destination_folder_name:o.z.string().optional(),board_kind:o.z.nativeEnum(Un).optional(),destination_name:o.z.string().optional().describe(Yp.args.destinationName),board_owner_ids:o.z.array(o.z.string()).optional(),board_owner_team_ids:o.z.array(o.z.string()).optional(),board_subscriber_ids:o.z.array(o.z.string()).optional().describe(Yp.args.boardSubscriberIds),board_subscriber_teams_ids:o.z.array(o.z.string()).optional().describe(Yp.args.boardSubscriberTeamsIds)};var Zp,el,tl,al,il,nl,ol,rl,dl,sl,pl,ll,ml,cl,ul,hl;!function(e){e.Internal="internal",e.InlineInternal="inline_internal",e.Preview="preview",e.Standard="standard",e.EnforcedItemCreationForm="enforced_item_creation_form"}(Zp||(Zp={})),function(e){e.Small="Small",e.Medium="Medium",e.Large="Large",e.ExtraLarge="ExtraLarge"}(el||(el={})),function(e){e.Auto="Auto",e.Left="Left",e.Center="Center",e.Right="Right"}(tl||(tl={})),function(e){e.Image="Image",e.Color="Color",e.None="None"}(al||(al={})),function(e){e.LtR="LtR",e.Rtl="Rtl"}(il||(il={})),function(e){e.OneByOne="OneByOne",e.Classic="Classic"}(nl||(nl={})),function(e){e.FullLeft="FullLeft",e.Left="Left",e.Center="Center",e.Right="Right",e.FullRight="FullRight"}(ol||(ol={})),function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"}(rl||(rl={})),function(e){e.Boolean="Boolean",e.ConnectedBoards="ConnectedBoards",e.Country="Country",e.Date="Date",e.DateRange="DateRange",e.Email="Email",e.File="File",e.Link="Link",e.Location="Location",e.LongText="LongText",e.MultiSelect="MultiSelect",e.Name="Name",e.Number="Number",e.People="People",e.Phone="Phone",e.Rating="Rating",e.ShortText="ShortText",e.Signature="Signature",e.SingleSelect="SingleSelect",e.Subitems="Subitems",e.Updates="Updates"}(dl||(dl={})),function(e){e.Account="account",e.QueryParam="queryParam"}(sl||(sl={})),function(e){e.Email="email",e.Name="name",e.Title="title",e.Phone="phone",e.FirstName="first_name",e.LastName="last_name",e.Location="location",e.Timezone="time_zone",e.ManagerName="manager_display_name"}(pl||(pl={})),function(e){e.Or="OR"}(ll||(ll={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical",e.Dropdown="dropdown"}(ml||(ml={})),function(e){e.Alphabetical="alphabetical",e.Random="random",e.Custom="custom"}(cl||(cl={})),function(e){e.MultiSelect="multi-select",e.SingleSelect="single-select",e.People="people",e.Location="location",e.CountryCode="country-code",e.Country="country",e.ConnectedBoards="connected_boards"}(ul||(ul={})),function(e){e.Delete="delete",e.Update="update",e.Create="create"}(hl||(hl={}));const fl=o.z.object({type:o.z.nativeEnum(Lo).describe(Kp.properties.type),title:o.z.string().describe(Kp.properties.title).optional(),description:o.z.string().describe(Kp.properties.description).optional(),visible:o.z.boolean().optional(),required:o.z.boolean().optional(),insert_after_question_id:o.z.string().nullish().describe(Kp.properties.insertAfterQuestionId),page_block_id:o.z.string().nullish().describe(Kp.properties.pageBlockId),show_if_rules:o.z.object({operator:o.z.nativeEnum(to),rules:o.z.array(o.z.object({operator:o.z.nativeEnum(to),conditions:o.z.array(o.z.object({building_block_id:o.z.string().describe(Kp.showIfConditionBuildingBlockId),operator:o.z.nativeEnum(to),values:o.z.array(o.z.string()).describe(Kp.showIfConditionValues)}))}))}).describe(Kp.showIfRules).optional(),options:o.z.array(o.z.object({label:o.z.string(),value:o.z.string().optional().describe(Kp.properties.selectOptionsValue),visible:o.z.boolean().optional()})).describe(Kp.properties.selectOptions).optional(),settings:o.z.object({checkedByDefault:o.z.boolean().describe(Jp.properties.checkedByDefault).optional(),defaultCurrentDate:o.z.boolean().describe(Jp.properties.defaultCurrentDate).optional(),display:o.z.nativeEnum(Ro).describe(Jp.properties.display).optional(),includeTime:o.z.boolean().describe(Jp.properties.includeTime).optional(),locationAutofilled:o.z.boolean().describe(Jp.properties.locationAutofilled).optional(),optionsOrder:o.z.nativeEnum(xo).describe(Jp.properties.optionsOrder).optional(),prefixAutofilled:o.z.boolean().describe(Jp.properties.prefixAutofilled).optional(),prefixPredefined:o.z.object({enabled:o.z.boolean(),prefix:o.z.string().describe(Jp.properties.prefixPredefinedPrefix).optional()}).describe(Jp.properties.prefixPredefined).optional(),skipValidation:o.z.boolean().describe(Jp.properties.skipValidation).optional(),labelLimitCount:o.z.number().int().describe(Jp.properties.labelLimitCount).optional(),label_limit_count_enabled:o.z.boolean().describe(Jp.properties.labelLimitCountEnabled).optional(),default_answer:o.z.string().describe(Jp.properties.defaultAnswer).optional(),prefill:o.z.object({enabled:o.z.boolean(),lookup:o.z.string().describe(Jp.properties.prefillLookup).optional(),source:o.z.nativeEnum(Co).optional()}).describe(Jp.properties.prefill).optional()}).describe("Type-specific question settings. Check each field description to see which question type it applies to.").optional()}),_l={action:o.z.nativeEnum(hl).describe(Kp.actions.type),formToken:o.z.string(),questionId:o.z.string().describe(Wp.questionId).optional(),question:fl.describe(Kp.actions.question).optional()};class vl{constructor(e){this.mondayApi=e}async deleteQuestion(e){const t=e.questionId;if(!t)return{content:"Question ID is required when deleting a question."};const a={formToken:e.formToken,questionId:t};return await this.mondayApi.request(Cp,a),{content:{message:"Question deleted",question_id:t,action_name:"delete"}}}async updateQuestion(e){const t=e.questionId;if(!t)return{content:"Question ID is required when updating a question."};const a=e.question;if(!a)return{content:"Must provide updated patch props for the question when updating."};const i={formToken:e.formToken,questionId:t,question:a};return await this.mondayApi.request(xp,i),{content:{message:"Question updated",question_id:t,action_name:"update"}}}async createQuestion(e){const t=e.question;if(!t)return{content:"Must provide a full question payload when creating a question."};if(!t.title)return{content:"Must provide a title for the question when creating a question."};const a={formToken:e.formToken,question:{...t,title:t.title}},i=await this.mondayApi.request(Rp,a);return{content:{message:"Question created",question_id:i.create_form_question?.id,action_name:"create"}}}}var bl;!function(e){e.activate="activate",e.deactivate="deactivate",e.shortenFormUrl="shortenFormUrl",e.setFormPassword="setFormPassword",e.createTag="createTag",e.deleteTag="deleteTag",e.updateTag="updateTag",e.updateAppearance="updateAppearance",e.updateAccessibility="updateAccessibility",e.updateFeatures="updateFeatures",e.updateQuestionOrder="updateQuestionOrder",e.updateFormHeader="updateFormHeader"}(bl||(bl={}));const gl=o.z.object({id:o.z.string().describe(Yp.properties.tags.id).optional(),name:o.z.string().describe(Yp.properties.tags.name).optional(),value:o.z.string().describe(Yp.properties.tags.value).optional(),columnId:o.z.string().describe(Yp.properties.tags.columnId).optional()}),yl=o.z.object({type:o.z.nativeEnum(al).optional(),value:o.z.string().describe(Qp.properties.backgroundValue).optional()}),wl=o.z.object({format:o.z.nativeEnum(nl).optional(),alignment:o.z.nativeEnum(ol).optional(),direction:o.z.nativeEnum(il).optional()}),Il=o.z.object({position:o.z.nativeEnum(tl).optional(),size:o.z.nativeEnum(el).describe(Qp.properties.logoSize).optional()}),Tl=o.z.object({text:o.z.string().optional()}),El=o.z.object({font:o.z.string().optional(),color:o.z.string().optional(),size:o.z.nativeEnum(rl).optional()}),Nl=o.z.object({enabled:o.z.boolean().optional(),redirectUrl:o.z.string().optional()}),Dl=o.z.object({allowEditSubmission:o.z.boolean().optional(),allowResubmit:o.z.boolean().optional(),allowViewSubmission:o.z.boolean().optional(),description:o.z.string().optional(),redirectAfterSubmission:Nl.optional(),showSuccessImage:o.z.boolean().optional(),title:o.z.string().optional()}),Sl=o.z.object({enabled:o.z.boolean().optional(),date:o.z.string().describe(Qp.properties.closeDateValue).optional()}),Al=o.z.object({enabled:o.z.boolean().optional()}),kl=o.z.object({itemGroupId:o.z.string().optional(),includeNameQuestion:o.z.boolean().describe(Qp.properties.includeNameQuestion).optional(),includeUpdateQuestion:o.z.boolean().describe(Qp.properties.includeUpdateQuestion).optional(),syncQuestionAndColumnsTitles:o.z.boolean().describe(Qp.properties.syncQuestionAndColumnsTitles).optional(),allow_create_item:o.z.boolean().describe(Qp.properties.allowCreateItem).optional()}),Ol=o.z.object({enabled:o.z.boolean().describe(Qp.properties.passwordEnabled).optional()}),$l=o.z.object({text:o.z.string().optional()}),Cl=o.z.object({enabled:o.z.boolean().optional(),title:o.z.string().optional(),description:o.z.string().optional(),startButton:$l.optional()}),Rl=o.z.object({enabled:o.z.boolean().optional(),redirectToLogin:o.z.boolean().optional()}),xl=o.z.object({enabled:o.z.boolean().optional(),limit:o.z.number().optional()}),Ll=o.z.object({background:yl.optional(),hideBranding:o.z.boolean().optional(),layout:wl.optional(),logo:Il.optional(),primaryColor:o.z.string().optional(),showProgressBar:o.z.boolean().optional(),submitButton:Tl.optional(),text:El.optional()}),Vl=o.z.object({language:o.z.string().describe(Qp.properties.language).optional(),logoAltText:o.z.string().optional()}),Fl=o.z.object({enabled:o.z.boolean().optional()}),Ul=o.z.object({afterSubmissionView:Dl.optional(),ai_translate:Fl.optional(),closeDate:Sl.optional(),draftSubmission:Al.optional(),monday:kl.optional(),password:Ol.optional(),preSubmissionView:Cl.optional(),reCaptchaChallenge:o.z.boolean().optional(),requireLogin:Rl.optional(),responseLimit:xl.optional(),is_anonymous:o.z.boolean().describe(Yp.properties.isAnonymous).optional()}),Pl=o.z.object({id:o.z.string().describe(Yp.inputs.questionId),page_block_id:o.z.string().describe(Kp.properties.pageBlockId).optional()}),zl=o.z.object({appearance:Ll.describe(Yp.inputs.form.appearance).optional(),accessibility:Vl.describe(Yp.inputs.form.accessibility).optional(),features:Ul.describe(Yp.inputs.form.features).optional(),title:o.z.string().describe(Yp.inputs.title).optional(),description:o.z.string().describe(Yp.inputs.description).optional(),questions:o.z.array(Pl).describe(Yp.inputs.questions).optional()}),jl={formToken:o.z.string(),action:o.z.nativeEnum(bl).describe(Yp.operations.updateForm.action),formPassword:o.z.string().describe(Qp.operations.setFormPassword).optional(),tag:gl.describe(Yp.inputs.tag).optional(),form:zl.describe(Yp.inputs.form.describe).optional()};class Bl{constructor(e){this.mondayApi=e}async setFormPassword(e){if(!e.formPassword)return{content:'formPassword is required for the action "setFormPassword" in the update form tool.'};const t={formToken:e.formToken,input:{password:e.formPassword}};return await this.mondayApi.request(Lp,t),{content:{message:"Form password successfully set",form_token:e.formToken,action_name:"setFormPassword"}}}async shortenFormUrl(e){const t={formToken:e.formToken};return await this.mondayApi.request(Vp,t),{content:{message:"Form URL successfully shortened",form_token:e.formToken,action_name:"shortenFormUrl"}}}async deactivateForm(e){const t={formToken:e.formToken};return await this.mondayApi.request(Fp,t),{content:{message:"Form successfully deactivated",form_token:e.formToken,action_name:"deactivateForm"}}}async activateForm(e){const t={formToken:e.formToken};return await this.mondayApi.request(Up,t),{content:{message:"Form successfully activated",form_token:e.formToken,action_name:"activateForm"}}}async createTag(e){if(!e.tag)return{content:'Tag is required for the action "createTag" in the update form tool.'};if(!e.tag.name)return{content:'Tag name is required for the action "createTag" in the update form tool.'};const t={formToken:e.formToken,tag:{name:e.tag.name,value:e.tag.value}},a=await this.mondayApi.request(zp,t);return{content:{message:"Tag successfully added",form_token:e.formToken,action_name:"createTag",data:a.create_form_tag}}}async deleteTag(e){if(!e.tag)return{content:'Tag is required for the action "deleteTag" in the update form tool.'};if(!e.tag.id)return{content:'Tag id is required for the action "deleteTag" in the update form tool.'};const t={formToken:e.formToken,tagId:e.tag.id};return await this.mondayApi.request(Pp,t),{content:{message:"Tag deleted",form_token:e.formToken,tag_id:e.tag.id,action_name:"deleteTag"}}}async updateTag(e){if(!e.tag)return{content:'Tag is required for the action "updateTag" in the update form tool.'};if(!e.tag.id||!e.tag.value)return{content:'Tag id and value are required for the action "updateTag" in the update form tool.'};const t={formToken:e.formToken,tagId:e.tag.id,tag:{value:e.tag.value}};return(await this.mondayApi.request(jp,t)).update_form_tag?{content:{message:"Tag updated",form_token:e.formToken,tag_id:e.tag.id,action_name:"updateTag"}}:{content:`Unable to update tag with id: ${e.tag.id}.`}}async updateAppearance(e){if(!e.form?.appearance)return{content:'Appearance is required for the action "updateAppearance" in the update form tool.'};const t={formToken:e.formToken,appearance:e.form.appearance},a=await this.mondayApi.request(Bp,t);return{content:{message:"Appearance successfully updated",form_token:e.formToken,action_name:"updateAppearance",data:a.update_form_settings?.appearance}}}async updateAccessibility(e){if(!e.form?.accessibility)return{content:'Accessibility is required for the action "updateAccessibility" in the update form tool.'};const t={formToken:e.formToken,accessibility:e.form.accessibility},a=await this.mondayApi.request(Mp,t);return{content:{message:"Accessibility successfully updated",form_token:e.formToken,action_name:"updateAccessibility",data:a.update_form_settings?.accessibility}}}async updateFeatures(e){if(!e.form?.features)return{content:'Features is required for the action "updateFeatures" in the update form tool.'};const{is_anonymous:t,...a}=e.form.features,i={formToken:e.formToken,features:a,is_anonymous:t},n=await this.mondayApi.request(qp,i);return{content:{message:"Features successfully updated",form_token:e.formToken,action_name:"updateFeatures",data:n.update_form_settings?.features}}}async updateQuestionOrder(e){if(!e.form?.questions)return{content:'List of dehydrated questions is required for the action "updateQuestionOrder" in the update form tool.'};const t={formToken:e.formToken,questions:e.form.questions},a=await this.mondayApi.request(Hp,t);return{content:{message:"Question order successfully updated",form_token:e.formToken,action_name:"updateQuestionOrder",data:a.update_form?.questions}}}async updateFormHeader(e){if(!e.form?.title&&!e.form?.description)return{content:'Title or description is required for the action "updateFormHeader" in the update form tool.'};const t={formToken:e.formToken,title:e.form.title,description:e.form.description},a=await this.mondayApi.request(Gp,t);return{content:{message:"Form header updated",form_token:e.formToken,action_name:"updateFormHeader",data:a.update_form}}}}const Ml={formToken:o.z.string()};const ql=1e3;var Hl,Gl;!function(e){e[e.YEAR=31536e3]="YEAR",e[e.MONTH31Days=2678400]="MONTH31Days",e[e.MONTH30Days=2592e3]="MONTH30Days",e[e.MONTH29Days=2505600]="MONTH29Days",e[e.MONTH28Days=2419200]="MONTH28Days",e[e.WEEK=604800]="WEEK",e[e.DAY=86400]="DAY",e[e.HOUR=3600]="HOUR",e[e.MINUTE=60]="MINUTE"}(Hl||(Hl={})),function(e){e[e.YEAR=31536e6]="YEAR",e[e.MONTH31Days=26784e5]="MONTH31Days",e[e.MONTH30Days=2592e6]="MONTH30Days",e[e.MONTH29Days=25056e5]="MONTH29Days",e[e.MONTH28Days=24192e5]="MONTH28Days",e[e.DAY=864e5]="DAY",e[e.HOUR=36e5]="HOUR",e[e.MINUTE=6e4]="MINUTE",e[e.SECOND=ql]="SECOND"}(Gl||(Gl={}));const Wl=10*Gl.SECOND;function Yl(e,t){const a=e?.response?.errors?.map((e=>{const{code:t,error_data:a}=e.extensions??{},i=Object.fromEntries(Object.entries({code:t,error_data:a}).filter((([,e])=>void 0!==e)));return Object.keys(i).length>0?`${e.message} (details: ${JSON.stringify(i)})`:e.message}))?.join(", ");if(a)throw new Error(`Failed to ${t}: ${a}`);const i=e instanceof Error?e.message:"Unknown error";throw new Error(`Failed to ${t}: ${i}`)}function Ql(e){if(e instanceof Error&&"AbortError"===e.name)throw new Error("Search has timed out, try providing alternative search term")}const Kl=fs`
1010
1010
  mutation CreateFormSubmission(
1011
1011
  $form_token: String!
1012
1012
  $answers: [FormAnswerInput!]!