@apostlejs/flows 0.0.6 → 0.0.7
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/index.cjs +1 -1
- package/dist/index.d.cts +7 -1
- package/package.json +5 -2
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("zod-to-json-schema"),t=require("zod"),n=require("@apostlejs/whatsapp"),o=require("node:util"),a=Object.defineProperty,i={"*":["name","type","on-click-action","on-select-action","on-unselect-action","input-type","markdown","media-size","font-weight","Then","Else","Cases","children","max-file-size-kb"],Footer:["center-caption","left-caption","right-caption"],PhotoPicker:["min-uploaded-photos","max-uploaded-photos","photo-source","required"],Image:["scale-type"],TextArea:["max-length","label-variant"],TextInput:["label-variant"]},r=Object.values(i).flat(),s=t=>{const n=e.zodToJsonSchema(t,{$refStrategy:"none"}),o=(e,t=0)=>{if("object"!=typeof e||null===e)return e;const n=new Set([...r,"additionalProperties","required","enum","$schema"]),a=Object.fromEntries(Object.entries(e).filter((([e])=>!n.has(e))));if(a.properties&&"object"==typeof a.properties){const e={};for(const[n,i]of Object.entries(a.properties))e[n]=o(i,t+1);a.properties=e}a.items&&(a.items=o(a.items,t+1));const i=e.type??"object",s={string:"example",boolean:!0,number:42,integer:1,array:[],object:{}}[i]??null;return 0===t?{type:i,...a,__example__:s}:{type:i,...a}};return o(n)},l={Title:t.z.object({type:t.z.literal("Title"),id:t.z.string(),text:t.z.string()})},c=t.z.enum(["data_exchange","navigate","complete","update_data","open_url"]),p=t.z.object({name:c,payload:t.z.record(t.z.any()).optional(),next:t.z.object({type:t.z.literal("screen"),name:t.z.string()}).optional(),url:t.z.string().optional()}),d=p.extend({name:t.z.union([t.z.literal("update_data"),t.z.literal("data_exchange")])}),m=p.extend({name:t.z.literal("update_data")}),u=t.z.object({visible:t.z.boolean().optional()}),g=t.z.object({type:t.z.literal("Form"),name:t.z.string().optional(),children:t.z.array(t.z.any()).optional(),"error-messages":t.z.record(t.z.any()).optional(),"init-values":t.z.record(t.z.any()).optional()}),z=t.z.object({name:t.z.string(),required:t.z.boolean().optional(),enabled:t.z.boolean().optional(),"error-message":t.z.string().optional(),"init-value":t.z.string().optional()}).merge(u),f=t.z.object({id:t.z.string(),title:t.z.string(),description:t.z.string().optional(),metadata:t.z.string().optional(),enabled:t.z.boolean().optional(),image:t.z.string().optional(),"alt-text":t.z.string().optional(),color:t.z.string().optional(),"on-click-action":p.optional(),"on-select-action":m.optional(),"on-unselect-action":m.optional()}),b=z.merge(t.z.object({label:t.z.string(),description:t.z.string().optional(),"data-source":t.z.array(f),"media-size":t.z.enum(["regular","large"]).optional(),"on-click-action":p.optional(),"on-select-action":d.optional(),"on-unselect-action":d.optional()})),h=z.merge(t.z.object({type:t.z.literal("TextInput"),label:t.z.string(),"label-variant":t.z.enum(["large"]).optional(),"input-type":t.z.enum(["text","number","email","password","passcode","phone"]).optional(),pattern:t.z.string().optional(),"helper-text":t.z.string().optional(),"min-chars":t.z.number().optional(),"max-chars":t.z.number().optional()})),y=z.merge(t.z.object({type:t.z.literal("TextArea"),label:t.z.string(),"label-variant":t.z.enum(["large"]).optional(),"max-length":t.z.number().optional(),"helper-text":t.z.string().optional()})),x=b.merge(t.z.object({type:t.z.literal("CheckboxGroup"),"min-selected-items":t.z.number().optional(),"max-selected-items":t.z.number().optional()})),w=b.merge(t.z.object({type:t.z.literal("RadioButtonsGroup")})),v=z.merge(t.z.object({type:t.z.literal("Dropdown"),label:t.z.string(),"data-source":t.z.array(f),"on-click-action":p.optional(),"on-select-action":d.optional(),"on-unselect-action":d.optional()})),j=z.merge(t.z.object({type:t.z.literal("DatePicker"),label:t.z.string(),"min-date":t.z.string().optional(),"max-date":t.z.string().optional(),"unavailable-dates":t.z.array(t.z.string()).optional(),"helper-text":t.z.string().optional(),"on-select-action":d.optional()})),k=z.merge(t.z.object({type:t.z.literal("CalendarPicker"),title:t.z.string().optional(),description:t.z.string().optional(),label:t.z.string(),"helper-text":t.z.string().optional(),mode:t.z.enum(["single","range"]).default("single").optional(),"min-date":t.z.string().optional(),"max-date":t.z.string().optional(),"unavailable-dates":t.z.array(t.z.string()).optional(),"include-days":t.z.array(t.z.enum(["Mon","Tue","Wed","Thu","Fri","Sat","Sun"])).optional(),"min-days":t.z.number().optional(),"max-days":t.z.number().optional(),"on-select-action":d.optional()})),_=z.merge(t.z.object({type:t.z.literal("ChipsSelector"),label:t.z.string(),description:t.z.string().optional(),"data-source":t.z.array(f),"min-selected-items":t.z.number().optional(),"max-selected-items":t.z.number().optional(),"on-click-action":p.optional(),"on-select-action":d.optional(),"on-unselect-action":d.optional()})),$={Form:g,TextInput:h,TextArea:y,CheckboxGroup:x,RadioButtonsGroup:w,Dropdown:v,DatePicker:j,CalendarPicker:k,OptIn:z.omit({enabled:!0}).merge(t.z.object({type:t.z.literal("OptIn"),label:t.z.string(),"on-click-action":p.optional(),"on-select-action":d.optional(),"on-unselect-action":d.optional()})),NavigationList:t.z.object({type:t.z.literal("NavigationList"),name:t.z.string(),"list-items":t.z.array(t.z.object({id:t.z.string(),"main-content":t.z.object({title:t.z.string(),description:t.z.string().optional(),metadata:t.z.string().optional()}),end:t.z.object({title:t.z.string().optional(),description:t.z.string().optional(),metadata:t.z.string().optional()}).optional(),start:t.z.object({image:t.z.string().optional(),"alt-text":t.z.string().optional()}).optional(),badge:t.z.string().optional(),tags:t.z.array(t.z.string()).optional(),"on-click-action":p.optional()})),label:t.z.string().optional(),description:t.z.string().optional(),"media-size":t.z.enum(["regular","large"]).default("regular").optional(),"on-click-action":p.optional()}),ChipsSelector:_,PhotoPicker:z.merge(t.z.object({type:t.z.literal("PhotoPicker"),label:t.z.string(),description:t.z.string().max(300).optional(),"photo-source":t.z.enum(["camera_gallery","camera","gallery"]).default("camera_gallery").optional(),"max-file-size-kb":t.z.number().int().min(1).max(25600).default(25600).optional(),"min-uploaded-photos":t.z.number().int().min(0).max(30).default(0).optional(),"max-uploaded-photos":t.z.number().int().min(1).max(30).default(30).optional()})),DocumentPicker:z.merge(t.z.object({type:t.z.literal("DocumentPicker"),label:t.z.string(),description:t.z.string().max(300).optional(),"max-file-size-kb":t.z.number().int().min(1).max(25600).default(25600).optional(),"min-uploaded-documents":t.z.number().int().min(0).max(30).default(0).optional(),"max-uploaded-documents":t.z.number().int().min(1).max(30).default(30).optional(),"allowed-mime-types":t.z.array(t.z.enum(["application/gzip","application/msword","application/pdf","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/x-7z-compressed","application/zip","image/avif","image/gif","image/heic","image/heif","image/jpeg","image/png","image/tiff","image/webp","text/plain","video/mp4","video/mpeg"])).optional()}))},C={Footer:t.z.object({type:t.z.literal("Footer"),label:t.z.string(),enabled:t.z.boolean().optional(),"left-caption":t.z.string().optional(),"center-caption":t.z.string().optional(),"right-caption":t.z.string().optional(),"on-click-action":p.optional()}),If:t.z.object({type:t.z.literal("If"),condition:t.z.string(),Then:t.z.array(t.z.any()),Else:t.z.array(t.z.any()).optional()}),Switch:t.z.object({type:t.z.literal("Switch"),value:t.z.string(),Cases:t.z.record(t.z.array(t.z.any()))})},O=t.z.object({id:t.z.string(),text:t.z.string()}).merge(u),T=t.z.enum(["bold","italic","bold_italic","normal"]),I={TextHeading:t.z.object({type:t.z.literal("TextHeading")}).merge(O),TextSubheading:t.z.object({type:t.z.literal("TextSubheading"),text:t.z.string()}).merge(O),TextBody:t.z.object({type:t.z.literal("TextBody"),"font-weight":T.optional(),strikethrough:t.z.boolean().optional(),markdown:t.z.boolean().optional()}).merge(O),TextCaption:t.z.object({type:t.z.literal("TextCaption"),"font-weight":T.optional(),strikethrough:t.z.boolean().optional(),markdown:t.z.boolean().optional()}).merge(O),RichText:t.z.object({type:t.z.literal("RichText"),id:t.z.string().optional()}).merge(O),EmbeddedLink:t.z.object({type:t.z.literal("EmbeddedLink"),text:t.z.string(),"on-click-action":p.optional()}).merge(O),Image:t.z.object({type:t.z.literal("Image"),id:t.z.string(),src:t.z.string(),width:t.z.number().optional(),height:t.z.number().optional(),"scale-type":t.z.enum(["cover","contain"]).default("contain").optional(),"aspect-ratio":t.z.number().default(1).optional(),"alt-text":t.z.string().optional()}),ImageCarousel:t.z.object({type:t.z.literal("ImageCarousel"),images:t.z.array(t.z.object({src:t.z.string(),"alt-text":t.z.string()})),"scale-type":t.z.enum(["cover","contain"]).default("contain").optional(),"aspect-ratio":t.z.enum(["4:3","16:9"]).optional()})},S={...$,...C,...I,...l},F=Object.entries(S).reduce(((e,[t,n])=>(e[t]=s(n),e)),{});function P(e,t){const n={};for(const{identifier:e,type:o}of t){const t=F[o];n[e]=t?.properties?{...t,properties:Object.fromEntries(Object.entries(t.properties).map((([e,t])=>[e.replaceAll("-","_"),t])))}:t}if(e){const t=s(e).properties,o=Object.entries(t).reduce(((e,[t,n])=>{e[t]=n;const o=n=>{e[t].__example__=n};switch(e[t].type){case"number":o(0);break;case"string":default:o("");break;case"array":o([]);break;case"boolean":o(!0);break;case"object":o({})}return e}),{});Object.assign(n,o)}return n}function E(e,t){t in e&&delete e[t]}var D=["If","Switch"],N=["children","Then","Else","Cases"],q=(e,t)=>{const n=[],o=e=>{if(D.includes(e.type))return void a(e);const o=(e=>{const t=Object.keys($).includes(e.type)?"name":"id";let n="";const o="id"in e?"id":"name"in e?"name":void 0;return o||(n=e.type.toLowerCase()),o&&(n=e[o]),{value:n,key:t}})(e);if(o){Object.assign(e,{[o.key]:o.value});const{properties:t}=F[e.type];for(const n of Object.keys(t)){const t=n,a=e.type;if(i["*"].includes(t))continue;if(i[a]?.includes(t))continue;if(Object.keys(e).includes(n))continue;const r=n.replace(/-/g,"_");Object.assign(e,{[n]:`\${data.${o.value}.${r}}`})}n.push({identifier:o.value,type:e.type})}E(e,"id"),"form"===t&&(E(e,"error-message"),E(e,"init-value")),a(e)},a=e=>{for(const t of N)if(Array.isArray(e[t]))for(const n of e[t])o(n)};for(const t of e)o(t);return{parsedComponents:e,metadata:n}};function R(e){const{screens:t,...n}=e,o=[];for(const[e,n]of Object.entries(t)){const{type:t,components:a,...i}=n;let r=a;"form"===t&&(r=[{type:"Form",children:r}]);const{parsedComponents:s,metadata:l}=q(r,t),c=P(i.data,l);o.push({title:"${data.title.text}",...i,id:e,data:c,layout:{type:"SingleColumnLayout",children:s}})}return{...n,screens:o}}function A(e){const{metadata:t,preview:n,id:o,...a}=e;return JSON.parse((e=>{let t=e;return t=(e=>e.replace(/^\s*"type":\s*"string",?\n(?=\s*"const":\s*"update_data")/gm,""))(t),t=(e=>e.replaceAll(/"(Then|Else|Cases)":/g,((e,t)=>`"${t.toLowerCase()}":`)))(t),t})(JSON.stringify(a,null,2)))}var L={};function J(e){return e}function M(e,t,n,o){return"screen"===e&&t&&n&&o?`\${${e}.${t}.${n}.${o}}`:`\${${e}.${t}}`}((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(L,{complete:()=>U,components:()=>Y,condition:()=>X,dynamic_action:()=>B,dynamic_navigate:()=>H,dynamic_refresh:()=>Z,form_payload:()=>W,inline:()=>K,navigate:()=>G,parseUniqueId:()=>te,screen:()=>J,state:()=>M,txt:()=>Q,uniqueId:()=>ee,zod_payload:()=>V});var B={name:"data_exchange",payload:{}},G=(e,t={})=>({name:"navigate",next:{type:"screen",name:e},payload:t});function U(e={}){return{name:"complete",payload:e}}function H(e,t={}){return{name:"data_exchange",payload:{navigate:{screen:e,data:t}}}}var W=(...e)=>e.reduce(((e,t)=>(e[t]=`\${form.${t}}`,e)),{}),V=e=>Object.keys(e.shape).reduce(((e,t)=>(e[t]=`\${form.${t}}`,e)),{});function K(e){return"`"+e+"`"}function Q(...e){return e.join("\n")}function X(e){return K(e)}function Y(e){return e}function Z(e={}){return{name:"data_exchange",payload:{refresh:e}}}var ee=e=>e+"?deduplicate="+Date.now(),te=e=>{const t=e.split("?deduplicate=");return t.length>1?t[0]:e};function ne(e){const t=(e,t)=>({navigate:{data:t??{},screen:e.toLowerCase()}}),n=t=>({data:t,screen:e.screen});return{...e,init:e=>n(e),navigate:t,first:e=>t(e),refresh:e=>n(e),error:e=>n({form:{error_messages:e}}),success:e=>({data:e??{},screen:"success"})}}function oe(e,t){const o=n.createWhatsapp();return"navigate"in e&&(e={data:e.navigate.data??{},screen:e.navigate.screen.toUpperCase()}),"screen"in e&&(e={data:e.data??{},screen:e.screen.toUpperCase()}),o.sdk.parsers.toGraph.flowResponse(t,e)}var ae=t.z.array(t.z.object({media_id:t.z.string(),cdn_url:t.z.string(),file_name:t.z.string(),encryption_metadata:t.z.object({encrypted_hash:t.z.string(),iv:t.z.string(),encryption_key:t.z.string(),hmac_key:t.z.string(),plaintext_hash:t.z.string()})}));exports.buildApiResponse=oe,exports.complete=U,exports.componentData=function(e){return Object.entries(e).reduce(((e,[t,n])=>(e[t.replaceAll("-","_")]=n,e)),{})},exports.components=Y,exports.condition=X,exports.createDevFlowJson=R,exports.createFlowContext=ne,exports.createFlowControllerPool=function(e){return e.reduce(((e,t)=>(Object.assign(e,{[t.name]:t.screenHandlers}),e)),{})},exports.createNativeFlowJson=A,exports.createStoreFactory=function(e){return function(t,n={}){return{adapterFactory:e,schema:t,defaultValue:n}}},exports.deployFlows=async function(e,t){const a=n.createWhatsapp(),{data:i}=await a.sdk.actions.flows.getMany(),r=new Map(t.map((e=>[e.metadata.name,R(e)]))),s=new Map(e.map((e=>[e.metadata.name,R(e)]))),l=[],c=[];for(const[e,t]of r.entries()){const n=i.find((t=>t.name===e)),a=s.get(e);if(!n){console.log(`➤ Flow '${e}' marked for creation`),l.push(t);continue}if(!a){console.log(`➤ Flow '${e}' not found in old list, marked for update`),c.push({id:n.id,flow:t});continue}const{preview:r,metadata:p,...d}=a,{preview:m,metadata:u,...g}=t;o.isDeepStrictEqual(r,m)&&o.isDeepStrictEqual(d,g)?console.log(`✔ Skipping '${e}', no changes`):(console.log(`➤ Changes detected in flow '${e}', marked for update`),c.push({id:n.id,flow:t}))}const p=[];for(const e of l){const{name:t,endpoint_uri:n,categories:o}=e.metadata,i=A(e);console.log(`➤ Creating and publishing flow '${t}'`);try{await a.sdk.actions.flows.create({name:t,categories:o,endpoint_uri:n,flow_json:i,publish:!0}),console.log(`\t✔ Created and published '${t}'`),p.push(i)}catch(e){throw console.error(`✖ Failed to create/publish '${t}':`,e),new Error(`Deployment failed during creation of '${t}'`)}}for(const{id:e,flow:t}of c){const{name:n}=t.metadata,o=A(t);console.log(`➤ Updating and publishing flow '${n}' (ID: ${e})`);try{const i=await a.sdk.actions.flows.updateJson(e,o);if(i.validation_errors.length>0)throw console.error(`✖ JSON validation errors for '${n}':`,i.validation_errors),new Error(`Deployment failed: Invalid JSON for '${n}'`);console.log(`\t✔ JSON updated for '${n}'`),await new Promise((e=>setTimeout(e,1e3))),await a.sdk.actions.flows.updateMetadata(e,t.metadata),console.log(`\t✔ Metadata updated for '${n}'`),await a.sdk.actions.flows.publish(e),console.log(`\t✔ Published '${n}'`),p.push(o)}catch(t){throw console.error(`✖ Failed to update/publish '${n}' (ID: ${e}):`,t),new Error(`Deployment failed during update of '${n}'`)}}return p},exports.dispatchFlowPayload=async function(e,t){const o=((a=function(e){const t=n.createWhatsapp(),{screen:o,action:a,data:i,flow_token:r}=e,{flowName:s,flowIdentifier:l,flowParameters:c,chatId:p}=t.sdk.utils.flows.destructureFlowToken(r),d={action:"first",name:s,context:{chatId:p,screen:o,flow:s,identifier:l,parameters:c},data:i,screen:o};return"data_exchange"===a&&(d.action="submit",i.navigate&&(d.action="init",d.screen=i.navigate.screen,d.data=i.navigate.data),i.refresh&&(d.action="refresh",d.data=i.refresh)),"BACK"===a&&(d.action="back"),d}(t)).screen&&(a.screen=a.screen.toLowerCase()),a.context.screen&&(a.context.screen=a.context.screen.toLowerCase()),a);var a;let i={};if(i=o.screen?e?.[o.name]?.[o.screen]?.[o.action]:e?.[o.name]?.[o.action],!i)throw new Error(`No controller for action '${o.action}' in flow '${o.name}' for screen '${o.screen}'`);let r=await i({ctx:o.context,input:o.data,variables:o.data});if(!r)throw new Error(`No controller response for action '${o.action}' in flow '${o.name}' for screen '${o.screen}'`);if("navigate"in r){const t=r.navigate.screen,n=e[o.name][t];if(!n)throw new Error(`No screen controller for screen '${t}' in flow '${o.name}'`);const a=n.init;o.context.screen=t,r=await a({ctx:o.context,input:r.navigate.data})}return oe(r,t.flow_token)},exports.dynamic_action=B,exports.dynamic_navigate=H,exports.dynamic_refresh=Z,exports.f=L,exports.firstScreen=({define:e,store:t,middleware:n})=>async({ctx:o})=>{const a=ne(o),i=t?.adapterFactory({flow_identifier:o.identifier,chat_id:o.chatId});let r={};if(i&&t){let e=await i.stash();0===Object.keys(e).length&&(e=t.defaultValue),r=new Proxy(e,{get:Reflect.get,set:Reflect.set})}const s={...a,store:r},l=n?await n(s):s;return e(l)},exports.flow=e=>e,exports.flowController=function(e,t){return{screenHandlers:t,name:e.name}},exports.flowMediaInput=ae,exports.form_payload=W,exports.getFlowMetadata=function(e){return{name:e.metadata.name,_typings_routing:null}},exports.getScreenMetadata=e=>null,exports.inline=K,exports.navigate=G,exports.parseUniqueId=te,exports.screen=J,exports.screenController=function(e,t){const n=e=>async({ctx:n,input:o,variables:a})=>{const i=ne(n);let r={};const s=t.store?.adapterFactory({flow_identifier:n.identifier,chat_id:n.chatId});if(t.store&&s){let e=await s.stash();0===Object.keys(e).length&&(e=t.store.defaultValue),r=new Proxy(e,{get:Reflect.get,set:Reflect.set})}const l={...i,store:r},c=t.middleware?await t.middleware(l):l;let p;if("init"===e){const e=t.actions?.init;if(!e)throw new Error(`No init handler for screen '${n.screen}' in flow '${n.flow}'`);const a=await e({ctx:c,data:o});p=c.init(a)}if("back"===e){const e=t.actions.back;if(!e)throw new Error(`No back handler for screen '${n.screen}' in flow '${n.flow}'`);p=await e({ctx:c})}if("refresh"===e){const e=t.actions.refresh;if(!e)throw new Error("Refresh handler is not defined");p=await e({ctx:c,variables:a})}if("submit"===e){const e=t.actions.submit;if(!e)throw new Error("Form submit handler is not defined");if(!t.input)throw new Error("Screen input schema is not defined");const n=t.input.safeParse(o);if(n.error){const e=n.error.errors.reduce(((e,t)=>(t.path?.[0]&&(e[t.path[0]]=t.message),e)),{});p=c.error(e)}else p=await e({ctx:c,input:n.data})}return s&&await s.flush(r),p};return{init:n("init"),refresh:n("refresh"),submit:n("submit"),back:n("back")}},exports.state=M,exports.txt=Q,exports.uniqueId=ee,exports.zod_payload=V;
|
1
|
+
"use strict";var e=require("zod-to-json-schema"),t=require("zod"),r=require("@apostlejs/whatsapp"),n=require("node:util"),a=require("ajv"),p=require("ajv-formats");function o(e){return e&&e.__esModule?e:{default:e}}var i=o(a),s=o(p),d=Object.defineProperty,y={"*":["name","type","on-click-action","on-select-action","on-unselect-action","input-type","markdown","media-size","font-weight","Then","Else","Cases","children","max-file-size-kb"],Footer:["center-caption","left-caption","right-caption"],PhotoPicker:["min-uploaded-photos","max-uploaded-photos","photo-source","required"],Image:["scale-type"],TextArea:["max-length","label-variant"],TextInput:["label-variant"]},l=Object.values(y).flat(),c=t=>{const r=e.zodToJsonSchema(t,{$refStrategy:"none"}),n=(e,t=0)=>{if("object"!=typeof e||null===e)return e;const r=new Set([...l,"additionalProperties","required","enum","$schema"]),a=Object.fromEntries(Object.entries(e).filter((([e])=>!r.has(e))));if(a.properties&&"object"==typeof a.properties){const e={};for(const[r,p]of Object.entries(a.properties))e[r]=n(p,t+1);a.properties=e}a.items&&(a.items=n(a.items,t+1));const p=e.type??"object",o={string:"example",boolean:!0,number:42,integer:1,array:[],object:{}}[p]??null;return 0===t?{type:p,...a,__example__:o}:{type:p,...a}};return n(r)},$={Title:t.z.object({type:t.z.literal("Title"),id:t.z.string(),text:t.z.string()})},m=t.z.enum(["data_exchange","navigate","complete","update_data","open_url"]),f=t.z.object({name:m,payload:t.z.record(t.z.any()).optional(),next:t.z.object({type:t.z.literal("screen"),name:t.z.string()}).optional(),url:t.z.string().optional()}),g=f.extend({name:t.z.union([t.z.literal("update_data"),t.z.literal("data_exchange")])}),_=f.extend({name:t.z.literal("update_data")}),u=t.z.object({visible:t.z.boolean().optional()}),b=t.z.object({type:t.z.literal("Form"),name:t.z.string().optional(),children:t.z.array(t.z.any()).optional(),"error-messages":t.z.record(t.z.any()).optional(),"init-values":t.z.record(t.z.any()).optional()}),O=t.z.object({name:t.z.string(),required:t.z.boolean().optional(),enabled:t.z.boolean().optional(),"error-message":t.z.string().optional(),"init-value":t.z.string().optional()}).merge(u),z=t.z.object({id:t.z.string(),title:t.z.string(),description:t.z.string().optional(),metadata:t.z.string().optional(),enabled:t.z.boolean().optional(),image:t.z.string().optional(),"alt-text":t.z.string().optional(),color:t.z.string().optional(),"on-click-action":f.optional(),"on-select-action":_.optional(),"on-unselect-action":_.optional()}),x=O.merge(t.z.object({label:t.z.string(),description:t.z.string().optional(),"data-source":t.z.array(z),"media-size":t.z.enum(["regular","large"]).optional(),"on-click-action":f.optional(),"on-select-action":g.optional(),"on-unselect-action":g.optional()})),h=O.merge(t.z.object({type:t.z.literal("TextInput"),label:t.z.string(),"label-variant":t.z.enum(["large"]).optional(),"input-type":t.z.enum(["text","number","email","password","passcode","phone"]).optional(),pattern:t.z.string().optional(),"helper-text":t.z.string().optional(),"min-chars":t.z.number().optional(),"max-chars":t.z.number().optional()})),w=O.merge(t.z.object({type:t.z.literal("TextArea"),label:t.z.string(),"label-variant":t.z.enum(["large"]).optional(),"max-length":t.z.number().optional(),"helper-text":t.z.string().optional()})),A=x.merge(t.z.object({type:t.z.literal("CheckboxGroup"),"min-selected-items":t.z.number().optional(),"max-selected-items":t.z.number().optional()})),j=x.merge(t.z.object({type:t.z.literal("RadioButtonsGroup")})),Z=O.merge(t.z.object({type:t.z.literal("Dropdown"),label:t.z.string(),"data-source":t.z.array(z),"on-click-action":f.optional(),"on-select-action":g.optional(),"on-unselect-action":g.optional()})),P=O.merge(t.z.object({type:t.z.literal("DatePicker"),label:t.z.string(),"min-date":t.z.string().optional(),"max-date":t.z.string().optional(),"unavailable-dates":t.z.array(t.z.string()).optional(),"helper-text":t.z.string().optional(),"on-select-action":g.optional()})),q=O.merge(t.z.object({type:t.z.literal("CalendarPicker"),title:t.z.string().optional(),description:t.z.string().optional(),label:t.z.string(),"helper-text":t.z.string().optional(),mode:t.z.enum(["single","range"]).default("single").optional(),"min-date":t.z.string().optional(),"max-date":t.z.string().optional(),"unavailable-dates":t.z.array(t.z.string()).optional(),"include-days":t.z.array(t.z.enum(["Mon","Tue","Wed","Thu","Fri","Sat","Sun"])).optional(),"min-days":t.z.number().optional(),"max-days":t.z.number().optional(),"on-select-action":g.optional()})),v=O.merge(t.z.object({type:t.z.literal("ChipsSelector"),label:t.z.string(),description:t.z.string().optional(),"data-source":t.z.array(z),"min-selected-items":t.z.number().optional(),"max-selected-items":t.z.number().optional(),"on-click-action":f.optional(),"on-select-action":g.optional(),"on-unselect-action":g.optional()})),k={Form:b,TextInput:h,TextArea:w,CheckboxGroup:A,RadioButtonsGroup:j,Dropdown:Z,DatePicker:P,CalendarPicker:q,OptIn:O.omit({enabled:!0}).merge(t.z.object({type:t.z.literal("OptIn"),label:t.z.string(),"on-click-action":f.optional(),"on-select-action":g.optional(),"on-unselect-action":g.optional()})),NavigationList:t.z.object({type:t.z.literal("NavigationList"),name:t.z.string(),"list-items":t.z.array(t.z.object({id:t.z.string(),"main-content":t.z.object({title:t.z.string(),description:t.z.string().optional(),metadata:t.z.string().optional()}),end:t.z.object({title:t.z.string().optional(),description:t.z.string().optional(),metadata:t.z.string().optional()}).optional(),start:t.z.object({image:t.z.string().optional(),"alt-text":t.z.string().optional()}).optional(),badge:t.z.string().optional(),tags:t.z.array(t.z.string()).optional(),"on-click-action":f.optional()})),label:t.z.string().optional(),description:t.z.string().optional(),"media-size":t.z.enum(["regular","large"]).default("regular").optional(),"on-click-action":f.optional()}),ChipsSelector:v,PhotoPicker:O.merge(t.z.object({type:t.z.literal("PhotoPicker"),label:t.z.string(),description:t.z.string().max(300).optional(),"photo-source":t.z.enum(["camera_gallery","camera","gallery"]).default("camera_gallery").optional(),"max-file-size-kb":t.z.number().int().min(1).max(25600).default(25600).optional(),"min-uploaded-photos":t.z.number().int().min(0).max(30).default(0).optional(),"max-uploaded-photos":t.z.number().int().min(1).max(30).default(30).optional()})),DocumentPicker:O.merge(t.z.object({type:t.z.literal("DocumentPicker"),label:t.z.string(),description:t.z.string().max(300).optional(),"max-file-size-kb":t.z.number().int().min(1).max(25600).default(25600).optional(),"min-uploaded-documents":t.z.number().int().min(0).max(30).default(0).optional(),"max-uploaded-documents":t.z.number().int().min(1).max(30).default(30).optional(),"allowed-mime-types":t.z.array(t.z.enum(["application/gzip","application/msword","application/pdf","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/x-7z-compressed","application/zip","image/avif","image/gif","image/heic","image/heif","image/jpeg","image/png","image/tiff","image/webp","text/plain","video/mp4","video/mpeg"])).optional()}))},I={Footer:t.z.object({type:t.z.literal("Footer"),label:t.z.string(),enabled:t.z.boolean().optional(),"left-caption":t.z.string().optional(),"center-caption":t.z.string().optional(),"right-caption":t.z.string().optional(),"on-click-action":f.optional()}),If:t.z.object({type:t.z.literal("If"),condition:t.z.string(),Then:t.z.array(t.z.any()),Else:t.z.array(t.z.any()).optional()}),Switch:t.z.object({type:t.z.literal("Switch"),value:t.z.string(),Cases:t.z.record(t.z.array(t.z.any()))})},T=t.z.object({id:t.z.string(),text:t.z.string()}).merge(u),S=t.z.enum(["bold","italic","bold_italic","normal"]),E={TextHeading:t.z.object({type:t.z.literal("TextHeading")}).merge(T),TextSubheading:t.z.object({type:t.z.literal("TextSubheading"),text:t.z.string()}).merge(T),TextBody:t.z.object({type:t.z.literal("TextBody"),"font-weight":S.optional(),strikethrough:t.z.boolean().optional(),markdown:t.z.boolean().optional()}).merge(T),TextCaption:t.z.object({type:t.z.literal("TextCaption"),"font-weight":S.optional(),strikethrough:t.z.boolean().optional(),markdown:t.z.boolean().optional()}).merge(T),RichText:t.z.object({type:t.z.literal("RichText"),id:t.z.string().optional()}).merge(T),EmbeddedLink:t.z.object({type:t.z.literal("EmbeddedLink"),text:t.z.string(),"on-click-action":f.optional()}).merge(T),Image:t.z.object({type:t.z.literal("Image"),id:t.z.string(),src:t.z.string(),width:t.z.number().optional(),height:t.z.number().optional(),"scale-type":t.z.enum(["cover","contain"]).default("contain").optional(),"aspect-ratio":t.z.number().default(1).optional(),"alt-text":t.z.string().optional()}),ImageCarousel:t.z.object({type:t.z.literal("ImageCarousel"),images:t.z.array(t.z.object({src:t.z.string(),"alt-text":t.z.string()})),"scale-type":t.z.enum(["cover","contain"]).default("contain").optional(),"aspect-ratio":t.z.enum(["4:3","16:9"]).optional()})},L={...k,...I,...E,...$},C=Object.entries(L).reduce(((e,[t,r])=>(e[t]=c(r),e)),{});function F(e,t){const r={};for(const{identifier:e,type:n}of t){const t=C[n];r[e]=t?.properties?{...t,properties:Object.fromEntries(Object.entries(t.properties).map((([e,t])=>[e.replaceAll("-","_"),t])))}:t}if(e){const t=c(e).properties,n=Object.entries(t).reduce(((e,[t,r])=>{e[t]=r;const n=r=>{e[t].__example__=r};switch(e[t].type){case"number":n(0);break;case"string":default:n("");break;case"array":n([]);break;case"boolean":n(!0);break;case"object":n({})}return e}),{});Object.assign(r,n)}return r}function N(e,t){t in e&&delete e[t]}var R=["If","Switch"],D=["children","Then","Else","Cases"],G=(e,t)=>{const r=[],n=e=>{if(R.includes(e.type))return void a(e);const n=(e=>{const t=Object.keys(k).includes(e.type)?"name":"id";let r="";const n="id"in e?"id":"name"in e?"name":void 0;return n||(r=e.type.toLowerCase()),n&&(r=e[n]),{value:r,key:t}})(e);if(n){Object.assign(e,{[n.key]:n.value});const{properties:t}=C[e.type];for(const r of Object.keys(t)){const t=r,a=e.type;if(y["*"].includes(t))continue;if(y[a]?.includes(t))continue;if(Object.keys(e).includes(r))continue;const p=r.replace(/-/g,"_");Object.assign(e,{[r]:`\${data.${n.value}.${p}}`})}r.push({identifier:n.value,type:e.type})}N(e,"id"),"form"===t&&(N(e,"error-message"),N(e,"init-value")),a(e)},a=e=>{for(const t of D)if(Array.isArray(e[t]))for(const r of e[t])n(r)};for(const t of e)n(t);return{parsedComponents:e,metadata:r}};function U(e){const{screens:t,...r}=e,n=[];for(const[e,r]of Object.entries(t)){const{type:t,components:a,...p}=r;let o=a;"form"===t&&(o=[{type:"Form",children:o}]);const{parsedComponents:i,metadata:s}=G(o,t),d=F(p.data,s);n.push({title:"${data.title.text}",...p,id:e,data:d,layout:{type:"SingleColumnLayout",children:i}})}return{...r,screens:n}}function M(e){const{metadata:t,preview:r,id:n,...a}=e;return JSON.parse((e=>{let t=e;return t=(e=>e.replace(/^\s*"type":\s*"string",?\n(?=\s*"const":\s*"update_data")/gm,""))(t),t=(e=>e.replaceAll(/"(Then|Else|Cases)":/g,((e,t)=>`"${t.toLowerCase()}":`)))(t),t})(JSON.stringify(a,null,2)))}var B={};function W(e){return e}function H(e,t,r,n){return"screen"===e&&t&&r&&n?`\${${e}.${t}.${r}.${n}}`:`\${${e}.${t}}`}((e,t)=>{for(var r in t)d(e,r,{get:t[r],enumerable:!0})})(B,{complete:()=>K,components:()=>ne,condition:()=>re,dynamic_action:()=>J,dynamic_navigate:()=>Y,dynamic_refresh:()=>ae,form_payload:()=>Q,inline:()=>ee,navigate:()=>V,parseUniqueId:()=>oe,screen:()=>W,state:()=>H,txt:()=>te,uniqueId:()=>pe,zod_payload:()=>X});var J={name:"data_exchange",payload:{}},V=(e,t={})=>({name:"navigate",next:{type:"screen",name:e},payload:t});function K(e={}){return{name:"complete",payload:e}}function Y(e,t={}){return{name:"data_exchange",payload:{navigate:{screen:e,data:t}}}}var Q=(...e)=>e.reduce(((e,t)=>(e[t]=`\${form.${t}}`,e)),{}),X=e=>Object.keys(e.shape).reduce(((e,t)=>(e[t]=`\${form.${t}}`,e)),{});function ee(e){return"`"+e+"`"}function te(...e){return e.join("\n")}function re(e){return ee(e)}function ne(e){return e}function ae(e={}){return{name:"data_exchange",payload:{refresh:e}}}var pe=e=>e+"?deduplicate="+Date.now(),oe=e=>{const t=e.split("?deduplicate=");return t.length>1?t[0]:e};function ie(e){const t=(e,t)=>({navigate:{data:t??{},screen:e.toLowerCase()}}),r=t=>({data:t,screen:e.screen});return{...e,init:e=>r(e),navigate:t,first:e=>t(e),refresh:e=>r(e),error:e=>r({form:{error_messages:e}}),success:e=>({data:e??{},screen:"success"})}}function se(e,t){const n=r.createWhatsapp();return"navigate"in e&&(e={data:e.navigate.data??{},screen:e.navigate.screen.toUpperCase()}),"screen"in e&&(e={data:e.data??{},screen:e.screen.toUpperCase()}),n.sdk.parsers.toGraph.flowResponse(t,e)}var de=t.z.array(t.z.object({media_id:t.z.string(),cdn_url:t.z.string(),file_name:t.z.string(),encryption_metadata:t.z.object({encrypted_hash:t.z.string(),iv:t.z.string(),encryption_key:t.z.string(),hmac_key:t.z.string(),plaintext_hash:t.z.string()})})),ye={6.1:{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v6.1.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version","id","name"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"6.1"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[null,null]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[null,null]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{}}]}}}}}},6.2:{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v6.2.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version","metadata","preview"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"6.2"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$navigation_list"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},height:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"aspect-ratio":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]}}},$navigation_list:{type:"object",required:["type","name","list-items"],additionalProperties:!1,properties:{type:{const:"NavigationList"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"list-items":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","main-content"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{type:"boolean"},"main-content":{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:["title"]},end:{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:[]},start:{type:"object",properties:{image:{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},"alt-text":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},required:["image"],additionalProperties:!1},badge:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},tags:{type:"array",minItems:1,maxItems:3,items:{type:"string"}},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}}}}},6.3:{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v6.3.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"6.3"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$chips_selector_no_form"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},height:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"aspect-ratio":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"include-days":{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]}}},$navigation_list:{type:"object",required:["type","name","list-items"],additionalProperties:!1,properties:{type:{const:"NavigationList"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"list-items":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","main-content"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{type:"boolean"},"main-content":{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:["title"]},end:{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:[]},start:{type:"object",properties:{image:{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},"alt-text":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},required:["image"],additionalProperties:!1},badge:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},tags:{type:"array",minItems:1,maxItems:3,items:{type:"string"}},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}},else:{required:["payload"]}}]}}},$chips_selector:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$chips_selector_no_form:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"array",items:{type:"string"}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}}}},"7.0":{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v7.0.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"7.0"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$chips_selector_no_form"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},height:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"aspect-ratio":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]}}},$navigation_list:{type:"object",required:["type","name","list-items"],additionalProperties:!1,properties:{type:{const:"NavigationList"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"list-items":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","main-content"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{type:"boolean"},"main-content":{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:["title"]},end:{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:[]},start:{type:"object",properties:{image:{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},"alt-text":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},required:["image"],additionalProperties:!1},badge:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},tags:{type:"array",minItems:1,maxItems:3,items:{type:"string"}},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$chips_selector:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$chips_selector_no_form:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}}}},7.1:{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v7.1.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"7.1"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$image_carousel"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},height:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"aspect-ratio":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$image_carousel"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]}}},$navigation_list:{type:"object",required:["type","name","list-items"],additionalProperties:!1,properties:{type:{const:"NavigationList"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"list-items":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","main-content"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{type:"boolean"},"main-content":{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:["title"]},end:{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:[]},start:{type:"object",properties:{image:{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},"alt-text":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},required:["image"],additionalProperties:!1},badge:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},tags:{type:"array",minItems:1,maxItems:3,items:{type:"string"}},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$chips_selector:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$chips_selector_no_form:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$image_carousel:{type:"object",required:["type","images"],additionalProperties:!1,properties:{type:{const:"ImageCarousel"},"aspect-ratio":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["4:3","16:9"]},images:{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["src","alt-text"],additionalProperties:!1,properties:{src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["contain","cover"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}}}},7.2:{$schema:"http://json-schema.org/draft-07/schema",$id:"https://whatsapp.com/flows-template-schema.v7.2.json",title:"WhatsApp Flows Template Schema",description:"The JSON schema describing WhatsApp Flows templates.",type:"object",required:["screens","version"],additionalProperties:!1,properties:{$schema:{type:"string"},id:{type:"string"},metadata:{type:"object",properties:{endpoint_uri:{type:"string"},application_id:{type:"string"},name:{type:"string"},categories:{type:"array",items:{type:"string",enum:["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}}},required:["application_id","endpoint_uri","categories","name"]},preview:{type:"object",properties:{phone_number:{type:"string"},recipient_id:{type:"string"},flow_parameters:{type:"object",properties:{}},flow_action:{type:"string",enum:["navigate","data_exchange"]},flow_action_payload:{type:"object",properties:{screen:{type:"string"},data:{type:"object",properties:{}}}},interactive:{type:"boolean"}},required:["phone_number"],additionalProperties:!1},version:{type:"string",const:"7.2"},data_api_version:{type:"string",const:"3.0"},routing_model:{type:"object",patternProperties:{"^[a-zA-Z,_]+$":{type:"array",items:{type:"string",pattern:"^[a-zA-Z,_]+$"}}},propertyNames:{pattern:"^[a-zA-Z,_]+$"}},screens:{type:"array",minItems:1,items:{type:"object",required:["id","title","layout"],additionalProperties:!1,properties:{id:{type:"string",minLength:1,pattern:"^[a-zA-Z,_]+$"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},data:{type:"object",patternProperties:{"^(?!required).*$":{type:"object",required:["__example__","type"]},"^required$":{type:"array"}}},refresh_on_back:{type:"boolean"},terminal:{type:"boolean"},layout:{type:"object",required:["children","type"],additionalProperties:!1,properties:{type:{const:"SingleColumnLayout"},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$form"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$if_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$rich_text"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$image_carousel"}]}}}},success:{type:"boolean"},sensitive:{type:"array",minItems:1,items:{type:"string"}}},if:{properties:{terminal:{const:!0}},required:["terminal"]},then:{properties:{success:{type:"boolean"}}},else:{properties:{success:{not:{}}}}}},meta:{type:"object",properties:{lead_gen_ai:{type:"boolean"}}}},$defs:{$components:{$checkbox_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$checkbox_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"CheckboxGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"max-selected-items":{oneOf:[{minimum:2,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$embedded_link:{type:"object",required:["type","text","on-click-action"],additionalProperties:!1,properties:{type:{const:"EmbeddedLink"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$text_input:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_input_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextInput"},"input-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["text","number","password","passcode","phone","email"]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-chars":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},pattern:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",format:"regex"}]},"label-variant":{type:"string",enum:["large"]}},dependencies:{pattern:{oneOf:[{properties:{"input-type":{enum:["text","password","passcode","number"]}}}]}}},$text_area:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_area_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"TextArea"},"max-length":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"label-variant":{type:"string",enum:["large"]}}},$text_body:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextBody"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_caption:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextCaption"},text:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},{type:"array",items:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"font-weight":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["bold","italic","bold_italic","normal"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},strikethrough:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},markdown:{type:"boolean"}}},$text_heading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextHeading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$text_subheading:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"TextSubheading"},text:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$optin:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$optin_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"OptIn"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","open_url"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$radio_buttons_group:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]}}},$radio_buttons_group_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"RadioButtonsGroup"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$dropdown:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$dropdown_no_form:{type:"object",required:["type","name","data-source","label"],additionalProperties:!1,properties:{type:{const:"Dropdown"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},color:{type:"string",pattern:"^#([A-Fa-f0-9]{6})$"},image:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$date_picker:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$date_picker_no_form:{type:"object",required:["type","label","name"],additionalProperties:!1,properties:{type:{const:"DatePicker"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"helper-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$switch:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$switch_no_form:{type:"object",required:["type","value","cases"],additionalProperties:!1,properties:{type:{const:"Switch"},value:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},cases:{type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9-_]*$":{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"}]}}},propertyNames:{pattern:"^[a-zA-Z][a-zA-Z0-9-_]*$"}}}},$if:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if"}]}}}},$if_no_form:{type:"object",required:["type","condition","then"],additionalProperties:!1,properties:{type:{const:"If"},condition:{oneOf:[{type:"boolean"},{type:"string"}]},then:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}},else:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$text_input_no_form"},{$ref:"#/$defs/$components/$text_area_no_form"},{$ref:"#/$defs/$components/$optin_no_form"},{$ref:"#/$defs/$components/$checkbox_group_no_form"},{$ref:"#/$defs/$components/$radio_buttons_group_no_form"},{$ref:"#/$defs/$components/$dropdown_no_form"},{$ref:"#/$defs/$components/$date_picker_no_form"},{$ref:"#/$defs/$components/$switch_no_form"},{$ref:"#/$defs/$components/$photo_picker_no_form"},{$ref:"#/$defs/$components/$document_picker_no_form"},{$ref:"#/$defs/$components/$calendar_picker_no_form"},{$ref:"#/$defs/$components/$chips_selector_no_form"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$if_no_form"}]}}}},$photo_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$photo_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"PhotoPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-photos":{minimum:0,maximum:30,type:"integer"},"max-uploaded-photos":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"photo-source":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["camera","gallery","camera_gallery"]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$document_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}},$document_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"DocumentPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}]},"min-uploaded-documents":{minimum:0,maximum:30,type:"integer"},"max-uploaded-documents":{minimum:1,maximum:30,type:"integer"},"max-file-size-kb":{minimum:1,maximum:25600,type:"integer"},"allowed-mime-types":{type:"array",minItems:1,items:{type:"string",enum:["application/pdf","image/png","image/jpeg","image/avif","image/heic","image/heif","image/gif","image/tiff","image/webp","application/zip","application/gzip","application/x-7z-compressed","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","video/mp4","video/mpeg","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"error-message":{oneOf:[{type:"string"},{type:"object",minProperties:1,patternProperties:{"^.*$":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}}}]}}},$image:{type:"object",required:["type","src"],additionalProperties:!1,properties:{type:{const:"Image"},width:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},height:{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"aspect-ratio":{oneOf:[{type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["cover","contain"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},$footer:{type:"object",required:["type","label","on-click-action"],additionalProperties:!1,properties:{type:{const:"Footer"},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"left-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"center-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"right-caption":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate","complete"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}},dependencies:{"left-caption":["right-caption"],"right-caption":["left-caption"],"center-caption":{not:{anyOf:[{required:["left-caption"]},{required:["right-caption"]}]}}}},$form:{type:"object",required:["type","name","children"],additionalProperties:!1,properties:{type:{const:"Form"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],minLength:1},"error-messages":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-values":{oneOf:[{type:"object",patternProperties:{"^.*$":{}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},children:{type:"array",items:{oneOf:[{$ref:"#/$defs/$components/$chips_selector"},{$ref:"#/$defs/$components/$navigation_list"},{$ref:"#/$defs/$components/$calendar_picker"},{$ref:"#/$defs/$components/$text_input"},{$ref:"#/$defs/$components/$text_area"},{$ref:"#/$defs/$components/$checkbox_group"},{$ref:"#/$defs/$components/$radio_buttons_group"},{$ref:"#/$defs/$components/$dropdown"},{$ref:"#/$defs/$components/$date_picker"},{$ref:"#/$defs/$components/$embedded_link"},{$ref:"#/$defs/$components/$footer"},{$ref:"#/$defs/$components/$text_body"},{$ref:"#/$defs/$components/$text_caption"},{$ref:"#/$defs/$components/$text_heading"},{$ref:"#/$defs/$components/$text_subheading"},{$ref:"#/$defs/$components/$optin"},{$ref:"#/$defs/$components/$image"},{$ref:"#/$defs/$components/$if"},{$ref:"#/$defs/$components/$switch"},{$ref:"#/$defs/$components/$photo_picker"},{$ref:"#/$defs/$components/$document_picker"},{$ref:"#/$defs/$components/$image_carousel"}]}}}},$rich_text:{type:"object",required:["type","text"],additionalProperties:!1,properties:{type:{const:"RichText"},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},text:{oneOf:[{type:"array",items:{type:"string",pattern:"^(?!s*$).+"}},{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}]}}},$calendar_picker:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$calendar_picker_no_form:{type:"object",required:["type","name","label"],additionalProperties:!1,properties:{type:{const:"CalendarPicker"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},title:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},label:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"helper-text":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"object",properties:{"start-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"end-date":{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},mode:{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["single","range"]},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"unavailable-dates":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"include-days":{oneOf:[{type:"array",minItems:1,items:{type:"string",enum:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"max-days":{oneOf:[{type:"integer"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"data_exchange"},payload:{type:"object",properties:{},additionalProperties:!0}}},"init-value":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]},"error-message":{oneOf:[{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},{type:"object",properties:{"start-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"end-date":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}]}}},$navigation_list:{type:"object",required:["type","name","list-items"],additionalProperties:!1,properties:{type:{const:"NavigationList"},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"media-size":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["regular","large"]},"list-items":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","main-content"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{type:"boolean"},"main-content":{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:["title"]},end:{type:"object",properties:{title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},description:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},metadata:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},additionalProperties:!1,required:[]},start:{type:"object",properties:{image:{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},"alt-text":{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"}},required:["image"],additionalProperties:!1},badge:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},tags:{type:"array",minItems:1,maxItems:3,items:{type:"string"}},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-click-action":{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["data_exchange","navigate"]},payload:{type:"object",properties:{},additionalProperties:!0},next:{type:"object",required:["name","type"],additionalProperties:!1,properties:{name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},type:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}},url:{oneOf:[{type:"string",format:"uri"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}},allOf:[{if:{properties:{name:{const:"navigate"}}},then:{required:["next"]},else:{not:{required:["next"]}}},{if:{properties:{name:{const:"open_url"}}},then:{required:["url"]},else:{not:{required:["url"]}}},{if:{properties:{name:{const:"open_url"}}},then:{not:{required:["payload"]}}}]}}},$chips_selector:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$chips_selector_no_form:{type:"object",required:["type","name","label","data-source"],additionalProperties:!1,properties:{type:{const:"ChipsSelector"},"data-source":{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["id","title"],additionalProperties:!1,properties:{id:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},title:{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..*\\}$"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},description:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},enabled:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},label:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"max-selected-items":{oneOf:[{minimum:1,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"min-selected-items":{oneOf:[{minimum:0,type:"number"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},name:{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"},{type:"string",pattern:"^(?!`.*`$)"},{type:"string"}]},required:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"init-value":{if:{type:"string"},then:{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},else:{type:"array",items:{type:"string"}}},"error-message":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]},"on-select-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{oneOf:[{const:"data_exchange"},{const:"update_data"}]},payload:{type:"object",properties:{},additionalProperties:!0}}},"on-unselect-action":{type:"object",required:["name","payload"],additionalProperties:!1,properties:{name:{const:"update_data"},payload:{type:"object",properties:{},additionalProperties:!0}}}}},$image_carousel:{type:"object",required:["type","images"],additionalProperties:!1,properties:{type:{const:"ImageCarousel"},"aspect-ratio":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["4:3","16:9"]},images:{oneOf:[{type:"array",minItems:1,items:{type:"object",required:["src","alt-text"],additionalProperties:!1,properties:{src:{oneOf:[{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"},{type:"string",contentEncoding:"base64",pattern:"^(?!\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)\\..+\\})"}]},"alt-text":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}]}}}},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]},"scale-type":{type:"string",allOf:[{type:"string",pattern:"^(\\r?\\n?)*(?!\\s*$).+(\\r?\\n?)*"},{type:"string"}],enum:["contain","cover"]},visible:{oneOf:[{type:"boolean"},{type:"string",pattern:"(^\\$\\{(screen\\.([a-zA-Z,_]*)\\.)?(data|form)(\\.[\\w-]+)+\\}|^`.+`)"}]}}}}}}},le=new i.default({allErrors:!1});s.default(le),exports.buildApiResponse=se,exports.complete=K,exports.componentData=function(e){return Object.entries(e).reduce(((e,[t,r])=>(e[t.replaceAll("-","_")]=r,e)),{})},exports.components=ne,exports.condition=re,exports.createDevFlowJson=U,exports.createFlowContext=ie,exports.createFlowControllerPool=function(e){return e.reduce(((e,t)=>(Object.assign(e,{[t.name]:t.screenHandlers}),e)),{})},exports.createNativeFlowJson=M,exports.createStoreFactory=function(e){return function(t,r={}){return{adapterFactory:e,schema:t,defaultValue:r}}},exports.deployFlows=async function(e,t){const a=r.createWhatsapp(),{data:p}=await a.sdk.actions.flows.getMany(),o=new Map(t.map((e=>[e.metadata.name,U(e)]))),i=new Map(e.map((e=>[e.metadata.name,U(e)]))),s=[],d=[];for(const[e,t]of o.entries()){const r=p.find((t=>t.name===e)),a=i.get(e);if(!r){console.log(`➤ Flow '${e}' marked for creation`),s.push(t);continue}if(!a){console.log(`➤ Flow '${e}' not found in old list, marked for update`),d.push({id:r.id,flow:t});continue}const{preview:o,metadata:y,...l}=a,{preview:c,metadata:$,...m}=t;n.isDeepStrictEqual(o,c)&&n.isDeepStrictEqual(l,m)?console.log(`✔ Skipping '${e}', no changes`):(console.log(`➤ Changes detected in flow '${e}', marked for update`),d.push({id:r.id,flow:t}))}const y=[];for(const e of s){const{name:t,endpoint_uri:r,categories:n}=e.metadata,p=M(e);console.log(`➤ Creating and publishing flow '${t}'`);try{await a.sdk.actions.flows.create({name:t,categories:n,endpoint_uri:r,flow_json:p,publish:!0}),console.log(`\t✔ Created and published '${t}'`),y.push(p)}catch(e){throw console.error(`✖ Failed to create/publish '${t}':`,e),new Error(`Deployment failed during creation of '${t}'`)}}for(const{id:e,flow:t}of d){const{name:r}=t.metadata,n=M(t);console.log(`➤ Updating and publishing flow '${r}' (ID: ${e})`);try{const p=await a.sdk.actions.flows.updateJson(e,n);if(p.validation_errors.length>0)throw console.error(`✖ JSON validation errors for '${r}':`,p.validation_errors),new Error(`Deployment failed: Invalid JSON for '${r}'`);console.log(`\t✔ JSON updated for '${r}'`),await new Promise((e=>setTimeout(e,1e3))),await a.sdk.actions.flows.updateMetadata(e,t.metadata),console.log(`\t✔ Metadata updated for '${r}'`),await a.sdk.actions.flows.publish(e),console.log(`\t✔ Published '${r}'`),y.push(n)}catch(t){throw console.error(`✖ Failed to update/publish '${r}' (ID: ${e}):`,t),new Error(`Deployment failed during update of '${r}'`)}}return y},exports.dispatchFlowPayload=async function(e,t){const n=((a=function(e){const t=r.createWhatsapp(),{screen:n,action:a,data:p,flow_token:o}=e,{flowName:i,flowIdentifier:s,flowParameters:d,chatId:y}=t.sdk.utils.flows.destructureFlowToken(o),l={action:"first",name:i,context:{chatId:y,screen:n,flow:i,identifier:s,parameters:d},data:p,screen:n};return"data_exchange"===a&&(l.action="submit",p.navigate&&(l.action="init",l.screen=p.navigate.screen,l.data=p.navigate.data),p.refresh&&(l.action="refresh",l.data=p.refresh)),"BACK"===a&&(l.action="back"),l}(t)).screen&&(a.screen=a.screen.toLowerCase()),a.context.screen&&(a.context.screen=a.context.screen.toLowerCase()),a);var a;let p={};if(p=n.screen?e?.[n.name]?.[n.screen]?.[n.action]:e?.[n.name]?.[n.action],!p)throw new Error(`No controller for action '${n.action}' in flow '${n.name}' for screen '${n.screen}'`);let o=await p({ctx:n.context,input:n.data,variables:n.data});if(!o)throw new Error(`No controller response for action '${n.action}' in flow '${n.name}' for screen '${n.screen}'`);if("navigate"in o){const t=o.navigate.screen,r=e[n.name][t];if(!r)throw new Error(`No screen controller for screen '${t}' in flow '${n.name}'`);const a=r.init;n.context.screen=t,o=await a({ctx:n.context,input:o.navigate.data})}return se(o,t.flow_token)},exports.dynamic_action=J,exports.dynamic_navigate=Y,exports.dynamic_refresh=ae,exports.f=B,exports.firstScreen=({define:e,store:t,middleware:r})=>async({ctx:n})=>{const a=ie(n),p=t?.adapterFactory({flow_identifier:n.identifier,chat_id:n.chatId});let o={};if(p&&t){let e=await p.stash();0===Object.keys(e).length&&(e=t.defaultValue),o=new Proxy(e,{get:Reflect.get,set:Reflect.set})}const i={...a,store:o},s=r?await r(i):i;return e(s)},exports.flow=e=>e,exports.flowController=function(e,t){return{screenHandlers:t,name:e.name}},exports.flowMediaInput=de,exports.form_payload=Q,exports.getFlowMetadata=function(e){return{name:e.metadata.name,_typings_routing:null}},exports.getScreenMetadata=e=>null,exports.inline=ee,exports.navigate=V,exports.parseUniqueId=oe,exports.screen=W,exports.screenController=function(e,t){const r=e=>async({ctx:r,input:n,variables:a})=>{const p=ie(r);let o={};const i=t.store?.adapterFactory({flow_identifier:r.identifier,chat_id:r.chatId});if(t.store&&i){let e=await i.stash();0===Object.keys(e).length&&(e=t.store.defaultValue),o=new Proxy(e,{get:Reflect.get,set:Reflect.set})}const s={...p,store:o},d=t.middleware?await t.middleware(s):s;let y;if("init"===e){const e=t.actions?.init;if(!e)throw new Error(`No init handler for screen '${r.screen}' in flow '${r.flow}'`);const a=await e({ctx:d,data:n});y=d.init(a)}if("back"===e){const e=t.actions.back;if(!e)throw new Error(`No back handler for screen '${r.screen}' in flow '${r.flow}'`);y=await e({ctx:d})}if("refresh"===e){const e=t.actions.refresh;if(!e)throw new Error("Refresh handler is not defined");y=await e({ctx:d,variables:a})}if("submit"===e){const e=t.actions.submit;if(!e)throw new Error("Form submit handler is not defined");if(!t.input)throw new Error("Screen input schema is not defined");const r=t.input.safeParse(n);if(r.error){const e=r.error.errors.reduce(((e,t)=>(t.path?.[0]&&(e[t.path[0]]=t.message),e)),{});y=d.error(e)}else y=await e({ctx:d,input:r.data})}return i&&await i.flush(o),y};return{init:r("init"),refresh:r("refresh"),submit:r("submit"),back:r("back")}},exports.state=H,exports.txt=te,exports.uniqueId=pe,exports.validateFlowJson=async e=>{const t=ye[e.version];if(!t)throw new Error("Couldn't validate: schema not found for version: "+e.version);const r=le.compile(t);return{valid:r(e),errors:r.errors}},exports.zod_payload=X;
|