twenty-client-sdk 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{application-LO_ska5m.mjs → application-CGcz3HPn.mjs} +19 -2
- package/dist/{application-pbKrOsZ8.js → application-KImgjhhl.js} +1 -1
- package/dist/generate.cjs +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/metadata/generated/schema.d.ts +265 -36
- package/dist/metadata/generated/types.d.ts +130 -24
- package/dist/metadata.cjs +2 -2
- package/dist/metadata.mjs +1536 -1408
- package/dist/rest.cjs +1 -1
- package/dist/rest.mjs +1 -1
- package/package.json +1 -1
|
@@ -2521,7 +2521,7 @@ xi({
|
|
|
2521
2521
|
[Y.RICH_TEXT, da]
|
|
2522
2522
|
]);
|
|
2523
2523
|
//#endregion
|
|
2524
|
-
//#region ../twenty-shared/dist/types-
|
|
2524
|
+
//#region ../twenty-shared/dist/types-QIVSkSZ3.mjs
|
|
2525
2525
|
var X = /* @__PURE__ */ function(e) {
|
|
2526
2526
|
return e.GOOGLE = "google", e.MICROSOFT = "microsoft", e.IMAP_SMTP_CALDAV = "imap_smtp_caldav", e.OIDC = "oidc", e.SAML = "saml", e.EMAIL_GROUP = "email_group", e.APP = "app", e;
|
|
2527
2527
|
}({});
|
|
@@ -2602,6 +2602,7 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2602
2602
|
GETTING_STARTED_QUICKSTART: "/getting-started/quickstart",
|
|
2603
2603
|
UI_ACCESSIBILITY: "/ui/accessibility",
|
|
2604
2604
|
UI_COMPONENTS_CODE_EDITOR: "/ui/components/code-editor",
|
|
2605
|
+
UI_COMPONENTS_DROPDOWN: "/ui/components/dropdown",
|
|
2605
2606
|
UI_COMPONENTS_INPUT_ICON_BUTTON: "/ui/components/input/icon-button",
|
|
2606
2607
|
UI_COMPONENTS_INPUT_LIGHT_BUTTON: "/ui/components/input/light-button",
|
|
2607
2608
|
UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON: "/ui/components/input/light-icon-button",
|
|
@@ -2613,10 +2614,17 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2613
2614
|
UI_COMPONENTS_TOAST: "/ui/components/toast",
|
|
2614
2615
|
UI_DARK_MODE: "/ui/dark-mode",
|
|
2615
2616
|
UI_GETTING_STARTED: "/ui/getting-started",
|
|
2617
|
+
UI_PRIMITIVES_ACCESSIBILITY_VISIBILITY_HIDDEN: "/ui/primitives/accessibility/visibility-hidden",
|
|
2616
2618
|
UI_PRIMITIVES_DATA_DISPLAY_AVATAR: "/ui/primitives/data-display/avatar",
|
|
2617
2619
|
UI_PRIMITIVES_DATA_DISPLAY_CHIP: "/ui/primitives/data-display/chip",
|
|
2620
|
+
UI_PRIMITIVES_DATA_DISPLAY_COLOR_SAMPLE: "/ui/primitives/data-display/color-sample",
|
|
2621
|
+
UI_PRIMITIVES_DATA_DISPLAY_PILL: "/ui/primitives/data-display/pill",
|
|
2618
2622
|
UI_PRIMITIVES_DATA_DISPLAY_STATUS: "/ui/primitives/data-display/status",
|
|
2619
2623
|
UI_PRIMITIVES_DATA_DISPLAY_TAG: "/ui/primitives/data-display/tag",
|
|
2624
|
+
UI_PRIMITIVES_FEEDBACK_BANNER: "/ui/primitives/feedback/banner",
|
|
2625
|
+
UI_PRIMITIVES_FEEDBACK_CIRCULAR_PROGRESS_BAR: "/ui/primitives/feedback/circular-progress-bar",
|
|
2626
|
+
UI_PRIMITIVES_FEEDBACK_LOADER: "/ui/primitives/feedback/loader",
|
|
2627
|
+
UI_PRIMITIVES_FEEDBACK_PROGRESS_BAR: "/ui/primitives/feedback/progress-bar",
|
|
2620
2628
|
UI_PRIMITIVES_INPUT_BUTTON: "/ui/primitives/input/button",
|
|
2621
2629
|
UI_PRIMITIVES_INPUT_BUTTON_GROUP: "/ui/primitives/input/button-group",
|
|
2622
2630
|
UI_PRIMITIVES_INPUT_CHECKBOX: "/ui/primitives/input/checkbox",
|
|
@@ -2625,19 +2633,27 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2625
2633
|
UI_PRIMITIVES_INPUT_INPUT_GROUP: "/ui/primitives/input/input-group",
|
|
2626
2634
|
UI_PRIMITIVES_INPUT_RADIO: "/ui/primitives/input/radio",
|
|
2627
2635
|
UI_PRIMITIVES_INPUT_RADIO_GROUP: "/ui/primitives/input/radio-group",
|
|
2636
|
+
UI_PRIMITIVES_INPUT_SEGMENTED_CONTROL: "/ui/primitives/input/segmented-control",
|
|
2628
2637
|
UI_PRIMITIVES_INPUT_SELECT: "/ui/primitives/input/select",
|
|
2629
2638
|
UI_PRIMITIVES_INPUT_SLIDER: "/ui/primitives/input/slider",
|
|
2630
2639
|
UI_PRIMITIVES_INPUT_SWITCH: "/ui/primitives/input/switch",
|
|
2631
2640
|
UI_PRIMITIVES_INPUT_TEXTAREA: "/ui/primitives/input/textarea",
|
|
2641
|
+
UI_PRIMITIVES_LAYOUT_ANIMATED_EXPANDABLE_CONTAINER: "/ui/primitives/layout/animated-expandable-container",
|
|
2642
|
+
UI_PRIMITIVES_LAYOUT_HORIZONTAL_SEPARATOR: "/ui/primitives/layout/horizontal-separator",
|
|
2643
|
+
UI_PRIMITIVES_LAYOUT_RESIZE_HANDLE: "/ui/primitives/layout/resize-handle",
|
|
2644
|
+
UI_PRIMITIVES_LAYOUT_TEXT_DIRECTION_PROVIDER: "/ui/primitives/layout/text-direction-provider",
|
|
2645
|
+
UI_PRIMITIVES_NAVIGATION_CLICK_TO_ACTION_LINK: "/ui/primitives/navigation/click-to-action-link",
|
|
2632
2646
|
UI_PRIMITIVES_NAVIGATION_LIST_ITEM: "/ui/primitives/navigation/list-item",
|
|
2633
2647
|
UI_PRIMITIVES_NAVIGATION_TABS: "/ui/primitives/navigation/tabs",
|
|
2634
2648
|
UI_PRIMITIVES_OVERVIEW: "/ui/primitives/overview",
|
|
2635
2649
|
UI_PRIMITIVES_SURFACES_ALERT_DIALOG: "/ui/primitives/surfaces/alert-dialog",
|
|
2650
|
+
UI_PRIMITIVES_SURFACES_CARD: "/ui/primitives/surfaces/card",
|
|
2636
2651
|
UI_PRIMITIVES_SURFACES_DIALOG: "/ui/primitives/surfaces/dialog",
|
|
2637
2652
|
UI_PRIMITIVES_SURFACES_MENU: "/ui/primitives/surfaces/menu",
|
|
2638
2653
|
UI_PRIMITIVES_SURFACES_POPOVER: "/ui/primitives/surfaces/popover",
|
|
2639
2654
|
UI_PRIMITIVES_SURFACES_TOOLTIP: "/ui/primitives/surfaces/tooltip",
|
|
2640
2655
|
UI_PRIMITIVES_TYPOGRAPHY_HEADING: "/ui/primitives/typography/heading",
|
|
2656
|
+
UI_PRIMITIVES_TYPOGRAPHY_OVERFLOWING_TEXT_WITH_TOOLTIP: "/ui/primitives/typography/overflowing-text-with-tooltip",
|
|
2641
2657
|
UI_PRIMITIVES_TYPOGRAPHY_TEXT: "/ui/primitives/typography/text",
|
|
2642
2658
|
UI_SSR: "/ui/ssr",
|
|
2643
2659
|
UI_THEMING: "/ui/theming",
|
|
@@ -2649,6 +2665,7 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2649
2665
|
USER_GUIDE_AI_OVERVIEW: "/user-guide/ai/overview",
|
|
2650
2666
|
USER_GUIDE_BILLING_CAPABILITIES_CREDITS: "/user-guide/billing/capabilities/credits",
|
|
2651
2667
|
USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS: "/user-guide/billing/capabilities/pricing-plans",
|
|
2668
|
+
USER_GUIDE_BILLING_CAPABILITIES_USAGE_LIMITS: "/user-guide/billing/capabilities/usage-limits",
|
|
2652
2669
|
USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ: "/user-guide/billing/how-tos/billing-faq",
|
|
2653
2670
|
USER_GUIDE_BILLING_OVERVIEW: "/user-guide/billing/overview",
|
|
2654
2671
|
USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_CALENDAR: "/user-guide/calendar-emails/capabilities/calendar",
|
|
@@ -2765,7 +2782,7 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2765
2782
|
Y.RAW_JSON
|
|
2766
2783
|
]), Z.DAY, Z.WEEK, Z.MONTH, Z.QUARTER, Z.YEAR, Y.FILES, Y.LINKS, Y.TEXT, Y.FULL_NAME, Y.UUID, fa.EMAIL, Q.TABLE, Q.KANBAN, Q.CALENDAR, Q.LIST, Q.FIELDS_WIDGET, Q.TABLE_WIDGET, Q.KANBAN_WIDGET, Q.LIST_WIDGET, Q.CALENDAR_WIDGET;
|
|
2767
2784
|
//#endregion
|
|
2768
|
-
//#region ../twenty-shared/dist/isPlainObject-
|
|
2785
|
+
//#region ../twenty-shared/dist/isPlainObject-B5GtAfD1.mjs
|
|
2769
2786
|
var $ = /* @__PURE__ */ function(e) {
|
|
2770
2787
|
return e.OK = "OK", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e.WARNING = "WARNING", e.ERROR = "ERROR", e.NEUTRAL = "NEUTRAL", e.UNKNOWN = "UNKNOWN", e;
|
|
2771
2788
|
}({});
|
|
@@ -17,4 +17,4 @@ const e=require("./chunk-mLOUI7ql.js");var t=e.t((e=>{Object.defineProperty(e,"_
|
|
|
17
17
|
newResult[${r}] = ${n}.value;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=S,s=!_.jitless,c=s&&ge.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?un([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function pn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!D(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>k(e,r,v())))}),t)}var mn=h(`$ZodUnion`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),y(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),y(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),y(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>fe(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>pn(t,i,e,a)):pn(s,i,e,a)}}),hn=h(`$ZodIntersection`,(e,t)=>{F.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>gn(e,t,n)):gn(e,i,a)}});function z(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(C(e)&&C(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=z(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=z(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function gn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),D(e))return e;let r=z(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var _n=h(`$ZodEnum`,(e,t)=>{F.init(e,t);let n=ce(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ve.has(typeof e)).map(e=>typeof e==`string`?w(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),vn=h(`$ZodTransform`,(e,t)=>{F.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new se(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new g;return n.value=i,n}});function yn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bn=h(`$ZodOptional`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fe(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>yn(t,e.value)):yn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),xn=h(`$ZodNullable`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fe(e.source)}|null)$`):void 0}),y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Sn=h(`$ZodDefault`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Cn(e,t)):Cn(r,t)}});function Cn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wn=h(`$ZodPrefault`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Tn=h(`$ZodNonOptional`,(e,t)=>{F.init(e,t),y(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>En(t,e)):En(i,e)}});function En(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Dn=h(`$ZodCatch`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>k(e,n,v()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>k(e,n,v()))},input:e.value}),e.issues=[]),e)}}),On=h(`$ZodPipe`,(e,t)=>{F.init(e,t),y(e._zod,`values`,()=>t.in._zod.values),y(e._zod,`optin`,()=>t.in._zod.optin),y(e._zod,`optout`,()=>t.out._zod.optout),y(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>B(e,t.in,n)):B(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>B(e,t.out,n)):B(r,t.out,n)}});function B(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var kn=h(`$ZodReadonly`,(e,t)=>{F.init(e,t),y(e._zod,`propValues`,()=>t.innerType._zod.propValues),y(e._zod,`values`,()=>t.innerType._zod.values),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(An):An(r)}});function An(e){return e.value=Object.freeze(e.value),e}var jn=h(`$ZodCustom`,(e,t)=>{N.init(e,t),F.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Mn(t,n,r,e));Mn(i,n,r,e)}});function Mn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(A(e))}}var Nn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Pn(){return new Nn}var V=Pn();function Fn(e,t){return new e({type:`string`,...E(t)})}function In(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function Ln(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Rn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function zn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function Bn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function Vn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function Hn(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Un(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function Wn(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Gn(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Kn(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function qn(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Jn(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Yn(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Xn(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function Zn(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function Qn(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function $n(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function er(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function tr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function nr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function rr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function ir(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function ar(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function or(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function sr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function cr(e){return new e({type:`unknown`})}function lr(e,t){return new e({type:`never`,...E(t)})}function ur(e,t){return new bt({check:`max_length`,...E(t),maximum:e})}function H(e,t){return new xt({check:`min_length`,...E(t),minimum:e})}function dr(e,t){return new St({check:`length_equals`,...E(t),length:e})}function fr(e,t){return new Ct({check:`string_format`,format:`regex`,...E(t),pattern:e})}function pr(e){return new wt({check:`string_format`,format:`lowercase`,...E(e)})}function mr(e){return new Tt({check:`string_format`,format:`uppercase`,...E(e)})}function hr(e,t){return new Et({check:`string_format`,format:`includes`,...E(t),includes:e})}function gr(e,t){return new Dt({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function _r(e,t){return new Ot({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function U(e){return new kt({check:`overwrite`,tx:e})}function vr(e){return U(t=>t.normalize(e))}function yr(){return U(e=>e.trim())}function br(){return U(e=>e.toLowerCase())}function xr(){return U(e=>e.toUpperCase())}function Sr(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Cr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function wr(e){let t=Tr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(A(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(A(r))}},e(n.value,n)));return t}function Tr(e,t){let n=new N({check:`custom`,...E(t)});return n._zod.check=e,n}var Er=h(`ZodISODateTime`,(e,t)=>{Ut.init(e,t),K.init(e,t)});function Dr(e){return ir(Er,e)}var Or=h(`ZodISODate`,(e,t)=>{Wt.init(e,t),K.init(e,t)});function kr(e){return ar(Or,e)}var Ar=h(`ZodISOTime`,(e,t)=>{Gt.init(e,t),K.init(e,t)});function jr(e){return or(Ar,e)}var Mr=h(`ZodISODuration`,(e,t)=>{Kt.init(e,t),K.init(e,t)});function Nr(e){return sr(Mr,e)}var Pr=(e,t)=>{Ae.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ne(e,t)},flatten:{value:t=>Me(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,le,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,le,2)}},isEmpty:{get(){return e.issues.length===0}}})};h(`ZodError`,Pr);var W=h(`ZodError`,Pr,{Parent:Error}),Fr=Pe(W),Ir=Fe(W),Lr=j(W),Rr=M(W),zr=Re(W),Br=ze(W),Vr=Be(W),Hr=Ve(W),Ur=He(W),Wr=Ue(W),Gr=We(W),Kr=Ge(W),G=h(`ZodType`,(e,t)=>(F.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(x(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>T(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Fr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Lr(e,t,n),e.parseAsync=async(t,n)=>Ir(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Rr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>zr(e,t,n),e.decode=(t,n)=>Br(e,t,n),e.encodeAsync=async(t,n)=>Vr(e,t,n),e.decodeAsync=async(t,n)=>Hr(e,t,n),e.safeEncode=(t,n)=>Ur(e,t,n),e.safeDecode=(t,n)=>Wr(e,t,n),e.safeEncodeAsync=async(t,n)=>Gr(e,t,n),e.safeDecodeAsync=async(t,n)=>Kr(e,t,n),e.refine=(t,n)=>e.check(qi(t,n)),e.superRefine=t=>e.check(Ji(t)),e.overwrite=t=>e.check(U(t)),e.optional=()=>ji(e),e.nullable=()=>Ni(e),e.nullish=()=>ji(Ni(e)),e.nonoptional=t=>zi(e,t),e.array=()=>yi(e),e.or=t=>Ci([e,t]),e.and=t=>Ti(e,t),e.transform=t=>Ui(e,ki(t)),e.default=t=>Fi(e,t),e.prefault=t=>Li(e,t),e.catch=t=>Vi(e,t),e.pipe=t=>Ui(e,t),e.readonly=()=>Gi(e),e.describe=t=>{let n=e.clone();return V.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return V.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return V.get(e);let n=e.clone();return V.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),qr=h(`_ZodString`,(e,t)=>{I.init(e,t),G.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(fr(...t)),e.includes=(...t)=>e.check(hr(...t)),e.startsWith=(...t)=>e.check(gr(...t)),e.endsWith=(...t)=>e.check(_r(...t)),e.min=(...t)=>e.check(H(...t)),e.max=(...t)=>e.check(ur(...t)),e.length=(...t)=>e.check(dr(...t)),e.nonempty=(...t)=>e.check(H(1,...t)),e.lowercase=t=>e.check(pr(t)),e.uppercase=t=>e.check(mr(t)),e.trim=()=>e.check(yr()),e.normalize=(...t)=>e.check(vr(...t)),e.toLowerCase=()=>e.check(br()),e.toUpperCase=()=>e.check(xr())}),Jr=h(`ZodString`,(e,t)=>{I.init(e,t),qr.init(e,t),e.email=t=>e.check(In(Xr,t)),e.url=t=>e.check(Hn(Qr,t)),e.jwt=t=>e.check(rr(pi,t)),e.emoji=t=>e.check(Un($r,t)),e.guid=t=>e.check(Ln(Zr,t)),e.uuid=t=>e.check(Rn(q,t)),e.uuidv4=t=>e.check(zn(q,t)),e.uuidv6=t=>e.check(Bn(q,t)),e.uuidv7=t=>e.check(Vn(q,t)),e.nanoid=t=>e.check(Wn(ei,t)),e.guid=t=>e.check(Ln(Zr,t)),e.cuid=t=>e.check(Gn(ti,t)),e.cuid2=t=>e.check(Kn(ni,t)),e.ulid=t=>e.check(qn(ri,t)),e.base64=t=>e.check(er(ui,t)),e.base64url=t=>e.check(tr(di,t)),e.xid=t=>e.check(Jn(ii,t)),e.ksuid=t=>e.check(Yn(ai,t)),e.ipv4=t=>e.check(Xn(oi,t)),e.ipv6=t=>e.check(Zn(si,t)),e.cidrv4=t=>e.check(Qn(ci,t)),e.cidrv6=t=>e.check($n(li,t)),e.e164=t=>e.check(nr(fi,t)),e.datetime=t=>e.check(Dr(t)),e.date=t=>e.check(kr(t)),e.time=t=>e.check(jr(t)),e.duration=t=>e.check(Nr(t))});function Yr(e){return Fn(Jr,e)}var K=h(`ZodStringFormat`,(e,t)=>{L.init(e,t),qr.init(e,t)}),Xr=h(`ZodEmail`,(e,t)=>{Pt.init(e,t),K.init(e,t)}),Zr=h(`ZodGUID`,(e,t)=>{Mt.init(e,t),K.init(e,t)}),q=h(`ZodUUID`,(e,t)=>{Nt.init(e,t),K.init(e,t)}),Qr=h(`ZodURL`,(e,t)=>{Ft.init(e,t),K.init(e,t)}),$r=h(`ZodEmoji`,(e,t)=>{It.init(e,t),K.init(e,t)}),ei=h(`ZodNanoID`,(e,t)=>{Lt.init(e,t),K.init(e,t)}),ti=h(`ZodCUID`,(e,t)=>{Rt.init(e,t),K.init(e,t)}),ni=h(`ZodCUID2`,(e,t)=>{zt.init(e,t),K.init(e,t)}),ri=h(`ZodULID`,(e,t)=>{Bt.init(e,t),K.init(e,t)}),ii=h(`ZodXID`,(e,t)=>{Vt.init(e,t),K.init(e,t)}),ai=h(`ZodKSUID`,(e,t)=>{Ht.init(e,t),K.init(e,t)}),oi=h(`ZodIPv4`,(e,t)=>{qt.init(e,t),K.init(e,t)}),si=h(`ZodIPv6`,(e,t)=>{Jt.init(e,t),K.init(e,t)}),ci=h(`ZodCIDRv4`,(e,t)=>{Yt.init(e,t),K.init(e,t)}),li=h(`ZodCIDRv6`,(e,t)=>{Xt.init(e,t),K.init(e,t)}),ui=h(`ZodBase64`,(e,t)=>{Qt.init(e,t),K.init(e,t)}),di=h(`ZodBase64URL`,(e,t)=>{en.init(e,t),K.init(e,t)}),fi=h(`ZodE164`,(e,t)=>{tn.init(e,t),K.init(e,t)}),pi=h(`ZodJWT`,(e,t)=>{rn.init(e,t),K.init(e,t)}),mi=h(`ZodUnknown`,(e,t)=>{an.init(e,t),G.init(e,t)});function hi(){return cr(mi)}var gi=h(`ZodNever`,(e,t)=>{on.init(e,t),G.init(e,t)});function _i(e){return lr(gi,e)}var vi=h(`ZodArray`,(e,t)=>{cn.init(e,t),G.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(H(t,n)),e.nonempty=t=>e.check(H(1,t)),e.max=(t,n)=>e.check(ur(t,n)),e.length=(t,n)=>e.check(dr(t,n)),e.unwrap=()=>e.element});function yi(e,t){return Sr(vi,e,t)}var bi=h(`ZodObject`,(e,t)=>{fn.init(e,t),G.init(e,t),y(e,`shape`,()=>t.shape),e.keyof=()=>Di(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hi()}),e.loose=()=>e.clone({...e._zod.def,catchall:hi()}),e.strict=()=>e.clone({...e._zod.def,catchall:_i()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Se(e,t),e.safeExtend=t=>Ce(e,t),e.merge=t=>we(e,t),e.pick=t=>be(e,t),e.omit=t=>xe(e,t),e.partial=(...t)=>Te(Ai,e,t[0]),e.required=(...t)=>Ee(Ri,e,t[0])});function xi(e,t){return new bi({type:`object`,shape:e??{},...E(t)})}var Si=h(`ZodUnion`,(e,t)=>{mn.init(e,t),G.init(e,t),e.options=t.options});function Ci(e,t){return new Si({type:`union`,options:e,...E(t)})}var wi=h(`ZodIntersection`,(e,t)=>{hn.init(e,t),G.init(e,t)});function Ti(e,t){return new wi({type:`intersection`,left:e,right:t})}var Ei=h(`ZodEnum`,(e,t)=>{_n.init(e,t),G.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ei({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ei({...t,checks:[],...E(r),entries:i})}});function Di(e,t){return new Ei({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}var Oi=h(`ZodTransform`,(e,t)=>{vn.init(e,t),G.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new se(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(A(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(A(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ki(e){return new Oi({type:`transform`,transform:e})}var Ai=h(`ZodOptional`,(e,t)=>{bn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ji(e){return new Ai({type:`optional`,innerType:e})}var Mi=h(`ZodNullable`,(e,t)=>{xn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ni(e){return new Mi({type:`nullable`,innerType:e})}var Pi=h(`ZodDefault`,(e,t)=>{Sn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Fi(e,t){return new Pi({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():_e(t)}})}var Ii=h(`ZodPrefault`,(e,t)=>{wn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Li(e,t){return new Ii({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():_e(t)}})}var Ri=h(`ZodNonOptional`,(e,t)=>{Tn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zi(e,t){return new Ri({type:`nonoptional`,innerType:e,...E(t)})}var Bi=h(`ZodCatch`,(e,t)=>{Dn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vi(e,t){return new Bi({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Hi=h(`ZodPipe`,(e,t)=>{On.init(e,t),G.init(e,t),e.in=t.in,e.out=t.out});function Ui(e,t){return new Hi({type:`pipe`,in:e,out:t})}var Wi=h(`ZodReadonly`,(e,t)=>{kn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gi(e){return new Wi({type:`readonly`,innerType:e})}var Ki=h(`ZodCustom`,(e,t)=>{jn.init(e,t),G.init(e,t)});function qi(e,t={}){return Cr(Ki,e,t)}function Ji(e){return wr(e)}var Yi=function(){function e(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e?.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return e}(),Xi=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},a={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new Yi(a))})}),t},e}(),Zi=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},Qi=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},$i=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;new Xi().transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,r,i){var a,o,s=function(e){return e.always===void 0?e.groups&&e.groups.length?!1:n:e.always},c=function(e){return!!(r&&(!i||!i.length)&&e.groups&&e.groups.length)},l=(this.validationMetadatas.get(e)||[]).filter(function(n){return n.target!==e&&n.target!==t?!1:s(n)?!0:c(n)?!1:i&&i.length>0?n.groups&&!!n.groups.find(function(e){return i.indexOf(e)!==-1}):!0}),u=[];try{for(var d=Zi(this.validationMetadatas.entries()),f=d.next();!f.done;f=d.next()){var p=Qi(f.value,2),ee=p[0],te=p[1];e.prototype instanceof ee&&u.push.apply(u,$i([],Qi(te),!1))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}var m=u.filter(function(t){return typeof t.target==`string`||t.target===e||t.target instanceof Function&&!(e.prototype instanceof t.target)?!1:s(t)?!0:c(t)?!1:i&&i.length>0?t.groups&&!!t.groups.find(function(e){return i.indexOf(e)!==-1}):!0}).filter(function(e){return!l.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return l.concat(m)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e})(),function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();var ea=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),ta,J;function na(e){if(ta)try{var t=ta.get(e);if(t||!J||!J.fallback)return t}catch(e){if(!J||!J.fallbackOnErrors)throw e}return ea.get(e)}(function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return na(this.target)},enumerable:!1,configurable:!0}),e})();var Y=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),ra=function(e){return e.EMAIL=`EMAIL`,e.CALENDAR=`CALENDAR`,e.WORKFLOW=`WORKFLOW`,e.AGENT=`AGENT`,e.API=`API`,e.IMPORT=`IMPORT`,e.MANUAL=`MANUAL`,e.SYSTEM=`SYSTEM`,e.WEBHOOK=`WEBHOOK`,e.APPLICATION=`APPLICATION`,e}({}),ia={type:Y.ACTOR,properties:[{name:`source`,type:Y.SELECT,hidden:!1,isRequired:!0,options:Object.keys(ra).map((e,t)=>({id:ne(),label:`${ra[e].toLowerCase()}`,value:e,position:t}))},{name:`workspaceMemberId`,type:Y.UUID,hidden:`input`,isRequired:!1},{name:`name`,type:Y.TEXT,hidden:`input`,isRequired:!0},{name:`context`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},aa={type:Y.ADDRESS,properties:[{name:`addressStreet1`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressStreet2`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressCity`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressPostcode`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressState`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressCountry`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressLat`,type:Y.NUMERIC,hidden:!1,isRequired:!1},{name:`addressLng`,type:Y.NUMERIC,hidden:!1,isRequired:!1}]},oa={type:Y.CURRENCY,properties:[{name:`amountMicros`,type:Y.NUMERIC,hidden:!1,isRequired:!1},{name:`currencyCode`,type:Y.TEXT,hidden:!1,isRequired:!1}]},sa={type:Y.EMAILS,properties:[{name:`primaryEmail`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalEmails`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},ca={type:Y.FULL_NAME,properties:[{name:`firstName`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:`lastName`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},la={type:Y.LINKS,properties:[{name:`primaryLinkLabel`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`primaryLinkUrl`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`secondaryLinks`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},ua={type:Y.PHONES,properties:[{name:`primaryPhoneNumber`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCountryCode`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCallingCode`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalPhones`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},da={type:Y.RICH_TEXT,properties:[{name:`blocknote`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`markdown`,type:Y.TEXT,hidden:!1,isRequired:!1}]};xi({blocknote:Yr().nullable().optional(),markdown:Yr().nullable()}),new Map([[Y.LINKS,la],[Y.CURRENCY,oa],[Y.FULL_NAME,ca],[Y.ADDRESS,aa],[Y.ACTOR,ia],[Y.EMAILS,sa],[Y.PHONES,ua],[Y.RICH_TEXT,da]]);var X=function(e){return e.GOOGLE=`google`,e.MICROSOFT=`microsoft`,e.IMAP_SMTP_CALDAV=`imap_smtp_caldav`,e.OIDC=`oidc`,e.SAML=`saml`,e.EMAIL_GROUP=`email_group`,e.APP=`app`,e}({});Y.RELATION,Y.MORPH_RELATION,Y.FILES,Y.TS_VECTOR;var fa=function(e){return e.EMAIL=`EMAIL`,e.SMS=`SMS`,e.EMAIL_GROUP=`EMAIL_GROUP`,e.APP=`APP`,e}({}),Z=function(e){return e.DAY=`DAY`,e.MONTH=`MONTH`,e.QUARTER=`QUARTER`,e.YEAR=`YEAR`,e.WEEK=`WEEK`,e.DAY_OF_THE_WEEK=`DAY_OF_THE_WEEK`,e.MONTH_OF_THE_YEAR=`MONTH_OF_THE_YEAR`,e.QUARTER_OF_THE_YEAR=`QUARTER_OF_THE_YEAR`,e.NONE=`NONE`,e}({}),Q=function(e){return e.TABLE=`TABLE`,e.KANBAN=`KANBAN`,e.CALENDAR=`CALENDAR`,e.LIST=`LIST`,e.FIELDS_WIDGET=`FIELDS_WIDGET`,e.TABLE_WIDGET=`TABLE_WIDGET`,e.KANBAN_WIDGET=`KANBAN_WIDGET`,e.LIST_WIDGET=`LIST_WIDGET`,e.CALENDAR_WIDGET=`CALENDAR_WIDGET`,e}({});Y.CURRENCY,Y.EMAILS,Y.LINKS,Y.PHONES,Y.FULL_NAME,Y.ADDRESS,Y.ACTOR,Y.RICH_TEXT,Y.CURRENCY,Y.EMAILS,Y.LINKS,Y.PHONES,Y.FULL_NAME,Y.ADDRESS,Y.ACTOR,Y.RICH_TEXT,{DEVELOPERS_CONTRIBUTE_CAPABILITIES_LOCAL_SETUP:`/developers/contribute/capabilities/local-setup`,DEVELOPERS_CONTRIBUTE_COMMANDS:`/developers/contribute/commands`,DEVELOPERS_CONTRIBUTE_STYLE_GUIDE:`/developers/contribute/style-guide`,DEVELOPERS_EXTEND_API:`/developers/extend/api`,DEVELOPERS_EXTEND_APPS_CONFIG_APPLICATION:`/developers/extend/apps/config/application`,DEVELOPERS_EXTEND_APPS_CONFIG_INSTALL_HOOKS:`/developers/extend/apps/config/install-hooks`,DEVELOPERS_EXTEND_APPS_CONFIG_OVERVIEW:`/developers/extend/apps/config/overview`,DEVELOPERS_EXTEND_APPS_CONFIG_PUBLIC_ASSETS:`/developers/extend/apps/config/public-assets`,DEVELOPERS_EXTEND_APPS_CONFIG_ROLES:`/developers/extend/apps/config/roles`,DEVELOPERS_EXTEND_APPS_DATA_EXTENDING_OBJECTS:`/developers/extend/apps/data/extending-objects`,DEVELOPERS_EXTEND_APPS_DATA_OBJECTS:`/developers/extend/apps/data/objects`,DEVELOPERS_EXTEND_APPS_DATA_OVERVIEW:`/developers/extend/apps/data/overview`,DEVELOPERS_EXTEND_APPS_DATA_RELATIONS:`/developers/extend/apps/data/relations`,DEVELOPERS_EXTEND_APPS_DATA_SYSTEM_FIELDS:`/developers/extend/apps/data/system-fields`,DEVELOPERS_EXTEND_APPS_DATA_TIMELINE_ACTIVITY_TYPES:`/developers/extend/apps/data/timeline-activity-types`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_CONCEPTS:`/developers/extend/apps/getting-started/concepts`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_LOCAL_SERVER:`/developers/extend/apps/getting-started/local-server`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_PROJECT_STRUCTURE:`/developers/extend/apps/getting-started/project-structure`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_QUICK_START:`/developers/extend/apps/getting-started/quick-start`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_SCAFFOLDING:`/developers/extend/apps/getting-started/scaffolding`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_TROUBLESHOOTING:`/developers/extend/apps/getting-started/troubleshooting`,DEVELOPERS_EXTEND_APPS_LAYOUT_COMMAND_MENU_ITEMS:`/developers/extend/apps/layout/command-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_FRONT_COMPONENTS:`/developers/extend/apps/layout/front-components`,DEVELOPERS_EXTEND_APPS_LAYOUT_NAVIGATION_MENU_ITEMS:`/developers/extend/apps/layout/navigation-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_OVERVIEW:`/developers/extend/apps/layout/overview`,DEVELOPERS_EXTEND_APPS_LAYOUT_PAGE_LAYOUTS:`/developers/extend/apps/layout/page-layouts`,DEVELOPERS_EXTEND_APPS_LAYOUT_VIEWS:`/developers/extend/apps/layout/views`,DEVELOPERS_EXTEND_APPS_LOGIC_BACKGROUND_JOBS:`/developers/extend/apps/logic/background-jobs`,DEVELOPERS_EXTEND_APPS_LOGIC_CONNECTIONS:`/developers/extend/apps/logic/connections`,DEVELOPERS_EXTEND_APPS_LOGIC_CREDITS:`/developers/extend/apps/logic/credits`,DEVELOPERS_EXTEND_APPS_LOGIC_KEY_VALUE_STORE:`/developers/extend/apps/logic/key-value-store`,DEVELOPERS_EXTEND_APPS_LOGIC_LOGIC_FUNCTIONS:`/developers/extend/apps/logic/logic-functions`,DEVELOPERS_EXTEND_APPS_LOGIC_MESSAGING_CHANNELS:`/developers/extend/apps/logic/messaging-channels`,DEVELOPERS_EXTEND_APPS_LOGIC_OVERVIEW:`/developers/extend/apps/logic/overview`,DEVELOPERS_EXTEND_APPS_LOGIC_SKILLS_AND_AGENTS:`/developers/extend/apps/logic/skills-and-agents`,DEVELOPERS_EXTEND_APPS_OPERATIONS_CLI:`/developers/extend/apps/operations/cli`,DEVELOPERS_EXTEND_APPS_OPERATIONS_OVERVIEW:`/developers/extend/apps/operations/overview`,DEVELOPERS_EXTEND_APPS_OPERATIONS_PUBLISHING:`/developers/extend/apps/operations/publishing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_SYNC_AND_RECOVERY:`/developers/extend/apps/operations/sync-and-recovery`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TESTING:`/developers/extend/apps/operations/testing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TRANSLATIONS:`/developers/extend/apps/operations/translations`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_AI_AGENT:`/developers/extend/apps/tutorials/document-generator/ai-agent`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_BUILDING_THE_UI:`/developers/extend/apps/tutorials/document-generator/building-the-ui`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_DATA_MODEL:`/developers/extend/apps/tutorials/document-generator/data-model`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_GENERATING_DOCUMENTS:`/developers/extend/apps/tutorials/document-generator/generating-documents`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_HTTP_ROUTES:`/developers/extend/apps/tutorials/document-generator/http-routes`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_OVERVIEW:`/developers/extend/apps/tutorials/document-generator/overview`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_PUBLISHING:`/developers/extend/apps/tutorials/document-generator/publishing`,DEVELOPERS_EXTEND_OAUTH:`/developers/extend/oauth`,DEVELOPERS_EXTEND_WEBHOOKS:`/developers/extend/webhooks`,DEVELOPERS_INTRODUCTION:`/developers/introduction`,DEVELOPERS_SELF_HOST_CAPABILITIES_DOCKER_COMPOSE:`/developers/self-host/capabilities/docker-compose`,DEVELOPERS_SELF_HOST_CAPABILITIES_SETUP:`/developers/self-host/capabilities/setup`,DEVELOPERS_SELF_HOST_CAPABILITIES_TROUBLESHOOTING:`/developers/self-host/capabilities/troubleshooting`,DEVELOPERS_SELF_HOST_CAPABILITIES_UPGRADE_GUIDE:`/developers/self-host/capabilities/upgrade-guide`,GETTING_STARTED_CORE_CONCEPTS_AI:`/getting-started/core-concepts/ai`,GETTING_STARTED_CORE_CONCEPTS_APPS:`/getting-started/core-concepts/apps`,GETTING_STARTED_CORE_CONCEPTS_CALENDAR_AND_EMAIL:`/getting-started/core-concepts/calendar-and-email`,GETTING_STARTED_CORE_CONCEPTS_DASHBOARDS:`/getting-started/core-concepts/dashboards`,GETTING_STARTED_CORE_CONCEPTS_DATA_MODEL:`/getting-started/core-concepts/data-model`,GETTING_STARTED_CORE_CONCEPTS_GLOSSARY:`/getting-started/core-concepts/glossary`,GETTING_STARTED_CORE_CONCEPTS_LAYOUT:`/getting-started/core-concepts/layout`,GETTING_STARTED_CORE_CONCEPTS_WORKFLOWS:`/getting-started/core-concepts/workflows`,GETTING_STARTED_INTRODUCTION:`/getting-started/introduction`,GETTING_STARTED_KEY_FEATURES:`/getting-started/key-features`,GETTING_STARTED_QUICKSTART:`/getting-started/quickstart`,UI_ACCESSIBILITY:`/ui/accessibility`,UI_COMPONENTS_CODE_EDITOR:`/ui/components/code-editor`,UI_COMPONENTS_INPUT_ICON_BUTTON:`/ui/components/input/icon-button`,UI_COMPONENTS_INPUT_LIGHT_BUTTON:`/ui/components/input/light-button`,UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON:`/ui/components/input/light-icon-button`,UI_COMPONENTS_INPUT_MAIN_BUTTON:`/ui/components/input/main-button`,UI_COMPONENTS_OVERVIEW:`/ui/components/overview`,UI_COMPONENTS_SECTION:`/ui/components/section`,UI_COMPONENTS_SETTINGS_ROW:`/ui/components/settings-row`,UI_COMPONENTS_TAB_BUTTON:`/ui/components/tab-button`,UI_COMPONENTS_TOAST:`/ui/components/toast`,UI_DARK_MODE:`/ui/dark-mode`,UI_GETTING_STARTED:`/ui/getting-started`,UI_PRIMITIVES_DATA_DISPLAY_AVATAR:`/ui/primitives/data-display/avatar`,UI_PRIMITIVES_DATA_DISPLAY_CHIP:`/ui/primitives/data-display/chip`,UI_PRIMITIVES_DATA_DISPLAY_STATUS:`/ui/primitives/data-display/status`,UI_PRIMITIVES_DATA_DISPLAY_TAG:`/ui/primitives/data-display/tag`,UI_PRIMITIVES_INPUT_BUTTON:`/ui/primitives/input/button`,UI_PRIMITIVES_INPUT_BUTTON_GROUP:`/ui/primitives/input/button-group`,UI_PRIMITIVES_INPUT_CHECKBOX:`/ui/primitives/input/checkbox`,UI_PRIMITIVES_INPUT_FIELD:`/ui/primitives/input/field`,UI_PRIMITIVES_INPUT_INPUT:`/ui/primitives/input/input`,UI_PRIMITIVES_INPUT_INPUT_GROUP:`/ui/primitives/input/input-group`,UI_PRIMITIVES_INPUT_RADIO:`/ui/primitives/input/radio`,UI_PRIMITIVES_INPUT_RADIO_GROUP:`/ui/primitives/input/radio-group`,UI_PRIMITIVES_INPUT_SELECT:`/ui/primitives/input/select`,UI_PRIMITIVES_INPUT_SLIDER:`/ui/primitives/input/slider`,UI_PRIMITIVES_INPUT_SWITCH:`/ui/primitives/input/switch`,UI_PRIMITIVES_INPUT_TEXTAREA:`/ui/primitives/input/textarea`,UI_PRIMITIVES_NAVIGATION_LIST_ITEM:`/ui/primitives/navigation/list-item`,UI_PRIMITIVES_NAVIGATION_TABS:`/ui/primitives/navigation/tabs`,UI_PRIMITIVES_OVERVIEW:`/ui/primitives/overview`,UI_PRIMITIVES_SURFACES_ALERT_DIALOG:`/ui/primitives/surfaces/alert-dialog`,UI_PRIMITIVES_SURFACES_DIALOG:`/ui/primitives/surfaces/dialog`,UI_PRIMITIVES_SURFACES_MENU:`/ui/primitives/surfaces/menu`,UI_PRIMITIVES_SURFACES_POPOVER:`/ui/primitives/surfaces/popover`,UI_PRIMITIVES_SURFACES_TOOLTIP:`/ui/primitives/surfaces/tooltip`,UI_PRIMITIVES_TYPOGRAPHY_HEADING:`/ui/primitives/typography/heading`,UI_PRIMITIVES_TYPOGRAPHY_TEXT:`/ui/primitives/typography/text`,UI_SSR:`/ui/ssr`,UI_THEMING:`/ui/theming`,UI_TOKENS:`/ui/tokens`,USER_GUIDE_AI_CAPABILITIES_AI_AGENTS:`/user-guide/ai/capabilities/ai-agents`,USER_GUIDE_AI_CAPABILITIES_AI_CHATBOT:`/user-guide/ai/capabilities/ai-chatbot`,USER_GUIDE_AI_CAPABILITIES_PERMISSIONS_ACCESS_CONTROL:`/user-guide/ai/capabilities/permissions-access-control`,USER_GUIDE_AI_HOW_TOS_AI_FAQ:`/user-guide/ai/how-tos/ai-faq`,USER_GUIDE_AI_OVERVIEW:`/user-guide/ai/overview`,USER_GUIDE_BILLING_CAPABILITIES_CREDITS:`/user-guide/billing/capabilities/credits`,USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS:`/user-guide/billing/capabilities/pricing-plans`,USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ:`/user-guide/billing/how-tos/billing-faq`,USER_GUIDE_BILLING_OVERVIEW:`/user-guide/billing/overview`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_CALENDAR:`/user-guide/calendar-emails/capabilities/calendar`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_MAILBOX:`/user-guide/calendar-emails/capabilities/mailbox`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_BOOK_MEETINGS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-book-meetings-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_SEND_EMAILS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-send-emails-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_TRACK_EMAIL_ACTIVITY_ON_ALL_OBJECTS:`/user-guide/calendar-emails/how-tos/can-i-track-email-activity-on-all-objects`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CONNECT_SEVERAL_MAILBOXES_PER_USER:`/user-guide/calendar-emails/how-tos/connect-several-mailboxes-per-user`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_ANY_MAIL_PROVIDER:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-any-mail-provider`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_GOOGLE_WORKSPACE:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-google-workspace`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_MICROSOFT_365:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-microsoft-365`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_I_DONT_SEE_EMAILS_ON_RECORDS:`/user-guide/calendar-emails/how-tos/i-dont-see-emails-on-records`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_LIMIT_EMAILS_IMPORTED:`/user-guide/calendar-emails/how-tos/limit-emails-imported`,USER_GUIDE_CALENDAR_EMAILS_OVERVIEW:`/user-guide/calendar-emails/overview`,USER_GUIDE_DASHBOARDS_CAPABILITIES_CHART_SETTINGS:`/user-guide/dashboards/capabilities/chart-settings`,USER_GUIDE_DASHBOARDS_CAPABILITIES_DASHBOARDS:`/user-guide/dashboards/capabilities/dashboards`,USER_GUIDE_DASHBOARDS_CAPABILITIES_WIDGETS:`/user-guide/dashboards/capabilities/widgets`,USER_GUIDE_DASHBOARDS_HOW_TOS_DASHBOARDS_FAQ:`/user-guide/dashboards/how-tos/dashboards-faq`,USER_GUIDE_DASHBOARDS_HOW_TOS_WIDGET_FAQ:`/user-guide/dashboards/how-tos/widget-faq`,USER_GUIDE_DASHBOARDS_OVERVIEW:`/user-guide/dashboards/overview`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_ERROR_HANDLING:`/user-guide/data-migration/capabilities/error-handling`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FIELD_MAPPING:`/user-guide/data-migration/capabilities/field-mapping`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FILE_FORMATS:`/user-guide/data-migration/capabilities/file-formats`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_IMPORT_RELATIONS:`/user-guide/data-migration/capabilities/import-relations`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_UNIQUENESS_CONSTRAINTS:`/user-guide/data-migration/capabilities/uniqueness-constraints`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_EXPORT_YOUR_DATA:`/user-guide/data-migration/how-tos/export-your-data`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_FIX_IMPORT_ERRORS:`/user-guide/data-migration/how-tos/fix-import-errors`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_COMPANIES_VIA_CSV:`/user-guide/data-migration/how-tos/import-companies-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_CONTACTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-contacts-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_DATA_VIA_API:`/user-guide/data-migration/how-tos/import-data-via-api`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_RELATIONS_BETWEEN_OBJECTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-relations-between-objects-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_OTHER_CRMS:`/user-guide/data-migration/how-tos/migrating-from-other-crms`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_SELF_HOSTED_TO_CLOUD:`/user-guide/data-migration/how-tos/migrating-from-self-hosted-to-cloud`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_PREPARE_YOUR_CSV_FILES:`/user-guide/data-migration/how-tos/prepare-your-csv-files`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_UPDATE_EXISTING_RECORDS_VIA_IMPORT:`/user-guide/data-migration/how-tos/update-existing-records-via-import`,USER_GUIDE_DATA_MIGRATION_OVERVIEW:`/user-guide/data-migration/overview`,USER_GUIDE_DATA_MODEL_CAPABILITIES_FIELDS:`/user-guide/data-model/capabilities/fields`,USER_GUIDE_DATA_MODEL_CAPABILITIES_OBJECTS:`/user-guide/data-model/capabilities/objects`,USER_GUIDE_DATA_MODEL_CAPABILITIES_RELATION_FIELDS:`/user-guide/data-model/capabilities/relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_FIELDS:`/user-guide/data-model/how-tos/create-custom-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_OBJECTS:`/user-guide/data-model/how-tos/create-custom-objects`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_MANY_TO_MANY_RELATIONS:`/user-guide/data-model/how-tos/create-many-to-many-relations`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_RELATION_FIELDS:`/user-guide/data-model/how-tos/create-relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CUSTOMIZE_YOUR_DATA_MODEL:`/user-guide/data-model/how-tos/customize-your-data-model`,USER_GUIDE_DATA_MODEL_HOW_TOS_DATA_MODEL_FAQ:`/user-guide/data-model/how-tos/data-model-faq`,USER_GUIDE_DATA_MODEL_OVERVIEW:`/user-guide/data-model/overview`,USER_GUIDE_INTRODUCTION:`/user-guide/introduction`,USER_GUIDE_LAYOUT_CAPABILITIES_NAVIGATION:`/user-guide/layout/capabilities/navigation`,USER_GUIDE_LAYOUT_CAPABILITIES_RECORD_PAGES:`/user-guide/layout/capabilities/record-pages`,USER_GUIDE_LAYOUT_OVERVIEW:`/user-guide/layout/overview`,USER_GUIDE_LEGAL_HOW_TOS_LEGAL_FAQ:`/user-guide/legal/how-tos/legal-faq`,USER_GUIDE_LEGAL_OVERVIEW:`/user-guide/legal/overview`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_PERMISSIONS:`/user-guide/permissions-access/capabilities/permissions`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_SSO_CONFIGURATION:`/user-guide/permissions-access/capabilities/sso-configuration`,USER_GUIDE_PERMISSIONS_ACCESS_HOW_TOS_PERMISSIONS_FAQ:`/user-guide/permissions-access/how-tos/permissions-faq`,USER_GUIDE_PERMISSIONS_ACCESS_OVERVIEW:`/user-guide/permissions-access/overview`,USER_GUIDE_SETTINGS_CAPABILITIES_COMMUNITY_SETTINGS:`/user-guide/settings/capabilities/community-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_DOMAINS_SETTINGS:`/user-guide/settings/capabilities/domains-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_EXPERIENCE_SETTINGS:`/user-guide/settings/capabilities/experience-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_MEMBER_MANAGEMENT:`/user-guide/settings/capabilities/member-management`,USER_GUIDE_SETTINGS_CAPABILITIES_PROFILE_SETTINGS:`/user-guide/settings/capabilities/profile-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_WORKSPACE_SETTINGS:`/user-guide/settings/capabilities/workspace-settings`,USER_GUIDE_SETTINGS_HOW_TOS_SETTINGS_FAQ:`/user-guide/settings/how-tos/settings-faq`,USER_GUIDE_SETTINGS_OVERVIEW:`/user-guide/settings/overview`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_CALENDAR_VIEW:`/user-guide/views-pipelines/capabilities/calendar-view`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FIELDS_AND_COLUMNS:`/user-guide/views-pipelines/capabilities/fields-and-columns`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FILTERS_AND_SORTING:`/user-guide/views-pipelines/capabilities/filters-and-sorting`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_KANBAN_VIEWS:`/user-guide/views-pipelines/capabilities/kanban-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_TABLE_VIEWS:`/user-guide/views-pipelines/capabilities/table-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_VIEW_SETTINGS:`/user-guide/views-pipelines/capabilities/view-settings`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_CALENDAR_VIEW_FOR_TASKS_DUE:`/user-guide/views-pipelines/how-tos/create-a-calendar-view-for-tasks-due`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_KANBAN_VIEW_FOR_PROJECTS:`/user-guide/views-pipelines/how-tos/create-a-kanban-view-for-projects`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_TABLE_VIEW_WITH_GROUPING:`/user-guide/views-pipelines/how-tos/create-a-table-view-with-grouping`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_RESTRICT_ACCESS_TO_YOUR_VIEW:`/user-guide/views-pipelines/how-tos/restrict-access-to-your-view`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SET_UP_A_SALES_PIPELINE:`/user-guide/views-pipelines/how-tos/set-up-a-sales-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SHOW_EXPECTED_AMOUNT_IN_PIPELINE:`/user-guide/views-pipelines/how-tos/show-expected-amount-in-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_TRACK_TIME_IN_STAGE:`/user-guide/views-pipelines/how-tos/track-time-in-stage`,USER_GUIDE_WORKFLOWS_CAPABILITIES_SEND_EMAILS_FROM_WORKFLOWS:`/user-guide/workflows/capabilities/send-emails-from-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_BRANCHES_IN_WORKFLOWS:`/user-guide/workflows/capabilities/use-branches-in-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_ITERATOR:`/user-guide/workflows/capabilities/use-iterator`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_ACTIONS:`/user-guide/workflows/capabilities/workflow-actions`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_BRANCHES:`/user-guide/workflows/capabilities/workflow-branches`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_CREDITS:`/user-guide/workflows/capabilities/workflow-credits`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_RUNS:`/user-guide/workflows/capabilities/workflow-runs`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_TRIGGERS:`/user-guide/workflows/capabilities/workflow-triggers`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_VERSIONS:`/user-guide/workflows/capabilities/workflow-versions`,USER_GUIDE_WORKFLOWS_HOW_TOS_ADVANCED_CONFIGURATIONS_HANDLE_ARRAYS_IN_CODE_ACTIONS:`/user-guide/workflows/how-tos/advanced-configurations/handle-arrays-in-code-actions`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_PRODUCT_DATA_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-product-data-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_TYPEFORM_SUBMISSIONS_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-typeform-submissions-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_PDF_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-pdf-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_QUOTE_OR_INVOICE_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-quote-or-invoice-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_SET_UP_A_WEBHOOK_TRIGGER:`/user-guide/workflows/how-tos/connect-to-other-tools/set-up-a-webhook-trigger`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_AUTO_REPLY_TO_INBOUND_EMAILS:`/user-guide/workflows/how-tos/crm-automations/auto-reply-to-inbound-emails`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_CLOSED_WON_AUTOMATIONS:`/user-guide/workflows/how-tos/crm-automations/closed-won-automations`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DETECT_STALE_OPPORTUNITIES:`/user-guide/workflows/how-tos/crm-automations/detect-stale-opportunities`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_NUMBER_OF_EMAILS_RECEIVED:`/user-guide/workflows/how-tos/crm-automations/display-number-of-emails-received`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_RELATED_RECORD_DATA:`/user-guide/workflows/how-tos/crm-automations/display-related-record-data`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_FORMULA_FIELDS:`/user-guide/workflows/how-tos/crm-automations/formula-fields`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_NOTIFY_TEAMMATES_OF_NOTE_TO_REVIEW:`/user-guide/workflows/how-tos/crm-automations/notify-teammates-of-note-to-review`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_SEND_EMAIL_ALERTS_WITH_TASKS_DUE:`/user-guide/workflows/how-tos/crm-automations/send-email-alerts-with-tasks-due`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_PROFESSIONAL_SERVICES:`/user-guide/workflows/how-tos/need-more-help/professional-services`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING:`/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ:`/user-guide/workflows/how-tos/need-more-help/workflows-faq`,USER_GUIDE_WORKFLOWS_OVERVIEW:`/user-guide/workflows/overview`}.GETTING_STARTED_INTRODUCTION,X.GOOGLE,X.MICROSOFT,X.IMAP_SMTP_CALDAV,X.GOOGLE,X.MICROSOFT,X.IMAP_SMTP_CALDAV,X.EMAIL_GROUP,new Set([Y.TS_VECTOR,Y.RAW_JSON,Y.FILES,Y.POSITION]),Y.ACTOR,Y.ADDRESS,Y.ARRAY,Y.BOOLEAN,Y.CURRENCY,Y.DATE,Y.DATE_TIME,Y.EMAILS,Y.FILES,Y.FULL_NAME,Y.LINKS,Y.MORPH_RELATION,Y.MULTI_SELECT,Y.NUMBER,Y.NUMERIC,Y.PHONES,Y.POSITION,Y.RATING,Y.RAW_JSON,Y.RELATION,Y.RICH_TEXT,Y.SELECT,Y.TEXT,Y.TS_VECTOR,Y.UUID,new Set([Y.TS_VECTOR,Y.ARRAY,Y.MULTI_SELECT,Y.RAW_JSON]),Z.DAY,Z.WEEK,Z.MONTH,Z.QUARTER,Z.YEAR,Y.FILES,Y.LINKS,Y.TEXT,Y.FULL_NAME,Y.UUID,fa.EMAIL,Q.TABLE,Q.KANBAN,Q.CALENDAR,Q.LIST,Q.FIELDS_WIDGET,Q.TABLE_WIDGET,Q.KANBAN_WIDGET,Q.LIST_WIDGET,Q.CALENDAR_WIDGET;var $=function(e){return e.OK=`OK`,e.SUCCESS=`SUCCESS`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.NEUTRAL=`NEUTRAL`,e.UNKNOWN=`UNKNOWN`,e}({});Object.values($).filter(e=>e!==$.OK&&e!==$.UNKNOWN),Y.TEXT,Y.ARRAY,Y.BOOLEAN,Y.DATE,Y.DATE_TIME,Y.NUMBER,Y.NUMERIC,Y.RAW_JSON,Y.RICH_TEXT,Y.SELECT,Y.MULTI_SELECT;var pa=`TWENTY_API_KEY`,ma=`TWENTY_API_URL`,ha=`TWENTY_APP_ACCESS_TOKEN`,ga=`TWENTY_APP_APPLICATION_ACCESS_TOKEN`,_a=`TWENTY_FUNCTIONS_URL`;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ha}});
|
|
20
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=S,s=!_.jitless,c=s&&ge.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?un([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function pn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!D(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>k(e,r,v())))}),t)}var mn=h(`$ZodUnion`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),y(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),y(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),y(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>fe(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>pn(t,i,e,a)):pn(s,i,e,a)}}),hn=h(`$ZodIntersection`,(e,t)=>{F.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>gn(e,t,n)):gn(e,i,a)}});function z(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(C(e)&&C(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=z(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=z(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function gn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),D(e))return e;let r=z(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var _n=h(`$ZodEnum`,(e,t)=>{F.init(e,t);let n=ce(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ve.has(typeof e)).map(e=>typeof e==`string`?w(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),vn=h(`$ZodTransform`,(e,t)=>{F.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new se(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new g;return n.value=i,n}});function yn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bn=h(`$ZodOptional`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fe(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>yn(t,e.value)):yn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),xn=h(`$ZodNullable`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fe(e.source)}|null)$`):void 0}),y(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Sn=h(`$ZodDefault`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Cn(e,t)):Cn(r,t)}});function Cn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wn=h(`$ZodPrefault`,(e,t)=>{F.init(e,t),e._zod.optin=`optional`,y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Tn=h(`$ZodNonOptional`,(e,t)=>{F.init(e,t),y(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>En(t,e)):En(i,e)}});function En(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Dn=h(`$ZodCatch`,(e,t)=>{F.init(e,t),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),y(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>k(e,n,v()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>k(e,n,v()))},input:e.value}),e.issues=[]),e)}}),On=h(`$ZodPipe`,(e,t)=>{F.init(e,t),y(e._zod,`values`,()=>t.in._zod.values),y(e._zod,`optin`,()=>t.in._zod.optin),y(e._zod,`optout`,()=>t.out._zod.optout),y(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>B(e,t.in,n)):B(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>B(e,t.out,n)):B(r,t.out,n)}});function B(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var kn=h(`$ZodReadonly`,(e,t)=>{F.init(e,t),y(e._zod,`propValues`,()=>t.innerType._zod.propValues),y(e._zod,`values`,()=>t.innerType._zod.values),y(e._zod,`optin`,()=>t.innerType._zod.optin),y(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(An):An(r)}});function An(e){return e.value=Object.freeze(e.value),e}var jn=h(`$ZodCustom`,(e,t)=>{N.init(e,t),F.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Mn(t,n,r,e));Mn(i,n,r,e)}});function Mn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(A(e))}}var Nn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Pn(){return new Nn}var V=Pn();function Fn(e,t){return new e({type:`string`,...E(t)})}function In(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function Ln(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Rn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function zn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function Bn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function Vn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function Hn(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Un(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function Wn(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Gn(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Kn(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function qn(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Jn(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Yn(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Xn(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function Zn(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function Qn(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function $n(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function er(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function tr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function nr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function rr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function ir(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function ar(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function or(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function sr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function cr(e){return new e({type:`unknown`})}function lr(e,t){return new e({type:`never`,...E(t)})}function ur(e,t){return new bt({check:`max_length`,...E(t),maximum:e})}function H(e,t){return new xt({check:`min_length`,...E(t),minimum:e})}function dr(e,t){return new St({check:`length_equals`,...E(t),length:e})}function fr(e,t){return new Ct({check:`string_format`,format:`regex`,...E(t),pattern:e})}function pr(e){return new wt({check:`string_format`,format:`lowercase`,...E(e)})}function mr(e){return new Tt({check:`string_format`,format:`uppercase`,...E(e)})}function hr(e,t){return new Et({check:`string_format`,format:`includes`,...E(t),includes:e})}function gr(e,t){return new Dt({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function _r(e,t){return new Ot({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function U(e){return new kt({check:`overwrite`,tx:e})}function vr(e){return U(t=>t.normalize(e))}function yr(){return U(e=>e.trim())}function br(){return U(e=>e.toLowerCase())}function xr(){return U(e=>e.toUpperCase())}function Sr(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Cr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function wr(e){let t=Tr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(A(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(A(r))}},e(n.value,n)));return t}function Tr(e,t){let n=new N({check:`custom`,...E(t)});return n._zod.check=e,n}var Er=h(`ZodISODateTime`,(e,t)=>{Ut.init(e,t),K.init(e,t)});function Dr(e){return ir(Er,e)}var Or=h(`ZodISODate`,(e,t)=>{Wt.init(e,t),K.init(e,t)});function kr(e){return ar(Or,e)}var Ar=h(`ZodISOTime`,(e,t)=>{Gt.init(e,t),K.init(e,t)});function jr(e){return or(Ar,e)}var Mr=h(`ZodISODuration`,(e,t)=>{Kt.init(e,t),K.init(e,t)});function Nr(e){return sr(Mr,e)}var Pr=(e,t)=>{Ae.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ne(e,t)},flatten:{value:t=>Me(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,le,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,le,2)}},isEmpty:{get(){return e.issues.length===0}}})};h(`ZodError`,Pr);var W=h(`ZodError`,Pr,{Parent:Error}),Fr=Pe(W),Ir=Fe(W),Lr=j(W),Rr=M(W),zr=Re(W),Br=ze(W),Vr=Be(W),Hr=Ve(W),Ur=He(W),Wr=Ue(W),Gr=We(W),Kr=Ge(W),G=h(`ZodType`,(e,t)=>(F.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(x(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>T(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Fr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Lr(e,t,n),e.parseAsync=async(t,n)=>Ir(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Rr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>zr(e,t,n),e.decode=(t,n)=>Br(e,t,n),e.encodeAsync=async(t,n)=>Vr(e,t,n),e.decodeAsync=async(t,n)=>Hr(e,t,n),e.safeEncode=(t,n)=>Ur(e,t,n),e.safeDecode=(t,n)=>Wr(e,t,n),e.safeEncodeAsync=async(t,n)=>Gr(e,t,n),e.safeDecodeAsync=async(t,n)=>Kr(e,t,n),e.refine=(t,n)=>e.check(qi(t,n)),e.superRefine=t=>e.check(Ji(t)),e.overwrite=t=>e.check(U(t)),e.optional=()=>ji(e),e.nullable=()=>Ni(e),e.nullish=()=>ji(Ni(e)),e.nonoptional=t=>zi(e,t),e.array=()=>yi(e),e.or=t=>Ci([e,t]),e.and=t=>Ti(e,t),e.transform=t=>Ui(e,ki(t)),e.default=t=>Fi(e,t),e.prefault=t=>Li(e,t),e.catch=t=>Vi(e,t),e.pipe=t=>Ui(e,t),e.readonly=()=>Gi(e),e.describe=t=>{let n=e.clone();return V.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return V.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return V.get(e);let n=e.clone();return V.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),qr=h(`_ZodString`,(e,t)=>{I.init(e,t),G.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(fr(...t)),e.includes=(...t)=>e.check(hr(...t)),e.startsWith=(...t)=>e.check(gr(...t)),e.endsWith=(...t)=>e.check(_r(...t)),e.min=(...t)=>e.check(H(...t)),e.max=(...t)=>e.check(ur(...t)),e.length=(...t)=>e.check(dr(...t)),e.nonempty=(...t)=>e.check(H(1,...t)),e.lowercase=t=>e.check(pr(t)),e.uppercase=t=>e.check(mr(t)),e.trim=()=>e.check(yr()),e.normalize=(...t)=>e.check(vr(...t)),e.toLowerCase=()=>e.check(br()),e.toUpperCase=()=>e.check(xr())}),Jr=h(`ZodString`,(e,t)=>{I.init(e,t),qr.init(e,t),e.email=t=>e.check(In(Xr,t)),e.url=t=>e.check(Hn(Qr,t)),e.jwt=t=>e.check(rr(pi,t)),e.emoji=t=>e.check(Un($r,t)),e.guid=t=>e.check(Ln(Zr,t)),e.uuid=t=>e.check(Rn(q,t)),e.uuidv4=t=>e.check(zn(q,t)),e.uuidv6=t=>e.check(Bn(q,t)),e.uuidv7=t=>e.check(Vn(q,t)),e.nanoid=t=>e.check(Wn(ei,t)),e.guid=t=>e.check(Ln(Zr,t)),e.cuid=t=>e.check(Gn(ti,t)),e.cuid2=t=>e.check(Kn(ni,t)),e.ulid=t=>e.check(qn(ri,t)),e.base64=t=>e.check(er(ui,t)),e.base64url=t=>e.check(tr(di,t)),e.xid=t=>e.check(Jn(ii,t)),e.ksuid=t=>e.check(Yn(ai,t)),e.ipv4=t=>e.check(Xn(oi,t)),e.ipv6=t=>e.check(Zn(si,t)),e.cidrv4=t=>e.check(Qn(ci,t)),e.cidrv6=t=>e.check($n(li,t)),e.e164=t=>e.check(nr(fi,t)),e.datetime=t=>e.check(Dr(t)),e.date=t=>e.check(kr(t)),e.time=t=>e.check(jr(t)),e.duration=t=>e.check(Nr(t))});function Yr(e){return Fn(Jr,e)}var K=h(`ZodStringFormat`,(e,t)=>{L.init(e,t),qr.init(e,t)}),Xr=h(`ZodEmail`,(e,t)=>{Pt.init(e,t),K.init(e,t)}),Zr=h(`ZodGUID`,(e,t)=>{Mt.init(e,t),K.init(e,t)}),q=h(`ZodUUID`,(e,t)=>{Nt.init(e,t),K.init(e,t)}),Qr=h(`ZodURL`,(e,t)=>{Ft.init(e,t),K.init(e,t)}),$r=h(`ZodEmoji`,(e,t)=>{It.init(e,t),K.init(e,t)}),ei=h(`ZodNanoID`,(e,t)=>{Lt.init(e,t),K.init(e,t)}),ti=h(`ZodCUID`,(e,t)=>{Rt.init(e,t),K.init(e,t)}),ni=h(`ZodCUID2`,(e,t)=>{zt.init(e,t),K.init(e,t)}),ri=h(`ZodULID`,(e,t)=>{Bt.init(e,t),K.init(e,t)}),ii=h(`ZodXID`,(e,t)=>{Vt.init(e,t),K.init(e,t)}),ai=h(`ZodKSUID`,(e,t)=>{Ht.init(e,t),K.init(e,t)}),oi=h(`ZodIPv4`,(e,t)=>{qt.init(e,t),K.init(e,t)}),si=h(`ZodIPv6`,(e,t)=>{Jt.init(e,t),K.init(e,t)}),ci=h(`ZodCIDRv4`,(e,t)=>{Yt.init(e,t),K.init(e,t)}),li=h(`ZodCIDRv6`,(e,t)=>{Xt.init(e,t),K.init(e,t)}),ui=h(`ZodBase64`,(e,t)=>{Qt.init(e,t),K.init(e,t)}),di=h(`ZodBase64URL`,(e,t)=>{en.init(e,t),K.init(e,t)}),fi=h(`ZodE164`,(e,t)=>{tn.init(e,t),K.init(e,t)}),pi=h(`ZodJWT`,(e,t)=>{rn.init(e,t),K.init(e,t)}),mi=h(`ZodUnknown`,(e,t)=>{an.init(e,t),G.init(e,t)});function hi(){return cr(mi)}var gi=h(`ZodNever`,(e,t)=>{on.init(e,t),G.init(e,t)});function _i(e){return lr(gi,e)}var vi=h(`ZodArray`,(e,t)=>{cn.init(e,t),G.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(H(t,n)),e.nonempty=t=>e.check(H(1,t)),e.max=(t,n)=>e.check(ur(t,n)),e.length=(t,n)=>e.check(dr(t,n)),e.unwrap=()=>e.element});function yi(e,t){return Sr(vi,e,t)}var bi=h(`ZodObject`,(e,t)=>{fn.init(e,t),G.init(e,t),y(e,`shape`,()=>t.shape),e.keyof=()=>Di(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hi()}),e.loose=()=>e.clone({...e._zod.def,catchall:hi()}),e.strict=()=>e.clone({...e._zod.def,catchall:_i()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Se(e,t),e.safeExtend=t=>Ce(e,t),e.merge=t=>we(e,t),e.pick=t=>be(e,t),e.omit=t=>xe(e,t),e.partial=(...t)=>Te(Ai,e,t[0]),e.required=(...t)=>Ee(Ri,e,t[0])});function xi(e,t){return new bi({type:`object`,shape:e??{},...E(t)})}var Si=h(`ZodUnion`,(e,t)=>{mn.init(e,t),G.init(e,t),e.options=t.options});function Ci(e,t){return new Si({type:`union`,options:e,...E(t)})}var wi=h(`ZodIntersection`,(e,t)=>{hn.init(e,t),G.init(e,t)});function Ti(e,t){return new wi({type:`intersection`,left:e,right:t})}var Ei=h(`ZodEnum`,(e,t)=>{_n.init(e,t),G.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ei({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ei({...t,checks:[],...E(r),entries:i})}});function Di(e,t){return new Ei({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}var Oi=h(`ZodTransform`,(e,t)=>{vn.init(e,t),G.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new se(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(A(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(A(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ki(e){return new Oi({type:`transform`,transform:e})}var Ai=h(`ZodOptional`,(e,t)=>{bn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ji(e){return new Ai({type:`optional`,innerType:e})}var Mi=h(`ZodNullable`,(e,t)=>{xn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ni(e){return new Mi({type:`nullable`,innerType:e})}var Pi=h(`ZodDefault`,(e,t)=>{Sn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Fi(e,t){return new Pi({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():_e(t)}})}var Ii=h(`ZodPrefault`,(e,t)=>{wn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Li(e,t){return new Ii({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():_e(t)}})}var Ri=h(`ZodNonOptional`,(e,t)=>{Tn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zi(e,t){return new Ri({type:`nonoptional`,innerType:e,...E(t)})}var Bi=h(`ZodCatch`,(e,t)=>{Dn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vi(e,t){return new Bi({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Hi=h(`ZodPipe`,(e,t)=>{On.init(e,t),G.init(e,t),e.in=t.in,e.out=t.out});function Ui(e,t){return new Hi({type:`pipe`,in:e,out:t})}var Wi=h(`ZodReadonly`,(e,t)=>{kn.init(e,t),G.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gi(e){return new Wi({type:`readonly`,innerType:e})}var Ki=h(`ZodCustom`,(e,t)=>{jn.init(e,t),G.init(e,t)});function qi(e,t={}){return Cr(Ki,e,t)}function Ji(e){return wr(e)}var Yi=function(){function e(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e?.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return e}(),Xi=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},a={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new Yi(a))})}),t},e}(),Zi=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},Qi=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},$i=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;new Xi().transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,r,i){var a,o,s=function(e){return e.always===void 0?e.groups&&e.groups.length?!1:n:e.always},c=function(e){return!!(r&&(!i||!i.length)&&e.groups&&e.groups.length)},l=(this.validationMetadatas.get(e)||[]).filter(function(n){return n.target!==e&&n.target!==t?!1:s(n)?!0:c(n)?!1:i&&i.length>0?n.groups&&!!n.groups.find(function(e){return i.indexOf(e)!==-1}):!0}),u=[];try{for(var d=Zi(this.validationMetadatas.entries()),f=d.next();!f.done;f=d.next()){var p=Qi(f.value,2),ee=p[0],te=p[1];e.prototype instanceof ee&&u.push.apply(u,$i([],Qi(te),!1))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}var m=u.filter(function(t){return typeof t.target==`string`||t.target===e||t.target instanceof Function&&!(e.prototype instanceof t.target)?!1:s(t)?!0:c(t)?!1:i&&i.length>0?t.groups&&!!t.groups.find(function(e){return i.indexOf(e)!==-1}):!0}).filter(function(e){return!l.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return l.concat(m)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e})(),function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();var ea=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),ta,J;function na(e){if(ta)try{var t=ta.get(e);if(t||!J||!J.fallback)return t}catch(e){if(!J||!J.fallbackOnErrors)throw e}return ea.get(e)}(function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return na(this.target)},enumerable:!1,configurable:!0}),e})();var Y=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),ra=function(e){return e.EMAIL=`EMAIL`,e.CALENDAR=`CALENDAR`,e.WORKFLOW=`WORKFLOW`,e.AGENT=`AGENT`,e.API=`API`,e.IMPORT=`IMPORT`,e.MANUAL=`MANUAL`,e.SYSTEM=`SYSTEM`,e.WEBHOOK=`WEBHOOK`,e.APPLICATION=`APPLICATION`,e}({}),ia={type:Y.ACTOR,properties:[{name:`source`,type:Y.SELECT,hidden:!1,isRequired:!0,options:Object.keys(ra).map((e,t)=>({id:ne(),label:`${ra[e].toLowerCase()}`,value:e,position:t}))},{name:`workspaceMemberId`,type:Y.UUID,hidden:`input`,isRequired:!1},{name:`name`,type:Y.TEXT,hidden:`input`,isRequired:!0},{name:`context`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},aa={type:Y.ADDRESS,properties:[{name:`addressStreet1`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressStreet2`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressCity`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressPostcode`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressState`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressCountry`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`addressLat`,type:Y.NUMERIC,hidden:!1,isRequired:!1},{name:`addressLng`,type:Y.NUMERIC,hidden:!1,isRequired:!1}]},oa={type:Y.CURRENCY,properties:[{name:`amountMicros`,type:Y.NUMERIC,hidden:!1,isRequired:!1},{name:`currencyCode`,type:Y.TEXT,hidden:!1,isRequired:!1}]},sa={type:Y.EMAILS,properties:[{name:`primaryEmail`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalEmails`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},ca={type:Y.FULL_NAME,properties:[{name:`firstName`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:`lastName`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},la={type:Y.LINKS,properties:[{name:`primaryLinkLabel`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`primaryLinkUrl`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`secondaryLinks`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},ua={type:Y.PHONES,properties:[{name:`primaryPhoneNumber`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCountryCode`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCallingCode`,type:Y.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalPhones`,type:Y.RAW_JSON,hidden:!1,isRequired:!1}]},da={type:Y.RICH_TEXT,properties:[{name:`blocknote`,type:Y.TEXT,hidden:!1,isRequired:!1},{name:`markdown`,type:Y.TEXT,hidden:!1,isRequired:!1}]};xi({blocknote:Yr().nullable().optional(),markdown:Yr().nullable()}),new Map([[Y.LINKS,la],[Y.CURRENCY,oa],[Y.FULL_NAME,ca],[Y.ADDRESS,aa],[Y.ACTOR,ia],[Y.EMAILS,sa],[Y.PHONES,ua],[Y.RICH_TEXT,da]]);var X=function(e){return e.GOOGLE=`google`,e.MICROSOFT=`microsoft`,e.IMAP_SMTP_CALDAV=`imap_smtp_caldav`,e.OIDC=`oidc`,e.SAML=`saml`,e.EMAIL_GROUP=`email_group`,e.APP=`app`,e}({});Y.RELATION,Y.MORPH_RELATION,Y.FILES,Y.TS_VECTOR;var fa=function(e){return e.EMAIL=`EMAIL`,e.SMS=`SMS`,e.EMAIL_GROUP=`EMAIL_GROUP`,e.APP=`APP`,e}({}),Z=function(e){return e.DAY=`DAY`,e.MONTH=`MONTH`,e.QUARTER=`QUARTER`,e.YEAR=`YEAR`,e.WEEK=`WEEK`,e.DAY_OF_THE_WEEK=`DAY_OF_THE_WEEK`,e.MONTH_OF_THE_YEAR=`MONTH_OF_THE_YEAR`,e.QUARTER_OF_THE_YEAR=`QUARTER_OF_THE_YEAR`,e.NONE=`NONE`,e}({}),Q=function(e){return e.TABLE=`TABLE`,e.KANBAN=`KANBAN`,e.CALENDAR=`CALENDAR`,e.LIST=`LIST`,e.FIELDS_WIDGET=`FIELDS_WIDGET`,e.TABLE_WIDGET=`TABLE_WIDGET`,e.KANBAN_WIDGET=`KANBAN_WIDGET`,e.LIST_WIDGET=`LIST_WIDGET`,e.CALENDAR_WIDGET=`CALENDAR_WIDGET`,e}({});Y.CURRENCY,Y.EMAILS,Y.LINKS,Y.PHONES,Y.FULL_NAME,Y.ADDRESS,Y.ACTOR,Y.RICH_TEXT,Y.CURRENCY,Y.EMAILS,Y.LINKS,Y.PHONES,Y.FULL_NAME,Y.ADDRESS,Y.ACTOR,Y.RICH_TEXT,{DEVELOPERS_CONTRIBUTE_CAPABILITIES_LOCAL_SETUP:`/developers/contribute/capabilities/local-setup`,DEVELOPERS_CONTRIBUTE_COMMANDS:`/developers/contribute/commands`,DEVELOPERS_CONTRIBUTE_STYLE_GUIDE:`/developers/contribute/style-guide`,DEVELOPERS_EXTEND_API:`/developers/extend/api`,DEVELOPERS_EXTEND_APPS_CONFIG_APPLICATION:`/developers/extend/apps/config/application`,DEVELOPERS_EXTEND_APPS_CONFIG_INSTALL_HOOKS:`/developers/extend/apps/config/install-hooks`,DEVELOPERS_EXTEND_APPS_CONFIG_OVERVIEW:`/developers/extend/apps/config/overview`,DEVELOPERS_EXTEND_APPS_CONFIG_PUBLIC_ASSETS:`/developers/extend/apps/config/public-assets`,DEVELOPERS_EXTEND_APPS_CONFIG_ROLES:`/developers/extend/apps/config/roles`,DEVELOPERS_EXTEND_APPS_DATA_EXTENDING_OBJECTS:`/developers/extend/apps/data/extending-objects`,DEVELOPERS_EXTEND_APPS_DATA_OBJECTS:`/developers/extend/apps/data/objects`,DEVELOPERS_EXTEND_APPS_DATA_OVERVIEW:`/developers/extend/apps/data/overview`,DEVELOPERS_EXTEND_APPS_DATA_RELATIONS:`/developers/extend/apps/data/relations`,DEVELOPERS_EXTEND_APPS_DATA_SYSTEM_FIELDS:`/developers/extend/apps/data/system-fields`,DEVELOPERS_EXTEND_APPS_DATA_TIMELINE_ACTIVITY_TYPES:`/developers/extend/apps/data/timeline-activity-types`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_CONCEPTS:`/developers/extend/apps/getting-started/concepts`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_LOCAL_SERVER:`/developers/extend/apps/getting-started/local-server`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_PROJECT_STRUCTURE:`/developers/extend/apps/getting-started/project-structure`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_QUICK_START:`/developers/extend/apps/getting-started/quick-start`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_SCAFFOLDING:`/developers/extend/apps/getting-started/scaffolding`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_TROUBLESHOOTING:`/developers/extend/apps/getting-started/troubleshooting`,DEVELOPERS_EXTEND_APPS_LAYOUT_COMMAND_MENU_ITEMS:`/developers/extend/apps/layout/command-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_FRONT_COMPONENTS:`/developers/extend/apps/layout/front-components`,DEVELOPERS_EXTEND_APPS_LAYOUT_NAVIGATION_MENU_ITEMS:`/developers/extend/apps/layout/navigation-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_OVERVIEW:`/developers/extend/apps/layout/overview`,DEVELOPERS_EXTEND_APPS_LAYOUT_PAGE_LAYOUTS:`/developers/extend/apps/layout/page-layouts`,DEVELOPERS_EXTEND_APPS_LAYOUT_VIEWS:`/developers/extend/apps/layout/views`,DEVELOPERS_EXTEND_APPS_LOGIC_BACKGROUND_JOBS:`/developers/extend/apps/logic/background-jobs`,DEVELOPERS_EXTEND_APPS_LOGIC_CONNECTIONS:`/developers/extend/apps/logic/connections`,DEVELOPERS_EXTEND_APPS_LOGIC_CREDITS:`/developers/extend/apps/logic/credits`,DEVELOPERS_EXTEND_APPS_LOGIC_KEY_VALUE_STORE:`/developers/extend/apps/logic/key-value-store`,DEVELOPERS_EXTEND_APPS_LOGIC_LOGIC_FUNCTIONS:`/developers/extend/apps/logic/logic-functions`,DEVELOPERS_EXTEND_APPS_LOGIC_MESSAGING_CHANNELS:`/developers/extend/apps/logic/messaging-channels`,DEVELOPERS_EXTEND_APPS_LOGIC_OVERVIEW:`/developers/extend/apps/logic/overview`,DEVELOPERS_EXTEND_APPS_LOGIC_SKILLS_AND_AGENTS:`/developers/extend/apps/logic/skills-and-agents`,DEVELOPERS_EXTEND_APPS_OPERATIONS_CLI:`/developers/extend/apps/operations/cli`,DEVELOPERS_EXTEND_APPS_OPERATIONS_OVERVIEW:`/developers/extend/apps/operations/overview`,DEVELOPERS_EXTEND_APPS_OPERATIONS_PUBLISHING:`/developers/extend/apps/operations/publishing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_SYNC_AND_RECOVERY:`/developers/extend/apps/operations/sync-and-recovery`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TESTING:`/developers/extend/apps/operations/testing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TRANSLATIONS:`/developers/extend/apps/operations/translations`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_AI_AGENT:`/developers/extend/apps/tutorials/document-generator/ai-agent`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_BUILDING_THE_UI:`/developers/extend/apps/tutorials/document-generator/building-the-ui`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_DATA_MODEL:`/developers/extend/apps/tutorials/document-generator/data-model`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_GENERATING_DOCUMENTS:`/developers/extend/apps/tutorials/document-generator/generating-documents`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_HTTP_ROUTES:`/developers/extend/apps/tutorials/document-generator/http-routes`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_OVERVIEW:`/developers/extend/apps/tutorials/document-generator/overview`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_PUBLISHING:`/developers/extend/apps/tutorials/document-generator/publishing`,DEVELOPERS_EXTEND_OAUTH:`/developers/extend/oauth`,DEVELOPERS_EXTEND_WEBHOOKS:`/developers/extend/webhooks`,DEVELOPERS_INTRODUCTION:`/developers/introduction`,DEVELOPERS_SELF_HOST_CAPABILITIES_DOCKER_COMPOSE:`/developers/self-host/capabilities/docker-compose`,DEVELOPERS_SELF_HOST_CAPABILITIES_SETUP:`/developers/self-host/capabilities/setup`,DEVELOPERS_SELF_HOST_CAPABILITIES_TROUBLESHOOTING:`/developers/self-host/capabilities/troubleshooting`,DEVELOPERS_SELF_HOST_CAPABILITIES_UPGRADE_GUIDE:`/developers/self-host/capabilities/upgrade-guide`,GETTING_STARTED_CORE_CONCEPTS_AI:`/getting-started/core-concepts/ai`,GETTING_STARTED_CORE_CONCEPTS_APPS:`/getting-started/core-concepts/apps`,GETTING_STARTED_CORE_CONCEPTS_CALENDAR_AND_EMAIL:`/getting-started/core-concepts/calendar-and-email`,GETTING_STARTED_CORE_CONCEPTS_DASHBOARDS:`/getting-started/core-concepts/dashboards`,GETTING_STARTED_CORE_CONCEPTS_DATA_MODEL:`/getting-started/core-concepts/data-model`,GETTING_STARTED_CORE_CONCEPTS_GLOSSARY:`/getting-started/core-concepts/glossary`,GETTING_STARTED_CORE_CONCEPTS_LAYOUT:`/getting-started/core-concepts/layout`,GETTING_STARTED_CORE_CONCEPTS_WORKFLOWS:`/getting-started/core-concepts/workflows`,GETTING_STARTED_INTRODUCTION:`/getting-started/introduction`,GETTING_STARTED_KEY_FEATURES:`/getting-started/key-features`,GETTING_STARTED_QUICKSTART:`/getting-started/quickstart`,UI_ACCESSIBILITY:`/ui/accessibility`,UI_COMPONENTS_CODE_EDITOR:`/ui/components/code-editor`,UI_COMPONENTS_DROPDOWN:`/ui/components/dropdown`,UI_COMPONENTS_INPUT_ICON_BUTTON:`/ui/components/input/icon-button`,UI_COMPONENTS_INPUT_LIGHT_BUTTON:`/ui/components/input/light-button`,UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON:`/ui/components/input/light-icon-button`,UI_COMPONENTS_INPUT_MAIN_BUTTON:`/ui/components/input/main-button`,UI_COMPONENTS_OVERVIEW:`/ui/components/overview`,UI_COMPONENTS_SECTION:`/ui/components/section`,UI_COMPONENTS_SETTINGS_ROW:`/ui/components/settings-row`,UI_COMPONENTS_TAB_BUTTON:`/ui/components/tab-button`,UI_COMPONENTS_TOAST:`/ui/components/toast`,UI_DARK_MODE:`/ui/dark-mode`,UI_GETTING_STARTED:`/ui/getting-started`,UI_PRIMITIVES_ACCESSIBILITY_VISIBILITY_HIDDEN:`/ui/primitives/accessibility/visibility-hidden`,UI_PRIMITIVES_DATA_DISPLAY_AVATAR:`/ui/primitives/data-display/avatar`,UI_PRIMITIVES_DATA_DISPLAY_CHIP:`/ui/primitives/data-display/chip`,UI_PRIMITIVES_DATA_DISPLAY_COLOR_SAMPLE:`/ui/primitives/data-display/color-sample`,UI_PRIMITIVES_DATA_DISPLAY_PILL:`/ui/primitives/data-display/pill`,UI_PRIMITIVES_DATA_DISPLAY_STATUS:`/ui/primitives/data-display/status`,UI_PRIMITIVES_DATA_DISPLAY_TAG:`/ui/primitives/data-display/tag`,UI_PRIMITIVES_FEEDBACK_BANNER:`/ui/primitives/feedback/banner`,UI_PRIMITIVES_FEEDBACK_CIRCULAR_PROGRESS_BAR:`/ui/primitives/feedback/circular-progress-bar`,UI_PRIMITIVES_FEEDBACK_LOADER:`/ui/primitives/feedback/loader`,UI_PRIMITIVES_FEEDBACK_PROGRESS_BAR:`/ui/primitives/feedback/progress-bar`,UI_PRIMITIVES_INPUT_BUTTON:`/ui/primitives/input/button`,UI_PRIMITIVES_INPUT_BUTTON_GROUP:`/ui/primitives/input/button-group`,UI_PRIMITIVES_INPUT_CHECKBOX:`/ui/primitives/input/checkbox`,UI_PRIMITIVES_INPUT_FIELD:`/ui/primitives/input/field`,UI_PRIMITIVES_INPUT_INPUT:`/ui/primitives/input/input`,UI_PRIMITIVES_INPUT_INPUT_GROUP:`/ui/primitives/input/input-group`,UI_PRIMITIVES_INPUT_RADIO:`/ui/primitives/input/radio`,UI_PRIMITIVES_INPUT_RADIO_GROUP:`/ui/primitives/input/radio-group`,UI_PRIMITIVES_INPUT_SEGMENTED_CONTROL:`/ui/primitives/input/segmented-control`,UI_PRIMITIVES_INPUT_SELECT:`/ui/primitives/input/select`,UI_PRIMITIVES_INPUT_SLIDER:`/ui/primitives/input/slider`,UI_PRIMITIVES_INPUT_SWITCH:`/ui/primitives/input/switch`,UI_PRIMITIVES_INPUT_TEXTAREA:`/ui/primitives/input/textarea`,UI_PRIMITIVES_LAYOUT_ANIMATED_EXPANDABLE_CONTAINER:`/ui/primitives/layout/animated-expandable-container`,UI_PRIMITIVES_LAYOUT_HORIZONTAL_SEPARATOR:`/ui/primitives/layout/horizontal-separator`,UI_PRIMITIVES_LAYOUT_RESIZE_HANDLE:`/ui/primitives/layout/resize-handle`,UI_PRIMITIVES_LAYOUT_TEXT_DIRECTION_PROVIDER:`/ui/primitives/layout/text-direction-provider`,UI_PRIMITIVES_NAVIGATION_CLICK_TO_ACTION_LINK:`/ui/primitives/navigation/click-to-action-link`,UI_PRIMITIVES_NAVIGATION_LIST_ITEM:`/ui/primitives/navigation/list-item`,UI_PRIMITIVES_NAVIGATION_TABS:`/ui/primitives/navigation/tabs`,UI_PRIMITIVES_OVERVIEW:`/ui/primitives/overview`,UI_PRIMITIVES_SURFACES_ALERT_DIALOG:`/ui/primitives/surfaces/alert-dialog`,UI_PRIMITIVES_SURFACES_CARD:`/ui/primitives/surfaces/card`,UI_PRIMITIVES_SURFACES_DIALOG:`/ui/primitives/surfaces/dialog`,UI_PRIMITIVES_SURFACES_MENU:`/ui/primitives/surfaces/menu`,UI_PRIMITIVES_SURFACES_POPOVER:`/ui/primitives/surfaces/popover`,UI_PRIMITIVES_SURFACES_TOOLTIP:`/ui/primitives/surfaces/tooltip`,UI_PRIMITIVES_TYPOGRAPHY_HEADING:`/ui/primitives/typography/heading`,UI_PRIMITIVES_TYPOGRAPHY_OVERFLOWING_TEXT_WITH_TOOLTIP:`/ui/primitives/typography/overflowing-text-with-tooltip`,UI_PRIMITIVES_TYPOGRAPHY_TEXT:`/ui/primitives/typography/text`,UI_SSR:`/ui/ssr`,UI_THEMING:`/ui/theming`,UI_TOKENS:`/ui/tokens`,USER_GUIDE_AI_CAPABILITIES_AI_AGENTS:`/user-guide/ai/capabilities/ai-agents`,USER_GUIDE_AI_CAPABILITIES_AI_CHATBOT:`/user-guide/ai/capabilities/ai-chatbot`,USER_GUIDE_AI_CAPABILITIES_PERMISSIONS_ACCESS_CONTROL:`/user-guide/ai/capabilities/permissions-access-control`,USER_GUIDE_AI_HOW_TOS_AI_FAQ:`/user-guide/ai/how-tos/ai-faq`,USER_GUIDE_AI_OVERVIEW:`/user-guide/ai/overview`,USER_GUIDE_BILLING_CAPABILITIES_CREDITS:`/user-guide/billing/capabilities/credits`,USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS:`/user-guide/billing/capabilities/pricing-plans`,USER_GUIDE_BILLING_CAPABILITIES_USAGE_LIMITS:`/user-guide/billing/capabilities/usage-limits`,USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ:`/user-guide/billing/how-tos/billing-faq`,USER_GUIDE_BILLING_OVERVIEW:`/user-guide/billing/overview`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_CALENDAR:`/user-guide/calendar-emails/capabilities/calendar`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_MAILBOX:`/user-guide/calendar-emails/capabilities/mailbox`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_BOOK_MEETINGS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-book-meetings-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_SEND_EMAILS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-send-emails-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_TRACK_EMAIL_ACTIVITY_ON_ALL_OBJECTS:`/user-guide/calendar-emails/how-tos/can-i-track-email-activity-on-all-objects`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CONNECT_SEVERAL_MAILBOXES_PER_USER:`/user-guide/calendar-emails/how-tos/connect-several-mailboxes-per-user`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_ANY_MAIL_PROVIDER:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-any-mail-provider`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_GOOGLE_WORKSPACE:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-google-workspace`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_MICROSOFT_365:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-microsoft-365`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_I_DONT_SEE_EMAILS_ON_RECORDS:`/user-guide/calendar-emails/how-tos/i-dont-see-emails-on-records`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_LIMIT_EMAILS_IMPORTED:`/user-guide/calendar-emails/how-tos/limit-emails-imported`,USER_GUIDE_CALENDAR_EMAILS_OVERVIEW:`/user-guide/calendar-emails/overview`,USER_GUIDE_DASHBOARDS_CAPABILITIES_CHART_SETTINGS:`/user-guide/dashboards/capabilities/chart-settings`,USER_GUIDE_DASHBOARDS_CAPABILITIES_DASHBOARDS:`/user-guide/dashboards/capabilities/dashboards`,USER_GUIDE_DASHBOARDS_CAPABILITIES_WIDGETS:`/user-guide/dashboards/capabilities/widgets`,USER_GUIDE_DASHBOARDS_HOW_TOS_DASHBOARDS_FAQ:`/user-guide/dashboards/how-tos/dashboards-faq`,USER_GUIDE_DASHBOARDS_HOW_TOS_WIDGET_FAQ:`/user-guide/dashboards/how-tos/widget-faq`,USER_GUIDE_DASHBOARDS_OVERVIEW:`/user-guide/dashboards/overview`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_ERROR_HANDLING:`/user-guide/data-migration/capabilities/error-handling`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FIELD_MAPPING:`/user-guide/data-migration/capabilities/field-mapping`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FILE_FORMATS:`/user-guide/data-migration/capabilities/file-formats`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_IMPORT_RELATIONS:`/user-guide/data-migration/capabilities/import-relations`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_UNIQUENESS_CONSTRAINTS:`/user-guide/data-migration/capabilities/uniqueness-constraints`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_EXPORT_YOUR_DATA:`/user-guide/data-migration/how-tos/export-your-data`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_FIX_IMPORT_ERRORS:`/user-guide/data-migration/how-tos/fix-import-errors`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_COMPANIES_VIA_CSV:`/user-guide/data-migration/how-tos/import-companies-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_CONTACTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-contacts-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_DATA_VIA_API:`/user-guide/data-migration/how-tos/import-data-via-api`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_RELATIONS_BETWEEN_OBJECTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-relations-between-objects-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_OTHER_CRMS:`/user-guide/data-migration/how-tos/migrating-from-other-crms`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_SELF_HOSTED_TO_CLOUD:`/user-guide/data-migration/how-tos/migrating-from-self-hosted-to-cloud`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_PREPARE_YOUR_CSV_FILES:`/user-guide/data-migration/how-tos/prepare-your-csv-files`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_UPDATE_EXISTING_RECORDS_VIA_IMPORT:`/user-guide/data-migration/how-tos/update-existing-records-via-import`,USER_GUIDE_DATA_MIGRATION_OVERVIEW:`/user-guide/data-migration/overview`,USER_GUIDE_DATA_MODEL_CAPABILITIES_FIELDS:`/user-guide/data-model/capabilities/fields`,USER_GUIDE_DATA_MODEL_CAPABILITIES_OBJECTS:`/user-guide/data-model/capabilities/objects`,USER_GUIDE_DATA_MODEL_CAPABILITIES_RELATION_FIELDS:`/user-guide/data-model/capabilities/relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_FIELDS:`/user-guide/data-model/how-tos/create-custom-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_OBJECTS:`/user-guide/data-model/how-tos/create-custom-objects`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_MANY_TO_MANY_RELATIONS:`/user-guide/data-model/how-tos/create-many-to-many-relations`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_RELATION_FIELDS:`/user-guide/data-model/how-tos/create-relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CUSTOMIZE_YOUR_DATA_MODEL:`/user-guide/data-model/how-tos/customize-your-data-model`,USER_GUIDE_DATA_MODEL_HOW_TOS_DATA_MODEL_FAQ:`/user-guide/data-model/how-tos/data-model-faq`,USER_GUIDE_DATA_MODEL_OVERVIEW:`/user-guide/data-model/overview`,USER_GUIDE_INTRODUCTION:`/user-guide/introduction`,USER_GUIDE_LAYOUT_CAPABILITIES_NAVIGATION:`/user-guide/layout/capabilities/navigation`,USER_GUIDE_LAYOUT_CAPABILITIES_RECORD_PAGES:`/user-guide/layout/capabilities/record-pages`,USER_GUIDE_LAYOUT_OVERVIEW:`/user-guide/layout/overview`,USER_GUIDE_LEGAL_HOW_TOS_LEGAL_FAQ:`/user-guide/legal/how-tos/legal-faq`,USER_GUIDE_LEGAL_OVERVIEW:`/user-guide/legal/overview`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_PERMISSIONS:`/user-guide/permissions-access/capabilities/permissions`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_SSO_CONFIGURATION:`/user-guide/permissions-access/capabilities/sso-configuration`,USER_GUIDE_PERMISSIONS_ACCESS_HOW_TOS_PERMISSIONS_FAQ:`/user-guide/permissions-access/how-tos/permissions-faq`,USER_GUIDE_PERMISSIONS_ACCESS_OVERVIEW:`/user-guide/permissions-access/overview`,USER_GUIDE_SETTINGS_CAPABILITIES_COMMUNITY_SETTINGS:`/user-guide/settings/capabilities/community-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_DOMAINS_SETTINGS:`/user-guide/settings/capabilities/domains-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_EXPERIENCE_SETTINGS:`/user-guide/settings/capabilities/experience-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_MEMBER_MANAGEMENT:`/user-guide/settings/capabilities/member-management`,USER_GUIDE_SETTINGS_CAPABILITIES_PROFILE_SETTINGS:`/user-guide/settings/capabilities/profile-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_WORKSPACE_SETTINGS:`/user-guide/settings/capabilities/workspace-settings`,USER_GUIDE_SETTINGS_HOW_TOS_SETTINGS_FAQ:`/user-guide/settings/how-tos/settings-faq`,USER_GUIDE_SETTINGS_OVERVIEW:`/user-guide/settings/overview`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_CALENDAR_VIEW:`/user-guide/views-pipelines/capabilities/calendar-view`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FIELDS_AND_COLUMNS:`/user-guide/views-pipelines/capabilities/fields-and-columns`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FILTERS_AND_SORTING:`/user-guide/views-pipelines/capabilities/filters-and-sorting`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_KANBAN_VIEWS:`/user-guide/views-pipelines/capabilities/kanban-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_TABLE_VIEWS:`/user-guide/views-pipelines/capabilities/table-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_VIEW_SETTINGS:`/user-guide/views-pipelines/capabilities/view-settings`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_CALENDAR_VIEW_FOR_TASKS_DUE:`/user-guide/views-pipelines/how-tos/create-a-calendar-view-for-tasks-due`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_KANBAN_VIEW_FOR_PROJECTS:`/user-guide/views-pipelines/how-tos/create-a-kanban-view-for-projects`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_TABLE_VIEW_WITH_GROUPING:`/user-guide/views-pipelines/how-tos/create-a-table-view-with-grouping`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_RESTRICT_ACCESS_TO_YOUR_VIEW:`/user-guide/views-pipelines/how-tos/restrict-access-to-your-view`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SET_UP_A_SALES_PIPELINE:`/user-guide/views-pipelines/how-tos/set-up-a-sales-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SHOW_EXPECTED_AMOUNT_IN_PIPELINE:`/user-guide/views-pipelines/how-tos/show-expected-amount-in-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_TRACK_TIME_IN_STAGE:`/user-guide/views-pipelines/how-tos/track-time-in-stage`,USER_GUIDE_WORKFLOWS_CAPABILITIES_SEND_EMAILS_FROM_WORKFLOWS:`/user-guide/workflows/capabilities/send-emails-from-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_BRANCHES_IN_WORKFLOWS:`/user-guide/workflows/capabilities/use-branches-in-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_ITERATOR:`/user-guide/workflows/capabilities/use-iterator`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_ACTIONS:`/user-guide/workflows/capabilities/workflow-actions`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_BRANCHES:`/user-guide/workflows/capabilities/workflow-branches`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_CREDITS:`/user-guide/workflows/capabilities/workflow-credits`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_RUNS:`/user-guide/workflows/capabilities/workflow-runs`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_TRIGGERS:`/user-guide/workflows/capabilities/workflow-triggers`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_VERSIONS:`/user-guide/workflows/capabilities/workflow-versions`,USER_GUIDE_WORKFLOWS_HOW_TOS_ADVANCED_CONFIGURATIONS_HANDLE_ARRAYS_IN_CODE_ACTIONS:`/user-guide/workflows/how-tos/advanced-configurations/handle-arrays-in-code-actions`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_PRODUCT_DATA_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-product-data-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_TYPEFORM_SUBMISSIONS_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-typeform-submissions-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_PDF_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-pdf-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_QUOTE_OR_INVOICE_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-quote-or-invoice-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_SET_UP_A_WEBHOOK_TRIGGER:`/user-guide/workflows/how-tos/connect-to-other-tools/set-up-a-webhook-trigger`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_AUTO_REPLY_TO_INBOUND_EMAILS:`/user-guide/workflows/how-tos/crm-automations/auto-reply-to-inbound-emails`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_CLOSED_WON_AUTOMATIONS:`/user-guide/workflows/how-tos/crm-automations/closed-won-automations`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DETECT_STALE_OPPORTUNITIES:`/user-guide/workflows/how-tos/crm-automations/detect-stale-opportunities`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_NUMBER_OF_EMAILS_RECEIVED:`/user-guide/workflows/how-tos/crm-automations/display-number-of-emails-received`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_RELATED_RECORD_DATA:`/user-guide/workflows/how-tos/crm-automations/display-related-record-data`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_FORMULA_FIELDS:`/user-guide/workflows/how-tos/crm-automations/formula-fields`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_NOTIFY_TEAMMATES_OF_NOTE_TO_REVIEW:`/user-guide/workflows/how-tos/crm-automations/notify-teammates-of-note-to-review`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_SEND_EMAIL_ALERTS_WITH_TASKS_DUE:`/user-guide/workflows/how-tos/crm-automations/send-email-alerts-with-tasks-due`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_PROFESSIONAL_SERVICES:`/user-guide/workflows/how-tos/need-more-help/professional-services`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING:`/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ:`/user-guide/workflows/how-tos/need-more-help/workflows-faq`,USER_GUIDE_WORKFLOWS_OVERVIEW:`/user-guide/workflows/overview`}.GETTING_STARTED_INTRODUCTION,X.GOOGLE,X.MICROSOFT,X.IMAP_SMTP_CALDAV,X.GOOGLE,X.MICROSOFT,X.IMAP_SMTP_CALDAV,X.EMAIL_GROUP,new Set([Y.TS_VECTOR,Y.RAW_JSON,Y.FILES,Y.POSITION]),Y.ACTOR,Y.ADDRESS,Y.ARRAY,Y.BOOLEAN,Y.CURRENCY,Y.DATE,Y.DATE_TIME,Y.EMAILS,Y.FILES,Y.FULL_NAME,Y.LINKS,Y.MORPH_RELATION,Y.MULTI_SELECT,Y.NUMBER,Y.NUMERIC,Y.PHONES,Y.POSITION,Y.RATING,Y.RAW_JSON,Y.RELATION,Y.RICH_TEXT,Y.SELECT,Y.TEXT,Y.TS_VECTOR,Y.UUID,new Set([Y.TS_VECTOR,Y.ARRAY,Y.MULTI_SELECT,Y.RAW_JSON]),Z.DAY,Z.WEEK,Z.MONTH,Z.QUARTER,Z.YEAR,Y.FILES,Y.LINKS,Y.TEXT,Y.FULL_NAME,Y.UUID,fa.EMAIL,Q.TABLE,Q.KANBAN,Q.CALENDAR,Q.LIST,Q.FIELDS_WIDGET,Q.TABLE_WIDGET,Q.KANBAN_WIDGET,Q.LIST_WIDGET,Q.CALENDAR_WIDGET;var $=function(e){return e.OK=`OK`,e.SUCCESS=`SUCCESS`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.NEUTRAL=`NEUTRAL`,e.UNKNOWN=`UNKNOWN`,e}({});Object.values($).filter(e=>e!==$.OK&&e!==$.UNKNOWN),Y.TEXT,Y.ARRAY,Y.BOOLEAN,Y.DATE,Y.DATE_TIME,Y.NUMBER,Y.NUMERIC,Y.RAW_JSON,Y.RICH_TEXT,Y.SELECT,Y.MULTI_SELECT;var pa=`TWENTY_API_KEY`,ma=`TWENTY_API_URL`,ha=`TWENTY_APP_ACCESS_TOKEN`,ga=`TWENTY_APP_APPLICATION_ACCESS_TOKEN`,_a=`TWENTY_FUNCTIONS_URL`;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ha}});
|
package/dist/generate.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-mLOUI7ql.js"),t=require("./application-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-mLOUI7ql.js"),t=require("./application-KImgjhhl.js");let n=require("node:fs/promises"),r=require("node:path"),i=require("esbuild"),a=require("graphql"),o=require("lodash/camelCase.js");o=e.r(o);let s=require("node:fs"),c=require("node:os"),l=require("prettier/standalone");l=e.r(l);let u=require("prettier/plugins/graphql");u=e.r(u);let d=require("prettier/plugins/typescript");d=e.r(d);let f=require("prettier/plugins/estree");f=e.r(f);let p=require("lodash/uniq.js");p=e.r(p);let ee=require("node:url");var te=`// __STRIPPED_DURING_INJECTION_START__`,ne=`// __STRIPPED_DURING_INJECTION_END__`,m=`// __UPLOAD_FILE_START__`,h=`// __UPLOAD_FILE_END__`,g=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),_=(e,t)=>{let n=e;return n=n.replace(RegExp(`${g(te)}[\\s\\S]*?${g(ne)}\\n?`),``),n=n.replace(`'__TWENTY_DEFAULT_URL__'`,t.defaultUrl),n=n.replace(/TwentyGeneratedClient/g,t.apiClientName),t.includeUploadFile?(n=n.replace(RegExp(`\\s*${g(m)}\\n`),`
|
|
2
2
|
`),n=n.replace(RegExp(`\\s*${g(h)}\\n`),`
|
|
3
3
|
`)):n=n.replace(RegExp(`\\s*${g(m)}[\\s\\S]*?${g(h)}\\n?`),`
|
|
4
4
|
`),`\n// ${t.apiClientName} (auto-injected by twenty-client-sdk)\n${n}`},v=e=>(0,n.mkdir)(e,{recursive:!0}),y=async e=>{let t;try{t=await(0,n.readdir)(e)}catch(t){if(t instanceof Error&&`code`in t&&t.code===`ENOENT`){await(0,n.mkdir)(e,{recursive:!0});return}throw t}await Promise.all(t.map(t=>(0,n.rm)((0,r.join)(e,t),{recursive:!0,force:!0})))},b=async(e,t)=>{try{await(0,n.rename)(e,t)}catch(r){if(r instanceof Error&&`code`in r&&r.code===`EXDEV`)await(0,n.cp)(e,t,{recursive:!0}),await(0,n.rm)(e,{recursive:!0,force:!0});else throw r}},x=e=>(0,n.rm)(e,{recursive:!0,force:!0}),re=e=>{let{root:t}=(0,r.parse)(e),n=e.slice(t.length).split(/[\\/]/).filter(Boolean).length,i=(0,r.resolve)((0,c.homedir)()),a=e===i||i.startsWith(`${e}/`);if(e===t||n<2||a)throw Error(`Refusing to recursively clear unsafe path: ${e}`)},S=async(e,t=!1)=>{let n=(0,r.resolve)(...e);t&&(re(n),await s.promises.rm(n,{recursive:!0,force:!0})),await s.promises.mkdir(n,{recursive:!0})},C=async(e,t)=>{let n=(0,r.resolve)(...e,`..`);await s.promises.mkdir(n,{recursive:!0}),await s.promises.writeFile((0,r.resolve)(...e),t)},w=`./runtime`,T=e=>e?`${e.name}GenqlSelection`:``,ie=e=>{let t=e.config?.endpoint?`"${e.config.endpoint}"`:`undefined`,n=e.config?.fetchImport;return`
|
package/dist/generate.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e } from "./application-
|
|
1
|
+
import { a as e } from "./application-CGcz3HPn.mjs";
|
|
2
2
|
import { appendFile as t, copyFile as n, cp as r, mkdir as i, readdir as a, rename as o, rm as s, writeFile as c } from "node:fs/promises";
|
|
3
3
|
import { dirname as l, join as u, parse as ee, relative as d, resolve as f } from "node:path";
|
|
4
4
|
import { build as p } from "esbuild";
|